Subject: Maxima: Assistance requested with solver.mac.
From: Robert Dodier
Date: Sat, 23 Jul 2005 14:58:46 -0600
Hello Constantine,
OK, it looks like solver.mac wants to call a function EquationP
which is undefined. I'm guessing that EquationP (e) returns true
if e is an equation (i.e., something like a = b) and false otherwise.
After entering this --
EquationP(e):=not atom(e) and op(e)="=";
and loading the solver package, I get this --
solver ([x+y+x^2=a, x-y=b], [x,y], [a,b]) =>
[[x = - SQRT(b + a + 1) - 1,
y = - SQRT(b + a + 1) - b - 1],
[x = SQRT(b + a + 1) - 1, y = SQRT(b + a + 1) - b - 1]]
(By the way, I tried this with Maxima 5.9.1 official release,
which is case insensitive; the solver package (share/algebra/solver)
won't work at all with 5.9.1cvs, which is case sensitive.)
Hope this helps,
Robert Dodier