signum() not in math?

Robin Becker robin at jessikat.fsnet.co.uk
Sat Oct 13 05:11:48 EDT 2001


In article <pcolmigtsz3.fsf at thoth.home>, Harald Hanche-Olsen
<hanche at math.ntnu.no> writes
....
>>>> import math
>>>> math.atan2(0.,-1.)
>3.1415926535897931
>>>> math.atan2(-0.,-1.)
>-3.1415926535897931
>
perhaps we need some new type to distinguish numbers which might result
in this behaviour. Then we could have a flame war about introducing it
:) 
-- 
Robin Becker



More information about the Python-list mailing list