Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'repeated': 0.07; 'width': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'truncated': 0.09; 'sat,': 0.15; 'oct': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:fails': 0.16; 'amounts': 0.22; 'displayed': 0.22; 'least': 0.25; 'fixed': 0.28; 'header:X-Complaints-To:1': 0.28; 'decimal': 0.29; 'probably': 0.29; '(and': 0.32; '+0200,': 0.33; 'url:home': 0.33; 'handle': 0.33; 'to:addr:python-list': 0.33; 'received:org': 0.36; 'but': 0.36; 'level.': 0.36; "didn't": 0.36; 'charset:us-ascii': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'back': 0.62; 'thomas': 0.62; 'more': 0.63; 'results': 0.65; 'infamous': 0.84; 'rachel': 0.84; 'dennis': 0.91; 'received:108': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: a.index(float('nan')) fails Date: Sat, 27 Oct 2012 13:07:12 -0400 Organization: > Bestiaria Support Staff < References: <5089F33A.8010804@mrabarnett.plus.com> <508ab917$0$29967$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-68-179-72.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351357638 news.xs4all.nl 6943 [2001:888:2000:d::a6]:42309 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32287 On Sat, 27 Oct 2012 08:56:16 +0200, Thomas Rachel declaimed the following in gmane.comp.python.general: > Am 27.10.2012 06:48 schrieb Dennis Lee Bieber: > > > I don't know about the more modern calculators, but at least up > > through my HP-41CX, HP calculators didn't do (binary) "floating > > point"... They did a form of BCD with a fixed number of significant > > /decimal/ digits > > Then, what about sqrt(x)**2 or arcsin(sin(x))? Did that always return > the original x? > The HPs probably not -- since they truncated at the decimal digit level. The models with guard digits might have displayed the original, as they used the guard digits to round results back up the display/entry width (and to handle the infamous repeated addition of small amounts ) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/