Skip to content

Commit

Permalink
Revert "Have better simplification if consider whole matrix"
Browse files Browse the repository at this point in the history
This reverts commit 0de925d.
  • Loading branch information
mph- committed Nov 6, 2023
1 parent 415706e commit 03af488
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lcapy/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ def rewrite(self, *args, **hints):
def f(x): return expr(x).rewrite(*args, **hints).sympy
return self.applyfunc(f)

def simplify(self):

return self.applyfunc(simplify)

def subs(self, *args, **kwargs):
"""Substitute variables in expression, see sympy.subs for usage."""

Expand Down

0 comments on commit 03af488

Please sign in to comment.