R/calculateChebyshevCoefficients.R
calculateChebyshevCoefficients.Rd
Also checks to ensure the cheb$T matrix is orthogonal The rounding down to 0 in the beginning is to account for numerical precision and is controlled by the tolerance parameter The function f only takes one argument
calculateChebyshevCoefficients(f, cheb, tolerance = 1e-12)
f | Function to be approximated (function) |
---|---|
cheb | List of item from initalizeChebyshevApproximator (list) |
tolerance | Numerical Tolerance for rounding down |
A list of Chebyshev coefficients (matrix)