Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1862840

Browse files
committed
More NaN consistency fixes (manual merge of r79875 to release31-maint).
1 parent f3ff883 commit 1862840

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/math.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ Constants
297297
:exc:`ValueError` for invalid operations like ``sqrt(-1.0)`` or ``log(0.0)``
298298
(where C99 Annex F recommends signaling invalid operation or divide-by-zero),
299299
and :exc:`OverflowError` for results that overflow (for example,
300-
``exp(1000.0)``). A *NaN* will not be returned from any of the functions
301-
above unless one or more of the input arguments was a *NaN*; in that case,
302-
most functions will return a *NaN*, but (again following C99 Annex F) there
300+
``exp(1000.0)``). A NaN will not be returned from any of the functions
301+
above unless one or more of the input arguments was a NaN; in that case,
302+
most functions will return a NaN, but (again following C99 Annex F) there
303303
are some exceptions to this rule, for example ``pow(float('nan'), 0.0)`` or
304304
``hypot(float('nan'), float('inf'))``.
305305

0 commit comments

Comments
 (0)