cos

fun cos(a: Double): Double

Returns the trigonometric cosine of an angle. Special cases:

  • If the argument is NaN or an infinity, then the result is NaN.

  • If the argument is zero, then the result is 1.0.

Return

the cosine of the argument.

Parameters

a

an angle, in radians.