Numeric.Approximation.Chebyshev

Description

Function approximation using Chebyshev polynomials

 f(x) = ( sum (k=0..N-1) c_k * T_k(x) ) - 0.5 * c_0

over the interval  [a,b]

Reference: NRiC

Synopsis

# Documentation

Arguments

 :: (Double -> Double) f(x) -> Double a -> Double b -> Int N -> [Double] c_n

Calculates the Chebyshev approximation to f(x) over [a,b]

Arguments

 :: [Double] c_n -> Double a -> Double b -> Double x -> Double f(x)

Evaluates the Chebyshev approximation to f(x) over [a,b] at x