JS Built-ins
← Math187 / 215
Mathsinintermediate

Math.sin() β€” sin(Ο€/2) = 1

πŸ“– Usage Example
// Sine of an angle in radians
Math.sin(0)            // β†’ 0
Math.sin(Math.PI / 2)  // β†’ 1

Use Math.sin() to compute the sine of an angle in radians for trigonometry and wave simulations.

Math.sin()

Returns the sine of a number (in radians).

Challenge: Verify that Math.sin(Math.PI/2) returns approximately 1.

πŸ’‘ Hints (1)
  • β€’ sin(Ο€/2) = 1 β€” the maximum value of the sine function