On Tue, 2011-05-17 at 06:28 -0500, Barton Willis wrote:
> You missed a rhs in the expression for xx. Try again using
Sorry, that was copied from playing with map.
I did try the expression you suggested. That works.
However, the subst(sk,...) expression fails with an error.
(%i6) xx:map(lambda([s], rhs(s) - lhs(s)), [e1,e2,e3,e4]);
(%o6) [v + (2 %i + 1) ix - 80, v + (%i + 1) iy - 70, - iy - ix + i,
- conjugate(i) v + 200 %i + 100]
(%i7) makelist(expand(subst(sk, xx)),sk, args(sol));
(%o7) [[0, 0, 0, 0], [0, 0, 0, 0]]
Now, the part I do not understand:
(%i8) subst(sk, xx);
subst: improper argument: sk
-- an error. To debug this try: debugmode(true);
I do not understand how the subst(sk,...) expression works in the
context of makelist and expand.
Can someone explain this?
tomdean