cos

fun cos(a: Double): Double

Returns the trigonometric cosine of an angle.

Error is around 1E-15.

Special cases:

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

Return

the cosine of the argument.

Parameters

a

an angle, in radians.

See also

Math.cos