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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -