That would be nice. Here's doing the above in sage:
sage: x,y=var('x,y')
sage: v = [sqrt(x)==1, x==y]
sage: w = maxima(v)
sage: maxima.load('topoly_solver')
sage: w.to_poly_solve([x,y])
[[x=1,y=1]]
There's currently no simple code in sage to turn the output of
to_poly_solve into native sage objects.
William
I should correct myself and say it doesn't have any "trivial to use"
function to do that. Of course we wrote code to do that when
implementing our solve command (which does work as you suggest above).
William
Robert,
Is there any reason not to just *always* use topoly_solver? I.e.,
maybe Sage's solve should
just 100% always only call topoly_solver. What do you think?
William
>
> That would be nice. Here's doing the above in sage:
>
> sage: x,y=var('x,y')
> sage: v = [sqrt(x)==1, x==y]
> sage: w = maxima(v)
> sage: maxima.load('topoly_solver')
> sage: w.to_poly_solve([x,y])
> [[x=1,y=1]]
>
> There's currently no simple code in sage to turn the output of
> to_poly_solve into native sage objects.
>
> William
>
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org