Hello I am trying to develop a physics problem solver. The program specifically will be written for android but that's not important. I have these three equations that will be familiar to anyone who knows physics.
vf = vi + a*t
y= vi*t + .5*t^2
vf^2=vi^2 + 2*a*y
I would like to develop an application that uses these three equations to solve the other values that the user wants given any known variables that the user has. This is where I run into problems. If I knew each time what variables the user would have, I would be fine. But since I don't, I need my program to be able to rearrange the equations and substitute individual variables if necessary to evaluate them.
I know the answer is probably that I will need to write out a separate set of code for each combination of user input, but I would appreciate it if anyone knew another way so I don't need to write out code all 100 or so variations.
Thanks for any help.