cos

expect fun cos(x: Double): Double(source)
expect fun cos(x: Float): Float(source)

Computes the cosine of the angle x given in radians.

Special cases:

  • cos(NaN|+Inf|-Inf) is NaN

Since Kotlin

1.2
actual inline fun cos(x: Double): Double(source)
actual inline fun cos(x: Float): Float(source)

Computes the cosine of the angle x given in radians.

Special cases:

  • cos(NaN|+Inf|-Inf) is NaN

Since Kotlin

1.2
actual inline fun cos(x: Double): Double(source)
actual inline fun cos(x: Float): Float(source)

Computes the cosine of the angle x given in radians.

Special cases:

  • cos(NaN|+Inf|-Inf) is NaN

Since Kotlin

1.2