sin#

Purpose#

Returns the sine of its argument.

Format#

y = sin(x)#
Parameters:

x (NxK matrix or N-dimensional array) – data

Returns:

y (NxK matrix or N-dimensional array) – contains the sine of x.

Examples#

x = { 0, .5, 1, 1.5 };
y = sin(x);
print y;
0.000000
0.479426
0.841471
0.997495

Remarks#

For real data, x should contain angles measured in radians.

To convert degrees to radians, multiply the degrees by \(\pi/180\).

See also

Functions atan(), cos(), sinh(), pi()