Message99445
The standard library documentation for the math module states "All functions return a quiet NaN if at least one of the args is NaN." However, there are some exceptions to this rule, including:
math.pow(1.0, float('nan')) == 1.0
math.hypot(float('inf'), float('nan')) == float('inf')
abs(complex(float('nan'), float('inf'))) == float('inf')
The docs should be updated to reflect that such corner cases exist. |
|
| Date |
User |
Action |
Args |
| 2010-02-16 22:41:41 | ddicato | set | recipients:
+ ddicato, georg.brandl |
| 2010-02-16 22:41:41 | ddicato | set | messageid: <1266360101.13.0.863363643677.issue7947@psf.upfronthosting.co.za> |
| 2010-02-16 22:41:39 | ddicato | link | issue7947 messages |
| 2010-02-16 22:41:39 | ddicato | create | |
|