How to Evaluate Double Integrals

6 visualizzazioni (ultimi 30 giorni)
Caped Crusader
Caped Crusader il 17 Apr 2013
Hi, I am trying to write a code for numerical double integration in Matlab. I know there are built in built-in Matlab functions for this but I want to write one by myself. Which algorithm will be most suitable for this purpose?
  2 Commenti
Jim
Jim il 26 Apr 2013
Algorithms for single variable integration can be generalized to double integration. An example for the trapezoidal rule is here http://www.mathworks.com/matlabcentral/answers/1800. Similarly you can use Simpson's rule or some other algorithm depending on what function you are trying to integrate.
Carlos
Carlos il 26 Apr 2013
Exactly, you can use the Simpson rule, the Trapezium rule, Gauss-Legendre etc...
When performing a double integral you can also integrate with one method over one variable and use another to integrate over the other variable.
Another detail you have to consider is the type of region in which you are integrating, the algorithm changes slightly when you integrate over a non rectangular region instead of a rectangular region.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Numerical Integration and Differential Equations in Help Center e File Exchange

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by