B. Write the following predicates symbolically and determine its truth value.
Note: Use at least three (3) values for the variables. (5 pts each)
1. for every real number x, if x>1 then x – 1 > 1
2. for some real number x, x2 ≤ 0
C. Translate the following English sentence into symbol. (3 pts each)
1. No one in this class is wearing pants and a guitarist.
Let:
Domain of x is all persons
A(x): x is wearing pants
B(x): x is a guitarist
C(x): belongs to the class
2. No one in this class is wearing pants and a guitarist.
Let:
Domain of x is persons in this class
A(x): x is wearing pants
B(x): x is a guitarist
3. There is a student at your school who knows C++ but who doesn’t
know Java.
Let:
Domain: all students at your school
C(x): x knows C++
J(x): x knows Java
B. Write the following predicates symbolically and determine its truth value.
Note: Use at least three (3) values for the variables. (5 pts each)
1. for every real number x, if x>1 then x – 1 > 1
Solution:
Domain of x is all real number
P(x) : x > 1
Q(x) : x – 1 > 1
Answer: "\\forall"x(P(x) → Q(x))
Truth value: x = {3,4,5} satisfies this statement
2. for some real number x, x2 ≤ 0
Solution:
Domain of x is all real number
P(x) : x^2 <= 0
Answer: "\\exists"x(P(x))
Truth value: x = 0 satisfies predicate P(x)
C. Translate the following English sentence into symbol. (3 pts each)
1. No one in this class is wearing pants and a guitarist.
Let:
Domain of x is all persons
A(x): x is wearing pants
B(x): x is a guitarist
C(x): belongs to the class
Solution:
Answer: !"\\exists"x(C(x) and A(x) and B(x))
2. No one in this class is wearing pants and a guitarist.
Let:
Domain of x is persons in this class
A(x): x is wearing pants
B(x): x is a guitarist
Solution:
Answer: !"\\exists"x(A(x) and B(x)
3. There is a student at your school who knows C++ but who doesn’t know Java.
Let:
Domain: all students at your school
C(x): x knows C++
J(x): x knows Java
Solution:
Answer: "\\exists"x(C(x) and !J(x))
Comments
Leave a comment