@@ -5,10 +5,10 @@ title: 2.6 Logarithms
5
5
6
6
* a logarithm is simply an inverse exponential function
7
7
* b^x=y => x=log(y) where the base of the logarithm is b
8
- * exponential grows really fast, inverse exponential (log) grows slowly
8
+ * exponential grows really fast, inverse exponential (log) grows slowly
9
9
* logarithms arise in any process where things are repeatedly halved
10
10
11
- ## Applications
11
+ ## Applications of logarithms
12
12
13
13
### binary search
14
14
@@ -46,8 +46,26 @@ title: 2.6 Logarithms
46
46
47
47
### summations
48
48
49
- * Harmonic numbers: special case of arithmetic progression
49
+ * Harmonic numbers: special case of arithmetic progression
50
50
* H(n) = S(n, -1)
51
51
* the sum of the progression of simple reciprocals
52
52
53
53
![ image] ( images/2.6-harmonic_numbers.jpg )
54
+
55
+ ## Properties of logarithms
56
+
57
+ * important bases: log2 (lg), loge (ln), log10(log)
58
+ * loga(xy) = loga(x) + loga(y)
59
+ * loga(n^b) = b * loga(n)
60
+ * changing the base: loga(b) = logc(b) / logc(a)
61
+
62
+ ### consequences
63
+
64
+ * ** the base of the logarithm has no real impact on the growth rate**
65
+ * (since changing the base of the log from a to c involves dividing by logc(a) and that is lost to the Big Oh notation whenever a and c are constants)
66
+ * ** logarithms cut any function down to size**
67
+ * the growth rate of the logarithm of ANY polynomial function is O(lg n)
68
+ * log(n!) = &Theta ; (n log n)
69
+
70
+
71
+
0 commit comments