DSPRelated.com

Nic Taylor (@NicTVG)

Since 2008 has been integrating and extending video game audio engines. And on the side writing digital audio effect plugins for music.

How to Find a Fast Floating-Point atan2 Approximation

Nic TaylorNic Taylor May 26, 201716 comments

This post shows how a compact, fast atan2 can be built from a Remez-derived arctangent approximation and a matching 3rd-order polynomial. It walks through using Boost's remez_minimax to recover coefficients 0.97239411 and -0.19194795, integrating the polynomial into an atan2 with quadrant reduction, and applying branch reduction, bit tricks, and SSE2 SIMD to cut runtime while keeping max error under about 0.005 radians.


No Threads Found

Use this form to contact NicTVG

Before you can contact a member of the *Related Sites:

  • You must be logged in (register here)
  • You must confirm you email address