Documentation/Calc Functions/IMLOG2/en

Function name:
IMLOG2

Category:
Add-in

Summary:
Calculates the logarithm to the base 2 or binary logarithm of a complex number.

Syntax:
IMLOG2(ComplexNumber)

Returns:
Returns a text string giving the complex number that is the binary logarithm of the complex number passed as argument.

Arguments:
ComplexNumber is a string (in quotation marks) representing a complex number in the form a+bi or a+bj, or a reference to a cell containing that string, which is the complex number for which the binary logarithm is to be calculated. a and b are real numbers.


 * If ComplexNumber does not have an imaginary part (b equal to 0), the real part can be passed to IMLOG2 as a number rather than a string.
 * If both real and imaginary parts of ComplexNumber are 0, IMLOG2 reports an invalid argument error (Err:502).
 * If ComplexNumber is not a valid complex number, IMLOG2 reports an invalid argument error (Err:502).

Details specific to IMLOG2 function
For a complex number of the form a+bi, the binary logarithm is given by the following equation:
 * IMLOG2(“a+bi”) = 1.442695040888963407 * IMLN(“a+bi”)

The value 1.442695040888963407 is the binary logarithm of the mathematical constant e, which is known as Euler's number and has a value of approximately 2.71828.

Related LibreOffice functions:
IMEXP

IMLN

IMLOG10

IMPOWER

IMSQRT

ODF standard:
Section 6.8.16, part 2

Equivalent Excel functions:
IMLOG2