So, here's my code:
syms w k c l Vi Vr p wr wi
l = (Vr-Vi)/Vi;
p = w/wr;
fw = ((k*l*Vi)/c)*(((1+p*l)*Vi)/c)^(k-1)*exp(-((1+p*l)*Vi)/c)^k ;
f1 = wi-w;
f2 = w-wi;
fr = (f1*fw);
fp = (f2*fw);
CCr = int(fr,w);
CCp = int(fp,w);
w is the only real variable. The others ( k,c,l,Vi,Vr,p,wr,wi) are constants, but i need the answer without using the values of these.
When i try to use the ''int'' it doesn't integrate and returns int(fw,w).
Thank you :)

댓글 수: 2

Star Strider
Star Strider 2020년 7월 6일
Many functions do not have analytic (symbolic) integrals. This also applies to differential equations, so in those situations, only numeric solutions are possible.
Leon Lazzerini
Leon Lazzerini 2020년 7월 6일
Thanks, was stuck on this forever, i'll see what i can do. Thanks again :)

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

 채택된 답변

madhan ravi
madhan ravi 2020년 7월 6일

1 개 추천

Too complicated for MATLAB to solve it.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Language Fundamentals에 대해 자세히 알아보기

태그

질문:

2020년 7월 6일

댓글:

2020년 7월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by