How to Evaluate Double Integrals
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Jim
el 26 de Abr. de 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
el 26 de Abr. de 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.
Respuestas (0)
Ver también
Categorías
Más información sobre Numerical Integration and Differential Equations en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!