Numerical Integration
Numerical Integration
Numerical Integration
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Simpson’s 1/3 Code (p.3)<br />
double <strong>Integration</strong>::Simpsons13(int n)<br />
{<br />
double h=(xn-x0)/n;<br />
double sum=0.0;<br />
double x=x0;<br />
double I;<br />
for(int i=1; i