Fourier Cosine Series (FORCOS)

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

Format

FORCOS (x, Shift, Frequency, Coefficients)

Arguments

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

Example

The following function defines a Fourier Cosine, which is a harmonic function of time with no shift, and a fundamental frequency of 1 cycle (360 degrees) per time unit:
COS(TIME, 0, 360D, 1, 2, 3, 4)
The function defined is as follows:
FORCOS = 1 + 2*COS(360D*TIME)+
             3*COS(2*360D*TIME)+
             4*COS(3*360D*TIME)
TIME is the current simulation time.