solve x



ok, it works

but it seems a bit weird:
(%i2) to_poly_solve([-sqrt(x^2+3*x)+sqrt(2*x+2)=0] , [x]);
(%o2)                     %union([x = - 2], [x = 1])

(%i3) subst(-2, x, sqrt(2*x+2)-sqrt(x^2+3*x)=0);
(%o3)                                0 = 0







--- Mar 27/11/12, Raymond Toy <toy.raymond at gmail.com> ha scritto:

> Da: Raymond Toy <toy.raymond at gmail.com>
> Oggetto: Re: [Maxima] solve x
> A: maxima at math.utexas.edu
> Data: Marted? 27 novembre 2012, 03:01
> 
> ? ? Antonio> how to get 2 from this?? 
> ? ? Antonio> (%i2) solve([sqrt(x+2)=x], [x]);
> ? ? Antonio> (%o2) [x = sqrt(x + 2)]
> 
> load(to_poly_solve);
> to_poly_solve(sqrt(x+2)=x,x) -> %union([x=2])
> 
> Ray
> 
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>