#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 1::1.2.2 Numbers, Powers, and Logarithms
#columns:Front	Back	Tags
TAOCP §1.2.2 Numbers, Powers, and Logarithms: what does it cover?	A careful build-up of integers, rationals and reals, then powers with real exponents and logarithms in any base. It ends with practical ways to compute logarithms by hand-style methods.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::about
TAOCP §1.2.2: why does it matter?	Logs are everywhere in complexity analysis, bit counts and data sizes. Knowing exactly how log base changes work, and why lg n and ln n differ only by a constant, makes big-O arguments feel obvious instead of magical.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::why
TAOCP §1.2.2, a common trap: “Mixing up lg (base 2), ln (base e) and log10.” What's the catch?	Knuth uses lg for base 2 throughout the series.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::trap
TAOCP §1.2.2, a common trap: “Spending the whole week on the real-number construction.” What's the catch?	It is background, not the point.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::trap
TAOCP §1.2.2, exercise 4 (rated 05, recommended): what is it asking?	Evaluate a fractional power by hand. Quick check on the exponent rules.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise
TAOCP §1.2.2, exercise 11 (rated 10, recommended): what is it asking?	Work out how many digits of a logarithm you need for a given accuracy in the power. Error propagation in miniature.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise
TAOCP §1.2.2, exercise 17 (rated 05, recommended): what is it asking?	A quick round of logs in various bases, a couple of which do not exist.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise
TAOCP §1.2.2, exercise 19 (rated 20, recommended): what is it asking?	Decide whether a 14-digit decimal number fits in a 47-bit word. The log-to-count-bits skill you use when sizing integers.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise
TAOCP §1.2.2, exercise 22 (rated 20, recommended): what is it asking?	Show a cheap approximation of the base-2 log from ln and log10, and bound its error.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise
TAOCP §1.2.2, exercise 25 (rated 22): what is it asking?	Prove that a method using only shifts, additions and subtractions computes a binary logarithm. How machines did logs without multiplying.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise
TAOCP §1.2.2, exercise 27 (rated M25, recommended): what is it asking?	Error analysis of the text's log10 method when each step is computed with limited precision.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise
TAOCP §1.2.2, exercise 28 (rated M30): what is it asking?	Design and analyze a shift-and-add method for exponentials, the inverse of exercise 25. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercise
TAOCP §1.2.2: how many exercises, and how are they rated?	29 exercises, rated 00 to M30.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::exercises
TAOCP §1.2.2: what should you be comfortable with first?	<ul><li>High-school algebra</li><li>Exponent rules</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::prereqs
TAOCP §1.2.2: how should you work through it?	Skim the construction of the real numbers unless you enjoy it. Work through the logarithm identities with pencil and make a cheat sheet of lg, ln and log10 conversions. Try the method for computing a logarithm digit by digit on a small example.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::1.2.2 cracked.guide::kind::approach
