h = hx * hy / 9;
辛普森積分 = h * sum =
1.166666667
|
EXCEL 計算
N=2
|
1
|
4
|
1
|
1x1
|
4x1
|
1x1
|
|
4
|
16
|
4
|
1x4
|
4x4
|
1x1
|
||
1
|
4
|
1
|
1x1
|
4x1
|
1x1
|
||
y=0-1
|
hy=(1-0)/2=0.5
|
0.5
|
|||||
x=1-2
|
hx=(2-1)/2=0.5
|
0.5
|
|||||
h=(hx*hy)/9=
|
0.027777778
|
||||||
y=
|
0
|
0.5
|
1
|
||||
x=
|
1
|
1.5
|
2
|
||||
yy=
|
0
|
0.5
|
1
|
y0
|
y1
|
y2
|
|
0
|
0.5
|
1
|
y0
|
y1
|
y2
|
||
0
|
0.5
|
1
|
y0
|
y1
|
y2
|
||
xx=
|
1
|
1.5
|
2
|
x0
|
x1
|
x2
|
|
1
|
1.5
|
2
|
x0
|
x1
|
x2
|
||
1
|
1.5
|
2
|
x0
|
x1
|
x2
|
||
ff=x^2*y
|
0
|
0.5
|
1
|
x0,y0
|
x0,y1
|
x0,y2
|
|
0
|
1.13
|
2.25
|
x1,y0
|
x1,y1
|
x1,y2
|
||
0
|
2
|
4
|
x2,y0
|
x2,y1
|
x2,y2
|
||
ff*matrix
|
0
|
2
|
1
|
||||
0
|
18
|
9
|
|||||
0
|
8
|
4
|
|||||
0
|
28
|
14
|
42
|
=sum
|
|||
辛普森
|
1.166666667
|
||||||
sum*hx*hy/9
|
|||||||
y=0-1
|
hy=(1-0)/2
|
0.5
|
|||||
x=1-2
|
hx=(2-1)/2
|
0.5
|
|||||
h=(hx*hy)/9=
|
0.027777778
|
沒有留言:
張貼留言