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
actual external fun cos(x: Double): Double(source)
actual external 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.3
actual fun cos(x: Double): Double(source)
actual 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.8
actual fun cos(x: Double): Double(source)
actual 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.8