nc_simplify(expr) simplifies a noncommutative product by collecting
repeated subterms into powers and inverses, a*b*a*b*c becoming
(a*b)^2*c, as SymPy's nc_simplify(). It works on products of
noncommutative symbols and on matrix expressions.
nc_simplify(expr) simplifies a noncommutative product by collecting
repeated subterms into powers and inverses, a*b*a*b*c becoming
(a*b)^2*c, as SymPy's nc_simplify(). It works on products of
noncommutative symbols and on matrix expressions.