From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Math Object
The tan() method returns a number that represents the tangent of an angle.
| Math.tan(x) |
| Parameter | Description |
|---|---|
| x | Required. A number |
ExampleReturn the tangent of different numbers:
The output of the code above will be:
Try it yourself » |
JavaScript Math Object
From http://www.w3schools.com (Copyright Refsnes Data)