Contact

IMARCTANH Function in Gnumeric: Syntax, Examples and Branch Cuts

Complex Intermediate Gnumeric

Calculate the inverse complex hyperbolic tangent in Gnumeric with examples, reconstruction checks and pole cautions.

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

Quick answer: =IMARCTANH("1+2i") finds the principal inverse complex hyperbolic tangent, approximately 0.173286795+1.178097245i.

Availability and version history

  • Introduced: 1.1.6, according to the official release history. This was a development-series release.
  • Availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
  • Scope: Desktop; the fn-complex function module must be included and enabled.
  • Checked: October 14, 2026. Source and independently calculated examples checked; Gnumeric 1.12.62 was not run.

What IMARCTANH does

IMARCTANH returns the principal complex inverse of hyperbolic tangent. It operates on the whole complex value, not by applying the real inverse separately to each coefficient. The forward relation is tanh(w)=z; selecting one inverse branch is necessary because the forward function is not one-to-one. Function reference.

Syntax and inputs

=IMARCTANH(z)

z is one required complex number: a quoted complex string, a cell holding one, or the result of COMPLEX(real,imaginary). There is no second argument or default value. For example:

=IMARCTANH("1+2i")
=IMARCTANH(COMPLEX(1,2))
=IMARCTANH(A2)

Quote a literal such as "1+2i"; do not enter a bare 1+2i expression. COMPLEX accepts an optional i/j suffix. The examples use comma separators inside multi-argument functions; local formula conventions can differ.

Worked examples

Enter each column-A formula in the stated row, then enter its column-B formula. Results are mathematical reference values rounded to nine decimal places. Any residual column measures the reference calculation’s forward reconstruction.

Input cell Formula entered in A Function formula in B Independently calculated inverse Independent forward residual
A2 =COMPLEX(0.5,0) =IMARCTANH(A2) 0.549306144 1.11e-16
A3 =COMPLEX(0.25,0) =IMARCTANH(A3) 0.255412812 0.00e+00
A4 =COMPLEX(1,2) =IMARCTANH(A4) 0.173286795+1.178097245i 4.44e-16
A5 =COMPLEX(2,1) =IMARCTANH(A5) 0.402359478+1.338972522i 3.14e-16
A6 =COMPLEX(0.5,0.25) =IMARCTANH(A6) 0.500370000+0.314398143i 1.24e-16
A7 =COMPLEX(-0.5,0.25) =IMARCTANH(A7) -0.500370000+0.314398143i 1.24e-16
A8 =COMPLEX(3,4) =IMARCTANH(A8) 0.117500907+1.409921050i 9.93e-16
A9 =COMPLEX(0,0.5) =IMARCTANH(A9) 0.463647609i 5.55e-17

Use =IMREAL(B2) and =IMAGINARY(B2) to compare coefficients. A different i/j suffix or display precision does not by itself change the complex value.

Principal branch and sensitive inputs

The real-axis rays below −1 and above +1 are branch cuts. The points ±1 are singular: the derivative 1/(1−z²) grows without bound nearby. The formula (Log(1+z)−Log(1−z))/2 needs consistent logarithm branches. Real inputs outside (−1,1) can have complex inverses. Documented branch behavior.

Compare COMPLEX(1,0.000001) and COMPLEX(1,-0.000001) near +1. Compare real and imaginary coefficients, not just formatted strings. Exact-cut signed-zero conventions and extreme-input behavior need checking in your installed version.

The forward check IMTANH(IMARCTANH(z))≈z is useful for finite nonsingular inputs. Reversing that composition need not recover an arbitrary original argument: the inverse returns the principal branch.

Advanced example: reconstruct a modeled response

For a model R=tanh(w), IMARCTANH(R) gives a principal candidate w. Transmission-line and layered-media models can use such a relation, but a physical propagation parameter also needs units, boundary conditions and a branch choice. Tanh has periodic imaginary branches.

Use A4’s 1+2i sample from the table. In C4 enter =IMTANH(B4) to reconstruct the input, and in D4 enter =IMABS(IMSUB(C4,A4)) for the residual. The independent reference reconstruction is within 1e−12 of the input; your numerical tolerance should reflect the model and input scale.

=IMTANH(IMARCTANH(A4))
=IMABS(IMSUB(IMTANH(IMARCTANH(A4)),A4))

Input errors and practical checks

The 1.12.62 complex parser maps malformed complex text to #NUM!, whereas the web manual’s generic invalid-input note says #VALUE!. The pinned parser rejects other unsupported types with #VALUE!; coercion before that helper can affect blanks or Booleans. Use an explicit complex string or COMPLEX result when diagnosing an input problem.

Near the branch points described above, a small input change can produce a large inverse change. The example rows avoid exact-cut ambiguity; retain that distinction when checking a branch-sensitive model.

Official sources