Am 2014-08-29 um 21:25 schrieb Daniel Krenn:
> 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]

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}]

Daniel

-- 
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