atan

inline actual fun atan(x: Double): Double (source)

Platform and version requirements: Kotlin 1.2

inline actual fun atan(x: Float): Float (source)

Platform and version requirements: Kotlin 1.2

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