Skip to content

Commit 66db937

Browse files
committed
Remove out of date example for fsum()
1 parent 839cc05 commit 66db937

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Doc/library/math.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,7 @@ Number-theoretic and representation functions
108108
.. function:: fsum(iterable)
109109

110110
Return an accurate floating point sum of values in the iterable. Avoids
111-
loss of precision by tracking multiple intermediate partial sums:
112-
113-
>>> sum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1])
114-
0.9999999999999999
115-
>>> fsum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1])
116-
1.0
111+
loss of precision by tracking multiple intermediate partial sums.
117112

118113
The algorithm's accuracy depends on IEEE-754 arithmetic guarantees and the
119114
typical case where the rounding mode is half-even. On some non-Windows

0 commit comments

Comments
 (0)