1 | initial version |
I tink that this is along the lines provided by FrédéricC :
sage: RR.<x,y>=PolynomialRing(QQ) ## R has some use already
sage: J=RR.ideal([x^2-y^2]) ## Similarly, I has an interesting use
sage: [J.random_element(u) for u in (1..5)]
[0,
-1/2*x^2 + 1/2*y^2,
-1/39*x^3 - 2/3*x^2*y + 1/39*x*y^2 + 2/3*y^3,
-x^3*y + x*y^3 - x^3 + x*y^2 + x^2 - y^2,
HTH,
2 | No.2 Revision |
I tink that this is along the lines provided by FrédéricC :
sage: RR.<x,y>=PolynomialRing(QQ) ## R has some use already
sage: J=RR.ideal([x^2-y^2]) ## Similarly, I has an interesting use
sage: [J.random_element(u) for u in (1..5)]
[0,
-1/2*x^2 + 1/2*y^2,
-1/39*x^3 - 2/3*x^2*y + 1/39*x*y^2 + 2/3*y^3,
-x^3*y + x*y^3 - x^3 + x*y^2 + x^2 - y^2,
-4*x^2*y^3 + 4*y^5 + x^3 + 7/4*x^2*y - x*y^2 - 7/4*y^3 - x^2 + y^2]
HTH,