lundi 30 novembre 2015

Simplify logic statement

I am having a brain fart

I have this

if(!A or (A and B))   //pseudocode

I want to negate that if-statement

this should work:

if(!(!A or (A and B))  //pseudocode

but I believe there is a way to simplify it and it's escaping me at the moment

thanks

Aucun commentaire:

Enregistrer un commentaire