Return the tangent of a number (angle):
The result will be:
More "Try it Yourself" examples below.
The tan() method returns a number that represents the tangent of an angle.
Method | |||||
---|---|---|---|---|---|
tan() | Yes | Yes | Yes | Yes | Yes |
Parameter | Description |
---|---|
x | Required. A number representing an angle (in radians) |
Return Value: | A Number, representing the tangent of an angle |
---|---|
JavaScript Version: | 1.0 |
Return the tangent of different angles:
The result of a,b,c, and d will be: