Converting symbolic exponential function into linear form

5 vues (au cours des 30 derniers jours)
chemeng100
chemeng100 le 20 Août 2019
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)

Réponse acceptée

Jyotsna Talluri
Jyotsna Talluri le 25 Août 2019
Use 'simplify' function on applying log on both sides of equation
z= log(A(t));
logA = simplify(z , 'IgnoreAnalyticConstraints', true);

Plus de réponses (1)

chemeng100
chemeng100 le 25 Août 2019
Thank you for answer! It worked perfectly.

Community Treasure Hunt

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

Start Hunting!

Translated by