




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















Ms. Hannah Ruth I. Cataluña
(^) Logic and mathematical reasoning has numerous applications in computer science. Rules in logic are used in the design of computer circuits, the development of computer programs, the verification of the correctness of programs and many other ways. (^) Logic is the basis of all mathematical reasoning, and it has a practical applications to the design of computing machines, to artificial intelligence, to computer programming, to programming languages and to other areas of computer science.
(^) Propositions are declarative sentences that are either true or false but not both. (Theory, hypothesis, thesis, argument, premise, principle, theorem, concept, idea, statement.)
(^) 5 is a prime number. (^) 3 is a prime number, but 6 is not. (^) Every natural number can be written as the sum of the squares of three natural numbers. (^) He is over 5 ft. tall. (^) 7 + 8 = 15 (^) Napoleon Bonaparte was president of the United States. (^) The number 3 is positive and the number 2 is negative. (^) is an integer.
(^) Many mathematical statements are constructed by combining one or more propositions. These new proposition are formed from existing propositions using logical operators. The logical operators that are used to form new propositions from two or more existing propositions are called connectives. (^) In mathematics, the letters x, y, z, p, q, r often denote variables that can be replaced by the real numbers, and these variables can be combine with the familiar operations.
(^) In logic, the letters x, y, z, p, q, r denote propositional variables that is, that can be replaced by statements. (^) Compound statements – statements or propositional variables combined by logical connectives. (^) The truth values of a proposition built up from other propositions by using required connectives which are respectively determined by the truth values of the original propositions and the way the proposition is built up from them.
(^) A diagram in rows and columns showing how the truth or falsity of a proposition varies with that of its components. (^) A table that gives the truth-values of a compound sentence formed from component sentences by means of logical connectives.
Write the negation of the following propositions: (^) 5 is positive. 5 is not positive. / It is not the case that 5 is positive (^) The air in Metro Manila is polluted. It is not the case that the air in Metro Manila is polluted. / The air in Metro Manila is not polluted. It is not the case that the /
(^) The matrix gives two possible decisions for , since a proposition may either be true or false.
Write the conjunctions of the following propositions. (^) P: 2 is an even integer (^) Q: 3 is an odd integer. “2 is an even integer and 3 is an odd integer.” (^) P: 3 divides 9 (^) Q: 3 divided 15 ”3 divides 9 and 3 divides 15”/ “3 divides both 9 and 15” (^) P: is a rational number. (^) Q: is not a rational number. /
(^) There is only one condition to be TRUE and this is when both statements are true.
Write the disjunction of the following propositions. (^) P: Students who have taken algebra can take Discrete Mathematics. (^) Q: Students who have taken computer science can take Discrete Mathematics. Students who have taken algebra or computer science can take Discrete Mathematics.
Write the disjunction of the following propositions. (^) P: John is at the Library. (^) Q: John is studying. John is at the library or John is studying. / John is at the library or he is studying.