10. Numerical Integration
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
The Algorithm
• To integrate f(x) from a to b, determine the
number of intervals “n”
• Calculate the interval length h=(b-a)/n
• Evaluate the function at the points yi=f(xi)
where xi=x0+i*h
• Evaluate the integral by performing the
summation
n
n
i
i yyy
h
I
1
1
0 2
2