Skip to content

Comment on Speeding up atan2fparent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.