1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Matlab/c++ programming question please help

  1. Aug 5, 2010 #1
    Matlab/c++ programming question please help:)

    1. The problem statement, all variables and given/known data

    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

    2. Relevant 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)

    3. 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
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted