2 ms·
> For some parts of the domain, such as computing the sine of a number very close to a multiple of pi, you may need to spend more cycles reducing the argument a
by im3w1l 8y ago
> For some parts of the domain, such as computing the sine of a number very close to a multiple of pi, you may need to spend more cycles reducing the argument accurately to counter cancelation effects.
I'm curious about this. How would you compute FLOAT32_32 (or FLOAT64_MAX) mod PI with correct rounding?
- stephencanon 8y agoThe most approachable explanation I know of is K C Ng’s: https://www.scribd.com/document/64949170/Ng-Argument-Reduction-for-Huge-Arguments-Good-to-the-Last-Bit https://www.scribd.com/document/64949170/Ng-Argument-Reducti...