Simpson's Rule

This TI-83/83+ program will use Simpson's rule with N subintervals to approximate the integral of Y1(X) on the interval [A,B].

Notes

Prompt A
Prompt B
Prompt N
{1}->L1
N->K
While K>0
augment(L1,{4,2})->L1
K-2->K
End
1->L1(N+1)
(B-A)/N->D
sum(L1*seq(Y1(A+D*K),K,0,N))*D/3
K. Levasseur
Math. Sciences
UMass Lowell