- #1
Rachelross
- 4
- 0
Matlab/c++ programming question please help:)
Look up Simpson’s Rule and explore the effect on this integration method of
changing the strip size on the error. Also, explore the effect of changing the strip size
in the left-hand and right-hand rules for integration. Compare the convergence of the
integral as the strip size decreases for all four integration methods
Simpson's rule
The integration formula I =∫f (x) dx (The interval is from a to b)
The integration approximation formula I ≈ Δx( (y0 + yn )/2+ Σ yi)
Okay I do not want a solution but maybe some hints as I have no idea how to start this program
Homework Statement
Look up Simpson’s Rule and explore the effect on this integration method of
changing the strip size on the error. Also, explore the effect of changing the strip size
in the left-hand and right-hand rules for integration. Compare the convergence of the
integral as the strip size decreases for all four integration methods
Homework Equations
Simpson's rule
The integration formula I =∫f (x) dx (The interval is from a to b)
The integration approximation formula I ≈ Δx( (y0 + yn )/2+ Σ yi)
The Attempt at a Solution
Okay I do not want a solution but maybe some hints as I have no idea how to start this program