> Hm, that sounds like a nice test, in general, thank you.  However, I'm
> not sure the class I am currently working on can be a part of an
> expression.
>
...
>
> Well, hopefully, the class I am talking about cannot really be made a
> part of an expression tree.

>From the documentation of your module:

>>> A = Object("A")
>>> B = Object("B")
>>> C = Object("C")
>>> f = NamedMorphism(A, B, "f")
>>> g = NamedMorphism(B, C, "g")
>>> d = Diagram([f, g])

f, g and d are already expression trees. Does f.subs(B, C) work?

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy?hl=en.

Reply via email to