solving variable in exponential equation
Afficher commentaires plus anciens
i am trying to use the equation: y = ae^rt; to solve for t; y = final population, a = initial population, r = rate increasing. i'm using editor but it is not working. i know the answer to my equation is around 210, however my code below is not working:
sysm y a r t
y == a * ((exp((r*t));
a = 300;
r = .10;
y = 600;
solve t
6 commentaires
SP
le 4 Fév 2019
madhan ravi
le 4 Fév 2019
Modifié(e) : madhan ravi
le 4 Fév 2019
syms y a r t
eqn=y == a * exp((r*t));
t=solve(eqn,t);
a = 600;
r = .10;
y = 600;
Final_t=subs(t)
Yields:
t =
log(y/a)/r %-> log(600/600)/r==>0 , so why do you say 210?
SP
le 4 Fév 2019
madhan ravi
le 4 Fév 2019
what's r ? it's not there in the picture.
Walter Roberson
le 4 Fév 2019
The paper uses values around 300 that are no-where to be found in the 600-ish values you posted.
SP
le 4 Fév 2019
Réponses (2)
KSSV
le 4 Fév 2019
syms y a r t
eqn = y == a * ((exp((r*t))));
S = solve(eqn,t) ;
a = 600;
r = .10;
y = 600;
S = subs(S,a) ;
S = subs(S,r) ;
S = subs(S,y) ;
Catégories
En savoir plus sur Common Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!