How to write the code for Exponential Growth

조회 수: 31 (최근 30일)
Omar Al-Ali
Omar Al-Ali 2020년 3월 2일
댓글: Star Strider 2020년 3월 2일
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?

답변 (1개)

Jonas Allgeier
Jonas Allgeier 2020년 3월 2일
C = 4e6;
k = log(3)/30;
t = 45;
y = C*exp(k*t);
  댓글 수: 1
Star Strider
Star Strider 2020년 3월 2일
It is not appropriate to provide complete code for homework problems. Give hints instead.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by