This is a programming problem, but it's specifically math-based and the programmers I know aren't able to point me to the right solution.
Math has always been my worst subject. I'm usually pretty good with the logical aspect of it, but getting specific numbers to do what I need can get impossible.
I've got a value, X, and values T ('to') and F('from'). There are also a multitude of unknown values ({Stars}) which have to scale with X.
Each time step (which varies), I need to multiply X and {Stars} by the same amount. After (S) seconds, X should be equal to T.
By definition, X is F, and at the end of the operation, X is equal to (X * T/F) (which is equal to T). For the sake of simplicity, it's impossible for X to ever equal or pass zero (so T and F are always the same sign).
Each time step, I need to do something like this, but I don't know how to calculate the ? value:
while ( time < S ) mux = 1 + ? * timestep X = X * mux {Stars} = {Stars} * mux // after the loop, X is guaranteed to be (initial X0 * F/T) (which is T) // {Stars} contains unknown values which have scaled with X to become F/T * their original value