Base Calculator
+ -
Overflow
Boolean Simplification
F
Function Complement
Circuit Drawer
Σ Π
SOP / POS
K-Map Timing Diagram State to Circuit Counter RAM Digital Logic Design Simulator

Function Complement

Single-letter variables · OR: + or | · AND: implicit, * . or & · NOT: ' (after) or ! ~ (before) · XOR: ^ · XNOR: ⊙ or @ · constants 0 / 1 · brackets allowed · a leading "F(A,B) =" is optional
Working...

Two ways to complement a function

De Morgan's theorem. Write F' = (F)' and push the complement inward one law at a time: (X+Y)' = X'·Y' and (X·Y)' = X' + Y', cancelling double complements (X'' = X) as they appear.

Duality + complementing each literal. The complement of F is the dual of F (swap AND and OR, and swap 0 and 1) with every literal complemented: F'(x) = Fd(x'). Complemented groups, XOR and XNOR are first rewritten into plain AND/OR/literal form, because duality only applies to that form.

Both methods always give the same function.