Sine & Cosine Function
- Updated2025-07-30
- 2 minute(s) read
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.

Inputs/Outputs
x
—
x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
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))
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)) |
x
—
sin(x)
—