From: Mark Dickinson Date: Mon, 12 Apr 2010 18:52:08 +0000 (+0000) Subject: More NaN consistency fixes (manual merge of r79875 to release31-maint). X-Git-Tag: v3.1.3rc1~954 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18628400375cb14130fde1502bd646e997b9a6de;p=python More NaN consistency fixes (manual merge of r79875 to release31-maint). --- diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 38bdc461ca..c760701ef1 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -297,9 +297,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'))``.