Skip to content

Cosh ​

Hyperbolic cosine: cosh⁡(x)=ex+e−x2\cosh(x) = \frac{e^x + e^{-x}}{2}.

✓ checked against that system · ! checked, with disagreements (hover a chip)WikipediaHyperbolic functionsMathWorldHyperbolicCosineHyperbolicFunctionsWikidataQ204034Britannicatopic/hyperbolic-functionsDLMF4.28.E2FungrimCosh✓Fungrim entryWolfram LanguageCosh!
Cosh(x)the hyperbolic cosine of x.
SageMathcosh(x)SymPycosh(x)mpmathcosh(x)Juliaenumeratio_ball(cosh, x)Rustcosh(x)
Typed signatures
TypePackageApplies
(complex | quantity | signed_infinity) -> numberanalyticreplaces compute-enginealways
(complex | quantity | signed_infinity) -> numbercompute-enginealways

Domain: Elementary functions

Details
  • Defined in terms of Exp: cosh⁡(x)=ex+e−x2\cosh(x) = \frac{e^x + e^{-x}}{2}.
  • Even function: cosh⁡(−x)=cosh⁡(x)\cosh(-x) = \cosh(x).
  • Exact at x=0x = 0 as Cos is: cosh⁡(0)=1\cosh(0) = 1; a floating-point argument, or N(...), gives a numeric result.

Examples

Basic #

N(...) gives the numeric value

live ↗
InN(cosh⁡(0))N(\cosh(0))Out1.01.0
live ↗
InN(cosh⁡(1))N(\cosh(1))Out1.543 080 634 815 243 778 481.543\,080\,634\,815\,243\,778\,48

Exact at 0, as Cos is

live ↗
Incosh⁡(0)\cosh(0)Out11

A float argument evaluates directly, no N(...) needed

live ↗
Incosh⁡(1.2)\cosh(1.2)Out1.810 655 567 324 374 793 091.810\,655\,567\,324\,374\,793\,09
live ↗
InSeries⁡(cosh⁡(x),x,0,10)\operatorname{Series}(\cosh(x), x, 0, 10)Out1+x22+x424+x6720+x840 320+x103 628 800+O(x12)1+\frac{x^2}{2}+\frac{x^4}{24}+\frac{x^6}{720}+\frac{x^8}{40\,320}+\frac{x^{10}}{3\,628\,800}+O\left(x^{12}\right)
Scope #

Arbitrary precision via N(...)

live ↗
InN(cosh⁡(65))N(\cosh(\frac{6}{5}))Out1.810 655 567 324 374 793 091.810\,655\,567\,324\,374\,793\,09

Evaluates at a complex argument

live ↗
Incosh⁡(2.5+i)\cosh(2.5+i)Out3.313 290 146 113 224 5+5.091 071 522 949 698i3.313\,290\,146\,113\,224\,5+5.091\,071\,522\,949\,698i

cosh⁡(iπ)=cos⁡π=−1\cosh(i\pi) = \cos\pi = -1

live ↗
Incosh⁡(iπ)\cosh(i π)Out−1-1

Element-wise over a matrix of imaginary multiples of π\pi, folding through cosh⁡(ix)=cos⁡x\cosh(ix) = \cos x

live ↗
Incosh⁡([[i×1π3,−(i×1π)/3],[0,−(i×1π)/6]])\cosh(\bigl\lbrack\bigl\lbrack\frac{i×1π}{3}, -(i×1π)/3\bigr\rbrack, \bigl\lbrack0, -(i×1π)/6\bigr\rbrack\bigr\rbrack)Out[[12,12],[1,32]]\bigl\lbrack\bigl\lbrack\frac{1}{2}, \frac{1}{2}\bigr\rbrack, \bigl\lbrack1, \frac{\sqrt{3}}{2}\bigr\rbrack\bigr\rbrack

Interval arithmetic: cosh⁡[0,ln⁡3]=[1,53]\cosh[0, \ln 3] = [1, \tfrac53], the minimum at 0 included

live ↗
Incosh⁡(Interval(0,ln⁡(3)))\cosh(\mathrm{Interval}(0, \ln(3)))OutInterval(1,53)\mathrm{Interval}(1, \frac{5}{3})

Uncertainty propagation, to first order: cosh⁡(2/3±0.1)≈1.744±0.143\cosh(2/\sqrt3 \pm 0.1) \approx 1.744 \pm 0.143

