La2 Cañete
La2 Cañete
La2 Cañete
n x y
0.000000000000000 4.000000000000000 0.602059991300000
1.000000000000000 4.500000000000000 0.653212513800000
2.000000000000000 5.000000000000000 0.698970004300000
3.000000000000000 5.500000000000000 0.740362689500000
4.000000000000000 6.000000000000000 0.778151250400000
5.000000000000000 6.500000000000000 0.812913356600000 x0 x1
5.321000000000000 0.726085166757836 4.000000000000000 5.000000000000000
ANS: 0.726085166800000
PROBLEM
LINEAR INTERPOLATION
x y
3.1 20.1810
3.2 22.5280
3.3 25.0470
3.4 27.7440
3.5 30.6250
3.6 33.6960
3.34 26.1258
3.57 32.7747
3.22 23.0318
y0+𝜇(y1-y0)
x y 𝑥_0 𝑥_1 𝑦_0
3.34 26.1258 3.3 3.4 25.0470
3.57 32.7747 3.5 3.6 30.6250
3.22 23.0318 3.2 3.3 22.5280
40
35
30
25
20
15
10
0
3 3.1 3.2 3.3 3.4 3.5 3.6 3.7
QUADRATIC INTERPOLATION
x y
3.1 20.1810
3.2 22.5280
3.3 25.0470
3.4 27.7440
3.5 30.6250
3.6 33.6960 𝑥_0 𝑥_1 𝑥_2
3.34 26.1044 3.2 3.3 3.4
3.57 32.7547 3.4 3.5 3.6
3.22 23.0180 3.1 3.2 3.3
𝑃_2 (𝑥)=(2𝑥^2−10𝑥+12)+(−3𝑥^2+12𝑥−9)+(0)
𝑃_2 (𝑥)=−𝑥^2+2𝑥+3
x y
3.1 20.1810
3.2 22.5280
3.3 25.0470
3.4 27.7440
3.5 30.6250
3.6 33.6960
x y
3.57 32.7544
𝑦_2
0
−1)(3−1) )
a 1.0000 sum
b 3.0000 h
f'(a) 5.4366 2*a * exp(a^2) sum*h
f'(b) 48618.5036 2*b * exp(b^2) correction
approximation
actual
error
SIMPSON'S RULE 1/3 RULE equation as is wt * fx
i x f(x) wt wt*f(x)
0.0000 1.0000 2.7183 0.3333 0.9061
1.0000 1.2000 4.2207 1.3333 5.6276
2.0000 1.4000 7.0993 0.6667 4.7329
3.0000 1.6000 12.9358 1.3333 17.2478
4.0000 1.8000 25.5337 0.6667 17.0225
5.0000 2.0000 54.5982 1.3333 72.7975
6.0000 2.2000 126.4694 0.6667 84.3129
7.0000 2.4000 317.3483 1.3333 423.1311
8.0000 2.6000 862.6422 0.6667 575.0948
9.0000 2.8000 2540.2048 1.3333 3386.9398
10.0000 3.0000 8103.0839 0.3333 2701.0280
a 1.0000 sum
b 3.0000 h
f''(a) 54.3656 8*a^3 * exp(a^2) + 12*a*exp(a^2) sum*h
f''(b) 2041977.1497 8*b^3 * exp(b^2) + 12*b*exp(b^2) correction
approximation
actual
error
8003.9535 sum wt*fx
0.2000 b-a/n
1600.7907 sum * h
-162.0436 (-(h^2)/12)*(f'b-f'a)
1438.7471 correct + sum*h
1443.0825
4.3353
7288.8409 sum wt*fx
0.2000 b-a/n
1457.7682 sum * h
-18.1504 (-(h^4)/180)*(f'b-f'a)
1439.6178 correct + sum*h
1443.0825
3.4647