W3cubDocs

/Kotlin

tan

inline fun tan(x: Double): Double

Platform and version requirements: Kotlin 1.2

inline fun tan(x: Float): Float

Platform and version requirements: Kotlin 1.2

Computes the tangent of the angle x given in radians.

Special cases:

  • tan(NaN|+Inf|-Inf) 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/tan.html