Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is NOR logical operator?

Is nor:

!(a or b)
!a or !b
!(a and b)

something else?

like image 496
user20844 Avatar asked Nov 26 '22 22:11

user20844


2 Answers

!(a or b)

see http://en.wikipedia.org/wiki/Logical_NOR for more:

In boolean logic, logical nor or joint denial is a truth-functional operator which produces a result that is the negation of logical or. That is, a sentence of the form (p NOR q) is true precisely when neither p nor q is true—i.e. when both of p and q are false. In grammar, nor is a coordinating conjunction...

like image 166
MartinodF Avatar answered Mar 11 '23 07:03

MartinodF


!(a or b)

like image 33
Brian Campbell Avatar answered Mar 11 '23 07:03

Brian Campbell