Write the formal expression for the following logical conditions on a variable x in a computer program. Note, exercise 2 and 4 are 1 and 3 negated with De Morgan's law 1. 0

Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question

I just want the expression not the computer program this is discrete structures class

Write the formal expression for the following logical conditions on a variable x in a computer program.
Note, exercise 2 and 4 are 1 and 3 negated with De Morgan's law
1. 0<x<100
2. Not 1, using De Morgan's law
3. x not divisible by 2 and x not 0
4. Not 3, using De Morgan's law
Transcribed Image Text:Write the formal expression for the following logical conditions on a variable x in a computer program. Note, exercise 2 and 4 are 1 and 3 negated with De Morgan's law 1. 0<x<100 2. Not 1, using De Morgan's law 3. x not divisible by 2 and x not 0 4. Not 3, using De Morgan's law
Expert Solution
Step 1

Introduction:

De Morgan's laws are a pair of rules that relate logical operators AND and OR to their negations NOT. The two laws are as follows:

  1. The negation of a conjunction (AND) is the disjunction (OR) of the negations: ¬(P ∧ Q) ≡ ¬P ∨ ¬Q This law states that the negation of a statement that asserts that two things are true at the same time is equivalent to the statement that at least one of the two things is not true.

  2. The negation of a disjunction (OR) is the conjunction (AND) of the negations: ¬(P ∨ Q) ≡ ¬P ∧ ¬Q This law states that the negation of a statement that asserts that at least one of two things is true is equivalent to the statement that neither of the two things is true.

In words, De Morgan's laws can be stated as "the negation of a conjunction is the disjunction of the negations" and "the negation of a disjunction is the conjunction of the negations." These laws are basic to many areas of mathematics and logic, and they are frequently used in the simplification of logical expressions.

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps

Blurred answer
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Basic Technical Mathematics
Basic Technical Mathematics
Advanced Math
ISBN:
9780134437705
Author:
Washington
Publisher:
PEARSON
Topology
Topology
Advanced Math
ISBN:
9780134689517
Author:
Munkres, James R.
Publisher:
Pearson,