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
Post a Comment