Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Jussi Piitulainen Newsgroups: comp.lang.python Subject: Re: sum accuracy Date: Wed, 13 Apr 2016 19:57:26 +0300 Organization: A noiseless patient Spider Lines: 7 Message-ID: References: <570E78F9.8050409@chamonix.reportlab.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="305c68510616a2e7ac08bcd2ff1598bd"; logging-data="10163"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+A5vmKhTMleqgcMKl8+nOj/iXkQndqO18=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:m5/L7tqnE+xhMxn+4aGLEYUmTgw= sha1:51NFIFkbVwyDFx3U/ldn0ZWxP9Y= Xref: csiph.com comp.lang.python:106959 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.