liveBook · Manning

Logarithm

A logarithm is the exponent to which a specified positive base other than one must be raised to produce a given positive number.

How 3 Manning books explain it

Statistics Every Programmer Needs

A logarithm is the exponent to which a specified base must be raised to obtain a given number.

How it is used
Uses base-10 logarithms to calculate Benford probabilities and transform numeric data for leading-digit analysis.
How deep it goes
Defines logarithmic scales and mantissas, then demonstrates Python calculations and statistical checks without developing proofs.
Examples
Demonstrates digit probabilities, population logarithms, mantissa extraction, summary statistics, and ranked mantissa plots.
What you can do after
Apply via NumPy to calculate base-10 logarithms, derive mantissas, and evaluate Benford-style numeric data.

Read how Statistics Every Programmer Needs explains logarithm →

Math for Web Design

A logarithm is the exponent to which a base must be raised to produce a specified number.

How it is used
Uses log() to calculate a graduated CSS font-size scale from numeric steps.
How deep it goes
Defines logarithms through a base-and-exponent example, then applies log() in a CSS calculation.
Examples
Demonstrates log(8, 2) = 3 and a heading scale with steps from 0 to 12.
What you can do after
Apply it via CSS log() and calc() to build a logarithmic font-size scale.

Read how Math for Web Design explains logarithm →

Grokking Data Structures

A logarithmic function grows proportionally to the logarithm of its input and therefore increases very slowly as input size grows.

How it is used
Uses logarithmic growth to compare how algorithm resources scale as input size increases.
How deep it goes
Defines slow growth and compares growth classes, stopping short of deriving logarithmic formulas or algorithm implementations.
Examples
Compares array searching, heapsort, pair generation, and subarray generation through estimated asymptotic running times.
What you can do after
Evaluate/understand an algorithm’s approximate order of growth and distinguish slow scaling from rapidly accelerating alternatives.

Read how Grokking Data Structures explains logarithm →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.