comp.lang.ada
 help / color / mirror / Atom feed
From: Paul Rubin <no.email@nospam.invalid>
Subject: Re: Fun with Unbounded Rational Numbers
Date: Mon, 10 Apr 2017 12:39:24 -0700
Date: 2017-04-10T12:39:24-07:00	[thread overview]
Message-ID: <87fuhg6oib.fsf@nightsong.com> (raw)
In-Reply-To: ocge0e$gp7$1@dont-email.me

"Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org> writes:
> As I said in another post, the thing that was taking the time was
> subtracting R (2) in the calculation of Y.

I'm trying to understand why that caused a bottleneck in the Ada
implementation when it didn't with other implementations.

> I made some improvements to the addition algorithm 

Oh, ok, you mean the rational number functions were something you were
working on rather than a released library.  That makes more sense--there
was some kind of algorithmic bug in it that's taken care of now.

I'd be interested to know if you get reasonable answers after 10 or 15
iterations.  Fwiw, for depth 7, I get:

  4946041176255201878775086487573351061418968498177    /
  3497379255757941172020851852070562919437964212608         

Higher depths get bigger numbers very quickly but I can supply the
values if you want to check them against your own implementation.


  reply	other threads:[~2017-04-10 19:39 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 [this message]
2017-04-09 10:05   ` Jeffrey R. Carter
replies disabled

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