Following is MACSYMA expressions
eq1: a*x - b*y = 0;
eq2: c*x +d*z = 0;
eq3: y+z = 0;
subst([eq1,eq2],[eq3]);
I am expecting result as a/b = c/d after cancelling common x.
But I did not get expected result. And MACSYMfl also has trouble cancelling a common term from right and left hand sides.
How does one get around this?
IIUC, what you want is to solve eq1 for y, eq2 for z, and substitute those values into eq3. If I do that by hand, I get
And since
z+y = 0,a*x/b-c*x/dis zero, which produces your desireda/b=c/d.One way of doing this is to use
eliminate:Setting this to zero gives
b*c-a*dis zero, which is equivalent to your expecteda/b=c/d.