W3cubDocs

/Kotlin

atan

inline fun atan(x: Double): Double

Platform and version requirements: Kotlin 1.2

inline fun atan(x: Float): Float

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

© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/atan.html