[BUG] Float atan:
Alexander Lazarevic
lazarevi at prinz-atm.CS.Uni-Magdeburg.De
Mon Jun 7 07:39:58 UTC 1999
Just a little bug I found:
The atan: method in Float should return values between -Pi and Pi.
It returns false values for the third quadrant, e.g. "-1 atan: -1"
returns 3.92699081698724 (225°), which should be -2.356194490192345
(-135°).
Here is a patch:
Content-Type: application/octet-stream
Content-Disposition: attachment;
filename="Float-arcTan.st"
Attachment converted: Anon:Float-arcTan.st (????/----) (0000AAC2)
Alex.
--
------ Alexander Lazarevic ------------------------------------------------
-- Otto-von-Guericke-Universitaet mailto: lazarevi at cs.uni-magdeburg.de --
-- Computational Visualistics http://www.cs.uni-magdeburg.de/~lazarevi --
More information about the Squeak-dev
mailing list
|