projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f78f0e
)
math.fsum docs did not show up because of a misplaced testsetup directive
author
Łukasz Langa
<lukasz@langa.pl>
Fri, 18 Jan 2013 12:31:53 +0000
(13:31 +0100)
committer
Łukasz Langa
<lukasz@langa.pl>
Fri, 18 Jan 2013 12:31:53 +0000
(13:31 +0100)
Doc/library/math.rst
patch
|
blob
|
history
diff --git
a/Doc/library/math.rst
b/Doc/library/math.rst
index 57d776243523feeedb0fd7c245398ab79ed77fb0..1df48fc572e1f58458306c09a0835ffe2c2a36f7 100644
(file)
--- a/
Doc/library/math.rst
+++ b/
Doc/library/math.rst
@@
-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::