Skip to content

Arcosh ​

Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand.

Inverse hyperbolic cosine (area hyperbolic cosine).

✓ checked against that system · ! checked, with disagreements (hover a chip)DLMF4.37.ii.p1FungrimAcosh✓Fungrim entry2fc479✓718f3a✓d9765b✓Wolfram LanguageArcCosh!
Arcosh(complex | signed_infinity) -> numberas compute-engine declares it
SageMatharccosh(complex | signed_infinity)SymPyacosh(complex | signed_infinity)mpmathacosh(complex | signed_infinity)Juliaenumeratio_ball(_acosh, complex | signed_infinity)Rustacosh(complex | signed_infinity)
Arcosh(complex | signed_infinity | ~oo) -> number | signed_infinity | ~ooInverse hyperbolic cosine (area hyperbolic cosine).
SageMatharccosh(complex | signed_infinity | ~oo)SymPyacosh(complex | signed_infinity | ~oo)mpmathacosh(complex | signed_infinity | ~oo)Juliaenumeratio_ball(_acosh, complex | signed_infinity | ~oo)Rustacosh(complex | signed_infinity | ~oo)
Typed signatures
TypePackageApplies
(complex | quantity | signed_infinity) -> numberanalyticreplaces compute-enginealways
(complex | quantity | signed_infinity) -> numbercompute-enginealways

Domain: Compute engine

Details
  • Differs from Wolfram: past its real domain a rational argument reduces to the exact principal value, on every inverse trigonometric and hyperbolic head alike (Arcsin, Arccos, Arcsec, Arccsc, Arcosh, Artanh, Arcoth, Arsech); Wolfram leaves the exact call unevaluated and gives the same number from N[...]. Checked against mpmath and wolframscript on a grid of rationals to double precision. A float and N(...) already took the same branch. Compiled code is separate: the JavaScript target is real-valued (NaN past the domain), the WGSL target returns a complex pair, and Arcsin and Arccos decline to compile. Principal branch, cut on (−∞,1)(-\infty, 1), continuous from above: for x<−1x<-1, ln⁡(∣x∣+x2−1)+iπ\ln(|x|+\sqrt{x^2-1}) + i\pi (mpmath acosh(-2)), and for ∣x∣<1|x|<1, iarccos⁡(x)i\arccos(x).

Examples

1 more kept as data, checked against the oracles
Scope #

Arcosh(-Infinity) is +Infinity, not -Infinity -- the principal branch keeps ℜ(arcosh⁡z)≥0\Re(\operatorname{arcosh} z) \ge 0 everywhere

live ↗
Inarcosh(−∞)\mathrm{arcosh}(-∞)Out∞∞

Known value · DLMF 4.37.19

Fifty digits of arcosh⁡(5)\operatorname{arcosh}(5)

live ↗
InN(arcosh(5),50)N(\mathrm{arcosh}(5), 50)Out2.292 431 669 561 177 687 800 787 311 348 015 431 621 868 240 015 72.292\,431\,669\,561\,177\,687\,800\,787\,311\,348\,015\,431\,621\,868\,240\,015\,7

Threads over a matrix; arcosh(1) folds to 0, arcosh(0) to iπ/2i\pi/2, and the radicals ±2/2\pm\sqrt2/2 to iπ/4i\pi/4 and 3iπ/43i\pi/4

live ↗
Inarcosh([[1,21/22],[0,−21/2/2]])\mathrm{arcosh}(\bigl\lbrack\bigl\lbrack1, \frac{2^{1/2}}{2}\bigr\rbrack, \bigl\lbrack0, -2^{1/2}/2\bigr\rbrack\bigr\rbrack)Out[[0,14iπ],[12iπ,34iπ]]\bigl\lbrack\bigl\lbrack0, \frac{1}{4}i π\bigr\rbrack, \bigl\lbrack\frac{1}{2}i π, \frac{3}{4}i π\bigr\rbrack\bigr\rbrack

Grows without bound, so infinity maps to infinity

live ↗
Inarcosh(∞)\mathrm{arcosh}(∞)Out∞∞

The zero of arcosh: arcosh⁡(1)=0\operatorname{arcosh}(1) = 0

