Yes, quite a few functions allow this. The two you mention require you
to implement _eval_simplify and _eval_trace methods, respectively.
Aaron Meurer
On Fri, Aug 30, 2013 at 2:33 AM, F. B. wrote:
> I am wondering whether it is possible to use standard SymPy functions like
> simplify( ) and trac
I am wondering whether it is possible to use standard SymPy functions like
simplify( ) and trace( ) on special objects, i.e. if an object can overload
the behavior of these functions when they are applied upon it.
For instance, gamma matrices in physics are special objects which may be in
some