Skip to content

Boolean logic, boolean-expression, boolean-algebra, boolean

Notifications You must be signed in to change notification settings

nammoooo/Boolean-Laws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

Boolean Operators use AND, OR, NOT to limit or expand a search.

AND narrows a search by requiring the results contain both of the search terms connected by AND. In other words, the search results will contain search term X and search term Y.

OR broadens a search and is usually used when searching related or similar terms. In other words, the search results will contain search term X or search term Y or both.

NOT narrows searches by excluding sources with a specified search term.In other words, the results will not contain search term X.


Boolean-Laws

a OR b = b OR a
Java OR Python = Python OR Java

a AND b AND c AND d = b AND d AND c AND a
Java AND Python AND Bigdata AND Apache = Python AND Apache AND Bigdata AND Java

a AND (b OR C) = a AND (c OR b)
Java AND (Python OR C++) = Java AND (C++ OR Python)

x OR (y AND z) = (y and z) OR x
Java OR (Python AND Bigdata) = (Python and bigdata) OR Java

a OR b OR c = (a OR b) OR c = a OR (b OR c) = (a OR c) OR b
Java OR Golang OR C++ = (Java OR Golang) OR C++ = Java OR (Golang OR C++) = (Java OR C++) OR Golang

a AND b AND c = (a AND b) AND c = a AND (b AND c) = (a AND c) AND b
Java AND Golang AND C++ = (Java AND Golang) AND C++ = Java AND (Golang AND C++) = (Java AND C++) AND Golang

a AND (b OR c OR d) = a AND (b OR (c OR d))
Java AND (Golang OR C++ OR Python) = Java AND (Golang OR (C++ OR Python))

a AND (b OR c) ≠ (a AND b) OR c
Java AND (Golang OR C++) ≠ (Java AND Golang) OR C++

e AND (f OR g) = (e AND f) OR (e AND g) and e OR (f AND g) = (e OR f) AND (e OR g)
AWS AND (shell OR perl ) = (AWS AND shell) OR (AWS AND perl) and AWS OR (shell AND perl) = (AWS OR shell) AND (AWS OR Perl)

NOT(p AND k) = NOT(p) OR NOT(k) and NOT(p OR k) = NOT(p) AND NOT(k)
NOT(Jenkin AND Container) = NOT(Jenkin) OR NOT(Container) and NOT(Jenkin OR Container) = NOT(Jenkin) AND NOT(Container)

s AND (s OR w) = s and s OR (s AND w) = s
C# AND (C# OR VB.Net) = C# and C# OR (C# AND VB.Net) = C#

About

Boolean logic, boolean-expression, boolean-algebra, boolean

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published