필터 지우기
필터 지우기

How to solve exponential distribution equation using symbolic Matlab?

조회 수: 2 (최근 30일)
Sushil
Sushil 2020년 6월 13일
댓글: Sushil 2020년 6월 13일
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.
  댓글 수: 1
Sushil
Sushil 2020년 6월 13일
I tried it again and I got the answer:
>> f = x*a*exp(-a*x);
>> assume(a>=0);
>> int(f,x,0, inf)
ans =
1/a

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

채택된 답변

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