COSH Function (OpenOffice Calc)
Learn the COSH function in Apache OpenOffice Calc: Returns the hyperbolic cosine of a number.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
- Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
- Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
- Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.
COSH returns the hyperbolic cosine of a real number. Mathematically it is (EXP(x)+EXP(-x))/2. It is an even function with a minimum of 1 at zero, rather than the oscillating ordinary cosine. Positive and negative inputs of equal magnitude have the same result.
Syntax and arguments
=COSH(number)
number is one required real numeric argument. There is no optional angle unit, significance or precision setting. The pinned 4.1.16 interpreter uses its hyperbolic cosine implementation. The mathematical domain is all real numbers, although finite computer arithmetic cannot represent every large result. English function names and semicolon separators are used in the formulas.
Reproducible examples
| Formula | Expected result (approximately where decimal) |
|---|---|
=COSH(0) |
1 |
=COSH(1) |
1.543080634815 |
=COSH(-1) |
1.543080634815 |
=COSH(2) |
3.762195691084 |
=COSH(-2) |
3.762195691084 |
=COSH(0.5) |
1.127625965206 |
The first formula retains the original guide’s example and result. Its comparable LibreOffice 25.2 check was not an OpenOffice execution. New numerical results are independently calculated expectations, not observed native or GUI results. Decimal approximations are shown to twelve places unless a formula explicitly rounds them.
Practical worksheet: build a dimensionless catenary profile
Enter -2, -1, 0, 1 and 2 in A2:A6. In B2 enter =COSH(A2)-1 and fill down. Expected values, rounded to six decimals, are 2.762196, 0.543081, 0, 0.543081 and 2.762196. Subtracting one moves the curve’s minimum to zero; COSH itself has a minimum of one.
This is a mathematical shape illustration, not a structural design calculation. A scaled profile can use a*(COSH(x/a)-1) with a positive scale a, keeping x/a dimensionless. Real loads, materials and engineering constraints require a model beyond this worksheet. The simple table is useful for checking symmetry and parameter scaling.
Advanced applications
Check an inverse on the correct branch. =ACOSH(COSH(2)) returns approximately 2, and =ACOSH(COSH(-2)) also returns approximately 2. COSH loses the sign of its input, while ACOSH returns the nonnegative inverse branch. Keep a sign separately if a reversible signed transformation is required.
Check the defining average. With A2=1, =(EXP(A2)+EXP(-A2))/2 gives approximately 1.543080634815. This is a transparent explanation for moderate inputs, not a guarantee of superior numerical behavior.
Use the difference-of-squares identity. =COSH(1)^2-SINH(1)^2 is approximately 1. Avoid using huge inputs for this audit: both squares can be very large and their subtraction can lose precision even when the exact identity is simple.
Errors, edge cases and troubleshooting
COSH(0) is 1, not zero. A model needing zero at its centre must explicitly subtract one. The result is never negative in real mathematics and is at least one, unlike COS, whose output lies between -1 and 1. There is no circular period to normalize with 360 or 2*PI().
Do not apply a degrees-to-radians conversion by habit. The parameter in a hyperbolic model is normally a real dimensionless quantity; a scale such as x/a must use consistent units. A value in centimetres divided by a scale in metres introduces a factor-of-100 error before COSH is even evaluated.
At sufficiently large magnitudes, floating-point output can overflow. The guide does not assert an exact overflow threshold across platforms or builds. Near zero, computing COSH(x)-1 can lose relative precision because the result subtracts almost equal numbers. If that very small difference is central to the task, use a numerically validated formulation and target-build tests. Display rounding and stored precision are separate considerations.
Related functions
Documentation and verification
See the Apache OpenOffice COSH reference, 4.1.16 mathematical-function help, and versioned interpreter. The cached source records retain their original October 13, 2026 retrieval dates. Source inspection and independent reference calculations are not native application testing. The supported release above is not a final working version; first introduction and last functioning version remain unestablished.