>>> eq
B*A*((d + 1)*A*B + B*A)^-1
>>> eq.atoms(type(eq))
set([B*A, (d + 1)*A*B, B*A*((d + 1)*A*B + B*A)^-1])
>>> eq.count(MatAdd)
1
>>> eq.count(Add)
1
>>> eq.count(MatMul)
3

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to