arghman
01-04-2006, 10:42 AM
Is there a bug in the derivative-of-chebyshev polynomials function chder in section 5.9?
The linear term appears to be off by a factor of 2.
If I put in a quadratic Chebyshev polynomial
p[0] = c, p[1] = b, p[2] = a
(meaning a*2*x*x-a + b*x + 1)
I get out
pd[0] = 2*b, pd[1] = 4*a, pd[2] = 0
The const. term of the derivative should be b, not 2b.
The linear term appears to be off by a factor of 2.
If I put in a quadratic Chebyshev polynomial
p[0] = c, p[1] = b, p[2] = a
(meaning a*2*x*x-a + b*x + 1)
I get out
pd[0] = 2*b, pd[1] = 4*a, pd[2] = 0
The const. term of the derivative should be b, not 2b.