HELP! Double integration set up!
2 ビュー (過去 30 日間)
古いコメントを表示
Hello, I keep getting errors when I try to solve this double integration problem.
The equation is: e^x dx dy with inner integral from 1 to ln y and outer integral from 1 to e. I've heard that I have to use exp(1) for e and log y for ln y. And I did:
>> syms x y
>> int(int(exp(1)^x,x,1,log(y)),1,exp(1))
ans =
5920909807493902051712786124281/(1267650600228229401496703205376*log(1125899906842624/3060513257434037)) - ((3060513257434037/1125899906842624)^(log(3060513257434037/1125899906842624) + 1) - 1)/(log(1125899906842624/3060513257434037)*(log(3060513257434037/1125899906842624) + 1))
I solved the problem by hand and I got -1.476 so I believe that answer I got is wrong. (It looks wrong, actually). Does anyone have any idea what I need to fix here? I would really appreciate your help! I have to use int(int(....) command.
0 件のコメント
回答 (1 件)
Carlos Guerrero García
2022 年 11 月 13 日
編集済み: Carlos Guerrero García
2022 年 11 月 14 日
Just use the "vpa" instruction (variable precision arithmetic) after your script:
syms x y
int(int(exp(1)^x,x,1,log(y)),1,exp(1))
vpa(ans)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Numbers and Precision についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!