Find current value of a variable that depreciates linearly over time
Posted
by Hugi
on Stack Overflow
See other posts from Stack Overflow
or by Hugi
Published on 2010-05-27T10:32:16Z
Indexed on
2010/05/27
10:41 UTC
Read the original article
Hit count: 188
math
Let's say we have an empty bathtub. We've lost the plug, so once water is added it will drain away at a constant rate of 2 liters pr. minute. We add water to the tub in increments. 60 liters at 10:51, 30 liters at 11:54 and 50 liters at 13:18.
So, the question is: How can I find out how much water is in the bathtub at any given time?
© Stack Overflow or respective owner