seemps.analysis.chebyshev.interpolation_coefficients#
- seemps.analysis.chebyshev.interpolation_coefficients(func, order=None, start=-1.0, stop=1.0, domain=None, interpolated_nodes='zeros')[source]#
Returns the coefficients for the Chebyshev interpolation of a function on a given set of nodes and on a specified interval.
- Parameters:
- func
Callable The target function to approximate with Chebyshev polynomials.
- order
int,optional The number of Chebyshev coefficients to compute. If None, estimates an order that results in an error below machine precision.
- domain
Interval,optional The domain on which the function is defined and in which the approximation is desired.
- start
float, default=-1.0 - stop
float, default=+1.0 Alternative way to specify the function’s domain.
- interpolated_nodes
str,default= “zeros” The nodes on which the function is interpolated. Use “zeros” for Chebyshev zeros or “extrema” for Chebyshev extrema.
- func
- Returns:
- coefficientsnumpy.polynomial.Chebyshev
An array of Chebyshev coefficients scaled to the specified interval.