> I'd like to convert the result from solve() to have a list only with
> numbers. Example:
>
> (C1) solve(x^3=x);
> (D1) [x=1,x=0,x=-1]
> (C2) ???????????????(%);
> (D2) [1,0,-1]
You can use map('rhs,d1) or makelist(rhs(res),res,d1).
RHS is the "right hand side" function.
Note that Maxima returns implicit solutions in the form, e.g. x=exp(x),
so rhs is not always free of the variable being solved for. If this
matters (the solve is in the middle of an automated procedure), you
might want to use the freeof function to check.
-s