# Sine & Cosine Function

## LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

Owning Palette: Trigonometric Functions

Requires: Base Development System

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.

Example

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

## Example

Refer to the Sine VI in the labview\examples\Mathematics\Elementary & Special Functions\Trigonometric Functions directory for an example of using the Sine & Cosine function.