Limit Approach to infinity
조회 수: 18 (최근 30일)
이전 댓글 표시
syms I(t) N Mu Gamma Vo V(t) %Used to decalre variables as symbol
I(t) = Io*exp(-Mu*t);
ode = diff(V,t) == Mu.*N.*I(t) - Gamma.*V(t); %Equation Writing
cond = V(0) == Vo; %Initial condition
Solution_eq3 = dsolve(ode, cond) %Solution the the modified equation == Solution to the IVP
%------------------------------------------------------------------------------------------------------
%PART -----> (c)
Solution = log(Solution_eq3)
Limits = limit(Solution,t,Inf)
Limit not approaching to infinity.
댓글 수: 0
답변 (1개)
Harshitha Kallam
2021년 6월 14일
Hi Fahad,
When using syms, you should break it down into symbols that are certain to be real valued and those that are not certain, and you should add the "real" qualifier when possible. For example,
syms Io Vo N real
syms Gamma %potentially complex valued
You should also add any assume calls that are reasonable. For example,
assume(Io >= 0)
With all of your symbols being potentially complex valued (because you did not say otherwise), and in case any of your values might be 0, MATLAB is unable to determine the complex sign of the expression. Hence, it gives the output in general about limits, with it not being able to prove anything about the properties of that limit.
So, make sure that you add all the reasonable assumptions so that MATLAB will be able to accurately determine the sign of the expression thereby giving an accurate result for the limit.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Equation Solving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!