Romberg Integration Programming

Click For Summary
SUMMARY

The discussion focuses on implementing Romberg Integration (RI) using the trapezoidal rule in MATLAB. The user seeks guidance on coding this numerical integration method for any proper function and emphasizes the importance of succinctness in the code. Participants recommend familiarizing oneself with MATLAB programming, particularly control structures like loops and if statements, to effectively execute the integration process.

PREREQUISITES
  • Basic understanding of numerical methods, specifically Romberg Integration.
  • Familiarity with MATLAB programming environment.
  • Knowledge of control structures in programming, such as loops and conditional statements.
  • Understanding of the trapezoidal rule for numerical integration.
NEXT STEPS
  • Explore MATLAB tutorials on control structures and programming basics.
  • Study the implementation of the trapezoidal rule in MATLAB.
  • Research advanced numerical integration techniques beyond Romberg Integration.
  • Practice coding examples of numerical methods in MATLAB to reinforce learning.
USEFUL FOR

Students, novice programmers, and anyone interested in numerical methods and MATLAB programming, particularly those looking to implement integration techniques.

pyroknife
Messages
611
Reaction score
4
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.
 
Physics news on Phys.org
pyroknife said:
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.

Done.

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 .
 
Last edited by a moderator:
pyroknife said:
Oh and I would like to do this in MATLAB.

Matlab is covered by our "Math and Science Software" subforum, so I've moved this thread there.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
Replies
27
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
5
Views
4K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K