필터 지우기
필터 지우기

Converting symbolic exponential function into linear form

조회 수: 5 (최근 30일)
chemeng100
chemeng100 2019년 8월 20일
답변: chemeng100 2019년 8월 25일
Hi, below I have a code to solve symbolically differential equation.
My question is simple:
How to present the solution in linear form instead of exponential form. So basically what is the code to logarithm symbolically function on both sides of the solved equation?
syms A(t) k A0
R = -diff(A) == k*A;
cond = A(0) == A0;
A(t) = dsolve(R,cond)

채택된 답변

Jyotsna Talluri
Jyotsna Talluri 2019년 8월 25일
Use 'simplify' function on applying log on both sides of equation
z= log(A(t));
logA = simplify(z , 'IgnoreAnalyticConstraints', true);

추가 답변 (1개)

chemeng100
chemeng100 2019년 8월 25일
Thank you for answer! It worked perfectly.

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by