From 6:00 PM CST Friday, Feb 15th - 2:00 AM CST Sunday, Feb 17th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Sine and Cosine (Multirate Dataflow)

Computes both the sine and cosine of a specified value (x) in radians.

Use this node only when you need both results.

x

An input to this operation.

This input supports scalar numbers and fixed-size 1-dimensional arrays of numbers.

Data Type Changes on FPGA

When you add this node to a document targeted to an FPGA, this input has a default data type that uses fewer hardware resources at compile time.

sin

Result of the operation.

This output assumes the same numeric representation as x. When x is of the form x = a + b i, that is, when x is complex, the following equation defines sin:
$\mathrm{sin}\left(x\right)=\mathrm{sin}\left(a\right)*\mathrm{cosh}\left(b\right)+i\left(\mathrm{cos}\left(a\right)*\mathrm{sinh}\left(b\right)\right)$

Data Type Changes on FPGA

When you add this node to a document targeted to an FPGA, this output has a default data type that uses fewer hardware resources at compile time.

cos

Result of the operation.

This output assumes the same numeric representation as x. When x is of the form x = a + b i, that is, when x is complex, the following equation defines cos:
$\mathrm{cos}\left(x\right)=\mathrm{cos}\left(a\right)*\mathrm{cosh}\left(b\right)+i\left(-\mathrm{sin}\left(a\right)*\mathrm{sinh}\left(b\right)\right)$

Data Type Changes on FPGA

When you add this node to a document targeted to an FPGA, this output has a default data type that uses fewer hardware resources at compile time.

Where This Node Can Run:

Desktop OS: Windows

FPGA: All devices

Web Server: Not supported in VIs that run in a web application