sin
The sin() method returns the sine of an angle expressed in radians. Sine is a fundamental trigonometric function that returns the y-coordinate of a point on the unit circle.
Interactive example
Syntax
typescript
function sin<
GenericInput extends number,
>(
input: GenericInput
): numberParameters
input: The angle in radians for which to calculate the sine.
Return value
The sine of the given angle, a value between -1 and 1.
See also
cos- Calculates the cosine of an angletan- Calculates the tangent of an angleasin- Calculates the arcsine
