Angle and magnitude

You will learn

How CORDIC vectoring mode gives atan2 and the length of a vector without a divider.

Vectoring mode steers the other way: it turns the vector down onto the x axis and collects the angle it turned through. What is left on the x axis is the length, stretched by 1/K(n), about 1.6467602581, so one multiply by K(n) gives the magnitude. A vector in the left half-plane is first turned by 90 degrees. For (3, 4), 16 steps give a length of 5.000000 and an angle of 53.13 degrees. The spec cordic.t27 computes the steps and the references.

Open the interactive lesson →