squenshl said:
I got c0 = -0.269628, c1 = -0.654197, c2 = -0.198127, c3 = 0.167396 and c4 = -0.0184982 for the Chebyshev polynomials
squenshl - I get a different result for the Chebyshev coefficients. After letting u = 2*x -1 (so -1 <= u <= 1), I get:
c_0 = 0
c_1 = -2 \cdot J_1(\pi/2) = -1.133648178...
c_2 = 0
c_3 = 2 \cdot J_3(\pi/2) = 0.138071777...
c_4 = 0
Here, J_k(\pi/2) are the Bessel Functions of first kind, order k, evaluated at \pi/2.
The resulting Chebyshev approximation polynomial (for a fourth order approx) would be:
f(T(u)) = c_1 \cdot T_1(u) + c_3 \cdot T_3(u)
The coefficients for the polynomial in
u would then be:
b_1 = c_1-3 \cdot c_3 = -1.547863508...
b_3 = 4 \cdot c_3 = 0.552287106...
and the coefficients for the polynomial in
x would then be:
a_0 = -(b_3 + b_1) = 0.995576401...
a_1 = 6 \cdot b_3 + 2 \cdot b_1 = 0.217995623...
a_2 = -12 \cdot b_3 = -6.627445276...
a_3 = 8 \cdot b_3 = 4.418296851...
a_4 = 0
To have a fourth term in the polynomial of x, we would require another term (T5) in the Chebyshev expansion, which would also introduc a quintic x term.
I can provide more on this later.