How to Evaluate Double Integrals
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Jim
am 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
am 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.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!