logic - If not (a and not b) and if (not a and b) -


can explain why these 2 statements aren't equal?

if not(a , not b):  // stuff   if (not , b): // stuff 

i tried make program more understandable changing first statement second doesn't work. don't totally understand why.

you should de morgan's thereom, half of (a):

not(p , q) -> not(p) or not(q) 

in terms of how applies situation, replace p a , q not(b):

not(a , not b) -> not(a) or not(not(b))                  -> not(a) or b 

(a) other half is:

not(p or q) -> not(p) , not(q) 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -