SlideShare une entreprise Scribd logo
1  sur  6
Truth Table
1
WHAT IS TRUTH TABLE
A truth table specifies the truth value of a compound proposition for all possible
truth values of its constituent proposition.
A convenient method for analyzing a compound statement is to make a truth table
to it
NEGATION (~)
 If p=statement variable, then negation of ‘p’ “NOT p”, is denoted by “~p”
 If p is true, ~p is false
 If p is false ~p is true
TRUTH TABLE FOR ~P
CONJUNCTION (^)
 If p and q is statement then conjunction is “p and q”
 Denoted by “p ^q”
 If p and q are true then true
 If both or either false then False
Truth Table
2
P ^q
DISJUNCTION (v)
 If P and q is statement then “p or q”
 Denoted by “p v q”
 If both are false then false
 If both or either is true then true
P v q
Truth Table for this statement ~p^ q
Truth Table
3
Truth Table for ~p^ (q v ~r)
Truth table for (p v q) ^ ~ (p ^q)
Double negation property ~ (~p) =p
So it is clear that “p” and double negation of “p” is equal.
Truth Table
4
Example
English to symbolic
P= I am Ali
~p= I am not Ali
~ (~p) = I am Ali
So it is clear that double negation of “p”is also equal to “p”.
~ (p ^q) & ~p ^~q are not logically Equivalent.
So it is clear that “~ (p ^q) & ~p ^~q” are not equal
De Morgan’s Law
1. The negation of “AND” statement is logically equivalent to the “OR”statement
in which each component is negated.
Symbolically ~ (p ^q) = ~p v ~q
P q P ^q ~(p ^q) ~p ~q ~p v ~q
T T T F F F F
T F F T F T T
F T F T T F T
F F F T T T T
So it is clear that ~ (p ^q) = ~p v ~q are logically equivalent
Truth Table
5
2. The negation of “OR”statement is logically equivalent to the “AND” statement
in which componentis negated.
Symbolically ~ (p v q) = ~p ^ ~q
So it is clear that ~ (p v q) = ~p ^ ~q is Equal.
Application
Negation for each of the following:
a. The fan is slow ‘OR’ it is very hot
b. Ali is fit ‘OR’ Akram is injured.
Solution:
a. The fan is not slow “AND” it is not very hot
b. Ali is not fit “AND” Akram is not injured
Truth Table
6
Inequalities and Demorganes laws
1. (p ^q) ^ r = P^(q ^ r)
p q r (p ^q) (q ^r) (p ^q)^r P^(q ^r)
T T T T T T T
T T F T F F F
T F T F F F F
T F F F F F F
F T T F T F F
F T F F F F F
F F T F F F F
F F F F F F F
So it clears that Colum 6 and Colum 7 are equal
2. (P ^q) v r = p ^ (q v r)?????
P q r (p ^q) (q v r) (p ^q) v r P ^(q v r)
T T T T T T T
T T F T T T T
T F T F T T T
T F F F F F F
F T T F T T F
F T F F T F F
F F T F T T F
F F F F F F F
So it clear that Colum 6 and Colum 7 are not equal.

Contenu connexe

Tendances

Truth tables
Truth tablesTruth tables
Truth tables
walkerlj
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
BindhuBhargaviTalasi
 
Cursor implementation
Cursor implementationCursor implementation
Cursor implementation
vicky201
 
Lesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionLesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And Regression
Sumit Prajapati
 

Tendances (20)

Truth table
Truth tableTruth table
Truth table
 
Truth tables
Truth tablesTruth tables
Truth tables
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
CMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional LogicCMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional Logic
 
Data structure chapter-1-proofs
Data structure chapter-1-proofsData structure chapter-1-proofs
Data structure chapter-1-proofs
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
 
Fundamentals of logic 1
Fundamentals of logic   1Fundamentals of logic   1
Fundamentals of logic 1
 
Discrete mathematics OR Structure
Discrete mathematics OR Structure Discrete mathematics OR Structure
Discrete mathematics OR Structure
 
Truth table
Truth tableTruth table
Truth table
 
Formal Logic - Lesson 7 - Rules of Inference
Formal Logic - Lesson 7 - Rules of InferenceFormal Logic - Lesson 7 - Rules of Inference
Formal Logic - Lesson 7 - Rules of Inference
 
Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)
 
Cursor implementation
Cursor implementationCursor implementation
Cursor implementation
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 
Quartile (ungrouped)
Quartile (ungrouped)Quartile (ungrouped)
Quartile (ungrouped)
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Geometry unit 2.2
Geometry unit 2.2Geometry unit 2.2
Geometry unit 2.2
 
Lesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionLesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And Regression
 

Similaire à Truth table a.r

Assignement of discrete mathematics
Assignement of discrete mathematicsAssignement of discrete mathematics
Assignement of discrete mathematics
Syed Umair
 
Assignement of discrete mathematics
Assignement of discrete mathematicsAssignement of discrete mathematics
Assignement of discrete mathematics
Syed Umair
 
Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statements
guestd166eb5
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
taimoor iftikhar
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
PradeeshSAI
 

Similaire à Truth table a.r (20)

Assignement of discrete mathematics
Assignement of discrete mathematicsAssignement of discrete mathematics
Assignement of discrete mathematics
 
Assignement of discrete mathematics
Assignement of discrete mathematicsAssignement of discrete mathematics
Assignement of discrete mathematics
 
Discreate Truth tables and laws of logic
Discreate Truth tables and laws of logicDiscreate Truth tables and laws of logic
Discreate Truth tables and laws of logic
 
Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statements
 
Discrete math Truth Table
Discrete math Truth TableDiscrete math Truth Table
Discrete math Truth Table
 
