Language::Befunge::IP::lib::CPLI - Complex numbers extension
The CPLI fingerprint (0x43504C49) allows to do complex numbers operations.
Create a new CPLI instance.
($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.
$r + i* $i
O( $r, $i )
Output complex number $r + i * $i.
$r + i * $i
Language::Befunge, http://www.rcfunge98.com/rcsfingers.html#CPLI.
Jerome Quelin, <jquelin@cpan.org>
<jquelin@cpan.org>
Copyright (c) 2001-2009 Jerome Quelin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Language::Befunge, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Language::Befunge
CPAN shell
perl -MCPAN -e shell install Language::Befunge
For more information on module installation, please visit the detailed CPAN module installation guide.