live ↗
Incosh⁡(Around(23,0.1))\cosh(\mathrm{Around}(\frac{2}{\sqrt{3}}, 0.1))OutAround(1.744 112 480 153 778,0.142 896 058 148 157 56)\mathrm{Around}(1.744\,112\,480\,153\,778, 0.142\,896\,058\,148\,157\,56)
live ↗
Incosh⁡(∞)\cosh(∞)Out∞∞

Evenness drops the sign of a symbolic argument: cosh⁡(−x)=cosh⁡x\cosh(-x) = \cosh x

live ↗
Incosh⁡(−x)\cosh(-x)Outcosh⁡(x)\cosh(x)

cosh⁡(arcosh⁡x)=x\cosh(\operatorname{arcosh} x) = x for every xx

live ↗
Incosh⁡(arcosh(x))\cosh(\mathrm{arcosh}(x))Outxx

cosh⁡(arcosh⁡(2))=2\cosh(\operatorname{arcosh}(2)) = 2

live ↗
Incosh⁡(arcosh(2))\cosh(\mathrm{arcosh}(2))Out22

cosh⁡(arcosh⁡(3i))=3i\cosh(\operatorname{arcosh}(3i)) = 3i

live ↗
Incosh⁡(arcosh(3i))\cosh(\mathrm{arcosh}(3i))Out3i3i

Derivative: sinh⁡x\sinh x

live ↗
Indcosh⁡(x)dx\frac{\mathrm{d}\cosh(x)}{\mathrm{d}x}Outsinh⁡(x)\sinh(x)

Antiderivative

live ↗
In∫ ⁣cosh⁡(x) dx\int\!\cosh(x)\, \mathrm{d}xOutsinh⁡(x)\sinh(x)

To 30 significant digits, every one correctly rounded

live ↗
InN(cosh⁡(1),30)N(\cosh(1), 30)Out1.543 080 634 815 243 778 477 905 620 761.543\,080\,634\,815\,243\,778\,477\,905\,620\,76

Fifty digits of a rational argument

live ↗
InN(cosh⁡(65),50)N(\cosh(\frac{6}{5}), 50)Out1.810 655 567 324 374 793 087 872 518 342 433 390 022 428 027 851.810\,655\,567\,324\,374\,793\,087\,872\,518\,342\,433\,390\,022\,428\,027\,85

On the imaginary axis it becomes ordinary cosine, cos⁡(π/5)=1+54\cos(\pi/5) = \frac{1+\sqrt5}{4}

live ↗
Incosh⁡(15iπ)\cosh(\frac{1}{5}i π)Out14+54\frac{1}{4}+\frac{\sqrt{5}}{4}

Rewritten as a cosine; no radical form is found

live ↗
Incosh⁡(124iπ)\cosh(\frac{1}{24}i π)Outcos⁡(π24)\cos(\frac{π}{24})

A matrix function with an imaginary-argument entry

live ↗
InMatrixFunction(_1⁡↦cosh⁡(_1⁡),[[(1/3)iπ,(−(1/3)i)π],[0,(−(1/6)i)π]])\mathrm{MatrixFunction}(\operatorname{\_1}↦\cosh(\operatorname{\_1}), \bigl\lbrack\bigl\lbrack(1/3)i π, (-(1/3)i)π\bigr\rbrack, \bigl\lbrack0, (-(1/6)i)π\bigr\rbrack\bigr\rbrack)Out[[12,31/23−13],[0,32]]\bigl\lbrack\bigl\lbrack\frac{1}{2}, \frac{3^{1/2}}{3}-\frac{1}{3}\bigr\rbrack, \bigl\lbrack0, \frac{\sqrt{3}}{2}\bigr\rbrack\bigr\rbrack
Properties #

Even function: cosh⁡(−x)=cosh⁡(x)\cosh(-x) = \cosh(x)

live ↗
Incosh⁡(−1)=cosh⁡(1)\cosh(-1)=\cosh(1)OutTrue\mathrm{True}

Hyperbolic Pythagorean identity: cosh⁡2x−sinh⁡2x=1\cosh^2 x - \sinh^2 x = 1

live ↗
Incosh⁡(1)2−sinh⁡(1)2=1\cosh(1)^2-\sinh(1)^2=1OutTrue\mathrm{True}

The definition cosh⁡x=ex+e−x2\cosh x = \frac{e^x + e^{-x}}{2}

live ↗
InTrigToExp(cosh⁡(x))\mathrm{TrigToExp}(\cosh(x))Out12(ex+e−x)\frac{1}{2}(e^{x}+e^{-x})

cosh⁡2x−sinh⁡2x\cosh^2 x - \sinh^2 x simplifies to 1, as the circular identity does

