[BUG] Float>>tan

ajbn at cin.ufpe.br ajbn at cin.ufpe.br
Wed Aug 22 20:35:30 UTC 2001


Folks,

Last night, I evaluated the following expression

(Float halfPi) tan

and I got "8.16588936419192e15" as the result!
This is not the tangent of 90 degrees, i.e. (Float halfPi), isn´t ;-)
The Float>>tan implementation is written as "^self sin / self cos". In this 
case, "self cos" should have evaluated to zero and we should have got a 
division by zero.
Am I missing something here?
Cheers,

Antonio Barros




More information about the Squeak-dev mailing list