Everything2
Near Matches
Ignore Exact
Full Text
Everything2

NAND

"NAND" is also a: user

created by ston

(thing) by 0x45 (3.8 mon) (print)   ?   I like it! Thu Apr 05 2001 at 3:58:08

Truth table for two input NAND:


 A | B | (A*B)'
---------------
0 | 0 | 1
0 | 1 | 1
1 | 0 | 1
1 | 1 | 0


(thing) by jesler (3.9 y) (print)   ?   I like it! Mon Aug 20 2001 at 15:10:59

As earthquake says above, all boolean expressions can be implemented with the nand function alone. The following should help illustrate this concept. The nand function is indicated by the | character, often called the Sheffer stroke.

Consider A|A
  A    A|A
 ----------
  T     F
  F     T
Thus, A|A is equivalent to ¬A.

Now to find the ∧ (and) function
  A     B     A|B    (A|B)|(A|B)
 --------------------------------
  F     F      T          F   
  F     T      T          F
  T     F      T          F
  T     T      F          T
So we have (A|B)|(A|B) equivalent to A ∧ B (A and B)


From this point, we can achieve the disjunction (or) function as A∨B is equivalent to ¬(¬A∧¬B).
Therefore, A∨B can be represented in nand terms as
((A|A)|(B|B))|((A|A)|(B|B))|((A|A)|(B|B))|((A|A)|(B|B))

Simple!

Furthermore,
A→B (if A then B) is equivalent to
((A|(B|B))|(A|(B|B)))|((A|(B|B))|(A|(B|B)))

If you don't have a headache yet,
A↔B (A if and only if B) is equivalent to
(((A|B)|(A|B))|(((A|B)|(A|B))|((A|B)|(A|B)))))|(((A|B)|(A|B))|(((A|B)|(A|B))|((A|B)|(A|B))))) | ((((A|B)|(A|B))|(((A|B)|(A|B))|((A|B)|(A|B))))|(((A|B)|(A|B))|(((A|B)|(A|B))|((A|B)|(A|B)))))

Sorry if i made a mistake in that last one, but i applaud you for picking it out.

printable version
chaos

How an S-R latch can destroy the universe Table of 16 logic functions XNOR nor
logical operators XOR World's most flexible programming language flip-flop
dynamic logic Curl Truth table Digital circuit component
R-C circuit Pass transistor Everything logic symbols Schmitt trigger
Everything University rod logic SR Latch boolean
propositional calculus The twelve words of power clockless computing if and only if
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Drink up!
Harold and Maude
Closer
Bigfoot
Lexical Analyzer
miai
Robert Johnson
Dead people I have known
Aqua Teen Hunger Force
i had a dream about the future
Igor Stravinsky
White space
steganography
community supported agriculture
New Writeups
choirotey
Violent pickup lines(idea)
Ouzo
Blue Ovaries, Grrrrrrwl(log)
uncljoedoc
explanation(person)
Noung
One no longer loves one's insight when one communicates it(idea)
AspieDad
Pornology(essay)
nailbiter
Nicole duFresne(person)
Simulacron3
stigmergy(idea)
nakusavi
Yesterday I learned how to kiss(idea)
aneurin
UK Local Elections 2008(event)
Phyrkrakr
Kansas City Royals(thing)
niruena
Amalric of Bena(person)
niruena
Third Crusade(event)
Ariloulaleelay
I am a female android(personal)
csmith1492
Sublime Optimism(person)
etouffee
A tentative laugh, she expected to be interrupted(poetry)
This page courtesy of The Everything Development Company