Log2

Log2[x]

gives the base-2 logarithm of x.

Details

  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • Log2 gives exact integer or rational number results when possible.
  • For certain special arguments, Log2 automatically evaluates to exact values.
  • Log2 can be evaluated to arbitrary numerical precision.
  • Log2 automatically threads over lists.

Examples

open allclose all

Basic Examples  (1)

Log2 gives the logarithm to base 2:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Scope  (5)

Applications  (4)

Properties & Relations  (2)

See Also

Log  Log10  Power  IntegerExponent  IntegerLength  IntegerDigits  BitLength  PowerRange

Introduced in 2008
(7.0)