mirror of
https://github.com/python/cpython.git
synced 2025-07-27 13:14:41 +00:00
math.fsum docs did not show up because of a misplaced testsetup directive
(merged 3.2 fix)
This commit is contained in:
commit
37bfa238da
1 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,9 @@
|
||||||
.. module:: math
|
.. module:: math
|
||||||
:synopsis: Mathematical functions (sin() etc.).
|
:synopsis: Mathematical functions (sin() etc.).
|
||||||
|
|
||||||
|
.. testsetup::
|
||||||
|
|
||||||
|
from math import fsum
|
||||||
|
|
||||||
This module is always available. It provides access to the mathematical
|
This module is always available. It provides access to the mathematical
|
||||||
functions defined by the C standard.
|
functions defined by the C standard.
|
||||||
|
@ -77,8 +80,6 @@ Number-theoretic and representation functions
|
||||||
|
|
||||||
|
|
||||||
.. function:: fsum(iterable)
|
.. function:: fsum(iterable)
|
||||||
.. testsetup::
|
|
||||||
>>> from math import fsum
|
|
||||||
|
|
||||||
Return an accurate floating point sum of values in the iterable. Avoids
|
Return an accurate floating point sum of values in the iterable. Avoids
|
||||||
loss of precision by tracking multiple intermediate partial sums::
|
loss of precision by tracking multiple intermediate partial sums::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue