Skip to content

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
): number

Parameters

  • 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 angle
  • tan - Calculates the tangent of an angle
  • asin - Calculates the arcsine

Sources

Released under the MIT license.