Numerical Integration

Numerical Integration Numerical Integration

files.vlsi.uwindsor.ca
from files.vlsi.uwindsor.ca More from this publisher
22.04.2015 Views

Trapezoidal Rule: Example • Numerically integrate (using two segments, n=2): f ( x ) = 0.2 + 25x − 200x + 675x 2 3 − 900x 4 + 400x 5 a = 0, b = 0.8, n = 2 (Analytical answer = 1.6405333) © 2003-2006 Roberto Muscedere 12

Trapezoidal Rule: Example f (0) = 0.2 f (0.4) = 2.456 f (0.8) = 0.232 I ≅ ⎛ 0.2 + 2(2.456) + 0.232 ⎞ 0 .8 ⎜ ⎟ = ⎝ 4 ⎠ 1.0688 • Significantly better than with one segment of the trapezoidal rule (0.1728) © 2003-2006 Roberto Muscedere 13

Trapezoidal Rule: Example<br />

f<br />

(0)<br />

=<br />

0.2<br />

f<br />

(0.4)<br />

=<br />

2.456<br />

f<br />

(0.8)<br />

=<br />

0.232<br />

I<br />

≅<br />

⎛ 0.2 + 2(2.456) + 0.232 ⎞<br />

0 .8<br />

⎜<br />

⎟ =<br />

⎝ 4 ⎠<br />

1.0688<br />

• Significantly better than with one segment of<br />

the trapezoidal rule (0.1728)<br />

© 2003-2006 Roberto Muscedere 13

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

Saved successfully!

Ooh no, something went wrong!