3 ms·
I’m glad it pointed to the article of the terrible accuracy of the x87 trig functions - the OS X and I assume GCC software implementations are ostensibly correc
by olliej 8y ago
I’m glad it pointed to the article of the terrible accuracy of the x87 trig functions - the OS X and I assume GCC software implementations are ostensibly correctly accurate, which I think is done by using witchcraft. (More precisely I think they do it using infinite precision Pi?)
- brucedawson 8y agoCorrectly rounded trig functions requires great care, and some way of knowing how much precision you need for the calculations. Doing all of the calculations at the maximum needed precision would be hugely inefficient. A high-precision version of Pi is just one of the things needed.
- olliej 8y agoWhat I had been told was that they commuted "as if" they had infinite precision pi (rather than reduction modulo some approximation)