How to solve integral ==

2 次查看(过去 30 天)
kris Holm
kris Holm 2021-1-2
评论: kris Holm 2021-1-3
I need help how to wright a code to solve the problem.
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))

回答(1 个)

John D'Errico
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])
ans = 
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)
ans = 

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by