3 ms·
Why not do a table, but also store a table of the 1st derivative (which, for cosine, you could use the same table again but shifted)? Then, you could do a 2nd
by fallingfrog 3y ago
Why not do a table, but also store a table of the 1st derivative (which, for cosine, you could use the same table again but shifted)?
Then, you could do a 2nd order fit like a spline instead of a straight line between your table values.
Betcha it would be crazy fast.