comp.lang.ada
 help / color / mirror / Atom feed
From: "Egil Høvik" <egilhovik@hotmail.com>
Cc: nma@12000.org
Subject: Re: a bug in code shown in ada2012 rational or is it me?
Date: Wed, 20 Jun 2012 03:44:55 -0700 (PDT)
Date: 2012-06-20T03:44:55-07:00	[thread overview]
Message-ID: <65e3ef59-b1bd-4e72-8eb2-f0bbabd30cee@googlegroups.com> (raw)
In-Reply-To: <jrs7ft$uem$1@speranza.aioe.org>

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);



  parent reply	other threads:[~2012-06-20 11:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-20 10:09 a bug in code shown in ada2012 rational or is it me? Nasser M. Abbasi
2012-06-20 10:33 ` Egil Høvik
2012-06-20 10:44 ` Egil Høvik [this message]
2012-06-20 14:03   ` Nasser M. Abbasi
2012-06-21 20:10     ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox