TOPICS
Search

NAND


NANDGate

NAND, also known as the Sheffer stroke, is a connective in logic equivalent to the composition NOT AND that yields true if any condition is false, and false if all conditions are true. A NAND B is equivalent to !(A ^ B), where !A denotes NOT and  ^ denotes AND. In propositional calculus, the term alternative denial is used to refer to the NAND connective. Notations for NAND include A nand B and A|B (Mendelson 1997, p. 26). The NAND operation is implemented as Nand[A, B, ...]. The circuit diagram symbol for a NAND gate is illustrated above.

The NAND binary operator has the following truth table (Mendelson 1997, p. 27).

ABA nand B
TTF
TFT
FTT
FFT

NAND gates implement the NAND operation in digital circuits. Sheffer (1913) gave an axiom system for Boolean algebra based on a single binary operator. Whitehead and Russell (1927) used NAND as a foundation for propositional calculus.

The dual operation to NAND is NOR, also called Peirce's arrow (Zach 2016). Complementing both inputs and the output of NOR gives NAND,

 A nand B=!((!A) nor (!B)).
(1)

The two operations have different truth tables, but each is functionally complete. In particular, NOT, AND, and OR can all be expressed using only NAND,

!A=A nand A
(2)
A ^ B=(A nand B) nand (A nand B)
(3)
A v B=(A nand A) nand (B nand B).
(4)

Consequently, every Boolean function of one or more variables can be expressed using only NAND.

The EML operator gives an analogous single binary operation for constructing a specified scientific-calculator basis of elementary functions and operations.


See also

AND, Binary Operator, Connective, EML Operator, Functional Completeness, Intersection, NOR, NOT, OR, Truth Table, XNOR, XOR

Explore with Wolfram|Alpha

References

Mendelson, E. Introduction to Mathematical Logic, 4th ed. London, England: Chapman & Hall, 1997.Open Logic Project. "Functional Completeness." Ch. 46 in forall x: Calgary. https://forallx.openlogicproject.org/bookml/Ch46.html.Sheffer, H. M. "A Set of Five Independent Postulates for Boolean Algebras, with Application to Logical Constants." Trans. Amer. Math. Soc. 14, 481-488, 1913. https://doi.org/10.2307/1988701.Simpson, R. E. "The NAND Gate." §12.5.5 in Introductory Electronics for Scientists and Engineers, 2nd ed. Boston, MA: Allyn and Bacon, pp. 548-550, 1987.Whitehead, A. N. and Russell, B. Principia Mathematica. New York: Cambridge University Press, 1927.Zach, R. "Natural Deduction for the Sheffer Stroke and Peirce's Arrow (And Any Other Truth-Functional Connective)." J. Philos. Logic 45, 183-197, 2016. https://doi.org/10.1007/s10992-015-9370-x.

Referenced on Wolfram|Alpha

NAND

Cite this as:

Weisstein, Eric W. "NAND." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/NAND.html

Subject classifications