Re: Fast Cube Root Using C33
- From: Tim Wescott <tim@xxxxxxxxxxxxxxxx>
- Date: Fri, 27 Feb 2009 22:43:37 -0600
On Fri, 27 Feb 2009 08:18:49 -0600, Vladimir Vassilevsky wrote:
Tim Wescott wrote:
On Thu, 26 Feb 2009 19:04:01 -0800, pnachtwey wrote:
I need a fast cube root routine.
[...]
Does anyone here remember how to take the square root of a decimal
number via "long division"?
[...]
That algorithm computes one bit per iteration. Simple, but very slow.
Newton-Raphson efficiently doubles the number of known bits at each
step.
Vladimir Vassilevsky
DSP and Mixed Signal Design Consultant http://www.abvolt.com
I just checked a simple N-R algorithm for both square root and cube root.
For square roots, N-R delivered a factor of 2.4 precision (so slightly
more than one bit) per iteration -- not a doubling. For cubes, it's a
factor of 1.8 or so -- so less than one bit per iteration.
That's not to say that my algorithm doesn't take longer, because there's
considerably more math per iteration for a crummy third of a bit more per
iteration or whatever I'm achieving.
--
http://www.wescottdesign.com
.
- Follow-Ups:
- Re: Fast Cube Root Using C33
- From: Jerry Avins
- Re: Fast Cube Root Using C33
- References:
- Fast Cube Root Using C33
- From: pnachtwey
- Re: Fast Cube Root Using C33
- From: Tim Wescott
- Re: Fast Cube Root Using C33
- From: Vladimir Vassilevsky
- Fast Cube Root Using C33
- Prev by Date: Re: Fast Cube Root Using C33
- Next by Date: Re: Fast Cube Root Using C33
- Previous by thread: Re: Fast Cube Root Using C33
- Next by thread: Re: Fast Cube Root Using C33
- Index(es):
Relevant Pages
|