From: Richard Kreckel Date: Tue, 24 Nov 2015 12:02:46 +0000 (+0100) Subject: Tutorial: how to create noncommutative symbols? X-Git-Tag: release_1-7-0~7^2~50 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=commitdiff_plain;h=dfaba64cff32f7dfdd96c1a96d1744ce6c1d80ad;p=ginac.git Tutorial: how to create noncommutative symbols? This seems to be frequently asked: --- diff --git a/doc/tutorial/ginac.texi b/doc/tutorial/ginac.texi index dbbf2359..1b8a1a6a 100644 --- a/doc/tutorial/ginac.texi +++ b/doc/tutorial/ginac.texi @@ -3033,6 +3033,8 @@ canonicalize themselves according to rules specified in the implementation of the non-commutative classes. The drawback is that to work with other than the built-in algebras you have to implement new classes yourself. Both symbols and user-defined functions can be specified as being non-commutative. +For symbols, this is done by subclassing class symbol; for functions, +by explicitly setting the return type (@pxref{Symbolic functions}). @cindex @code{return_type()} @cindex @code{return_type_tinfo()}