Excel IMLN Function
The IMLN function returns the natural logarithm of a given complex number in x + yi or x + yj text format. The natural logarithm is the log value with base e (Euler's number), where e is approximately equal to 2.71828.
The IMLN function returns a complex number as text.
- inumber can be supplied as any of the following:
- A real number whose imaginary part is 0, e.g., 1 is a complex number 1+0i; Or a purely imaginary number whose real part is 0, e.g., i is a complex number 0 + 1i;
- A cell reference that refers to a complex number;
- A complex number enclosed in double quotation marks.
- inumber can be returned by the COMPLEX function which converts real and imaginary coefficients into a complex number.
- IMLN will return the #NUM! error if inumber is not recognized as a complex number that has lowercase i or j (iota).
- IMLN will return the #VALUE! error if inumber is a logical value.
- The natural logarithm of a complex number is:
To get the natural logarithm of the complex numbers listed in the below table, please copy or enter the formula below in the top cell, press Enter to get the result, and then drag the fill handle (at the lower right corner of the result cell) down to apply the formula to below cells.
Also, you can type the actual complex number in the formula as shown below. Make sure the complex number is enclosed with double quotes: