How to solve integral ==
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/476708/image.png)
I did it like this, but it does not work, what have i done wrong?
syms x b
solve(int(exp(x)==1,1,b))
0 件のコメント
回答 (1 件)
John D'Errico
2021 年 1 月 2 日
You want to integrate exp(x), with limits from 1 to b?, and then to find b, such that the integral is 1?
First, how do we perform the integration?
syms x b
int(exp(x),x,[1,b])
So that is easy enough. What value of b gives an integral of 1? Just wrap solve around that.
solve(int(exp(x),x,[1,b]) == 1)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!