Evaluates a Chebyshev polynomial at a user-specified numerical value.
Format
CHEBY (x, Shift, Coefficients)
Arguments
x | Real variable that specifies the independent variable. |
Shift | Real variable that specifies a shift in the Chebyshev polynomial. |
Coefficients | Real variables that define as many as thirty-one coefficients for the Chebyshev polynomial. |
Example
The following example illustrates the use of the CHEBY function:
CHEBY(TIME, 1, 1, 0, -1)
The above function defines the following quadratic Chebyshev polynomial (where TIME is the current simulation time):
CHEBY = 1 + 0 * (TIME-1) - 1 * [2 (TIME-1)2 - 1]
= -2*TIME2 + 4*TIME