CORDICbased four quadrant inverse tangent
theta = cordicatan2(y,x)
theta = cordicatan2(y,x,niters)
theta = cordicatan2(y,x)
computes the four
quadrant arctangent of y
and x
using
a CORDIC algorithm approximation.
theta = cordicatan2(y,x,niters)
performs niters
iterations
of the algorithm.






Floatingpoint CORDIC arctangent calculation.
theta_cdat2_float = cordicatan2(0.5,0.5) theta_cdat2_float = 2.3562
Fixed point CORDIC arctangent calculation.
theta_cdat2_fixpt = cordicatan2(fi(0.5,1,16,15),fi(0.5,1,16,15)); theta_cdat2_fixpt = 2.3562 DataTypeMode: Fixedpoint: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13
[1] Volder, JE. "The CORDIC Trigonometric Computing Technique." IRE Transactions on Electronic Computers. Vol. EC8, September 1959, pp. 330–334.
[2] Andraka, R. "A survey of CORDIC algorithm for FPGA based computers." Proceedings of the 1998 ACM/SIGDA sixth international symposium on Field programmable gate arrays. Feb. 22–24, 1998, pp. 191–200.
[3] Walther, J.S. "A Unified Algorithm for Elementary Functions." HewlettPackard Company, Palo Alto. Spring Joint Computer Conference, 1971, pp. 379–386. (from the collection of the Computer History Museum). www.computer.org/csdl/proceedings/afips/1971/5077/00/50770379.pdf
[4] Schelin, Charles W. "Calculator Function Approximation." The American Mathematical Monthly. Vol. 90, No. 5, May 1983, pp. 317–325.