From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Math Object
The sin() method returns the sine of a number.
| Math.sin(x) |
| Parameter | Description |
|---|---|
| x | Required. A number |
Note: The sin() method returns a numeric value between -1 and 1, which represents the sine of the parameter x.
ExampleReturn the sine 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)