Tables and interpolation

You will learn

How many sine table entries you need, and when linear interpolation beats more entries.

A quarter-wave table of n entries answers to within about half a step between them; interpolating between two entries brings that down to h^2/8, where h is pi/2 divided by n. With 16 entries of 16 bits the nearest entry is off by up to 0.049 and the interpolated answer by 0.0012. Past a point more entries buy nothing, because the b-bit words themselves are off by up to 1/(2S). The spec cordic.t27 builds the table and measures it against its own 50-step CORDIC.

Open the interactive lesson →