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

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