- #1
xkellyy
- 5
- 0
Homework Statement
Find the polynomial p(x) of degree 20 satisfying:
p(-10) =p(-9) = p(-8) = ...=p(-1) = 0
p(0) = 1
p(1) = p(2) = p(3) = ...p(10) = 0
Homework Equations
L(x) := \sum_{j=0}^{k} y_j \ell_j(x)
The Attempt at a Solution
i tried using the formula above:
a = p(-10) / (-1)(-2)(-3)...(-20) = 0
and got zero for all the coefficients excluding the 20th coefficient, which i got 1/0
then i thought about it graphically - it looks like a cos graph so i tried using the maclaurin series expansion but realized that it only works from n to infinity.
any tips?