comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Fun with Unbounded Rational Numbers
Date: Sun, 9 Apr 2017 12:05:42 +0200
Date: 2017-04-09T12:05:42+02:00	[thread overview]
Message-ID: <ocd0rv$jro$1@dont-email.me> (raw)
In-Reply-To: <87zifq831u.fsf@nightsong.com>

On 04/09/2017 09:15 AM, Paul Rubin wrote:
>          M := Two * X;
>          Y = X * X - 2     -- <---- this might have been missing?
>          X := X - Y / M;

Further investigation shows that the slow operation is the subtraction of R=2 in

Y := X ** 2 - R;

for X=665857/470832 (X**2=443365544449/221682772224≈2.00000000000451095044494277).

-- 
Jeff Carter
"This trial is a travesty. It's a travesty of a mockery of a
sham of a mockery of a travesty of two mockeries of a sham. ...
Do you realize there's not a single homosexual on that jury?"
Bananas
27


      parent reply	other threads:[~2017-04-09 10:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-08 10:37 Fun with Unbounded Rational Numbers Jeffrey R. Carter
2017-04-08 11:19 ` Dmitry A. Kazakov
2017-04-08 14:14 ` Robert Eachus
2017-04-09  0:30 ` antispam
2017-04-09  8:47   ` Jeffrey R. Carter
2017-04-09 19:25     ` antispam
2017-04-10 17:18       ` Jeffrey R. Carter
2017-04-11 21:39         ` antispam
2017-04-09  7:15 ` Paul Rubin
2017-04-09  8:56   ` Jeffrey R. Carter
2017-04-09 21:18     ` Paul Rubin
2017-04-10 17:08       ` Jeffrey R. Carter
2017-04-10 19:39         ` Paul Rubin
2017-04-09 10:05   ` Jeffrey R. Carter [this message]
replies disabled

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