Re: Best processors for trig?



Paul Keinanen wrote:

The most difficult of the elementary functions
is the logarithm, its Taylor series uses half of an
infinity to converge.


After all, the only real problem with logs is that you must be able to
calculate it in the 1.0 .. 2.0 range, the rest is trivial.

Do you really need anything more than a 6th degree polynomial ?

Yes - I do.

The MacLaurin series for a log (calculated for log(1 + x))
needs 5000 terms for 4 digits. Pick your favourite formula
collection and have a look.

I had to split the range to (1 .. sqrt(2)) and (sqrt(2) .. 2),
and calculate 5th degree Chebysev series approximations to
get enough precision for single-precision float.

--

Tauno Voipio
tauno voipio (at) iki fi
.



Relevant Pages