3 ms·
To reduce the number of redundant operations, why not use Horner's method? A polynomial like axxx + bxx + cx + d becomes d + x(c + x(b + a*x). The more terms yo
by legerdemain 6y ago
To reduce the number of redundant operations, why not use Horner's method? A polynomial like axxx + bxx + cx + d becomes d + x(c + x(b + a*x). The more terms you have, the more flops you save.