Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Robin Becker Newsgroups: comp.lang.python Subject: sum accuracy Date: Wed, 13 Apr 2016 17:51:05 +0100 Lines: 5 Message-ID: References: <570E78F9.8050409@chamonix.reportlab.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de zdVzuKWIOjakf01BThigIwHMXieR9kySDLz0EZ4Deykg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'tests': 0.18; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'equivalent': 0.27; 'anyone': 0.32; 'to:addr:python-list': 0.36; 'received:org': 0.37; 'seem': 0.37; 'anything': 0.38; 'does': 0.39; 'to:addr:python.org': 0.40; 'show': 0.62; 'sum': 0.69; 'special': 0.73; 'received:109': 0.75; 'becker': 0.84 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: 109.174.168.73 X-Mozilla-News-Host: news://news.gmane.org:119 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <570E78F9.8050409@chamonix.reportlab.co.uk> Xref: csiph.com comp.lang.python:106958 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. -- Robin Becker