HyperMath

Log2

Log2

Previous topic Next topic No expanding text in this topic  

Log2

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The base two logarithm of the argument.

Syntax

L = Log2(M)

Argument

Name

Description

 

M

A scalar, vector, or a matrix.

Output

Name

Description

 

L

The base ten logarithm of each entry.

Example

Find the base two logarithm of elements in a matrix:

 

Syntax

 

L = Log2([1,2;3,4])

 

Result

 

L = 0  1

   1.585  2

Comments

The argument values must be non-zero. For negative arguments, the result will be the primary complex value.

See Also:

Exp

Log

Log10