Arcoth
Inverse hyperbolic cotangent, the inverse of Coth.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
ArcCoth!Arcoth(x)the value with .SageMath
arccoth(x)SymPyacoth(x)mpmathacoth(x)Juliaenumeratio_ball(_acoth, x)Rustatanh(n(1) / x)Typed signatures
| Type | Package | Applies |
|---|---|---|
(complex | infinity | quantity) -> number | analyticreplaces compute-engine | always |
(complex | infinity | quantity) -> number | compute-engine | always |
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 andwolframscripton a grid of rationals to double precision. A float andN(...)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 , , which is (mpmathacoth(0.5)).
Examples
About
| Examples | 16 |
|---|---|
| Checked against | Wolfram Language 14 agree2 differSageMath 12 agree2 differ1 unevaluatedSymPy 14 agree1 errormpmath 10 agreeJulia 7 agree3 errorRust 3 agree5 error |
| Crosswalk | Wolfram LanguageSageMathSymPympmathJuliaRust |
Implementation
mapped
sympypackages/oracle/src/mappings.tsmapped
mpmathpackages/oracle/src/mappings.tsmapped
sagepackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
rustpackages/oracle/src/mappings.tsatanh of the reciprocal, the principal value off 0.
See also: Artanh