Sophie

Sophie

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

Macaulay2-1.3.1-8.fc15.i686.rpm

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

i1 : h = new MutableHashTable from {}

o1 = MutableHashTable{}

o1 : MutableHashTable

i2 : straighten({{3,4}, {1,2}}, h)

i3 : h#{{3,4}, {1,2}} -- get the coefficients

o3 = HashTable{{{1, 2}, {3, 4}} => 1}

o3 : HashTable

i4 : straighten({{3,4}, {1,2}}) -- just get the answer instead

o4 = HashTable{{{1, 2}, {3, 4}} => 1}

o4 : HashTable

i5 :