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 = 
  댓글 수: 1
kris Holm
kris Holm 2021년 1월 3일
thanks a lot for your help

댓글을 달려면 로그인하십시오.

카테고리

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