mirror of https://github.com/python/cpython
math.fsum docs did not show up because of a misplaced testsetup directive
This commit is contained in:
parent
b24d0d984c
commit
288234fe0e
|
@ -4,6 +4,9 @@
|
|||
.. module:: math
|
||||
:synopsis: Mathematical functions (sin() etc.).
|
||||
|
||||
.. testsetup::
|
||||
|
||||
from math import fsum
|
||||
|
||||
This module is always available. It provides access to the mathematical
|
||||
functions defined by the C standard.
|
||||
|
@ -77,8 +80,6 @@ Number-theoretic and representation functions
|
|||
|
||||
|
||||
.. function:: fsum(iterable)
|
||||
.. testsetup::
|
||||
>>> from math import fsum
|
||||
|
||||
Return an accurate floating point sum of values in the iterable. Avoids
|
||||
loss of precision by tracking multiple intermediate partial sums::
|
||||
|
|
Loading…
Reference in New Issue