Quote
Wait, shouldn't the viruses increase by 160%?
That's viruses = viruses*2.6 or viruses = viruses + viruses * 1.6
That's viruses = viruses*2.6 or viruses = viruses + viruses * 1.6
vir_n = vir_(n-1)*1.6 - 50000
Quote
This means, the virus count only doubles every 4th hour, meaning the check for (!(virusCount < 10^12)) will only return true on a 4th hour, which means the answer has to be either 108 hours if you don't include the initial "0 hour" or 104 if you do.
You are working under the presumption that viral growth is a discrete process. As the viruses are introduced to a population of cells within varying degrees of mitotic development, we have to assume that growth is continuous. Therefore, before 4 hours have elapsed, the population of the virus will still have grown.
---------------------------------------------------------------
Now try to find the precise number of hours that it takes given the following criteria:
Instead of having 50,000 viruses eliminated every 4 hours, they are instead eliminated once every one hour. The rate of viral growth is still 1.6x every 4 hours. (Everything else are the same as the previous problem)
You can solve this either programatically or analytically.
edited 2×, last 10.02.10 03:25:30 am