Math_Complex
Math::Complex - complex numbers package
use Math::Complex;
$i = new Math::Complex;
Complex numbers declared as
$i = Math::Complex->new(1,1);
can be manipulated with overloaded math operators. The operators
+ - * / neg ~ abs cos sin exp sqrt
are supported as well as
"" (stringify)
The methods
Re Im arg
are also provided.
sqrt()
should return two roots, but only returns one.
Dave Nadler, Tom Christiansen, Tim Bunce, Larry Wall.