The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Language::Befunge::lib::CPLI - Complex numbers extension

VERSION

version 5.000

DESCRIPTION

The CPLI fingerprint (0x43504C49) allows to do complex numbers operations.

FUNCTIONS

new

Create a new CPLI instance.

Complex operations

  • ($r, $i) = A( $ar, $ai, $br, $bi )

    Push ($ar+i*$ai) + ($br+i*$bi) back onto the stack (complex addition)

  • ($r, $i) = D( $ar, $ai, $br, $bi )

    Push ($ar+i*$ai) + ($br+i*$bi) back onto the stack (complex division)

  • ($r, $i) = M( $ar, $ai, $br, $bi )

    Push ($ar+i*$ai) + ($br+i*$bi) back onto the stack (complex multiplication)

  • ($r, $i) = S( $ar, $ai, $br, $bi )

    Push ($ar+i*$ai) + ($br+i*$bi) back onto the stack (complex subtraction)

  • V( $r, $i )

    Push back absolute value of complex $r + i* $i.

Output

  • O( $r, $i )

    Output complex number $r + i * $i.

SEE ALSO

http://www.rcfunge98.com/rcsfingers.html#CPLI.

AUTHOR

Jerome Quelin

COPYRIGHT AND LICENSE

This software is copyright (c) 2003 by Jerome Quelin.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.