fastApproximateAtan

Computes a fast approximation of Atan for input in the range -1, 1.

Based on Michal Drobot's approximation from ShaderFastLibs, which in turn is based on "Efficient approximations for the arctangent function," Rajan, S. Sichun Wang Inkol, R. Joyal, A., May 2006. Adapted from ShaderFastLibs under MIT License.

Return

An approximation of atan(x)

Parameters

x

An input number in the range -1, 1

See also