Contact

Zoho Sheet IMLN: Natural Logarithm of Complex Numbers

Complex Intermediate Zoho Sheet

Learn complex natural logarithms in Zoho Sheet, including magnitude, angle and branch-cut cautions.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer. =IMLN("5j") returns 1.6094379124341+1.5707963267949j in Zoho’s official example. The real part is ln(5) and the imaginary part is Ï€/2, the angle of 5j in radians. Unlike LN, which is documented for real-number logarithms, IMLN is designed for text-form complex values. Official IMLN reference (checked October 14, 2026).

Availability and version history

  • Introduced: The original release and date are not established by the checked official sources.
  • Availability: Currently documented in Zoho Sheet’s rolling web-service help; there is no verified final supported-version endpoint.
  • Scope: The English cloud reference does not establish identical behavior in every mobile client or imported workbook.
  • Checked: October 14, 2026, against the official IMLN reference. Documentation and independent arithmetic checks; no native Zoho Sheet test.

Exact syntax, argument types and defaults

=IMLN(complex_number)
Position Argument Required? Official type and meaning Example Documented default
1 complex_number Required Text representing a complex number “2+3j” or A2 None

All arguments are required; no optional parameter or default is documented in the official IMLN reference.

Practice data

Use a fresh worksheet for each function so the results in column C do not overwrite another exercise. Enter the following in A1:B10, or import the two-column practice CSV at A1. Keep column A as text and column B as numbers. The literal text does not include enclosing quotation marks in cells.

Row A: Complex text B: Exponent
2 2+3j 2
3 1-4i 3
4 5j -1
5 3+4j 2
6 2-1j 3
7 -1+0i 2
8 0+0i 0
9 -4i 2
10 1+0i 1

Rows 7, 8 and 10 are optional boundary inputs, not part of the worked result checks. In particular, do not fill IMLN through the zero row and assume it has a logarithm.

The two independent ingredients: size and direction

Any nonzero complex number z=a+bi has magnitude r=√(a²+b²) and angle θ=atan2(b,a) for a chosen principal angle interval. Its usual principal complex logarithm is:

Log(z) = ln(r) + i θ

Thus the real part of a complex natural logarithm describes the logarithm of its magnitude, and the imaginary part represents its argument (angle) in radians. Multiple mathematical logarithm values differ by integer multiples of 2Ï€i; a spreadsheet function needs a branch convention to return one. Zoho’s examples match the usual principal-value convention for the three published inputs, but the vendor article does not fully specify all negative-real-axis boundary and signed-zero cases.

Reproduce Zoho’s three published examples

Formula Vendor result Independent explanation
=IMLN("2+3j") 1.28247467873077+0.982793723247329j ln(√13)≈1.2824746787; atan2(3,2)≈0.9827937232.
=IMLN("1-4i") 1.4166066720281-1.32581766366803i ln(√17)≈1.4166066720; negative angle atan2(-4,1)≈-1.3258176637.
=IMLN("5j") 1.6094379124341+1.5707963267949j ln(5) and π/2, because the input lies on the positive imaginary axis.

These exact display strings are published in Zoho’s IMLN examples. All numerical components independently match the mathematical principal logarithm within the shown precision.

A worksheet you can reproduce

Use the practice inputs above, preserving column A as complex-number text. Then calculate one input at a time in column C:

Cell Formula Expected coefficient interpretation
C2 =IMLN(A2) 1.2824746787+0.9827937232j, Zoho example
C3 =IMLN(A3) 1.4166066720-1.3258176637i, Zoho example
C4 =IMLN(A4) 1.6094379124+1.5707963268j, Zoho example
C5 =IMLN(A5) 1.6094379124+0.9272952180j, independent prediction
C6 =IMLN(A6) 0.8047189562-0.4636476090j, independent prediction

A5 is 3+4j, whose magnitude is 5 and angle is atan2(4,3) ≈ 0.927295218. A6 is 2-1j, whose magnitude is √5 and angle approximately -0.463647609. To validate C5 independently, ln(√(3²+4²))=ln(5)≈1.6094379124, not ln(3) or ln(4). Output precision and whether certain zero coefficients are included in the string are untested.

Verify the third example without using IMLN

For z=5j, its magnitude is exactly 5 and its principal angle is π/2. The mathematical expression ln(5)+(π/2)j gives the vendor output to rounding. The alternative mathematical logarithms are ln(5)+j(π/2+2πk) for integer k; they all exponentiate back to 5j. A single-valued function needs one convention. This matters if the logarithm is used in repeated phase calculations, where an abrupt ±2π angle change can look like a discontinuity.

Advanced uses that benefit from a complex logarithm

Magnitude and phase in a single function

