Is ncmul depreciated?

Christian Bauer cbauer at
Sun Apr 8 23:23:21 CEST 2001


On Sun, Apr 08, 2001 at 06:21:50PM +0200, Pearu Peterson wrote:
> I have noticed that
>   ncmul(2,a,3)
> results
>   mul(a,6).
> Why is this type change ncmul -> mul?

Because all factors are commutative. An ncmul() will automatically separate
the commutative factors and group the non-commutative ones by type.
Non-commutativity in GiNaC is a property of the objects. You can try it with
matrices or (if you're using the CVS version) with color and clifford

> Will ncmul be depreciated in future?

NO WAY! It is fully operational and works better than ever before. :-)
(now that '*' automatically generates ncmul()s when necessary)


  / Coding on PowerPC and proud of it
To UNSUBSCRIBE, email to ginac-list at with a subject of "unsubscribe".

More information about the GiNaC-list mailing list