blob: 530df3b2601e4155d277d457d744ca5b2e2f7422 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
In this case n = 2. The legranges polynomial and their deri
vative .
L0(x)=2*x^2-11*x+15 L1(x)= -4*x^2+20x-24 L2(x)=2x^2-9x+10
L0d(x)=4*x-11 L1d(x)= -8*x+20 L2d(x)=4*x-9
ri(x) = [1-2(x-xi)Lid(xi)][Li(x)]^2 si(x) = (x-xi)[Li(x)]
^2
The calculated value of y(2.7):
0.993253
The exact value is of y(2.7):
0.993252
The error is :
- 0.000001
|