The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

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