Chalkboard - v3.0.1
    Preparing search index...

    Function primeImplicants

    • Calculates the prime implicants of a boolean expression using its Karnaugh map.

      Parameters

      • input: string

        The boolean expression

      • variables: string[]

        An array of variable names (order matters)

      Returns string[]

      const primes = Chalkboard.bool.primeImplicants("x & y | x & z", ["x", "y", "z"]); // Returns ["x & y", "x & z"]