atan

Common
JVM
JS
Native
1.2
fun atan(x: Double): Double
fun atan(x: Float): Float

Computes the arc tangent of the value x; the returned value is an angle in the range from -PI/2 to PI/2 radians.

Special cases:

  • atan(NaN) is NaN