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:
funcCallable

The target function to approximate with Chebyshev polynomials.

orderint, optional

The number of Chebyshev coefficients to compute. If None, estimates an order that results in an error below machine precision.

domainInterval, optional

The domain on which the function is defined and in which the approximation is desired.

startfloat, default=-1.0
stopfloat, default=+1.0

Alternative way to specify the function’s domain.

interpolated_nodesstr, default = “zeros”

The nodes on which the function is interpolated. Use “zeros” for Chebyshev zeros or “extrema” for Chebyshev extrema.

Returns:
coefficientsnumpy.polynomial.Chebyshev

An array of Chebyshev coefficients scaled to the specified interval.