How to write the code for Exponential Growth

18 vues (au cours des 30 derniers jours)
Omar Al-Ali
Omar Al-Ali le 2 Mar 2020
Commenté : Star Strider le 2 Mar 2020
Recall that a variable y satisfies exponential growth if it satisfies the differential equation y ' = k * y (where k > 0). The solution to this differential equation is y = C * e^( k * t ), where C represents the initial value of y at time t = 0. Typically the value of k is found from knowing the value of y at some other time t.
Use this information to solve the following: A bacteria population starts with 4 million bacteria and triples every 30 minutes. How many bacteria are present after 45 minutes?

Réponses (1)

Jonas Allgeier
Jonas Allgeier le 2 Mar 2020
C = 4e6;
k = log(3)/30;
t = 45;
y = C*exp(k*t);
  1 commentaire
Star Strider
Star Strider le 2 Mar 2020
It is not appropriate to provide complete code for homework problems. Give hints instead.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by