Skip to content

Arcoth ​

Inverse hyperbolic cotangent, the inverse of Coth.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageArcCoth!
Arcoth(x)the value yy with coth⁡(y)=x\coth(y) = x.
SageMatharccoth(x)SymPyacoth(x)mpmathacoth(x)Juliaenumeratio_ball(_acoth, x)Rustatanh(n(1) / x)
Typed signatures
TypePackageApplies
(complex | infinity | quantity) -> numberanalyticreplaces compute-enginealways
(complex | infinity | quantity) -> numbercompute-enginealways

Domain: Elementary functions

Details
  • Stays symbolic at plain evaluation, same as Arsinh-family functions; wrap in N(...).
  • 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. For 0<∣x∣<10<|x|<1, arcoth⁡(x)=sign⁡(x)(12ln⁡1+∣x∣1−∣x∣−iπ2)\operatorname{arcoth}(x) = \operatorname{sign}(x)\left(\tfrac12\ln\frac{1+|x|}{1-|x|} - \tfrac{i\pi}{2}\right), which is artanh⁡(1/x)\operatorname{artanh}(1/x) (mpmath acoth(0.5)).

Examples

Basic #
live ↗
InN(arcoth(2))N(\mathrm{arcoth}(2))Out0.549 306 144 334 054 845 70.549\,306\,144\,334\,054\,845\,7
live ↗
InSeries⁡(arcoth(x),x,∞,5)\operatorname{Series}(\mathrm{arcoth}(x), x, ∞, 5)Out1x+13x3+15x5+O(1x7)\frac{1}{x}+\frac{1}{3x^3}+\frac{1}{5x^5}+O\left(\frac{1}{x^7}\right)
Scope #

A logarithmic singularity at 1

live ↗
Inarcoth(1)\mathrm{arcoth}(1)Out∞∞
live ↗
Inarcoth(∞)\mathrm{arcoth}(∞)Out00

A float argument evaluates directly

live ↗
Inarcoth(3.5)\mathrm{arcoth}(3.5)Out0.293 893 332 451 059 504 0950.293\,893\,332\,451\,059\,504\,095

As a logarithm, arcoth⁡2=12ln⁡2+12−1=12ln⁡3\operatorname{arcoth} 2 = \tfrac12\ln\frac{2+1}{2-1} = \tfrac12\ln 3

live ↗
InTrigToExp(arcoth(2))\mathrm{TrigToExp}(\mathrm{arcoth}(2))Outln⁡(3)2\frac{\ln(3)}{2}

Oddness pulls the sign out of a symbolic argument: arcoth⁡(−x)=−arcoth⁡x\operatorname{arcoth}(-x) = -\operatorname{arcoth} x

live ↗
Inarcoth(−x)\mathrm{arcoth}(-x)Out−arcoth(x)-\mathrm{arcoth}(x)

Derivative: 11−x2\frac{1}{1 - x^2}

live ↗
Indarcoth(x)dx\frac{\mathrm{d}\mathrm{arcoth}(x)}{\mathrm{d}x}Out11−x2\frac{1}{1-x^2}

Fifty digits of a real value beyond the unit interval

live ↗
InN(arcoth(2),50)N(\mathrm{arcoth}(2), 50)Out0.549 306 144 334 054 845 697 622 618 461 262 852 323 745 278 911 370.549\,306\,144\,334\,054\,845\,697\,622\,618\,461\,262\,852\,323\,745\,278\,911\,37

At complex infinity the value is 0

live ↗
Inarcoth(∞~)\mathrm{arcoth}(\tilde∞)Out00

A logarithmic pole at −1-1 gives negative infinity

live ↗
Inarcoth(−1)\mathrm{arcoth}(-1)Out−∞-∞
live ↗
Inarcoth([[i,−i],[0,−i]])\mathrm{arcoth}(\bigl\lbrack\bigl\lbrack i, -i\bigr\rbrack, \bigl\lbrack0, -i\bigr\rbrack\bigr\rbrack)Out[[arcoth(i),arcoth(−i)],[12iπ,arcoth(−i)]]\bigl\lbrack\bigl\lbrack\mathrm{arcoth}(i), \mathrm{arcoth}(-i)\bigr\rbrack, \bigl\lbrack\frac{1}{2}i π, \mathrm{arcoth}(-i)\bigr\rbrack\bigr\rbrack
live ↗
InMatrixFunction(_1⁡↦arcoth(_1⁡),[[i,−i],[0,−i]])\mathrm{MatrixFunction}(\operatorname{\_1}↦\mathrm{arcoth}(\operatorname{\_1}), \bigl\lbrack\bigl\lbrack i, -i\bigr\rbrack, \bigl\lbrack0, -i\bigr\rbrack\bigr\rbrack)Out[[arcoth(i),arcoth(−i)2−arcoth(i)2],[0,arcoth(−i)]]\bigl\lbrack\bigl\lbrack\mathrm{arcoth}(i), \frac{\mathrm{arcoth}(-i)}{2}-\frac{\mathrm{arcoth}(i)}{2}\bigr\rbrack, \bigl\lbrack0, \mathrm{arcoth}(-i)\bigr\rbrack\bigr\rbrack

For 0<∣x∣<10<|x|<1 the value is 12ln⁡1+x1−x−iπ2\tfrac12\ln\frac{1+x}{1-x} - \tfrac{i\pi}{2}: arcoth⁡(1/2)=12ln⁡3−iπ2\operatorname{arcoth}(1/2) = \tfrac12\ln3 - \tfrac{i\pi}{2}

live ↗
Inarcoth(12)\mathrm{arcoth}(\frac{1}{2})Outln⁡(3)2+(−12i)π\frac{\ln(3)}{2}+(-\frac{1}{2}i)π

Odd: arcoth⁡(−1/2)\operatorname{arcoth}(-1/2) is the negative of arcoth⁡(1/2)\operatorname{arcoth}(1/2)

live ↗
Inarcoth(−12)\mathrm{arcoth}(-\frac{1}{2})Out12iπ−ln⁡(3)2\frac{1}{2}i π-\frac{\ln(3)}{2}
live ↗
Inarcoth(0)\mathrm{arcoth}(0)Out12iπ\frac{1}{2}i π
About
Examples16
Checked againstWolfram Language 14 agree2 differSageMath 12 agree2 differ1 unevaluatedSymPy 14 agree1 errormpmath 10 agreeJulia 7 agree3 errorRust 3 agree5 error
CrosswalkWolfram 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

atanh of the reciprocal, the principal value off 0.

See also: Artanh