Hi Florent

I am not sure if you mean it is a bug that a + b works or that 2*a
doesn't.

The documentation describes a Parent as a set. In these terms the
Parent
I want is the set of instances of the class G. I don't know how to
construct
this as a Parent or even if this is allowed.

On Sep 2, 12:49 pm, Florent Hivert <florent.hiv...@univ-rouen.fr>
wrote:
>       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 sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to