22.04.2015 Views

Numerical Integration

Numerical Integration

Numerical Integration

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!