Sine & Cosine Function

Computes both the sine and cosine of x, where x is in radians. Use this function only when you need both results.

The connector pane displays the default data types for this polymorphic function.


icon

Inputs/Outputs

  • cdbl.png x

    x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.

  • idbl.png sin(x)

    sin(x) is of the same numeric representation as x.

    When x is of the form x = a + bi, that is, when x is complex, the following equation defines sin(x): sin(x) = sin(a) * cosh(b) + i(cos(a) * sinh(b))
  • idbl.png cos(x)

    cos(x) is of the same numeric representation as x.

    When x is of the form x = a + bi, that is, when x is complex, the following equation defines cos(x): cos(x) = cos(a) * cosh(b) + i(-sin(a) * sinh(b))