Math for CS Review
Miscellaneous
Order of operations: first parenthesis, then exponents, then multiplication and division, then addition and subtraction. And left to right.
Powers/exponents 210 = 1024, roughly 1 thousand 2a+b = 2a × 2b ya+b = ya × yb 2-a = 1 / (2a) 220 = 1024 × 1024, roughly 1 million 230 = 1024 × 1024 × 1024, roughly 1 billion Logarithms logbx = y means by = x logbx = logcx / logcb log210 is about 3.32 logb(xy) = y logb x