FORSIN

The FORSIN function evaluates a Fourier Sine series at a user specified value x. x0,a0,a1,...,a30 are parameters used to define the constants for the Fourier Sine series.

Format

FORSIN (x, x0,w,a0,a1,...,a30)

Arguments

 
x
A real variable that specifies the independent variable. For example, if the independent variable in the function is time, x is the system variable TIME.
x0
A real variable that specifies a shift in the Fourier Sine series.
w
A real variable that specifies the fundamental frequency of the series. Adams Solver (C++) assumes is in radians per unit of the independent variable unless you use a D after the value.
a0
A real variable that defines the constant bias term for the function.
a1,...,a30
The real variables that define as many as thirty coefficients for the Fourier Sine series.

Extended Definition

The Fourier Sine series is defined:
where the function are defined as:
The index j has a range from 1 to n, where n is the number of terms in the series.

Examples

MOTION/1, JOINT=21, TRANSLATION,
, FUNCTION=FORSIN(TIME,-0.25, PI, 0, 1, 2, 3)
This MOTION statement defines a harmonic motion as a function of time. The motion has a -0.25 second shift, a fundamental frequency of 0.5 cycle ( radians or 180 degrees) per time unit, and no constant value. The function defined is:
FORSIN = 0+SIN(*(TIME+0.25))
+2*SIN(2*(TIME+0.25))
+3*SIN(3*(TIME+0.25))
The curve is shown next.
Curve of a Harmonic Motioned Defined by FORSIN