Everything2
Near Matches
Ignore Exact
Full Text
Everything2

NAND

"NAND" is also a: user

created by ston

(thing) by 0x45 (6.3 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 (4.1 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
Look at this mess the Death Borg made!
With all the advances in technology it still takes 3 days to clear a cheque
Dwight D. Eisenhower
Forgotten things in space
Great Depression
Playfair Cipher
Manfred von Richthofen
fake plastic anything
Abu Ghraib Prison abuse scandal
Food in the Middle Ages
We are using the machines to steal it all back again
The Grand Inquisitor
The Rise of Christianity
Charles Dickens
New Writeups
antigravpussy
One fly amonst many(person)
sam512
Moon Base Shackleton, 1978(fiction)
Pavlovna
toy boy(person)
XWiz
tear jerker(review)
Heitah
Anarchy is Order(idea)
jessicaj
July 26, 2008(dream)
Berek
ABBA(person)
devolution
k-hole(place)
Nadine_2
The Sound Of Madness(review)
Twin Eclipse
Conversations with God: An Uncommon Dialogue(idea)
SwimmingMonkey
Conversations with Fo Fo- the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
E2 is a by-product of the existence of The Everything Development Company