COSH Function (LibreOffice Calc)
Calculate hyperbolic cosine in LibreOffice Calc. Build symmetric curve examples, compare COSH with COS and ACOSH, and check precision and large-input overflow.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: COSH returns hyperbolic cosine. It is even, equals one at zero and grows as the magnitude of its input increases.
Availability and version history
- Introduced: Documented by LibreOffice 26.8.1.1; original introduction not established.
- Availability: Supported in LibreOffice 26.8.1.1, 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.
The COSH function in LibreOffice Calc is used for this task: Returns the hyperbolic cosine of a number. Evaluate the hyperbolic cosine at zero.
This guide explains how to read the formula, reproduce a concrete example, interpret its result and recognize common input mistakes.
Syntax and arguments
COSH(number)
| Argument | Required? | Meaning |
|---|---|---|
Number |
Yes | The value for which the hyperbolic cosine is to be returned. |
Calc formulas normally use semicolons (;) between arguments in common configurations; the displayed separator may depend on settings or locale.
Worked example
=COSH(0)
Expected result: 1.
Why it works: Evaluate the hyperbolic cosine at zero.
How to use it in your own spreadsheet
- Identify the cells or inputs that correspond to the sample values above.
- Enter the formula in an empty cell, changing the references or literal values to match your sheet.
- Compare the output with a manual check on a small known example.
- Extend the formula to a larger dataset only after you understand the result.
Common problems and practical checks
- Check the accepted numeric domain, units and array dimensions for the specific operation.
- If an error appears, check that the function arguments are of the expected type.
- A pasted formula may produce an error when it uses the other program’s argument separator or unsupported options.
Additional worked application and edge cases
Meaning of the input
COSH has one required numeric argument and no optional arguments. For a real value x, hyperbolic cosine is (EXP(x)+EXP(-x))/2. This is not the ordinary circular cosine. The input is normally a dimensionless quantity in a mathematical model; do not automatically convert it from degrees merely because the function name contains COS.
COSH accepts negative, zero and positive real inputs within the numeric range that the application can represent. Its mathematical value is at least one, and COSH(-x)=COSH(x). These facts provide useful checks on the interpretation of a result.
Stepwise example: build a symmetric curve
Enter -2, -1, 0, 1 and 2 in A2:A6. In B2 enter =COSH(A2) and fill down.
| x | Independently expected COSH(x) |
|---|---|
| -2 | 3.7621956911 |
| -1 | 1.5430806348 |
| 0 | 1 |
| 1 | 1.5430806348 |
| 2 | 3.7621956911 |
In C2 enter =(EXP(A2)+EXP(-A2))/2 and fill down to compare the defining expression at these moderate inputs. Both columns should agree to the displayed precision. The definition is a verification aid here, not a promise that the expanded expression is the most stable calculation for every possible input.
Advanced application: sample a scaled catenary model
For the mathematical curve y=a*COSH(x/a), place a positive scale 2 in F1 and horizontal coordinates -2, 0, 2 in D2:D4. In E2 enter =$F$1*COSH(D2/$F$1) and fill down.
The expected y values are approximately 3.0861612696, 2 and 3.0861612696. If x and a share a length unit, their ratio is dimensionless and y has that same length unit. This example samples a mathematical curve; choosing a physical model or engineering design requires additional assumptions beyond the formula.
To express height above this curve’s minimum, use =$F$1*(COSH(D2/$F$1)-1). For the same three points, results are approximately 1.0861612696, 0, 1.0861612696. For extremely small ratios, subtracting one can lose precision, so this expression is not a guarantee of accurate tiny height differences.
Independent identity check and inverse caution
At A3=-1, =COSH(A3)^2-SINH(A3)^2 is mathematically 1. It is a useful moderate-input check, but subtracting two huge nearly equal squares is numerically unstable for large inputs.
ACOSH is the inverse on the nonnegative branch. Therefore =ACOSH(COSH(-1)) is expected to give 1, not -1: COSH loses the sign because it is even. COS, by contrast, is periodic and bounded between -1 and 1, so substituting it would describe an entirely different curve.
Errors, scaling and overflow
The versioned Calc implementation calls a hyperbolic-cosine calculation. The mathematical function grows exponentially as the magnitude of x grows; finite spreadsheet arithmetic can overflow. This guide does not assert an exact cross-platform overflow threshold. Review units and scaling before sending very large values into COSH.
In the scaled curve, a=0 creates division by zero before COSH is evaluated. A nonnumeric input or an upstream error likewise needs correction, not an arbitrary replacement with one. Check that dates or numeric category codes have not accidentally been supplied as model coordinates. The current desktop reference does not establish a first introduction release or a last functioning release.
Verification scope for this addition: These added results were independently calculated or derived from the cited documentation/source. They were not newly tested in LibreOffice Calc. The original example-specific Calc 25.2.3.2 claims elsewhere on this page remain historical and apply only to those original examples. The cited 26.8.1.1 source tag is a code reference, not a claim of a new run in that release.
Related functions
Documentation and verification
- LibreOffice Calc Help
- The standalone example was calculated using LibreOffice Calc 25.2.3.2 on October 9, 2026 and its computed result matched the expected value. This does not certify every option, version, or other example.