How to solve integral ==

2 visualizaciones (últimos 30 días)
kris Holm
kris Holm el 2 de En. de 2021
Comentada: kris Holm el 3 de En. de 2021
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))

Respuestas (1)

John D'Errico
John D'Errico el 2 de En. de 2021
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 comentario
kris Holm
kris Holm el 3 de En. de 2021
thanks a lot for your help

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by