Is there a method for numerical integration with some symbolic variables?

4 ビュー (過去 30 日間)
jisu kim
jisu kim 2020 年 9 月 23 日
編集済み: jisu kim 2020 年 10 月 8 日
I wanna evaluate integral like the following,
The symbolic integral doesn't work well.
Is there a method to evaluate this integral with the dependence of m and M surviving?
My ultimate goal is to equating this integral with some function in order to find .

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 9 月 23 日
編集済み: Ameer Hamza 2020 年 9 月 23 日
Since a closed-form symbolic solution does not exist, you will need to use a numerical method. You cannot get a simple expression; however, you can create an anonymous function which "acts" like an expression in terms of m and M.
f = @(s, m, M) sqrt(s)./((s-m.^2).^2+3*s).*exp(-s./M.^2);
f_int = @(m, M) integral(@(s) f(s, m, M), 0.07, 1.5);
Run it like this
>> f_int(1, 1)
ans =
0.2519
>> f_int(1, 2)
ans =
0.4109
You can then use it to solve for the equation using fsolve().
  2 件のコメント
jisu kim
jisu kim 2020 年 9 月 24 日
編集済み: jisu kim 2020 年 10 月 8 日
Thanks for answering me. It helps very much for me. I solved the problem with your answer.
Ameer Hamza
Ameer Hamza 2020 年 9 月 24 日
I am glad to be of help!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by