Comment on Speeding up atan2fparentComments−Bostonian5yWhy wouldn't you at least include the x^3 term in the Taylor series for abs(x) < 0.1?−ThePadawan5yThat's what I assumed would have been a reasonable optimization!What I really found amazing was that rather than reducing the number of multiplications to 2 (to calculate x^3), you can reduce it to 0, and it would still do surprisingly well.
Comments
Why wouldn't you at least include the x^3 term in the Taylor series for abs(x) < 0.1?
That's what I assumed would have been a reasonable optimization!
What I really found amazing was that rather than reducing the number of multiplications to 2 (to calculate x^3), you can reduce it to 0, and it would still do surprisingly well.