CoCalc Public Filestmp / 2015-10-09-093108.ipynbOpen in with one click!
Authors: Harald Schilly, ℏal Snyder, William A. Stein
In [2]:
VERSION
v"0.4.0"

FIRST -- you must install Nemo yourself into your project as explained here using a terminal (takes 15 minutes?): http://nemocas.org/downloads.html

In [4]:
using Nemo
INFO: Precompiling module Nemo...
Welcome to Nemo version 0.3.1 Nemo comes with absolutely no warranty whatsoever
In [7]:
R, x = PolynomialRing(ZZ , "x") S, y = PolynomialRing(R, "y") f = (x^2 + 2x + 1)*y^3 + (x - 1)*y + 4x - 1
(x^2+2*x+1)*y^3+(x-1)*y+(4*x-1)
In [8]:
f^2
(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 [ ]: