3 ms·
The sine polynomial is bad because it's not written in a way that removes redundant multiplications. Those redundant multiplications cannot be removed without
by mgaunard 3y ago
The sine polynomial is bad because it's not written in a way that removes redundant multiplications.
Those redundant multiplications cannot be removed without fast math because floating-point operations are not associative.
There are well-known optimal ways to evaluate a polynomial, namely Horner's and Estrin's schemes.