Contact

COTH Function (OpenOffice Calc)

Math Intermediate OpenOffice Calc

Calculate hyperbolic cotangent with OpenOffice COTH, using native real-input examples, odd-function checks and precise zero and numerical-boundary behavior.

Verification status: Eight reference formulas and 6 diagnostic cases were recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816, using generated native ODF and GUI hard recalculation. Saved formula identities and typed results were checked; the load warning is described below. How formula examples are checked

Quick answer: =COTH(2) returned 1.037314720728 in the tested Apache OpenOffice 4.1.16 build.

Availability and version history

  • Introduced: First release not established; documented by OpenOffice.org 3.3.
  • Supported in: Apache OpenOffice 4.1.16; this identifies a verified release, not a final supported version.
  • Scope: Desktop Calc, English function names and semicolon-separated formulas.
  • Checked: October 14, 2026. Eight reference formulas and the listed diagnostics were recalculated from generated native ODF in 4.1.16 on Linux x86-64, Build 9816. Source and independent reference calculations were also checked.

What COTH returns

COTH calculates hyperbolic cotangent, mathematically cosh(x)/sinh(x). It returns a real numeric value for a valid finite input where the defining denominator is nonzero. The implementation evaluates the reciprocal directly, so denominator zeros and floating-point behavior matter. Release entry.

Syntax and arguments

=COTH(Number)

Supply one numeric argument. The argument is a real, dimensionless input; this hyperbolic function has no intrinsic degree unit. The observed TRUE argument becomes 1, and a referenced empty cell becomes 0. Non-numeric text and an extra argument produce errors in the tested cases.

Reproducible examples

The native column records the saved 4.1.16 results. The independent values use high-precision mathematics; displayed decimals are rounded to twelve places. Integer results remain exact in these small cases.

Formula Native 4.1.16 result Independent reference
=COTH(0.25) 4.082988165074 4.082988165074
=COTH(0.5) 2.163953413739 2.163953413739
=COTH(1) 1.313035285499 1.313035285499
=COTH(2) 1.037314720728 1.037314720728
=COTH(-0.25) -4.082988165074 -4.082988165074
=COTH(-0.5) -2.163953413739 -2.163953413739
=COTH(-1) -1.313035285499 -1.313035285499
=COTH(-2) -1.037314720728 -1.037314720728

Practical worksheet

Use COTH for a hyperbolic ratio, not an ordinary angle. For a dimensionless input 0.5, COTH returns about 2.163953413739. If a model uses x=t/τ, enter that dimensionless ratio in A2 and use =COTH(A2). Converting this argument from degrees would change the model without justification.

Advanced interpretation and checks

COTH(x)×TANH(x)=1 for nonzero real x. It is odd, so COTH(−x)=−COTH(x), and its magnitude exceeds 1 for every finite nonzero real input. As positive x grows it approaches 1; as negative x decreases it approaches −1. The positive table values decrease toward 1 without becoming a probability.

Boundaries and troubleshooting

Zero is the real pole. For sufficiently small nonzero x, the leading behavior is approximately 1/x; this explains why values increase sharply near zero. The finite tables do not test extreme magnitudes, overflow or a near-zero accuracy guarantee.

These additional formulas were recalculated from the same generated ODF input. H5 is a deliberately empty cell where referenced. Error displays are retained as errors, even when an ODS numeric attribute stores zero.

Formula Observed result or error
=COTH(0) #NUM!
=COTH(PI()) 1.003741873197
=COTH("abc") #VALUE!
=COTH(H5) #NUM!
=COTH(1;2) Err:508
=COTH(TRUE()) 1.313035285499

Official evidence and checking scope

The generated ODF input produced the informational load warning “Not all attributes could be read.” After it was acknowledged, the sheet was hard-recalculated and saved separately. Every formula identity, input label and tested result was reconciled, including repeated spaces represented with ODF text elements. This does not certify every style attribute. The separately prepared XLSX input was not executed. A deliberately stale SUM cache changed from 999999 to 3, and an uncached SUM returned 7 after hard recalculation. Native evidence covers the eight reference formulas and listed diagnostics only. Other explanatory compositions are independent mathematical checks; other releases, locales and extreme-value behavior were not established by this run.