This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Cyborg16, mark.dickinson, tim.peters
Date 2009-08-10.16:29:27
SpamBayes Score 0.00010339841
Marked as misclassified No
Message-id <1249921769.64.0.395132916417.issue6675@psf.upfronthosting.co.za>
In-reply-to
Content
The only issue with subnormals is that a simple relative error test is 
usually inappropriate.  For example, on an IEEE 754 machine 2**-1073 
should almost always be considered a good approximation to 2**-1074, since 
the two floats are adjacent; but the relative error here is 100%!  But I 
see that in the code you linked you have a combination of a relative error 
and absolute error tests, so this isn't a problem.

There's something similar to your code in the Python tests:  see function 
'almostEqualF' in Lib/test/test_cmath.py.
History
Date User Action Args
2009-08-10 16:29:29mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, Cyborg16
2009-08-10 16:29:29mark.dickinsonsetmessageid: <1249921769.64.0.395132916417.issue6675@psf.upfronthosting.co.za>
2009-08-10 16:29:27mark.dickinsonlinkissue6675 messages
2009-08-10 16:29:27mark.dickinsoncreate