Calculates the prime implicants of a boolean expression using its Karnaugh map.
const primes = Chalkboard.bool.primeImplicants("x & y | x & z", ["x", "y", "z"]); // Returns ["x & y", "x & z"] Copy
const primes = Chalkboard.bool.primeImplicants("x & y | x & z", ["x", "y", "z"]); // Returns ["x & y", "x & z"]
The boolean expression
An array of variable names (order matters)
Calculates the prime implicants of a boolean expression using its Karnaugh map.
Example