Hello Chebfun friends!
I have a very simple question but since I could not figure out after searching a lot, I have to bother you.
The core idea of the Chebyshev approximation is: $\sum^{N}_{i=0}{C_i \times T_i} = P_N \approx f(x)$, where f(x) is the target function. Now suppose the f is an non-polynomial function.
And now we want to represent the polynomial function directly to do sum-of-squares optimization via chebfun-toolbox, like f = chebfun('sqrt(sqrt((exp(x)*cos(x))^2))',[-1,1],'splitting','on'). Clearly, f is chebfun-structure data.
(1) We can obtain the coefficients C by chebcoeffs(f),;
(2) Suppose the truncation degree is 20, we can obtain the Chebshev polynomials T by chebpoly(20,[0,4]).
Till now, I get confused for the next process. What I want is an univariate polynomials functions with clear coefficients as this form: $\sum^{N}_{i=0}{C_i \times T_i} = P_N \approx f(x)$. And I believe the clear guys designed chebfun-toolbox must consider it. But I just don't know how to figure it. Can anyone help?
I look forward to hearing from you soon! Thanks in advance!
Hejun Huang Chinese University of Hong Kong
