code_junkie

What non-programming-specific formulas and laws do you use the most

Nov 13th, 2011
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. not (P and Q) = (not P) or (not Q)
  2. not (P or Q) = (not P) and (not Q)
  3.  
  4. if (x & 1) // evaluates to true if x is odd
  5.  
  6. if (!(x % 2))
  7.  
  8. log_b(n) = log(n) / log(b)
  9.  
  10. !(a && b) == !a || !b
  11. !(a || b) == !a && !b
  12.  
  13. y = mx + b
  14.  
  15. (ab)' = a' + b'
  16.  
  17. (a + b)' = a'b'
  18.  
  19. a + ab = a
  20.  
  21. a + a'b
  22.  
  23. (a'(a'b'))'
  24. = (a'b')'
  25. = a + b
  26.  
  27. White space is FREE!
Add Comment
Please, Sign In to add comment