Double integral with limit with Monte Carlo simulation

10 ビュー (過去 30 日間)
sarox xide
sarox xide 2018 年 2 月 14 日
編集済み: Abhigyan Malviya 2018 年 2 月 14 日
I'm trying to find the solution to the integral
over the region between two circles x^2+y^2=1 and x^2+y^2=4. I used a few different methods before giving up. The limits are giving me a hard time. Can anybody help me? Thanks in advance.

回答 (2 件)

Torsten
Torsten 2018 年 2 月 14 日
Hint: Use polar coordinates.
Best wishes
Torsten.

Abhigyan Malviya
Abhigyan Malviya 2018 年 2 月 14 日
編集済み: Abhigyan Malviya 2018 年 2 月 14 日
You can solve that easily using Monte carlo sampling. To begin, your limits cover the area between two circles. As such, you need to sample the points whose x,y coordinates are inside those circle. Further, the function is monotonically decreasing over the limit, as such the maxima of the curve can be obtained easily.
Next choose random points over the volume using Monte Carlo scheme, finally take the ratio of the volumes (between the cylinder formed by the two circles and Z=maxima) and the points inside the curve. In case you have no clue of Monte Carlo integration scheme, have a look here.
You can contact me if you need more help: www.lennardjones.com
Regards,
Abhigyan Malviya

カテゴリ

Help Center および File ExchangeMonte-Carlo についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by