Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 2951

Macaulay2-1.3.1-8.fc15.i686.rpm

-- -*- M2-comint -*- {* hash: -1409383033 *}

i1 : R = ZZ[x,y];

i2 : S = ZZ[a,b,c];

i3 : f = map(R,S,{x^2,x*y,y^2})

               2        2
o3 = map(R,S,{x , x*y, y })

o3 : RingMap R <--- S

i4 : f(a+b+c^2)

      4    2
o4 = y  + x  + x*y

o4 : R

i5 : g = map(R,S,{a=>x^2,b=>x*y,c=>y^2})

               2        2
o5 = map(R,S,{x , x*y, y })

o5 : RingMap R <--- S

i6 : g(a+b+c^2)

      4    2
o6 = y  + x  + x*y

o6 : R

i7 :