To approximate the function with Cheboshev polynomials, it is necessary to operate on the interval [-1,1]. How can these constants be recalculated if I want to approximate on another interval?
specifically, I use maple and the following loop:
(https://i.stack.imgur.com/TWT74.png)
but I don't know how to modify the function to calculate in an interval, for example [-pi,pi]
If you have a function
f(x)defined on[-pi, pi]then you can transform it to a functiong(u)on[-1, 1]by a linear change of variable:Then you can approximate
gby a polynomialP(u), and then transformP(u)to the polynomialQ(x)by the inverse change of variables: