Professional Documents
Culture Documents
Baku Limbaya Georges
Baku Limbaya Georges
Baku Limbaya Georges
1. To show that [(p v q) A (p v r)] → (p v r) is a tautology, we can use logical equivalences. One way to
prove this is to use a truth table. Here’s the truth table for the given expression:
p q r ~q (p v q) (r v ~q) (p v q) (p v r) [(p v q)
A (r v A (r v
~q) ~q)]
(p v
r)
T T T F T T T T T
T T F F T F F T T
T F T T T T T T T
T F F T T T T T T
F T T F T T T T T
F T F F T F F F T
F F T T F T F T T
F F F T F T F F T
In all cases, the last column, [(p V q) A (rV ~q)] → (pV r), is True. Therefore, the expression is a tautology.
T T T T T
T T F F F
T F T T F
T F F F F
F T T T F
F T F T F
F F T T F
F F F T F
As you can see, the two expressions do not always have the same truth values, so they are not logically
equivalent.
3.To solve the set of three simultaneous linear equations using Cramer's rule, we first need to write the
system of equations in matrix form. The given equations are:
2x - 3y + 4z = -16
x + 2y - z = 12
-2x + y + 3z = -6
Now, we can represent this system as a matrix equation Ax = b, where A is the coefficient matrix, x is the
vector of variables (x, y, z), and b is the constant vector on the right side of the equations:
A = | 2 -3 4 |
| 1 2 -1 |
| -2 1 3 |
b = | -16 |
| 12 |
| -6 |
Now, we can use Cramer's rule to solve for the values of x, y, and z. Cramer's rule states that if A is
invertible (det(A) ≠ 0), then the solution can be found using the following formulas:
x = det(Ax) / det(A)
y = det(Ay) / det(A)
z = det(Az) / det(A)
det(A) = 14 + 3 + 20
det(A) = 37
Now, we can calculate the determinants of Ax, Ay, and Az by replacing the corresponding columns in A
with the vector b:
det(Ax) = | -16 -3 4 |
| 12 2 -1 |
| -6 1 3 |
det(Ay) = | 2 -16 4 |
| 1 12 -1 |
| -2 -6 3 |
det(Az) = | 2 -3 -16 |
| 1 2 12 |
| -2 1 -6 |
det(Ax) = -112 + 3 + 96
det(Ax) = -13
det(Ay) = 36 + 160 - 8
det(Ay) = 188
det(Az) = 10 + 0 - 64
det(Az) = -54
x = -13/37
y = 188/37
z = -54/37
4.To find out how many books have both a contents page and an index, we can use the principle of
inclusion-exclusion. We are given the following information:
C∩I=C+I-T+N
C ∩ I = 27 + 18 - 43 + 12
C ∩ I = 45 - 43 + 12
C ∩ I = 2 + 12
C ∩ I = 14
So, there are 14 books that have both a contents page and an index.