Re: Fw: Error in documentation for tan(), and poor implementation of sin() and cos()

Paul Zimmermann <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Message-ID <p9u0pl0xvjig.fsf@thym>
       Hi Wilco,

> In all cases that is the shared range reducer which has bugs for huge inputs,
> so you could just directly check the range reducer. Using integer arithmetic
> like I did for float sin/cos results in a much simpler and faster range reducer.

instead of patching the range reducer, the ultimate solution is probably to
use some correctly-rounded implementation like the one from CORE-MATH.
Adhemerval, do you have performance figures for say sin?

Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.