Re: Vector Rotation
- From: "Clay S. Turner" <Physics@xxxxxxxxxxxxx>
- Date: Mon, 27 Feb 2006 19:42:28 -0500
"Carlos Moreno" <moreno_at_mochima_dot_com@xxxxxxxxxxxxxx> wrote in message
news:lGHMf.11242$rg2.537803@xxxxxxxxxxxxxxxxxxxxxx
Greg Berchin wrote:
Both square root and division can be done via Newton-Raphson
if you can do multiplications (for the division, use N-R to
find the inverse, then multiply).
A good suggestion. For some reason I seem to overlook Newton-Raphson as
one of the "obvious" choices; I guess I've never liked the fact that it
can diverge in some cases. Should be no such problems in this
situation.
I'm pretty certain that for the square root, N-R is guaranteed
to work (don't know of any proof, but I wouldn't be surprised
if it has been rigorously proven) -- if you start with an initial
estimate of x (for the sqrt(x)) if x > 1, and 1 if x < 1.
Hello Guys,
Actually the Newton - Raphson method is quadratically convergent in the
limit of the point of convergence. However, it can be painfully slow. For
example try using this for sqrt(x) with x near zero. Here the derivative
causes a real problem. The region of convergence is very small for x small.
And it is easy to have a seed fall outside of this region, hence your algo
diverges.
One alternative is to find 1/sqrt(x), another is using an algo for directly
finding the square root by pairing bits and using trial subtractions. I've
seen this actually done in hardware for a quick square root. Each iteration
yields one bit of the square root.
Clay
.
- Follow-Ups:
- Re: Vector Rotation
- From: Carlos Moreno
- Re: Vector Rotation
- References:
- Vector Rotation
- From: Greg Berchin
- Re: Vector Rotation
- From: Carlos Moreno
- Re: Vector Rotation
- From: Greg Berchin
- Re: Vector Rotation
- From: Carlos Moreno
- Vector Rotation
- Prev by Date: Why translate center frequency (instead of band edge) to baseband?
- Next by Date: Re: algorithms for location versus for frequency?
- Previous by thread: Re: Vector Rotation
- Next by thread: Re: Vector Rotation
- Index(es):
Relevant Pages
|