Original: The interval between two notes in cents is the base-21 / 1200 logarithm of the frequency ratio (or 1200 times the base-2 logarithm).
Simplified: The interval between two notes in semitones is the base-21 / 12 logarithm of the frequency ratio (or equivalently, 12 times the base-2 logarithm).