From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,23889412ffb2ab1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.223.40 with SMTP id qr8mr775352pbc.0.1340309427929; Thu, 21 Jun 2012 13:10:27 -0700 (PDT) MIME-Version: 1.0 Path: l9ni4349pbj.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!news.mixmin.net!gandalf.srv.welterde.de!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: a bug in code shown in ada2012 rational or is it me? Date: Thu, 21 Jun 2012 15:10:24 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <65e3ef59-b1bd-4e72-8eb2-f0bbabd30cee@googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1340309426 11992 69.95.181.76 (21 Jun 2012 20:10:26 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 21 Jun 2012 20:10:26 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Response Date: 2012-06-21T15:10:24-05:00 List-Id: I forwarded this thread to John Barnes, so it ought to get fixed when he gets around to revising the existing part of the Rationale. FYI, I sent him a list of 51 bugs I found when I created (the not yet finished) HTML version, so it's not quite a foolproof document at this time. :-) Randy. "Nasser M. Abbasi" wrote in message news:jrsl7g$33m$1@speranza.aioe.org... > On 6/20/2012 5:44 AM, Egil H�vik wrote: >> On Wednesday, June 20, 2012 12:09:00 PM UTC+2, Nasser M. Abbasi wrote: >>> function T(N: Natural) return Long_Long_Float is >>> (if N = 0 then 0.25 else >>> (T(N�1)�2.0**(N�1)*A(N�1)�A(N))**2); >> >> Should be: >> >> function T(N: Natural) return Long_Long_Float is >> (if N = 0 then 0.25 else >> T(N�1)�2.0**(N�1)*(A(N�1)�A(N))**2); >> > > thank you. I verified that I get Pi now with the above change. > > May be someone at Adacore can update the pdf file on that web site, > as it is not good to have this typo in the code given it is an > Ada 2012 document. > > --Nasser >