Numerical Integration in Matlab
1 回表示 (過去 30 日間)
古いコメントを表示
I wanted to solve a numerical integral of the following equation:
fun = ((x.^4 .* exp(x))) ./ ((exp(x) - 1) .* (exp(x) - 1) );
The limits are from: 0 to Inf
Can anyone ehelp me here?
Thanks in advance.
0 件のコメント
採用された回答
Ameer Hamza
2020 年 10 月 3 日
If you have symbolic toolbox
syms x
y = ((x.^4 .* exp(x))) ./ ((exp(x) - 1) .* (exp(x) - 1) );
I = int(y, x, 0, inf)
Result
>> I
I =
(4*pi^4)/15
>> double(I)
ans =
25.9758
4 件のコメント
その他の回答 (1 件)
Walter Roberson
2020 年 10 月 3 日
integral(fun,0,683)
1 件のコメント
Ameer Hamza
2020 年 10 月 3 日
An alternative by rearranging the terms
fun = @(x) (x.^4) ./ (exp(x).*(1 - 1./exp(x)).^2 );
integral(fun, 0, inf)
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!