Salamin-Brent algorithm
- From: dgoldsmith_89 <d.l.goldsmith@xxxxxxxxx>
- Date: Wed, 20 Jun 2007 22:10:51 -0700
Net researching algorithms for calculating pi, I found the wikipedia
page of that title and learned of the Salamin-Brent algorithm (I'm new
to this particular mathematical esoterica). Therein it states that
the algorithm is O(N log(N) log(log(N))) (i.e., time to calculate N
digits of pi is proportional to N log(N) log(log(N))). My question
is, is the log base the number system base, e.g., the time to
calculate the binary expression of pi is O(N log2(N) log2(log2(N))),
whereas the time to compute the hexadecimal expression is O(N log16(N)
log16(log16(N))), etc. (neglecting any benefits the binary calculation
might gain from taking place on a binary digital computer)?
Oh, and while I have someone's attention, what is done about the
"floating point epsilon" problem, i.e., when the precision of the
calculation reaches the point where it would exceed the representable
precision of the implemented floating point standard? Is it as simple
as just adequately scaling all the numbers involved? Or is there more
to it than that?
Thanks!
DG
.
- Follow-Ups:
- Re: Salamin-Brent algorithm
- From: Keith Ramsay
- Re: Salamin-Brent algorithm
- From: Keith Ramsay
- Re: Salamin-Brent algorithm
- From: dgoldsmith_89
- Re: Salamin-Brent algorithm
- Prev by Date: bagatelle: Extended triangle nomenclature.
- Next by Date: Re: Simple Proof of the Four Color Theorem
- Previous by thread: bagatelle: Extended triangle nomenclature.
- Next by thread: Re: Salamin-Brent algorithm
- Index(es):
Relevant Pages
|
Loading