Simple Logic Question of Converting or to and

  • Thread starter Hypnos_16
  • Start date
  • Tags Tags
    Logic
3 replies · 13K views · last reply
Hypnos_16
Messages
148
Reaction score
1
Simple Logic Question of Converting "or" to "and"

Homework Statement



As the title would have you believe it's really just a basic question.
I have to write (¬q <---> r) /\ (¬p \/ ¬r) ---> (p \/ ¬q) just using "¬'s" and "/\'s" i know how to change everything else, but i cannot, for the life of me remember the equivalent of (a \/ b) in terms of nots and and gates.

Homework Equations



n/a

The Attempt at a Solution



Someone please help,
 


I find it's useful to use a Karnaugh map in these cases, since it let's you spot the simplifications and the complements visually.

That being said, I also find it useful to remember that in digital circuits a NAND gate is equivalent to an OR gate with both inputs negated, and that a NOR gate is equivalent to an AND gate with both inputs negated. That is to say, simply move the 'NOT' circles from the front or back of the gate and change from AND or OR or vice-versa.

Four logic gate symbols in two rows: a NAND gate with an output bubble beside a gate with two input bubbles, linked by double arrows; a NOR gate with an output bubble beside a gate with two input bubbles, linked by double arrows.
 
Attachments
  • Four logic gate symbols in two rows, each joined by a double-headed arrow: a NAND gate with bubble output to an OR gate with two input bubbles, and a NOR gate to an AND gate with two input bubbles.
    Fig1.gif
    2.4 KB · Views: 2,375


But it simple terms of symbols like "∧ and" "¬ not." What would be an equivalent for "or?" The Question i was given is.

Rewrite the following formula using only ¬ and ∧ (that is, write an equivalent formula which does not have ∨,→,↔). Start by saying how you express (p∨q),(p→q)and(p↔q).

(¬q↔r)∧(¬p∨¬r)→(p∨¬q)

With that being the formula i need to convert. I just don't recall how exactly to change ∨ to something with ∧'s and ¬'s
 


Hypnos_16 said:
But it simple terms of symbols like "∧ and" "¬ not." What would be an equivalent for "or?" The Question i was given is.

Rewrite the following formula using only ¬ and ∧ (that is, write an equivalent formula which does not have ∨,→,↔). Start by saying how you express (p∨q),(p→q)and(p↔q).

(¬q↔r)∧(¬p∨¬r)→(p∨¬q)

With that being the formula i need to convert. I just don't recall how exactly to change ∨ to something with ∧'s and ¬'s

I suggested two tools that would allow you to "remember" how to convert ∨ expressions to ∧ expressions. Here they are converting A ∨ B to an equivalent using ∧:
Karnaugh map with columns B and not-B and rows A-or-B and not-A, a red loop around the 1 cells, plus OR-to-AND conversion diagrams for A OR B using NOR and NOT, and an AND gate with NOT-A and NOT-B inputs.
 
Attachments
  • Karnaugh map with columns B and not-B and rows A or B and not-A, cells 1, 0, 0, 1, with a red loop around the two 1-cells in the lower row, and two circuit diagrams: an OR gate for A and B converted to a NOR gate plus NOT, and to an AND gate with inverted inputs and output.
    Fig1.gif
    4.2 KB · Views: 2,332