Because Re(Log(z))=ln(|z|) and Im(Log(z))=arg(z), IMLN is a compact mathematical representation of amplitude and phase. In separate empty cells, compare =IMREAL(IMLN(A5)) with =LN(IMABS(A5)); each has mathematical expectation 1.6094379124. Both IMREAL and IMABS are separately documented by Zoho; the two expressions describe the same magnitude calculation.

Logarithm to exponential round trip

For nonzero z, exp(Log(z))=z. A possible test is =IMEXP(IMLN(A2)), where the expected result is 2+3j within floating-point tolerance. Be careful reversing the order: Log(exp(w)) can return an imaginary coefficient differing from that of w by 2Ï€k because complex angles wrap. IMEXP.

Complex ratios and transfer functions

For nonzero complex values z1, z2, mathematical Log(z1/z2) can help express amplitude ratios and phase differences, with branch adjustments for the phase. Put the text 1-4j in F2 so both operands use j, then enter =IMLN(IMDIV(A2;F2)) in G2. The vendor documents IMDIV, but the principal-log mathematical expectation for this dataset is approximately -0.1341319933+2.3086113869j. General branch-boundary behavior remains unspecified. Never interpret an automatically wrapped phase as a real-world discontinuity without analysis.

Logarithm bases for complex numbers

Base conversion follows log10(z)=Log(z)/ln(10) and log2(z)=Log(z)/ln(2) mathematically for a consistent branch. Zoho separately documents IMLOG10 and IMLOG2. For 2+3j, the official IMLOG10 output is approximately 0.5569716762+0.4268218909j; multiplying those coefficients by ln(10) recovers IMLN’s coefficients. These are independent consistency checks, not a guarantee of identical rounding in all environments.

Educational visualization of branches

Build a table of points on a circle (for example, complex texts constructed from the same radius and several angles). Evaluate the logarithm at each point and plot or list the angle component. When angle crosses the principal boundary, it may wrap by approximately 2Ï€ rather than progress continuously. Such a table is useful for teaching phase unwrapping, provided each point’s accepted input string and the function’s branch convention are tested in the relevant Zoho account.

Important limitations and error cases

  • Zero: The complex natural logarithm of zero is mathematically undefined. Zoho’s page lists general error classes but does not say which error appears for "0+0i" or a blank/zero-like string. Do not invent #NUM! or #DIV/0! as an observed result.
  • Negative real axis: The usual principal logarithm of -1 has imaginary part Ï€, but the value at exactly the branch cut is convention-dependent if signed zero is involved. Zoho’s three examples do not establish the exact handling of "-1+0i".
  • Underflow and enormous magnitudes: The page gives no numeric range or precision guarantee for input coefficients or outputs. Mathematical ln(|z|) grows slowly but the magnitude computation may still face numerical limitations.
  • Angle unit confusion: IMLN’s imaginary coefficient is an angle in radians, not degrees. Zoho’s IMARGUMENT documentation explicitly describes argument as radians.
  • No optional base argument: IMLN takes one required complex-number input; use IMLOG2/IMLOG10 for other bases rather than inventing a second parameter.
  • Input syntax: Examples accept quoted lowercase i/j text. Arbitrary whitespace, uppercase suffixes, localized commas and scientific notation are not tested here.
  • Whole-range calculation: The documented argument is one complex number, not a range; do not rely on an undocumented spill or array mode.
  • Text equality vs numeric equality: Angles that differ by 2Ï€ can describe the same complex direction. Compare the intended mathematical object, not only its displayed text.

Common questions

Is IMLN the same as LN? No. IMLN operates on a complex-number representation. LN is a different Zoho function documented for numerical natural logarithms. LN reference.

Why is the output complex even for numbers with positive real parts? Any nonzero imaginary component generally creates a nonzero argument and therefore a nonzero imaginary coefficient in the logarithm.

Does the logarithm have only one answer? Mathematically, complex logarithms have infinitely many values separated by 2Ï€i. The vendor examples display one; do not infer a fully specified branch-cut algorithm beyond those examples.

How should I test zero safely? Run separately documented native tests for text forms "0", "0+0i" and an actual empty cell. Record the precise UI result, product edition, locale and date instead of relying on another spreadsheet product.

Formula entry, errors and related guides

Quote complex literals, such as "2+3j", but do not quote a reference such as A2. Multi-argument formulas here use the semicolons printed by Zoho’s English help; follow your workbook’s formula editor if its syntax differs.

The official page lists broad error families: inspect spelling and quotation marks for #NAME!, input types for #VALUE!, and cell references for #REF!. Its generic list does not establish the exact error returned for each malformed complex input. Avoid applying unverified blank-to-zero or uppercase-suffix conversions.

Compare independently expected coefficients within a suitable numerical tolerance. Printed precision and simplified zero components can vary; the examples do not establish a universal string-serialization rule.