On Mon, Jun 25, 2012 at 3:50 PM, [email protected]
<[email protected]> wrote:
>> 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?

No, it doesn't.

That was illustrative, I have rethought my understanding of what a
SymPy expression is, thank you.

Sergiu

-- 
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