gives the base-2 logarithm of x.


  • 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.
New in 7
New to Mathematica? Find your learning path »
Have a question? Ask support »