Basic Science World

Simpson's Method

This Script gives a numerical integration of any function using Simpson formula:
I=h/3*[F(a) + F(b) + 4*sum(od values of F(x))+2*sum(even values of F(x)]
where F(a)a is the value of F(x) at point a and F(b) its value at point b
Please notice that the variable should be x
lower limit a=:
upper limit=:
Number of Intervals=:
f(x)=