Skip to content
Reference > Methods

tan(radians)

Definition

Double tan(Number radians)

Description

Returns the trigonometric tangent of an angle.

Parameter Definition

Name Type Description
radians Number Angle in radians

Examples

1
2
3
Double r1 = tan(0); // r1 == 0.0
Double r2 = tan(10); // r2 == 0.6483608274590866
Double r3 = tan(3); // r3 == -0.1425465430742778