Pages

Saturday, June 30, 2007

Macaulay 2

Today I installed Macaulay 2, 'software system devoted to supporting research in algebraic geometry and commutative algebra'.

Example 1: calculate (x+y)^2 in the polynomial ring Z[x,y].

i107 : R=ZZ[x,y]
o107 = R
o107 : PolynomialRing
i108 : (x+y)^2
2 2
o108 = x + 2x*y + y
o108 : R

Example 2: calculate (x+y)^2 in the polynomial ring Z/2[x,y].

i111 : R=ZZ/2[x,y]
o111 = R
o111 : PolynomialRing
i112 : (x+y)^2
2 2
o112 = x + y
o112 : R

No comments:

Post a Comment