W3cubDocs

/Kotlin

atan

Platform and version requirements: JVM (1.2), JS (1.2), 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

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