DADiSP Worksheet Functions > Function Categories > Trigonometric Functions > SIN

 

SIN

Purpose:

Calculates the sine of any expression.

Syntax:

SIN(val)

val

-

A scalar, series or table.

Returns:

A scalar, series, or table.

Example:

sin(-2*pi..pi/100..2*pi);gridhv;griddot

 

 

image\sinpic01.gif

 

displays the sine from -2π to 2π.

Example:

sin(pi/2)

 

returns 1.

Example:

sin(-2..0.1..2)

 

returns a 41 point series.

Example:

t = 0..0.01..1

sin(2*pi*10*t)

 

returns a 101 point series of a 10 Hertz sinewave sampled at 100 samples per second. This is equivalent to:

 

gsin(101, 0.01, 10)

Remarks:

The sine is defined as:

 

image\sin01.gif

 

for all complex z.

 

The function calculates in radians unless degrees are specified with the SETDEGREE function.

See Also:

ASIN

ASINH

CSC

GSIN

SINH

SETDEGREE

SETRADIAN

TRIGONOMETRIC FUNCTIONS