Interpolacja Lagrange'a
: 3 cze 2010, o 14:13
Witam, proszę o dalsze rozpisanie tej interpolacji, próbowałem sam liczyć jednak nie mogę uzyskać właściwego wyniku...
Węzły:
\(\displaystyle{ x _{0} = -2}\)
\(\displaystyle{ f _{0} = -3}\)
\(\displaystyle{ x _{1} = -1}\)
\(\displaystyle{ f _{1} = 3}\)
\(\displaystyle{ x _{2} = 1}\)
\(\displaystyle{ f _{2} = 3}\)
\(\displaystyle{ x _{3} = 2}\)
\(\displaystyle{ f _{3} = 3}\)
\(\displaystyle{ L _{0} (x)= \frac{(x-x _{1} )(x- x_{2} )(x-x _{3} )}{(x _{0}-x _{1})(x _{0}-x _{2})(x _{0}-x _{3})}= \frac{(x+1)(x-1)(x-2)}{-12}=- \frac{1}{12}(x ^{3}-2x ^{2}-x+1)}\)
\(\displaystyle{ L _{0} (x)= \frac{(x-x _{0} )(x- x_{2} )(x-x _{3} )}{(x _{1}-x _{0})(x _{1}-x _{2})(x _{1}-x _{3})}= \frac{(x+2)(x-1)(x-2)}{6}= \frac{1}{6}(x ^{3}-x ^{2}-4x+4)}\)
\(\displaystyle{ L _{0} (x)= \frac{(x-x _{0} )(x- x_{1} )(x-x _{3} )}{(x _{2}-x _{0})(x _{2}-x _{1})(x _{2}-x _{3})}= \frac{(x+2)(x+1)(x-2)}{-6}=- \frac{1}{6}(x ^{3}-x ^{2}-4x-4)}\)
\(\displaystyle{ L _{0} (x)= \frac{(x-x _{0} )(x- x_{1} )(x-x _{2} )}{(x _{3}-x _{0})(x _{3}-x _{1})(x _{3}-x _{2})}= \frac{(x+2)(x+1)(x-1)}{12}= \frac{1}{12}(x ^{3}+2x ^{2}-x-2)}\)
Wiem, że wynik ma byc taki:
\(\displaystyle{ w(x)= \frac{1}{2}x ^{3}-x ^{2}- \frac{1}{2}x+4}\)
Węzły:
\(\displaystyle{ x _{0} = -2}\)
\(\displaystyle{ f _{0} = -3}\)
\(\displaystyle{ x _{1} = -1}\)
\(\displaystyle{ f _{1} = 3}\)
\(\displaystyle{ x _{2} = 1}\)
\(\displaystyle{ f _{2} = 3}\)
\(\displaystyle{ x _{3} = 2}\)
\(\displaystyle{ f _{3} = 3}\)
\(\displaystyle{ L _{0} (x)= \frac{(x-x _{1} )(x- x_{2} )(x-x _{3} )}{(x _{0}-x _{1})(x _{0}-x _{2})(x _{0}-x _{3})}= \frac{(x+1)(x-1)(x-2)}{-12}=- \frac{1}{12}(x ^{3}-2x ^{2}-x+1)}\)
\(\displaystyle{ L _{0} (x)= \frac{(x-x _{0} )(x- x_{2} )(x-x _{3} )}{(x _{1}-x _{0})(x _{1}-x _{2})(x _{1}-x _{3})}= \frac{(x+2)(x-1)(x-2)}{6}= \frac{1}{6}(x ^{3}-x ^{2}-4x+4)}\)
\(\displaystyle{ L _{0} (x)= \frac{(x-x _{0} )(x- x_{1} )(x-x _{3} )}{(x _{2}-x _{0})(x _{2}-x _{1})(x _{2}-x _{3})}= \frac{(x+2)(x+1)(x-2)}{-6}=- \frac{1}{6}(x ^{3}-x ^{2}-4x-4)}\)
\(\displaystyle{ L _{0} (x)= \frac{(x-x _{0} )(x- x_{1} )(x-x _{2} )}{(x _{3}-x _{0})(x _{3}-x _{1})(x _{3}-x _{2})}= \frac{(x+2)(x+1)(x-1)}{12}= \frac{1}{12}(x ^{3}+2x ^{2}-x-2)}\)
Wiem, że wynik ma byc taki:
\(\displaystyle{ w(x)= \frac{1}{2}x ^{3}-x ^{2}- \frac{1}{2}x+4}\)