Converting symbolic exponential function into linear form

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 日

1 投票

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 日

0 投票

Thank you for answer! It worked perfectly.

質問済み:

2019 年 8 月 20 日

回答済み:

2019 年 8 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by