Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!81.171.88.16.MISMATCH!hq-usenetpeers.eweka.nl!hq-usenetpeers.eweka.nl!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.047 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'algorithm': 0.04; 'cc:addr :python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'inability': 0.16; 'integer.': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'integer': 0.24; 'fine': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'message-id:@mail.gmail.com': 0.30; 'beyond': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'positive': 0.37; 'christian': 0.38; 'represent': 0.38; 'nov': 0.38; 'pm,': 0.38; 'most': 0.60; 'therefore': 0.72; '7:25': 0.84; 'notably,': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=dYJneAODbq43h2LYt75q5UROq6bI0JqoeT3NHlannPI=; b=OTiB9HE9k9oaMlyPn91x3MCeGXChIKI4YVRrs8chj5yXdy58mhJexpg81OvctF+sjX WGxUGt5P3fffpyrywWvWNvQATRU/IJmG7RTC3FflVPXCkgQcgKl36Iv0JXYqG6wznhCg WRrEUb4uSFjG3rnwzjvPwXZ7GP3kEpbhxWEt7gtz8N9f1qtVbQMQh3PRDdxXVdLaXbIE gu0NBlHqLJwglRqX9cy/9Xc1wlItsMDYmAQj70QIZ9fdyJ0dnhA8JqBFXSitcfQRYtc7 EXa7QXYj+JPjtPVH3M87hpsxvEp+vw7O6A3JHJL8N5FG5K9YExPpRjjbfdwXSLVDeT5n nxXw== MIME-Version: 1.0 X-Received: by 10.50.128.35 with SMTP id nl3mr2549283igb.34.1414830788120; Sat, 01 Nov 2014 01:33:08 -0700 (PDT) In-Reply-To: References: <54543787$0$13005$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 1 Nov 2014 19:33:08 +1100 Subject: Re: Challenge: optimizing isqrt From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414830791 news.xs4all.nl 2972 [2001:888:2000:d::a6]:34834 X-Complaints-To: abuse@xs4all.nl X-Received-Body-CRC: 874805532 X-Received-Bytes: 3465 Xref: csiph.com comp.lang.python:80079 On Sat, Nov 1, 2014 at 7:25 PM, Christian Gollwitzer wrote: >> Part of the point of that algorithm is that it never uses FP, and is >> therefore not limited by FP restrictions. > > > which are??? Most notably, the inability to represent every integer beyond 2**53, and the inability to represent any integer beyond 2**1024. This algorithm should work fine with any positive integer. ChrisA