expr3 = collect( expr2, M**(n+1), exact=True )
This doesn't work because it is M(2, 1)**(n+1) that is present in expr2,
and not M**(n+1). So you must use:
expr3 = collect( expr2, M(2, 1)**(n+1), exact=True)
Ųyvind
Thank you very much for your response, Ųyvind! That works well for me,
so once again, thank you!
Nicholas
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.