Solving for Exponential Vairable

9 visualizzazioni (ultimi 30 giorni)
syms t
a = 600;
r = .10;
y = 600;
eq = y - a * (exp(r*t)) == 0;
tsol = solve(eq,t)
This is my code which I would like to output a number (decimal) but it is outputting in log form. Can someone please give me some advice?

Risposta accettata

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH il 3 Nov 2019
syms t
a = 600;
r = .10;
y = 600;
eq = y - a * (exp(r*t)) == 0;
tsol = vpa(solve(eq,t))

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by