null-12.pdf
null-12.pdfnull-12.pdf
null-12.pdf
 
null-12.pdf
null-12.pdfnull-12.pdf
null-12.pdf
 
Bab 1 proposisi
Bab 1 proposisiBab 1 proposisi
Bab 1 proposisi
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
 
Computer Organization and Assembly Language
Computer Organization and Assembly LanguageComputer Organization and Assembly Language
Computer Organization and Assembly Language
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
 
Logic - Logical Propositions
Logic - Logical Propositions Logic - Logical Propositions
Logic - Logical Propositions
 
LOGIC
LOGICLOGIC
LOGIC
 
Logic&proof
Logic&proofLogic&proof
Logic&proof
 
Per3 logika&pembuktian
Per3 logika&pembuktianPer3 logika&pembuktian
Per3 logika&pembuktian
 
Logic worksheet
Logic worksheetLogic worksheet
Logic worksheet
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
 
4 ch 2 logical reasoning
4 ch 2 logical reasoning4 ch 2 logical reasoning
4 ch 2 logical reasoning
 
Truth table analysis
Truth table analysisTruth table analysis
Truth table analysis
 
Nature of Logic.pptx
Nature of Logic.pptxNature of Logic.pptx
Nature of Logic.pptx
 

Plus de Syed Umair (20)

Assignement code
Assignement codeAssignement code
Assignement code
 
Tree 4
Tree 4Tree 4
Tree 4
 
Title page
Title pageTitle page
Title page
 
S.k
S.kS.k
S.k
 
Q.a
Q.aQ.a
Q.a
 
Prog
ProgProg
Prog
 
Perception
PerceptionPerception
Perception
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word document
 
New microsoft office word document (2)
New microsoft office word document (2)New microsoft office word document (2)
New microsoft office word document (2)
 
M.b
M.bM.b
M.b
 
C++ 4
C++ 4C++ 4
C++ 4
 
B.g
B.gB.g
B.g
 
Assignement of programming & problem solving
Assignement of programming & problem solvingAssignement of programming & problem solving
Assignement of programming & problem solving
 
A.i
A.iA.i
A.i
 
H m
H mH m
H m
 
Prog
ProgProg
Prog
 
Assignment c++12
Assignment c++12Assignment c++12
Assignment c++12
 
Assignement c++
Assignement c++Assignement c++
Assignement c++
 
Static keyword u.s ass.(2)
Static keyword u.s ass.(2)Static keyword u.s ass.(2)
Static keyword u.s ass.(2)
 
Static keyword a.z
Static keyword a.zStatic keyword a.z
Static keyword a.z
 

Dernier

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Dernier (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 

Truth table a.r

  • 1. Truth Table 1 WHAT IS TRUTH TABLE A truth table specifies the truth value of a compound proposition for all possible truth values of its constituent proposition. A convenient method for analyzing a compound statement is to make a truth table to it NEGATION (~)  If p=statement variable, then negation of ‘p’ “NOT p”, is denoted by “~p”  If p is true, ~p is false  If p is false ~p is true TRUTH TABLE FOR ~P CONJUNCTION (^)  If p and q is statement then conjunction is “p and q”  Denoted by “p ^q”  If p and q are true then true  If both or either false then False
  • 2. Truth Table 2 P ^q DISJUNCTION (v)  If P and q is statement then “p or q”  Denoted by “p v q”  If both are false then false  If both or either is true then true P v q Truth Table for this statement ~p^ q
  • 3. Truth Table 3 Truth Table for ~p^ (q v ~r) Truth table for (p v q) ^ ~ (p ^q) Double negation property ~ (~p) =p So it is clear that “p” and double negation of “p” is equal.
  • 4. Truth Table 4 Example English to symbolic P= I am Ali ~p= I am not Ali ~ (~p) = I am Ali So it is clear that double negation of “p”is also equal to “p”. ~ (p ^q) & ~p ^~q are not logically Equivalent. So it is clear that “~ (p ^q) & ~p ^~q” are not equal De Morgan’s Law 1. The negation of “AND” statement is logically equivalent to the “OR”statement in which each component is negated. Symbolically ~ (p ^q) = ~p v ~q P q P ^q ~(p ^q) ~p ~q ~p v ~q T T T F F F F T F F T F T T F T F T T F T F F F T T T T So it is clear that ~ (p ^q) = ~p v ~q are logically equivalent
  • 5. Truth Table 5 2. The negation of “OR”statement is logically equivalent to the “AND” statement in which componentis negated. Symbolically ~ (p v q) = ~p ^ ~q So it is clear that ~ (p v q) = ~p ^ ~q is Equal. Application Negation for each of the following: a. The fan is slow ‘OR’ it is very hot b. Ali is fit ‘OR’ Akram is injured. Solution: a. The fan is not slow “AND” it is not very hot b. Ali is not fit “AND” Akram is not injured
  • 6. Truth Table 6 Inequalities and Demorganes laws 1. (p ^q) ^ r = P^(q ^ r) p q r (p ^q) (q ^r) (p ^q)^r P^(q ^r) T T T T T T T T T F T F F F T F T F F F F T F F F F F F F T T F T F F F T F F F F F F F T F F F F F F F F F F F So it clears that Colum 6 and Colum 7 are equal 2. (P ^q) v r = p ^ (q v r)????? P q r (p ^q) (q v r) (p ^q) v r P ^(q v r) T T T T T T T T T F T T T T T F T F T T T T F F F F F F F T T F T T F F T F F T F F F F T F T T F F F F F F F F So it clear that Colum 6 and Colum 7 are not equal.