Skip to content
Reference > Methods

cos(radians)

Definition

Double cos(Number radians)

Description

Returns a Double between -1 and 1 that is the trigonometric cosine of an angle.

Parameter Definition

Name Type Description
radians Number Angle in radians

Examples

1
2
3
Double r1 = cos(0); // r1 == 1.0
Double r2 = cos(10); // r2 == -0.8390715290764524
Double r3 = cos(3); // r3 == -0.9899924966004454