Skip to content

Commit

Permalink
NotImplementedError for nonliteral BooleanFunction.equals
Browse files Browse the repository at this point in the history
  • Loading branch information
smichr authored Dec 4, 2024
1 parent 05804c9 commit e5cb369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sympy/logic/boolalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def equals(self, other):
from sympy.logic.inference import satisfiable
from sympy.core.relational import Relational

if self.has(Relational) or other.has(Relational):
raise NotImplementedError('handling of relationals')
if not all(is_literal(i) for i in (self, other)):
raise NotImplementedError('non-literal BooleanFunction')
more = self.atoms()
less = other.atoms()
if len(more) < len(less):
Expand Down

0 comments on commit e5cb369

Please sign in to comment.