live ↗
Inarcosh(1)\mathrm{arcosh}(1)Out00

On [0,1][0,1] arcosh is iarccos⁡i\arccos, so the integral is ii

live ↗
In∫01 ⁣arcosh(x) dx\int_{0}^{1}\!\mathrm{arcosh}(x)\, \mathrm{d}xOutii
live ↗
Indarcosh(x)dx\frac{\mathrm{d}\mathrm{arcosh}(x)}{\mathrm{d}x}Out1x2−1\frac{1}{\sqrt{x^2-1}}
live ↗
In∫ ⁣arcosh(x) dx\int\!\mathrm{arcosh}(x)\, \mathrm{d}xOutxarcosh(x)−x2−1x\mathrm{arcosh}(x)-\sqrt{x^2-1}

Arcosh(ComplexInfinity) is +Infinity in every direction -- arcosh⁡z∼ln⁡2z\operatorname{arcosh} z \sim \ln 2z, so only the real part diverges

live ↗

Known value · DLMF 4.37.19

Below −1-1 the value is ln⁡(∣x∣+x2−1)+iπ\ln(|x|+\sqrt{x^2-1}) + i\pi: arcosh⁡(−2)=ln⁡(2+3)+iπ\operatorname{arcosh}(-2) = \ln(2+\sqrt3) + i\pi

live ↗
Inarcosh(−2)\mathrm{arcosh}(-2)Outiπ+ln⁡(2+3)i π+\ln(2+\sqrt{3})

Inside (−1,1)(-1, 1) the value is iarccos⁡(x)i\arccos(x)

live ↗
Inarcosh(35)\mathrm{arcosh}(\frac{3}{5})Outiarccos⁡(35)i\arccos(\frac{3}{5})
Properties #

A nested-radical argument stays unevaluated, only rewritten

live ↗
Inarcosh(125−51/22)\mathrm{arcosh}(\frac{1}{2}\sqrt{\frac{5-5^{1/2}}{2}})Out310iπ\frac{3}{10}i π

Known value · Wolfram MathematicalFunctionData, ArcCosh

The negated radical argument is likewise left as arcosh

live ↗
Inarcosh(−125−51/22)\mathrm{arcosh}(-\frac{1}{2}\sqrt{\frac{5-5^{1/2}}{2}})Out710iπ\frac{7}{10}i π

Known value · Wolfram MathematicalFunctionData, ArcCosh

live ↗
Inarcosh(0)\mathrm{arcosh}(0)Out12iπ\frac{1}{2}i π

Known value · Wolfram MathematicalFunctionData, ArcCosh

live ↗
Inarcosh(142(3−1))\mathrm{arcosh}(\frac{1}{4}\sqrt{2}(\sqrt{3}-1))Out512iπ\frac{5}{12}i π

Known value · Wolfram MathematicalFunctionData, ArcCosh

live ↗
Inarcosh(−24(3−1))\mathrm{arcosh}(-\frac{\sqrt{2}}{4}(\sqrt{3}-1))Out712iπ\frac{7}{12}i π

Known value · Wolfram MathematicalFunctionData, ArcCosh

live ↗
Inarcosh(5−14)\mathrm{arcosh}(\frac{\sqrt{5}-1}{4})Out25iπ\frac{2}{5}i π

Known value · Wolfram MathematicalFunctionData, ArcCosh

live ↗
Inarcosh(1−54)\mathrm{arcosh}(\frac{1-\sqrt{5}}{4})Out35iπ\frac{3}{5}i π

Known value · Wolfram MathematicalFunctionData, ArcCosh

live ↗
Inarcosh(2−21/22)\mathrm{arcosh}(\frac{\sqrt{2-2^{1/2}}}{2})Out38iπ\frac{3}{8}i π

Known value · Wolfram MathematicalFunctionData, ArcCosh

About
Examples20
Checked againstWolfram Language 17 agree2 differ1 unevaluatedSageMath 17 agree2 differ1 unevaluatedSymPy 17 agree2 differ1 unevaluatedmpmath 15 agree1 differJulia 14 agree2 errorRust 2 agree12 error
CrosswalkDLMFFungrimFungrim entry ×3Wolfram 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