perl 5.003_05: lib/Math/Complex.pm
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>
Sun, 8 Sep 1996 00:40:34 +0000 (00:40 +0000)
committerAndy Dougherty <doughera@lafcol.lafayette.edu>
Sun, 8 Sep 1996 00:40:34 +0000 (00:40 +0000)
commit3f193590c5874b4c5b016955e0e787f60536c0dc
tree64ec0c91e25e63015756d8f898c8b821b56a56c1
parent5a13742daee9596f29612f9436636edef76512f1
perl 5.003_05: lib/Math/Complex.pm

There was a mistake in the sqrt routine in lib/Math/Complex.pm that
gave wrong answers when the magnitude of the imaginary part of the
argument exceeded the magnitude of the real part.  Line 69 had too
many sqrt($y)'s.  Further, expressions were re-arranged so that
calls to the expensive real sqrt() routine were reduced from 4 to 2
in this case.
lib/Math/Complex.pm