11-6 Applications
This program uses Simpson’s method to estimate the definite integral of a
function.
Estimate the definite integral of
0
1.5
(6ì6x5)dx
and graph the area of the integral.
The program estimates the definite integral for Y1 using
Simpson’s method. It prompts for the lower and upper limits
of integration and the number of divisions.
PROGRAM:SIMPSON
:INPUT "LOWER LIMIT=",A Input lower limit.
:INPUT "UPPER LIMIT=",B Input upper limit.
:INPUT "N DIVISIONS=",D Input # of divisions.
:0SInitialize sum variable.
:(BìA)/(2×D)WCalculate division width.
:FOR(J,1,D,1) Begin calculation loop.
:A+2(Jì1)WLCalculate left point.
:A+2JWRCalculate right point.
:(L+R)/2MCalculate midpoint.
:W(Y1(L)+4Y1(M)+Y1(R))
/3+SS
Calculate division sum and
add to total.
:END
:DISP "AREA=" Display results.
:DISP S
Follow this procedure to solve the problem.
1. Enter the program.
2. Press ( and enter the function in Y1. Turn any other
functions off.

Program: Numerical Integration

Problem
Program
Procedure