Everything2
Near Matches
Ignore Exact
Full Text
Everything2

NAND

"NAND" is also a: user

created by ston

(thing) by 0x45 (3.9 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
After stirring Everything, these nodes rose to the top:
I know how to bring a whiskey bottle pleasure with my touch
Hamlet
postmodernism
what all the kids are reading
An Artistic Analysis of 2001: A Space Odyssey
Roman Britain
Everything2 is in direct violation of US Patent No. 6,031,537
M&M's standard operating procedure for bored engineers
Cracker Jack
Yes! We have no bananas!
Severe acute respiratory syndrome
On being sane in insane places
Freedom of religion is not freedom from religion
New Writeups
rootbeer277
m&m's Ice Cream Treats(review)
Transitional Man
Gus's Chalet(review)
minnow
.410 bore(thing)
shaogo
Phonautogram(thing)
Morkel
Changing your sexuality(idea)
teleny
Baron Samedi(person)
Ouzo
The Great Barbershop Race Wars(log)
Mannerisky
second language(essay)
aneurin
British Monomarks(idea)
FrankThomas
How and why do we (humans) have culture?(essay)
lee_cad
Isaac(person)
kalen
downvota(poetry)
Andrew Aguecheek
Wstfgl(thing)
ncc05
overheard at IHOP(event)
calgon
Bottomless(poetry)
This affordable entertainment brought to you by The Everything Development Company