Simpson's Rule
This TI-83/83+ program will use Simpson's rule with N subintervals to approximate the integral of Y
1
(X) on the interval [A,B].
Notes
N must be even.
Prior to running this program, enter Y
1
on the "Y=" Screen.
A, B, N, D and List L
1
are altered by this program.
Prompt A
Prompt B
Prompt N
{1}->L
1
N->K
While K>0
augment(L
1
,{4,2})->L
1
K-2->K
End
1->L
1
(N+1)
(B-A)/N->D
sum(L
1
*seq(Y
1
(A+D*K),K,0,N))*D/3
K. Levasseur
Math. Sciences
UMass Lowell