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

Skip to content

Commit 3137885

Browse files
committed
#12211: remove paragraph about NaNs
1 parent 8cb1ec3 commit 3137885

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

Doc/library/math.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ Number-theoretic and representation functions
4040
*y*. On platforms that support signed zeros, ``copysign(1.0, -0.0)``
4141
returns *-1.0*.
4242

43-
If *x* is NaN, *y* is ignored and NaN is returned. If *y* is NaN,
44-
it is treated as positive: ``copysign(-1.0, NaN)`` returns 1.0.
45-
4643
.. function:: fabs(x)
4744

4845
Return the absolute value of *x*.

Modules/mathmodule.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -908,9 +908,7 @@ PyDoc_STRVAR(math_ceil_doc,
908908
FUNC2(copysign, copysign,
909909
"copysign(x, y)\n\nReturn a float with the magnitude (absolute value) "
910910
"of x but the sign \nof y. On platforms that support signed zeros, "
911-
"copysign(1.0, -0.0) \nreturns -1.0.\n\n"
912-
"If x is NaN, y is ignored and NaN is returned. If y is NaN, it is\n"
913-
"treated as positive.")
911+
"copysign(1.0, -0.0) \nreturns -1.0.\n")
914912
FUNC1(cos, cos, 0,
915913
"cos(x)\n\nReturn the cosine of x (measured in radians).")
916914
FUNC1(cosh, cosh, 1,

0 commit comments

Comments
 (0)