Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuition

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labs

Reference

GlossaryBlogDiscoveries
Tools › Maths

Logarithm calculator

log of any number to any base, with the change-of-base step.

10

  1. log base 2 1,024 = log₁₀ 1,024 / log₁₀ 2
  2. = 3.0103 / 0.30103 = 10
  3. Check: 2^10 ≈ 1,024

How it works

logₐ x = y means aʸ = x. A calculator only knows log₁₀ and ln, so use change of base: logₐ x = log x / log a.

Worked example

With Number x = 1024, Base a = 2:

  1. log base 2 1,024 = log₁₀ 1,024 / log₁₀ 2
  2. = 3.0103 / 0.30103 = 10
  3. Check: 2^10 ≈ 1,024

Answer: 10

Questions

Why can’t I take the log of a negative number?
No power of a positive base is negative, so there is no real answer.

More maths tools

  • Quadratic equation solver
  • LCM and HCF calculator
  • Fraction simplifier
  • Percentage calculator
  • Simple interest calculator
  • Compound interest calculator