Need Help Rearranging Formula for computer program

Knightlite

New member
Joined
Jan 24, 2007
Messages
3
My son is in a C++ class and his assignment that is due tomorrow is to create a program that will solve a math problem. Writing the program is not the problem, but rather rearranging the following equation so that the equation solves for F1.

Can anyone help us rearrange this equation so we can solve for F1? Then we would be able to create the C++ program.

Speed = 6.685 e8 x (F1-F0) / (F1+F0)

We need an equation that solves for F1

Speed = 55
F0= 2 e-10

Any help would be greatly appreciated.

Sincerely,
James
 
Speed = 6.685 e8 x (F1-F0) / (F1+F0)

We need an equation that solves for F1

let v = speed
let k = the constant (6.685 e8)

v = k(F1 - F0)/(F1 + F0)

v(F1 + F0) = k(F1 - F0)

vF1 + vF0 = kF1 - kF0

vF1 - kF1 = -vF0 - kF0

F1(v - k) = -F0(v + k)

F1 = -F0(v + k)/(v - k) = F0(v + k)/(k - v)
 
Thanks so much skeeter for that super fast reply. I very much appreciate it.

Just one question (speaking as someone who is awful in math) why are there two "=" signs in the equation?

F1 = -F0(v + k)/(v - k) = F0(v + k)/(k - v)

Is it an either or thing? Or is that the equation?

Thanks again. I really appreciate you taking the time to help us.

James
 
F1 = -F0(v + k)/(v - k) = F0(v + k)/(k - v)

you have a choice ... I gave you two expressions equal to F1. Both are the same algebraically.
 
Thank you. My son pointed that out to me. Thanks again for all you help. We really appreciate it. He took the equation and created a C++ program from it and we are all set.

Thanks again

James
Knightlite Software
 
Top