Elektrine lite

← Feed

@kenshirriff@oldbytes.space

2026-09-26 17:03 UTC

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.

Replies (1)

  • @kenshirriff@oldbytes.space 2026-09-26 17:04

    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).

    Open ##4859315