I am trying to calculate a value over time based on a set of parameters, for example:
start = 0.10
end = 0
time = 720
Where time is the desired time for the function to go from the start to the end values.
I have tried to follow some examples and plot them out to see if I am doing it correctly but am not able to get expected results.
Using hints from this post: What is the difference between logarithmic decay vs exponential decay?
For linear decay I cam up with this formula, which behaves as expected:
$rate = (start - end) / time$
$f(t) = start - (rate * t)$
For exponential decay I came up with the formula:
$rate = (start - end) / time$
$f(t) = start - (rate * ln(t))$
I am clearly not a math genius but in my mind I am trying to get curves that resembles this (in general shape, ignore the axis values):
Exponential Decay:
