Method on @sym: log2 (x)

Symbolic log base 2 function.

Examples:

log2(sym(256))
  ⇒ ans = (sym) 8

syms x
log2(x)
  ⇒ ans = (sym)
      log(x)
      ──────
      log(2)

See also: @sym/log, @sym/log10.

Package: symbolic