What is the difference between log, ln, and log base 2?
log (common logarithm) uses base 10 and is widely used in engineering and science. ln (natural logarithm) uses base e (approximately 2.71828) and is fundamental in calculus and continuous growth models. log base 2 (binary logarithm) is essential in computer science for analyzing algorithms and data structures. They are all related through the change of base formula: log_b(x) = ln(x) / ln(b).