How to solve exponential distribution equation using symbolic Matlab?

2 次查看(过去 30 天)
I have exponential distribution function - F(tau) = beta * e^(-beta*tau). I need to integrate tau*F(tau) over the intervall 0 to inf, My answer should be 1/beta, however I don't get this answer. This is what I did:
>> syms tau beta
>> home
>> syms tau beta
>> f = tau*beta*exp(-beta*tau);
>> int(f, tau)
ans =
-(exp(-beta*tau)*(beta*tau + 1))/beta
Thanks for help, in advance.

采纳的回答

Bjorn Gustavsson
Bjorn Gustavsson 2020-6-13
It helps the int if you explicitly tells what the range to integrate over is:
int(f,0,inf)
HTH

更多回答(0 个)

类别

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

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by