seemps.analysis.chebyshev.projection_coefficients#

seemps.analysis.chebyshev.projection_coefficients(func, order=None, start=-1.0, stop=1.0, domain=None)[source]#

Returns the coefficients for the Chebyshev projection of a function using Chebyshev-Gauss integration.

Parameters:
funcCallable

The target function to approximate with Chebyshev polynomials.

orderint, optional

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

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

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

domainInterval, optional

Alternative way to specify the function’s domain.

Returns:
coefficientsnumpy.polynomial.Chebyshev
An array of Chebyshev coefficients scaled to the specified interval.