Re: Problems to calculate sin



Thomas.a.mcglynn@xxxxxxxx wrote:
Table lookup and interpolation might be faster, but I wouldn't bet on
it, e.g., finding the integer index into the table given the real
input value probably soaks up a few cycles. Note that table lookup
would still have to do a range reduction first if the table were to be
any feasible size.
Even with range reduction and say cubic interpolation you would still need an enormous table to give the required accuracy. The interpolation would cost almost as much as the series evaluation. Tables are more common when the accuracy requirement is low and the processor has a low performance FPU (or no hardware floating point at all).

Mark Thornton
.