Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Romberg Integration Programming

  1. Oct 11, 2013 #1
    Hi all. I would like to write a code to perform the romberg integration (RI) using the trapezoidal rule as the basis. I would like the function to integrate any proper function of my choosing for any desired level. Being succinct is a definite plus.

    I am not sure how familiar the people on these boards are with numerical methods, particularly in the form of numerical integration using RI, but was hoping if someone could give me some pointers on where to start as I am a bit new to coding and this kind of math.

    Oh and I would like to do this in MATLAB.

    I realize that I have two duplicate topics and that is because I realized that this subforum is more appropriate for my question. Please delete the one in the Calculus forum if necesary.
  2. jcsd
  3. Oct 12, 2013 #2


    Staff: Mentor


    A lot of people here are very familiar with numerical methods, including integration methods of many kinds.

    The place to get started is to get familiar using matlab, particularly with control structures such as loops and branches (e.g., if statements). Here's a link to a site with tutorials and videos about programming in matlab - http://www.mathworks.com/help/matlab...etting-started [Broken].
    Last edited by a moderator: May 6, 2017
  4. Oct 12, 2013 #3


    User Avatar

    Staff: Mentor

    Matlab is covered by our "Math and Science Software" subforum, so I've moved this thread there.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Romberg Integration Programming Date
Mathematica Cannot do the integral of the Hyper-geometric function? Sunday at 9:46 AM
Matlab Easier way to integrate? Feb 28, 2018
How to program this in Matlab Feb 28, 2018
Mathematica Chi square minimisation wrt variables in an integral? Nov 15, 2017
Converting Simulink model to C code, integration Nov 5, 2017