Fourier Sine Series (FORSIN)

Evaluates a Fourier Sine series at a user-specified value x.

Format

FORSIN (x, Shift, Frequency, Coefficients)

Arguments

 
x
Real variable that specifies the independent variable.
Shift
Real variable that specifies a shift in the Fourier Sine series.
Frequency
Real variable that specifies the fundamental frequency of the series. Assume that is in radians per unit of the independent variable unless you use a D after the value for degrees.
Coefficients
The real variables that define as many as thirty-one coefficients for the Fourier Sine series.

Example

The following function defines a Fourier Sine, which is a harmonic function of TIME with a -0.25 shift, and a fundamental frequency of 0.5 cycle ( radians) per time unit:
FORSIN(TIME,-0.25, PI, 0, 1, 2, 3)
The function defined is as follows:
FORSIN = 0 + SIN(*(TIME + 0.25))
           + 2*SIN(2*(TIME + 0.25))
           + 3*SIN(3*(TIME + 0.25))
TIME is the current simulation time.