Post
Usually, rotating a vector by an angle requires complicated math. But for some special angles, the calculation requires just shifts and adds, easy to do in hardware. The CORDIC algorithm breaks down an angle into special angles (using a table), does quick vector rotations, producing the trig answer.
CORDIC became popular, especially in scientific calculators. The 8087 chip uses CORDIC, but goes further, also using a polynomial ratio to get more accuracy. The simple function 3x/(3-x^2) (blue) is surprisingly close to the tangent (red), better than a Taylor series (green).
1 repost35 likes
For details on how the 8087 calculates tangents by using the CORDIC algorithm combined with polynomials, see my latest article: www.righto.com/2026/09/8087...
Credits: I've been working on this with the members of the "Opcode Collective", especially Smartest Blob and @gloriouscow.bsky.social, who used ML to convert ROM images to microcode data and extensively analyzed the contents. 7/7