On Feb 8, 10:30 am, tvn <[email protected]> wrote:
> this is what I am trying to do  -- is there a way to have it to return uk =
> w-y ?
[...]
> sage: solve([uk + x + 2*y == A*B,   w + x + y == A*B],[uk,x])
> [[uk == w - y, x == A*B - w - y]]

You answer your own question.

> sage: solve([uk + x + 2*y == A*B,   w + x + y == A*B],[uk,y])
> [[uk == -A*B + 2*w + x, y == A*B - w - x]]

It is a useful exercise to reason why returning "uk == w - y" as part
of the answer here should be considered an error. Hint: look up the
"dict" option on solve.

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to