Subject: follow-up on solving a set of symbolic equations
From: Paul Spitalny
Date: Wed, 12 Mar 2003 10:18:57 -0800
First, thanks for all the help. As a first time user I can say that having
the input and output lines in maxima indexed by c1,c2 d1,d2 can be a
definite pitfall. It certainly was to me since I had a coefficient called
"c1" . I suppose it would be nice to index the in and out lines
differently, but, now that I understand what's going-on I can work around
it. One persons email (Thank you Barton Willis) mentioned the re-assigment
of the in and out line indexing and that looks like a good way to go for me.
And, then the follow-up question. If I solve a set of equations like the
example in the documentation (from "Introduction to MACSYMA"
) below:
(C6) a + b*c=1;
(D6) b C + a = 1
(C7) b - a*c=0;
(D7) b - a C = 0
(C8) a+b=5;
(D8) b + a = 5
(C9) solve([d6,d7,d8],[a,b,c]);
25 SQRT(79) %I + 25 5 SQRT(79) %I + 5 SQRT(79) %I + 1
(D9) [[a = -------------------, b = -----------------, C = ---------------],
6 SQRT(79) %I - 34 SQRT(79) %I + 11 10
25 SQRT(79) %I - 25 5 SQRT(79) %I - 5 SQRT(79) %I - 1
[a = -------------------, b = -----------------, C = -
---------------]]
6 SQRT(79) %I + 34 SQRT(79) %I - 11 10
How can I separately access the variables a,b and c ?
Thanks
Paul