[Python-checkins] r80012 - python/branches/release31-maint/Doc/library/math.rst
mark.dickinson
python-checkins at python.org
Mon Apr 12 20:52:08 CEST 2010
Author: mark.dickinson
Date: Mon Apr 12 20:52:08 2010
New Revision: 80012
Log:
More NaN consistency fixes (manual merge of r79875 to release31-maint).
Modified:
python/branches/release31-maint/Doc/library/math.rst
Modified: python/branches/release31-maint/Doc/library/math.rst
==============================================================================
--- python/branches/release31-maint/Doc/library/math.rst (original)
+++ python/branches/release31-maint/Doc/library/math.rst Mon Apr 12 20:52:08 2010
@@ -297,9 +297,9 @@
: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'))``.
More information about the Python-checkins
mailing list