Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3137885c
Commit
3137885c
authored
Feb 16, 2014
by
Andrew Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#12211: remove paragraph about NaNs
parent
8cb1ec32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
Doc/library/math.rst
Doc/library/math.rst
+0
-3
Modules/mathmodule.c
Modules/mathmodule.c
+1
-3
No files found.
Doc/library/math.rst
View file @
3137885c
...
...
@@ -40,9 +40,6 @@ Number-theoretic and representation functions
*y*. On platforms that support signed zeros, ``copysign(1.0, -0.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)
Return the absolute value of *x*.
...
...
Modules/mathmodule.c
View file @
3137885c
...
...
@@ -908,9 +908,7 @@ PyDoc_STRVAR(math_ceil_doc,
FUNC2
(
copysign
,
copysign
,
"copysign(x, y)
\n\n
Return a float with the magnitude (absolute value) "
"of x but the sign
\n
of y. On platforms that support signed zeros, "
"copysign(1.0, -0.0)
\n
returns -1.0.
\n\n
"
"If x is NaN, y is ignored and NaN is returned. If y is NaN, it is
\n
"
"treated as positive."
)
"copysign(1.0, -0.0)
\n
returns -1.0.
\n
"
)
FUNC1
(
cos
,
cos
,
0
,
"cos(x)
\n\n
Return the cosine of x (measured in radians)."
)
FUNC1
(
cosh
,
cosh
,
1
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment