Program Name:SIMPSONS
Format: TI-85 Basic
Author:Michael Kelly
Email:MthTutor@aol.com

Program Description:
This program calculates an integral using Simpson's rule for a certain interval and
subdivisions

Input Prompts:
A=? <- Lower bound of the interval
B=? <- Upper bound of the interval
f(x)= <- Function to be integrated with respect to x

Output:
When the program is done it displays the result of using Simpson's rule

Variables used:
A - Real
B - Real
CX - Real
F - Equ
F1- Strng
J - Real
N - Real

If you have any comments, suggestions or questions about the program please email at
MthTutor@aol.com

Program Listing:
NOTE that /->/ means hit the STO key

:Prompt A,B,N
:InpSt "f(x)= ",F1
:StEq(F1,F)
:CX=(B-A)/N
:((B-A)/(3N))(evalF(F,x,A)+4*sum seq(evalF(F,x,A+CX*J),J,1,N-1,2)+2*sum
seq(evalF(F,x,A+CX*J),J,2,N-2,2)+evalF(F,x,0))