CASIO
PROGRAM SHEET
Program for
Definite integrals using Simpson’s rule
No.
Description
1= | f{x)dx = -^■(.yo + 4(.y1 +.V3+ + ^ 2m -l) + 2 (y2 + ^4+ +y2m-2 )+y2m j
u b -a
h=-Zm
The right-hand portion of the above equation can be transformed as follows.
1= + (4V2/-1 +2y2i)-y2mi
Let f(x) =
1
' **+1
Example
<1> o = 0, b = 1, 2m = 10
1= f 1^ — ¿* = 0.7853981537
JO JT + 1
<2> a=2, b = 5, 2m = 20
I = f 5_ J — dx= 0.2662526769
J2 AT+1
Preparation and operation
•Store the program written on the next page.
•Execute the program as shown below in the RUN mode O D D ) .
Step
Key operation
Display
Step
Key operation
Display
1
fPrcilOíiül
A?
11
2
0 ®
B? 12
3
1 @
2M?
13
4
1 0 ®
0.7853981535
14
5
(¡x¡)
A?
15
6
2 ®
B? 16
7
5 ®
2M?
17
8
2 0 ®
0.2662526768
18
9
19
10
20
- 1 4 2 -