Docsity

Logic Operators-Computer Programming For Aeronautical Engineering And Sciences-Lecture Slides, Slides of Aeronautical Engineering

Toggle sidebar
bg1
Lecture C19
Response to 'Muddiest Part of the Lecture Cards'
(9 respondents)
1) Is the ∨ an “and/or” or an “xor”?
∨ represents an OR.
2) Say ¬A∨ ¬B, does this mean A and B must be opposites, that is:
0 0 0 1 1
1 1 0 0 1
1 0 1 1 0
0 1 1 0 0
¬
A∨ ¬B
¬
B¬ A
B
¬
No, it does not. There is a mistake in the truth table. ¬A∨ ¬B has the value 1 when both
A and B equals 0.
0 0 0 1 1
1 1 0 0 1
1 0 1 1 0
1 1 1 0 0
¬
A∨ ¬B
¬
B
¬ A
B
docsity.com
pf2

Partial preview of the text

Download Logic Operators-Computer Programming For Aeronautical Engineering And Sciences-Lecture Slides and more Slides Aeronautical Engineering in PDF only on Docsity!

Lecture C

Response to 'Muddiest Part of the Lecture Cards'

(9 respondents)

  1. Is the ∨ an “and/or” or an “xor”?

∨ represents an OR.

  1. Say ¬A∨ ¬B, does this mean A and B must be opposites, that is:

¬ A ¬ B ¬A∨ ¬B

B

No, it does not. There is a mistake in the truth table. ¬A∨ ¬B has the value 1 when both

A and B equals 0.

¬ A ¬ B ¬A∨ ¬B

B

docsity.com

  1. Are these equivalent: ¬∀x(N(x) ∧R(x)) ∀x(¬N(x) Æ ¬R(x))?

No they are not.

The first term can be rewritten as: ∃x (¬N(x)∧ ¬R(x))

And the second term can be rewritten as: ∀x (N(x) ∨ ¬R(x))

  1. No mud, cool stuff, etc. (4 students)

docsity.com