Sophie

Sophie

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

Macaulay2-1.3.1-8.fc15.i686.rpm

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

i1 : R = QQ[x,y];

i2 : (q,r) = quotientRemainder(x^10+5,x-2);

i3 : q

      9     8     7     6      5      4      3       2
o3 = x  + 2x  + 4x  + 8x  + 16x  + 32x  + 64x  + 128x  + 256x + 512

o3 : R

i4 : r

o4 = 1029

o4 : R

i5 : q*(x-2)+r

      10
o5 = x   + 5

o5 : R

i6 :