> How do you get Matrix => scalar? very_special_matrix**2 is equal to scalar*Identity. The scalar is (should be) factored out of the Trace.
>> points to consider: >> >> 1. I want to use only the following custom rule: >> very_special_matrix_a**2 -> scalar*Identity > Why is Trace not auto evaluated? I suppose you're creating it via > Basic__new__ rather than the Trace constructor? This is getting to the > issue that Ronan foresaw in the original pull request. Basic.__new__ > seemed ok to me, but only to create the original object. Using it to > create new objects instead of their constructors is a bad idea. The way that trace works is not based on canonicalization in the constructor (or at least when it is fixed it wont be) hence my disagreement with your comment and Ronan. -- 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.
