Binary logarithm: Difference between revisions

m Cleanup
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The symbols '''log2''', '''lb''' or '''ld''' are used for the '''[[Wikipedia: Binary logarithm|binary logarithm]]''', also called '''dual logarithm''' or '''logarithm base two'''.
{{Wikipedia}}
The '''binary logarithm''', also called '''dual logarithm''' or '''logarithm base two''' (symbols: '''log<sub>2</sub>''', '''lb''', or '''ld''') of a value ''n'' is the power to which 2 is raised to obtain ''n''. The binary logarithm of a [[frequency ratio]] measures its size in [[2/1|octave]]s. [[Interval size measure]]s proportional to the octave, such as the [[cent]], can be found by multiplying the size in octaves by a constant.  


== Log2 of the first primes ==
You can calculate the binary logarithm of ''n'' using the identity:


$$ \log_2(n) = \ln(n) / \ln(2) $$
== Binary logarithms of the first primes ==
{| class="wikitable center-all"
{| class="wikitable center-all"
! [[Prime]]
|-
! Log2 Prime
! ''p''
! log<sub>2</sub>''p''
|-
|-
| 2
| 2
Line 38: Line 43:
|}
|}


You can calculate the binary logarithm of n like this:
[[Category:Elementary math]]
 
log2(n) = ln(n)/ln(2)
 
[[Category:Howto]]
[[Category:Math]]
[[Category:Practical help]]
[[Category:Terms]]
[[Category:Terms]]
{{todo| improve synopsis }}