Skip to main content

fit

Method of ChebyshevSeries.

fit(const Function<real(real)> function, const Interval interval) -> ChebyshevSeries

Fits the Chebyshev series to the given real-valued function over the specified interval.

Parameters

  • function: The real-valued function to fit.
  • interval: The interval [a, b] over which to fit the function.