don't NaN & infinities hide FP errors
David M. Cooke
cookedm+news at physics.mcmaster.ca
Wed Nov 17 18:53:45 EST 2004
More information about the Python-list mailing list
Wed Nov 17 18:53:45 EST 2004
- Previous message (by thread): don't NaN & infinities hide FP errors
- Next message (by thread): don't NaN & infinities hide FP errors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Gandalf <gandalf at geochemsource.com> writes: >> Just try it. 1./0. raises a ZeroDivisionError, math.log(0) raises a >> math range error, and math.log(-1) yields nan. > > This is not true. On UNIX systems, math.log(-1) will be NaN. Not true; all the linux boxes and a Tru64 system I've just tried raise ValueError. However, the three versions of Python I have on my Mac OS X system give nan. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke |cookedm(at)physics(dot)mcmaster(dot)ca
- Previous message (by thread): don't NaN & infinities hide FP errors
- Next message (by thread): don't NaN & infinities hide FP errors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list