IMLOG10
Returns the base-10 logarithm of a complex number.
Produces the principal complex logarithm in base 10.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=IMLOG10(inumber)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
inumber | any | Required | — |
Return type
Can return text.
How it works
The principal logarithm in base 10 is the principal natural logarithm divided by ln(10). It is undefined at zero and inherits the negative real branch cut.
Differences from Excel
The raw Formualizer text can contain more significant digits than Excel’s complex-number text. The examples round each coefficient to 15 significant digits for display.
Remarks
- Input is coerced to complex-number text before parsing.
Error cases
- Returns
#NUM!for zero input. - Invalid complex text returns
#NUM!.
Examples
Compute the complex logarithm at 3 + 4i on a base-ten scale.
Formula =IMLOG10("3+4i")
Expected result 0.698970004336019+0.402719196273373i
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Reflect the input while keeping the base-ten logarithm of its magnitude fixed.
Formula =IMLOG10("3-4j")
Expected result 0.698970004336019-0.402719196273373j
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The base-ten logarithm of real one is zero.
Formula =IMLOG10("1")
Expected result 0
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The text “invalid” has no complex value from which to take the base-ten logarithm.
Formula =IMLOG10("invalid")
Expected result #NUM!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Base-10 log of a real value
Formula =IMLOG10("10")
Expected result 1
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Base-10 log on imaginary axis
Formula =IMLOG10("i")
Expected result 0.682188176920921i
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
What branch of the logarithm does IMLOG10 use?
It returns the principal complex logarithm (base 10), derived from principal argument atan2(imag, real).