Sharedsupport / 2015-12-31-100817-nemo.htmlOpen in CoCalc
Examples for support purposes...
2015-12-31-100817-nemo
In [1]:
using Nemo
Welcome to Nemo version 0.4.0
In [6]:
R, x = PolynomialRing(ZZ, "x")
S, y = PolynomialRing(R, "y")
f = (x^2 + 2x + 1)*y^3 + (x - 1)*y + 4x - 1
Out[6]:
(x^2+2*x+1)*y^3+(x-1)*y+(4*x-1)
In [7]:
f^2
Out[7]:
(x^4+4*x^3+6*x^2+4*x+1)*y^6+(2*x^3+2*x^2-2*x-2)*y^4+(8*x^3+14*x^2+4*x-2)*y^3+(x^2-2*x+1)*y^2+(8*x^2-10*x+2)*y+(16*x^2-8*x+1)
In [ ]: