Hi Bruce, On Thu, Sep 02, 2010 at 03:33:21AM -0700, Bruce wrote: > I am trying to construct the fee module on the set of instances of a > class G. > I start with > > M = CombinatorialFreeModule(QQ,G) > > If f,g are instances of G I then continue with > > a = M.monomial(f) > b = M.monomial(g) > > and I can then form a+a , a+b etc. and a - a is indeed 0. > > However if I try 2*a I get a TypeError > > If I try > > M = CombinatorialFreeModule(QQ,NonNegativeIntegers()) > > a = M.monomial(3) > > then 2*a seems to work fine. > > Can anyone tell me what I am doing wrong and/or explain this?
I'm in a hurry. so this is only a very short answer. It is maybe a bug but in the usual usage in > M = CombinatorialFreeModule(QQ,G) G is supposed to be an Parent (mathematical object) and ont a class (python stuff). I'm not sure if this is enforced or not. Cheers, Florent -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
