- #1
peterianstaker
- 2
- 0
Can someone check my working to see if this is correct for both questions?
Estimate: ∫(2,0) 1/1+x^2 dx
i) Using the Mid-Ordinate rule with 4 strips
ii) Using Simpson's rule with 4 strips
i) h=b-a/n
= 2-0/4 = 0.5
x 0 0.5 1 1.5 2
y 1 0.8 0.5 0.308 0.2
=h(y1+y2+y3+...yn)
=0.5(0.8+0.5+0.308+0.2)
= 0.904 (3.d.p)
ii) = h/3(y0+4y1+2y2+4y3+y4)
= 0.5/3(1+4x0.8+2x0.5+4x0.3+4x0.308+0.2)
= 1.105 (3.d.p)
Any comments welcome!
Estimate: ∫(2,0) 1/1+x^2 dx
i) Using the Mid-Ordinate rule with 4 strips
ii) Using Simpson's rule with 4 strips
i) h=b-a/n
= 2-0/4 = 0.5
x 0 0.5 1 1.5 2
y 1 0.8 0.5 0.308 0.2
=h(y1+y2+y3+...yn)
=0.5(0.8+0.5+0.308+0.2)
= 0.904 (3.d.p)
ii) = h/3(y0+4y1+2y2+4y3+y4)
= 0.5/3(1+4x0.8+2x0.5+4x0.3+4x0.308+0.2)
= 1.105 (3.d.p)
Any comments welcome!