logical operators in brief with examples

14

Click here to load reader

Upload: mujtaba-khan

Post on 11-Nov-2014

89 views

Category:

Business


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Logical Operators in Brief with examples

Types of Argument (Logical operators)

By:Mujtaba Khan

Page 2: Logical Operators in Brief with examples

Logical Operators

• In logic, a logical operators (also called a logical connectives) is a symbol or word used to connect two or more sentences in a grammatically valid way.

Page 3: Logical Operators in Brief with examples

Types of logical Operators

• Negation• Conjunctions• Disjunctions• Conditional• Bi-conditional

Page 4: Logical Operators in Brief with examples

Negation• Changing a statement so that it has the opposite meaning and truth values

• Also known as “Not”

• The symbol for negation is ‘~’

• Example:

P: There is snow on the ground

~P: There is not snow on the ground

Page 5: Logical Operators in Brief with examples

Truth Table for Negation

PTF

~PFT

Page 6: Logical Operators in Brief with examples

Conjunctions

• A proposition that presents two or more alternative terms, with the assertion that both are true.

• Also known as And.• symbol that we use is ‘^’ (Looks like an A

without the middle line – ).• Example:

– P: I found $5– Q: I crashed my car into a telephone pole– P^Q: I found $5 AND I crashed my car into a

telephone pole.

Page 7: Logical Operators in Brief with examples

Truth Table for “And”

• A conjunction is only true if all of the statements in it are true, otherwise it is false

P Q P^Q

T T T

T F F

F T F

F F F

Page 8: Logical Operators in Brief with examples

Disjunctions

• A proposition that presents two or more alternative terms, with the assertion that at least one is true.

• Also known as “Or”• symbol that we use is ‘V’• Example:– P: The number 3 is odd– Q: 57 is a prime number– PVQ:

The number 3 is odd OR 57 is a prime number.

Page 9: Logical Operators in Brief with examples

Truth Table for “Or”

• A disjunction is true if at least one of the statements in it are true, otherwise it is false.

P Q PVQ

T T T

T F T

F T T

F F F

Page 10: Logical Operators in Brief with examples

Conditionals

• An conditional is only false when the first statement is true and the second one is false, otherwise it is true.

• Also known as an “If-Then” Statement• An Conditional for statements P and Q is

denoted P=> Q• An Conditional is read either “If P, then Q”

or “P implies Q”• Example: If you brush every day, you

probably won’t get cavities or gum disease.

Page 11: Logical Operators in Brief with examples

Truth Table for “If-Then”

• An conditional is only false when the first statement is true and the second one is false, otherwise it is true.

P Q P=>Q

T T T

T F F

F T T

F F T

Page 12: Logical Operators in Brief with examples

Bi-conditional• Bi-conditionals are true when both

statements have the exact same truth value. 

• Also known as “ If and only If ”• An Biconditional for statement P and Q is

denoted by P<=> Q• An Bi-conditional is read “P if and only if

Q”• Example: The candidate becomes

president if and only if he wins the election

Page 13: Logical Operators in Brief with examples

Truth Tables for Biconditional

P Q P<=>Q

T T T

T F F

F T F

F F T

A Bi-conditional is only true when the truth values of ‘P’ and ‘Q’ are the same

Page 14: Logical Operators in Brief with examples

THANK YOU