Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #106959
| From | Jussi Piitulainen <jussi.piitulainen@helsinki.fi> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: sum accuracy |
| Date | 2016-04-13 19:57 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <lf5a8kx4fbd.fsf@ling.helsinki.fi> (permalink) |
| References | <570E78F9.8050409@chamonix.reportlab.co.uk> <mailman.83.1460566278.15650.python-list@python.org> |
Robin Becker writes: > Does anyone know if sum does anything special to try and improve > accuracy? My simple tests seem to show it is exactly equivalent to a > for loop summation. You want math.fsum.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
sum accuracy Robin Becker <robin@reportlab.com> - 2016-04-13 17:51 +0100 Re: sum accuracy Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-04-13 19:57 +0300
csiph-web