parallella / pal

An optimized C library for math, parallel processing and data movement
Apache License 2.0
301 stars 110 forks source link

math:atan: Implement the inverse tangent function. #188

Closed mansourmoufid closed 9 years ago

mansourmoufid commented 9 years ago

This implements the inverse tangent function using a polynomial approximation with error less than 1e-5.

mansourmoufid commented 9 years ago

On x86, this is about 40% faster (-Os -ffast-math) to 6 times faster (-O3 -ffast-math) than the GNU libm.