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
What you are reading:
The Bloody Code
Oxford English Dictionary
Anonymous honesty may destroy me.
The next revolution in music has not yet arrived
Can we cure AIDS?
Gone to Hell to fight the Devil
Hausdorff distance
RumourQuest 2006
ApoxyButt's Guide to Successful Boating
Falling in love with your best friend
punctuation
Mulholland Drive
spleen
New Writeups
allthetime
Apple Cinnamon Suicide(idea)
Lucy-S
shovelglove(idea)
Adaptive Child
Mexican secret sauce(recipe)
Adaptive Child
nacho libre(recipe)
TheLady
Iron Man(review)
Scaevola
Risk in the Roman law of sale(idea)
semicolon
overheard at IHOP(event)
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)
E2 is a by-product of the existence of The Everything Development Company