Arithmetic & Number Theory
Logarithm Base 2
Binary logarithm.
Formula
Formula
y = log2(x)
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| x | input (> 0) | real number (ℝ) | — | input |
| y | base-2 log | computed result | — | result |
Try it yourself
Interactive calculator
Worked examples
Example 1
Givenx = 1024
Result10
Example 2
Givenx = 100
Result6.64385619