MATLAB Answers

0

Converting symbolic exponential function into linear form

Asked by chemeng100 on 20 Aug 2019 at 11:38
Latest activity Answered by chemeng100 on 25 Aug 2019 at 23:06
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)

  0 Comments

Sign in to comment.

2 Answers

Answer by Jyotsna Talluri on 25 Aug 2019 at 16:14
 Accepted Answer

Use 'simplify' function on applying log on both sides of equation
z= log(A(t));
logA = simplify(z , 'IgnoreAnalyticConstraints', true);

  0 Comments

Sign in to comment.


Answer by chemeng100 on 25 Aug 2019 at 23:06

Thank you for answer! It worked perfectly.

  0 Comments

Sign in to comment.