Logic Practical
Logic Practical
Logic
Let us Recall
T h e converse, inverse and contrapositive of the implication p>q are:
Converse
Inverse
Contrapositive: ~ q P
and quantilied Statements Look at the following
Quantifiers
statements:
P:There exists an even prime number in the set of natural numbers"
: "All natural numbers are positive".
Each of them asserts a condition for some or all objects in a collection.
Words "there exists" and "for all" are called quantifiers. "There exists"
is called existential quantifier and is denoted by symbol a "For all" is
called universal quantifier and is denoted by v. Statements involving
Every quantified statement
quantifiers are called quantified statements.
even prime'.
What is the condition in the statement q ?
A statement quantified by universal quantifier v is true if all objects
in the collection satisfy the condition. And it is false if at least one
.Complemernt..law.
dentity.. Llau.
(.Associafive..law........)
dempotent.. law..
..Conditional.law.
L. H. S. = R. H. S.
( p )PAn9)V (RAnp)....
Ex. (5) Is -(pq) equivalent to ( p)eq ? Justify.
.. . E.
Dom..Calumn..no. I.andy..ue..oncude..
that.lpq=laup)2..
EX. (6) Draw the switching circuits and prepare the input output tables
for statement patterns
a) (png)v(- pa~g) b) (pvg)n-
Solution :elet.p..suwidch..S,.is.closed
S1 Sa
.9.s.closed....
up.Suurth.sis.closed Si
ug.Suitch.Sis.closed
p Pnq.ap.uq..poqlvlppAaig).
dplivq
.. O..O... . . .
.. .a. .O.......O.... .
.0... . .. . . .
...
........L .. .
quqPq.pvaang.
...
S2
... .0......
..O...O.. . .0 ****
F TF F
...E..
Sign of Teacher: