Hi,

I certainly think I should be able to simplify(m) for m a matrix type. As I 
use sympy I expect that all objects interact together naturally. I should 
be able to combine objects (as long as they make mathematical sense) and be 
able to use the same functions on all objects. It used to be that simplify 
wasn't built to deal very well with noncommutative symbols, so e.g. 
simplify(A*B - B*A) would return 0. Those were considered bugs and were 
eventually fixed. I think the same approach should be taken about 
simplifying matrices, any issue should be considered a bug and fixed. I 
stopped using Matrix and have since used ImmutableMatrix because I could 
use most regular sympy functions on it. By the way, I wish I could do 
factor(m), too. Although it doesn't do anything useful at the moment, we 
should improve upon it.

I think the inheritance on Expr ensures that a lot of functions such as 
simplify will work (possibly for free) or at least they won't error out. It 
doesn't bother me too much how it's implemented as long as it's not overly 
complicated and it works.

Regards,
Julien

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sympy/-/HIviU8ZZnjgJ.
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