3 ms·
It is possible to draw a line through n points with an n-1 degree polynomial, and since the sine/cosine curve is so simple you don't need to take that many samp
by fwungy 4y ago
It is possible to draw a line through n points with an n-1 degree polynomial, and since the sine/cosine curve is so simple you don't need to take that many samples to get a good approximate.
Would it not be faster to just store a lookup table and interpolate is my question. I recall hearing that's how it's done.
- 6nf 4y agoCPUs can do dozens of calculations for the cost of one L1 cache fetch so this is still going to be faster probably