This function Initializes the orthogonal series so the function value is the number of terms needed to insure the error is no larger than the requested accuracy.
INITS — Number of terms needed to insure the error is no larger than ETA. (Output)
OS — Vector of length NOS containing coefficients in an orthogonal series. (Input)
NOS — Number of coefficients in OS. (Input)
ETA — Requested
accuracy of the series. (Input)
Contrary to the usual
convention, ETA
is a REAL
argument to INITDS.
Generic: INITS (OS, NOS, ETA)
Specific: The specific interface names are INITS and INITDS.
Single: INITS (OS, NOS, ETA)
Double: The double precision function name is INITDS.
Function INITS initializes a Chebyshev series. The function INITS returns the number of terms in the series s of length n needed to insure that the error of the evaluated series is everywhere less than ETA. The number of input terms n must be greater than 1, so that a series of at least one term and an error estimate can be obtained. In addition, ETA should be larger than the absolute value of the last coefficient. If it is not, then all the terms of the series must be used, and no error estimate is available.
ETA will usually be chosen to be one tenth of machine precision.
PHONE: 713.784.3131 FAX:713.781.9260 |