Perl-Sensitive Sunglasses | |
PerlMonks |
Imaginary / Complex numbersby Elliott (Pilgrim) |
on Jul 22, 2002 at 13:36 UTC ( [id://184034]=perlquestion: print w/replies, xml ) | Need Help?? |
Elliott has asked for the wisdom of the Perl Monks concerning the following question:
Is there a standard way of handling imaginary and/or complex numbers in Perl?
I am writing a little utility (for fun - that's the kind of fun guy I am) to extract the roots of quartic equations and I have found that the square root of any negative number is returned as 2^31, which at least stops the script crashing but is otherwise not very helpful. Is this OS-dependent?
Back to
Seekers of Perl Wisdom
|
|