Mantis - Squeak
Viewing Issue Advanced Details
7409 Kernel minor always 10-30-09 21:03 04-18-10 22:00
nicolas cellier  
nicolas cellier  
normal  
closed trunk  
fixed  
none    
none trunk  
0007409: arcTan: has own implementation in case of zero
According to major IEEE implementation:
self assert: (0 arcTan: 0) = 0.
self assert: (Float negativeZero arcTan: 0) = 0.
self assert: ((0 arcTan: Float negativeZero) closeTo: Float pi).
self assert: ((Float negativeZero arcTan: Float negativeZero) closeTo: Float pi negated).
I attach a little libm test
 test_atan2.c [^] (279 bytes) 10-30-09 21:03
 M7409-Float-arcTan-Test.1.cs [^] (1,185 bytes) 10-30-09 21:28
 M7409-Float-arcTan-Patch.1.cs [^] (989 bytes) 10-30-09 21:28

Notes
(0013373)
nicolas cellier   
10-30-09 22:00   
Fixed in
http://source.squeak.org/trunk/Kernel-nice.283.mcz [^]
http://source.squeak.org/trunk/KernelTests-nice.104.mcz [^]
(0013374)
nicolas cellier   
10-30-09 22:02   
"fix begin"
Installer mantis bug: 7409 fix:'M7409-Float-arcTan-Patch.1.cs'.
"fix test"
Installer mantis bug: 7409 fix:'M7409-Float-arcTan-Test.1.cs'.
"fix end"