Function sin

Calculate the sine of each element in an array (angle in radians).

> sin([0, Math.PI / 2, Math.PI])
[0, 1, 0]
  • Parameters

    • array: number[]

      The array of numbers representing angles in radians.

    Returns number[]

    An array with the sine of each input element.