I have a formula inuse in some code i have written (the code not the formula)
now i need to rearrange the formula to give a differant outcome but my efforts are producing the wrong results.
the formula is
T = (10+(350/Percentsqrt((1000000+SD5000)/speed)))/86400
T = (10+(350/Percentsqrt((1000000+SD5000)/speed)))/86400
T = time (flight)
Percent, SD and speed are read in each time the formula is run
Percent = the percentage the ships travel at
SD = slot differance (this formula is for tavelling inside a solarsystem)
speed = the speed of the slowest ship
/86400 turns the result to that point into a time, were 1 is a day 0.5 is 12hrs etc.
i need to be able to feed the time in that format in to come back and give me the slots that can be travelled
One step at a time and don’t panic…
This assumes you have the ** operator to raise to a power
You could make your life easier with one or two intermediate variables, something like
X = 350/((T*86400 - 10)*Percent)
SD = X * X * speed / 5000 - 1000000
Thank you Michael
For some reason it gives me the wrong result but what was then needed was to replace the - 1000000 with /2 and it works, very strange.
I have two more formulas (one for travelling between solar systems, one for between galaxys) but if i follow your steps on this one hopefully i can work it out.