live ↗
InSimplify(cosh⁡(x)2−sinh⁡(x)2)\mathrm{Simplify}(\cosh(x)^2-\sinh(x)^2)Out11

cos⁡(π/12)\cos(\pi/12) in radicals

live ↗
Incosh⁡(112iπ)\cosh(\frac{1}{12}i π)Out24+64\frac{\sqrt{2}}{4}+\frac{\sqrt{6}}{4}

Known value · Wolfram MathematicalFunctionData, Cosh

cos⁡(π/10)\cos(\pi/10) in nested radicals

live ↗
Incosh⁡(110iπ)\cosh(\frac{1}{10}i π)Out1425+5\frac{1}{4}\sqrt{2}\sqrt{5+\sqrt{5}}

Known value · Wolfram MathematicalFunctionData, Cosh

Becomes plain cosine; no closed radical form

live ↗
Incosh⁡(19iπ)\cosh(\frac{1}{9}i π)Outcos⁡(π9)\cos(\frac{π}{9})

Known value · Wolfram MathematicalFunctionData, Cosh

cos⁡(π/8)=122+2\cos(\pi/8) = \frac12\sqrt{2+\sqrt2}

live ↗
Incosh⁡(18iπ)\cosh(\frac{1}{8}i π)Out2+22\frac{\sqrt{2+\sqrt{2}}}{2}

Known value · Wolfram MathematicalFunctionData, Cosh

Becomes plain cosine, as cos⁡(π/7)\cos(\pi/7) has no radical form

live ↗
Incosh⁡(17iπ)\cosh(\frac{1}{7}i π)Outcos⁡(π7)\cos(\frac{π}{7})

Known value · Wolfram MathematicalFunctionData, Cosh

cos⁡(π/6)=32\cos(\pi/6) = \frac{\sqrt3}{2}

live ↗
Incosh⁡(16iπ)\cosh(\frac{1}{6}i π)Out32\frac{\sqrt{3}}{2}

Known value · Wolfram MathematicalFunctionData, Cosh

Becomes plain cosine for 2π/92\pi/9

live ↗
Incosh⁡(29iπ)\cosh(\frac{2}{9}i π)Outcos⁡(2π9)\cos(\frac{2π}{9})

Known value · Wolfram MathematicalFunctionData, Cosh

live ↗
InN((sinh⁡(1/2)+cosh⁡(1/2))2)N((\sinh(1/2)+\cosh(1/2))^2)Out2.718 281 828 459 045 235 372.718\,281\,828\,459\,045\,235\,37

Known value · Wolfram MathematicalFunctionData, Cosh, de Moivre's formula

live ↗
InN((cosh⁡(1/2)−sinh⁡(1/2))2)N((\cosh(1/2)-\sinh(1/2))^2)Out0.367 879 441 171 442 321 6010.367\,879\,441\,171\,442\,321\,601

Known value · Wolfram MathematicalFunctionData, Cosh, de Moivre's formula

live ↗
InN(−2cosh⁡(1)cosh⁡(1/2)2+2cosh⁡(1/2)2+cosh⁡(1)2)N(-2\cosh(1)\cosh(1/2)^2+2\cosh(1/2)^2+\cosh(1)^2)Out0.999 999 999 999 999 999 991 568 056 313 347 813 320.999\,999\,999\,999\,999\,999\,991\,568\,056\,313\,347\,813\,32

Known value · Wolfram MathematicalFunctionData, Cosh, FunctionalEquations

live ↗
InN(cosh⁡(1/2+(1/2)iπ)2)N(\cosh(1/2+(1/2)i π)^2)Out−0.271 540 317 407 621 929 236-0.271\,540\,317\,407\,621\,929\,236

Known value · Wolfram MathematicalFunctionData, Cosh, FunctionalEquations

About
Examples38
Checked againstWolfram Language 37 agree1 differSageMath 35 agreeSymPy 35 agree1 differmpmath 28 agreeJulia 27 agree1 errorRust 13 agree
CrosswalkWikipediaMathWorld ×2WikidataBritannicaDLMFFungrimFungrim entry ×10Wolfram LanguageSageMathSymPympmathJuliaRust

Implementation

mappedsympypackages/oracle/src/mappings.ts
mappedmpmathpackages/oracle/src/mappings.ts
mappedsagepackages/oracle/src/mappings.ts
mappedjuliapackages/oracle/src/mappings.ts
mappedrustpackages/oracle/src/mappings.ts

See also: Sinh, Tanh, Exp