I'd like to know how to use the results of Solve in later calculations. Here's what I'm doing now:
This is my expression
g == Solve[g a - b d - f == g c - b e, g]which gives the result
{{g -> (b d - b e + f)/(a - c)}}Next, using the above result, I do
Solve[{g == (b d + f - e b)/(a - c), b == 0}, {g, b}]which yields the final result:
{{g -> f/(a - c), b -> 0}}
I want to do the same calculation without putting the first result into the second calculation "manually". There must be way to tell Mathematica that it has to take g and insert it into the next calculation by itself.
However, I failed. I tried things like % or /. but it didn't work.
Solve[{g == (b d + f - e b)/(a - c), b == 0}, {g, b}]gives your final result – Dr. belisarius Jun 14 '12 at 11:53sol=Solve[g a - b d - f == g c - b e, g],sol /. b -> 0– Heike Jun 14 '12 at 12:20