Maxima returns no results for the following:
solve ([a = (p-x)*c, b = (q-x)*d, a + b = 0], [x]);
I think it should return:
d q + c p
[x = ---------]
d + c
What am I doing wrong?
You have a system of 3 equations of one variable
x. Such a system can be overdetermined. Evenresults in an empty solution
because
a+b=0isn't true except for special values of the constantsaandb. A constant expression will be true in this context only if it can be proved that is true for all possible assignment to the parameters.I think you actually wanted to solve the system
with three variables
x,a,band the constantsc,d,p,q.Maxima calculates the solution
where
xhas the value you expected.