tool for testing logic expressions -


can recommend software (preferably mac) or web based tool, can used evaluate logic expressions?

for example able test whether 2 expressions like:

$a = 'foo'; $b = 'bar'; $c = 'foo';  ( !(($a == $c) && ($b == $c)) )  // ,  ( ($a != $c) || ($b != c$) ) 

are interchangeable or not.

and also, there agreed upon best practice in relation how construct such expressions? example try minimize use of negation, order of elements or that?

sometimes find myself struggling bit these things :)

you can use http://www-cs-students.stanford.edu/~silver/truth/ , compare generated truth tables.


Comments

Popular posts from this blog

objective c - Newbie question -multiple parameters -

iphone - Using nested NSDictionary with Picker -

php - accessing mysql using different server to which db connection data is located -