mirror of
https://github.com/python/cpython.git
synced 2025-07-22 18:55:22 +00:00
#12211: remove paragraph about NaNs
This commit is contained in:
parent
8cb1ec3274
commit
3137885c36
2 changed files with 1 additions and 6 deletions
|
@ -40,9 +40,6 @@ Number-theoretic and representation functions
|
||||||
*y*. On platforms that support signed zeros, ``copysign(1.0, -0.0)``
|
*y*. On platforms that support signed zeros, ``copysign(1.0, -0.0)``
|
||||||
returns *-1.0*.
|
returns *-1.0*.
|
||||||
|
|
||||||
If *x* is NaN, *y* is ignored and NaN is returned. If *y* is NaN,
|
|
||||||
it is treated as positive: ``copysign(-1.0, NaN)`` returns 1.0.
|
|
||||||
|
|
||||||
.. function:: fabs(x)
|
.. function:: fabs(x)
|
||||||
|
|
||||||
Return the absolute value of *x*.
|
Return the absolute value of *x*.
|
||||||
|
|
|
@ -908,9 +908,7 @@ PyDoc_STRVAR(math_ceil_doc,
|
||||||
FUNC2(copysign, copysign,
|
FUNC2(copysign, copysign,
|
||||||
"copysign(x, y)\n\nReturn a float with the magnitude (absolute value) "
|
"copysign(x, y)\n\nReturn a float with the magnitude (absolute value) "
|
||||||
"of x but the sign \nof y. On platforms that support signed zeros, "
|
"of x but the sign \nof y. On platforms that support signed zeros, "
|
||||||
"copysign(1.0, -0.0) \nreturns -1.0.\n\n"
|
"copysign(1.0, -0.0) \nreturns -1.0.\n")
|
||||||
"If x is NaN, y is ignored and NaN is returned. If y is NaN, it is\n"
|
|
||||||
"treated as positive.")
|
|
||||||
FUNC1(cos, cos, 0,
|
FUNC1(cos, cos, 0,
|
||||||
"cos(x)\n\nReturn the cosine of x (measured in radians).")
|
"cos(x)\n\nReturn the cosine of x (measured in radians).")
|
||||||
FUNC1(cosh, cosh, 1,
|
FUNC1(cosh, cosh, 1,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue