solve x



The behavior of %solve and %union is clearly documented and easy to find.
 Google [maxima %union] and the first result is the relevant section of the
Maxima manual.  If you read the documentation, you will see that the %union
result is not a bug.

The %union result can be manipulated like any other Maxima expression,
using e.g. part(...,<n>) to extract each argument individually, args(...)
to get the list of arguments, or for i in ... to iterate over the arguments.

As for the aesthetic quality of the result, clearly the author of %solve
found %union more elegant than a list.  You may disagree, but without some
sort of rationale for your disagreement, I don't see how we can have an
intelligent discussion.

              -s


On Tue, Nov 27, 2012 at 8:59 AM, Hans W. Hofmann <hawe at chefmail.de> wrote:

> Hi,
>
> why we do not get a handsome answer
>
> > > (%o2) %union([x = - 2], [x = 1])
>
> what should I do with %union()...? I want to handle the return as usual...
> This is a bug?
>
> HW
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>