offline version v3


42 of 264 menu

Math.sin method

The Math.sin method returns the sine of a number (this number must be an angle in radians).

Syntax

Math.sin(number);

Example

Let's output the sine of the number 7:

console.log(Math.sin(7));

The code execution result:

0.6569865987187891

See also

  • the Math.cos method
    that returns the cosine of a number
  • the Math.tan method
    that returns the tangent of a number
  • the Math.asin method
    that returns the arcsine of a number
  • the Math.acos method
    that returns the arccosine of a number
  • the Math.atan method
    that returns the arctangent of a number
enru