integrating a function using int
2 views (last 30 days)
Show older comments
bhanu kiran vandrangi
on 3 Aug 2021
Answered: Walter Roberson
on 3 Aug 2021
syms s t d e
y=((0.005659*s^2+0.05206*s+0.004496)/(s^3+9.357*s^2+2.228*s+0.06147))*((27.5084*d)+(27.5084*(e/s)))
z=vpa(ilaplace(y,s,t),5)
x=((0.003013)/(s^3+9.357*s^2+2.228*s+0.06147))*((-20.6533*d)+(-20.6533*(e/s)))
v=vpa(ilaplace(x,s,t),5)
C=z+v
B=sign(C-1)*(C-1)
w=(7.4513/B)
I=int(w,t,0,2000)
i am not getting any output , its been running for over a hour how to resolve this(the integration should only be done w.r.t 't' only and 'd and e' should be remain as they are
0 Comments
Accepted Answer
Walter Roberson
on 3 Aug 2021
Use the techniques I show at https://www.mathworks.com/matlabcentral/answers/890822-how-can-i-integrate-a-function-which-has-three-variables-but-has-to-integrate-it-with-respect-to-onl#answer_759472
syms s t d e real
y=((0.005659*s^2+0.05206*s+0.004496)/(s^3+9.357*s^2+2.228*s+0.06147))*((27.5084*d)+(27.5084*(e/s)))
z = ilaplace(y,s,t)
You are not going to get anywhere with symbolic integration until you convert the sum of root() into an expression without root() .
Even then you are not likely to get anywhere until you substitute in numeric d and e values.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!