diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-04-06 22:18:23 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-04-06 22:18:23 (GMT) |
commit | ad971d62ee24619ebb2ce2a2cda3951b9c0dbf46 (patch) | |
tree | f130f1aa3d883e64c393b5978907e9795378c2f1 /Doc/library/math.rst | |
parent | e07acb5f15efdb41c76705bd8c13e088928d1cce (diff) | |
download | cpython-ad971d62ee24619ebb2ce2a2cda3951b9c0dbf46.zip cpython-ad971d62ee24619ebb2ce2a2cda3951b9c0dbf46.tar.gz cpython-ad971d62ee24619ebb2ce2a2cda3951b9c0dbf46.tar.bz2 |
More NaN consistency doc fixes.
Diffstat (limited to 'Doc/library/math.rst')
-rw-r--r-- | Doc/library/math.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 2c6e51c..4b3d6d9 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -375,9 +375,9 @@ Constants :exc:`ValueError` for invalid operations like ``sqrt(-1.0)`` or ``log(0.0)`` (where C99 Annex F recommends signaling invalid operation or divide-by-zero), and :exc:`OverflowError` for results that overflow (for example, - ``exp(1000.0)``). A *NaN* will not be returned from any of the functions - above unless one or more of the input arguments was a *NaN*; in that case, - most functions will return a *NaN*, but (again following C99 Annex F) there + ``exp(1000.0)``). A NaN will not be returned from any of the functions + above unless one or more of the input arguments was a NaN; in that case, + most functions will return a NaN, but (again following C99 Annex F) there are some exceptions to this rule, for example ``pow(float('nan'), 0.0)`` or ``hypot(float('nan'), float('inf'))``. |