How to Evaluate Double Integrals

6 ビュー (過去 30 日間)
Caped Crusader
Caped Crusader 2013 年 4 月 17 日
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 件のコメント
Jim
Jim 2013 年 4 月 26 日
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 2013 年 4 月 26 日
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.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differential Equations についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by