• Tidak ada hasil yang ditemukan

Q

N/A
N/A
Protected

Academic year: 2024

Membagikan "Q"

Copied!
10
0
0

Teks penuh

(1)

1

Statements and Operations

Statements and operators can be combined in any way to form new statements.

P Q P  Q  (P  Q) (  P)  (  Q)

T T T F F

T F F T T

F T F T T

F F F T T

(2)

2

Exercises

• To take discrete mathematics, you must have taken calculus or a course in computer science.

• When you buy a new car from Toyota Motor Company, you get SAR2000 back in cash or a 2% car loan.

• School is closed if more than 2 feet of snow falls or if the wind chill is below -100.

(3)

3

Exercises

P: take discrete mathematics Q: take calculus

R: take a course in computer science

• P  Q  R

• Problem with proposition R

– What if I want to represent “take COSC 222”?

• To take discrete mathematics, you must have taken calculus or a course in computer science.

(4)

Exercises

– P: buy a car from Toyota Motor Company – Q: get SAR2000 cash back

– R: get a 2% car loan

• P  Q  R

• Why use XOR here? – example of ambiguity of natural languages

• When you buy a new car from Toyota Motor Company, you get SAR2000 back in cash or a 2% car loan.

(5)

Exercises

P: School is closed

Q: 2 meters of snow falls R: wind chill is below -100

• Q  R  P

• Precedence among operators:

, , , ,

• School is closed if more than 2 meters of snow falls or if the wind chill is below -100.

(6)

Compound Statement

Example

(7)

If p=>q is an implication, then its converse is the implication q => p and its contrapositive is the implication ~ q => ~p

E.g.

Give the converse and the contrapositive of the implication “If it is raining, then I get wet”

Converse: If I get wet, then It is raining.

Contrapositive: If I do not get wet, then It is not raining.

Converse and Contrapositive

7

(8)

Equivalent Statements

P Q (PQ) (P)(Q) (PQ)(P)(Q)

T T F F T

T F T T T

F T T T T

F F T T T

The statements (PQ) and (P)  (Q) are logically equivalent, since they have the same truth table, or put

it in another way, (PQ) (P)  (Q) is always true.

(9)

9

Tautologies and Contradictions

A tautology is a statement that is always true.

Examples:

– R(R)

– (PQ)  (P)( Q)

A contradiction or Absurdity. is a statement that is always false.

Examples:

– R(R)

– ((P  Q)  (P)  (Q))

The negation of any tautology is a contradiction, and the negation of any contradiction is a tautology.

(10)

A statement that can be either true or false, depending on the truth values of its

propositional variables, is called a contingency . Example

The statement (p q) (p q) is a Contingency ⇒ ∧ ∨

Contingency

Referensi

Dokumen terkait

The Boolean type bool has two values, false and

Statement b is true; a decline in depreciation and amortization expenses would increase net income but decrease net cash flow.. Statement c is false; since a decline in operating

Membentuk kalimat deklaratif~yaitu kalimat yang dapat ditentukan nilai kebenarannya (truth value), true atau false tetapi tidak..

Directions summarised First statement Second statement A True True Second statement is a correct explanation of the first B True True Second statement is NOT a correct explanation

A statement either in the Bidder's statement of compliance or the supporting evidence that is found to be false either during Bid evaluation, post-qualification or the execution of

Statement B Aroha and Avaroha of Bhupali have ln the light of the above statements, choose the options given below: a Statement A is false, but Statement B is true.. correct answer

ln the light of the above statements, choose the correct answer from the options given below: a Statement A is true, but Statement B is false... Raqas havinq Shuddha Re and Shuddha Dha

Question 8 A rational number with an infinite binary expansion can have a finite decimal expansion.. True False True False True