3.10. __nv_atan

double @__nv_atan(double %x)

Calculate the arc tangent of the input argument.

Calculate the principal value of the arc tangent of the input argument x.

Note

For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Double-Precision Floating-Point Functions section.

Returns

Result will be in radians, in the interval [- \(\pi\) /2, + \(\pi\) /2].

  • __nv_atan(0) returns +0.