My t2 branch has a gcdfactor method for matrices that can remove any gcd's from terms if that would be helpful:
This is in commit 1811 and 1811b +def test_gcdfactor(): + from sympy.abc import a, b, c, x + m=Matrix(((a/x, b/x), (1/x, c/x))) + assert m.gcdfactor() == 1/x + assert m == Matrix(((a, b), (1, c))) + assert m.gcdfactor() == 1 /c -- 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.