Daniel Krenn wrote:

> I want to solve polynomial equations and in order
> to do so, I do something like: 
>     sage: R.<x,y> = PolynomialRing(QQ, order='lex') 
>     sage: I = R.ideal([x*y-1, x^2-y^2]) 
>     sage: I.groebner_basis() 
>     [x - y^3, y^4 - 1] 

and then wrote:

> Meanwhile, I found, which seems to do what I want: 
>
>     sage: I.variety() 
>     [{y: -1, x: -1}, {y: 1, x: 1}] 
>     sage: I.variety(ring=QQbar) 
>     [{y: -1, x: -1}, {y: -1*I, x: 1*I}, {y: 1*I, x: -1*I}, {y: 1, x: 1}] 
>     sage: I.variety(ring=ZZ) 
>     [{y: -1, x: -1}, {y: 1, x: 1}] 

On a related note, see the following at ask-sage:

http://ask.sagemath.org/question/8224/system-of-nonlinear-equations/
http://ask.sagemath.org/question/11070/find-algebraic-solutions-to-system-of-polynomial-equations/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to