Path: csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'algorithm': 0.04; 'assign': 0.07; 'iterate': 0.09; 'subject:set': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'def': 0.12; '(which,': 0.16; 'exist.': 0.16; 'finite': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'iteration,': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'bytes': 0.24; 'cc:2**0': 0.24; 'supported': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'assert': 0.31; 'subject:numbers': 0.31; 'bus': 0.33; 'fri,': 0.33; 'subject:the': 0.34; 'could': 0.34; 'subject:with': 0.35; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; '14,': 0.36; 'false': 0.36; 'ram': 0.36; 'requirements': 0.37; 'easily': 0.37; 'how': 0.40; 'even': 0.60; 'digital': 0.61; 'guarantee': 0.63; 'finish': 0.65; 'note:': 0.66; '1:00': 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:content-transfer-encoding; bh=uyuMWCts68fuMUtVIIkoT0WPF8+yxo1TF+HcO/lmJpc=; b=OCUXKttttpvHYXP+JYEt1/DrJ82gQGUz1OGAuqIQYOMvdDH/mX8FrP5WnvVkBXALdI e6e2hTv40rpOZq6CSdKQAqbOI/0Saxq0ZEwmg2XqFVPbkq6jSzZZ+a/oGhT3QOaS0Cyx BxmucgoabByeNoFA9YZ4jnfssT3rJLlSNmthJ88aZEB7LH0stgqfrG9CKjnBiDbsB3Ew Dvvzr5ADJU/h+xM5FByiO7o3b159EPXlsW6XEHFV0uJloXV2NyWYiKKzvXDLhg8VYYp+ dOzMHSmovEfMPIWS8j7HNCl/BD9iGK1NsqylLCj/58uu6cS/Fx9flBN1w5sC87EteTJ7 sdQA== MIME-Version: 1.0 X-Received: by 10.68.108.194 with SMTP id hm2mr3868604pbb.22.1392319537423; Thu, 13 Feb 2014 11:25:37 -0800 (PST) In-Reply-To: <871tz7864a.fsf@elektro.pacujo.net> References: <8e4c1ab1-e65d-483f-ad9d-6933ae2052c3@googlegroups.com> <888bd2fc-54b0-4c46-9d7b-d81d01a78b52@googlegroups.com> <52f59aeb$0$29972$c3e8da3$5496439d@news.astraweb.com> <7cc8f49d-a4c7-48c2-a0af-ac58c847d794@googlegroups.com> <71e578f8-0d23-4b8e-b9f2-b987bdc9c01d@googlegroups.com> <85r478bv99.fsf_-_@benfinney.id.au> <85ioskbtfm.fsf@benfinney.id.au> <85eh38bq5z.fsf@benfinney.id.au> <871tz7864a.fsf@elektro.pacujo.net> Date: Fri, 14 Feb 2014 06:25:37 +1100 Subject: Re: Working with the set of real numbers From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 1392319546 news.xs4all.nl 2849 [2001:888:2000:d::a6]:32969 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66213 On Fri, Feb 14, 2014 at 1:00 AM, Marko Rauhamaa wrote: > Well, if your idealized, infinite, digital computer had =E2=84=B5=E2=82= =81 bytes of RAM > and ran at =E2=84=B5=E2=82=81 hertz and Python supported transfinite iter= ation, you > could easily do reals: > > def real_sqrt(y): > for x in continuum(0, max(1, y)): > # Note: x is not traversed in the < order but some other > # well-ordering, which has been proved to exist. > if x * x =3D=3D y: > return x > assert False How exactly do you iterate over a continuum, with a digital computer? Even adding to your requirements that it have an =E2=84=B5=E2=82=81 Hz bus = (which, by the way, I *totally* want - the uses are endless), it would take a finite amount of time to assign to x the "next number", ergo your algorithm can't guarantee to finish in finite time. ChrisA