You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run sympy.logic.boolalg.to_dnf(expr, simplify=True) to get the simplest dnf formula for expr. However, the documentation does not tell in which sense is the resulting formula minimal. There are more conceivable minimization criteria which may yield different results, e.g.
simply the total number of literals (not preferable for me)
the total number of literals when the number of terms is minimized first
the maximal number of literals in a term when the number of terms is minimized first
I would like to know and the documentation should be updated.
The text was updated successfully, but these errors were encountered:
simplify_logic uses SOPform and POSform that returns the smallest two-level And-Or or Or-And expression. With smallest meaning minimum number of terms, where each term has as few terms as possible. Quine-McCluskey/Karnaughmap style.
I run
sympy.logic.boolalg.to_dnf(expr, simplify=True)
to get the simplest dnf formula for expr. However, the documentation does not tell in which sense is the resulting formula minimal. There are more conceivable minimization criteria which may yield different results, e.g.I would like to know and the documentation should be updated.
The text was updated successfully, but these errors were encountered: