21
13
Definite integrals
(Simpsons formula)
The value of a definite integral can be approximated by Simpsons formula,
:number of stripes
As becomes larger the approximation becomes better, and the limit as approaches
infinity is consistent with the true answer.
In general, this method gives good approximations.
Program
?→ A:?→ B:?→ C:1→ D:(B - A)÷2 C → M:√ A → Y:Lbl 1:A +
2 DM - M → X:Y +4√ X → Y:X + M → X:Y +2√ X → Y:D +1→ D:C >
D ⇒ Goto 1:B - M → X:Y +4√ X +√ B → Y:YM ÷3→ Y:Y <
105 STEP
>
INPUT
A
,
B
: interval of integration [
A
,
B
]
C
: number of stripes
OUTPUT
Y
: value of the definite integral
Execution Example:
Calculate
.
f x
( )
x
d
A
B
∫
h
3
---
f A
( )
f B
( )
4
f A
2
i
1
–
(
)
h
+
(
)
i
1
=
n
∑
2
f A
2
ih
+
(
)
i
1
=
n
1
–
∑
+
+
+
≈
h
B A
–
2
n
-------------
=
n
n
n
ON
MODE
MODE
MODE
1
PRGM
MODE
1
COMP
1
P1
x x
d
0
10
∫
10
20
3
--------------
21.08185107
=
=
Prog
1
S A
D R
P1
P1 P2 P3 P4
G
0
EXE
1
0
EXE
S A
D R
P1
P1 P2 P3 P4
G
関数電卓事例集
.book 2
1
ページ
2002年9月2日 月曜日 午後6時51分
Summary of Contents for 3950P
Page 1: ......
Page 46: ...MEMO MEMO MEMO MEMO...
Page 47: ...Authors Dr Yuichi Takeda Research and Development Initiative Chuo University...
Page 48: ......