Another failing doctest from Judson's abstract algebra text.  How does one 
now make elements of the lattice of integer decompositions?

sage: CP = Posets.IntegerCompositions(5)
sage: C = LatticePoset(CP)
sage: elts = list(C); elts
[[5], [1, 4], [4, 1], [1, 3, 1], [3, 2], [1, 2, 2], [3, 1, 1],
[1, 2, 1, 1], [2, 3], [2, 1, 2], [2, 2, 1], [2, 1, 1, 1],
[1, 1, 3], [1, 1, 1, 2], [1, 1, 2, 1], [1, 1, 1, 1, 1]]

sage: C([1,4])
...
TypeError: unhashable type: 'list'

sage: C((1,4))
...
ValueError: <type 'tuple'> is not an element of this poset

This worked in 4.8:

sage: C.meet([1,1,1,2], [2,1,1,1])
[2, 1, 2]

And still works if you grab the elements from the list:

sage: a = elts[13]; b = elts[11]
sage: C.meet(a, b)
[2, 1, 2]

Thanks,
Rob

-- 
-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org



Reply via email to