math.fsum docs did not show up because of a misplaced testsetup directive

This commit is contained in:
Łukasz Langa 2013-01-18 13:31:53 +01:00
parent 2f78f0e1f9
commit a670fcc692
1 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,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.
@ -82,8 +85,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::