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:
- func
Callable
The target function to approximate with Chebyshev polynomials.
- order
int
,optional
The number of Chebyshev projection coefficients to compute. If None, estimates an order that results in an error below machine precision.
- start
float
, default=-1.0 - stop
float
, default=+1.0 The domain on which the function is defined and in which the approximation is desired.
- domain
Interval
,optional
Alternative way to specify the function’s domain.
- func
- Returns:
- coefficientsnumpy.polynomial.Chebyshev
An
array
of
Chebyshev
coefficients
scaled
to
the
specified
interval.