Arsech
Inverse hyperbolic secant, the inverse of Sech.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
ArcSech!Arsech(x)the value with .SageMath
arcsech(x)SymPyasech(x)mpmathasech(x)Juliaenumeratio_ball(_asech, x)Rustacosh(n(1) / x)Typed signatures
| Type | Package | Applies |
|---|---|---|
(complex | quantity | signed_infinity) -> number | analyticreplaces compute-engine | always |
(complex | quantity | signed_infinity) -> number | compute-engine | always |
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 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 , (mpmathasech(-2)is ).
Examples
Properties #
Rewritten with a single radical in the denominator
live ↗InOut
Known value · Wolfram MathematicalFunctionData, ArcSech
The negated argument is rewritten the same way
live ↗InOut
Known value · Wolfram MathematicalFunctionData, ArcSech
Possible issues #
Arsech(ComplexInfinity) is Indeterminate, by at the same branch-cut ambiguity as Artanh
live ↗Known value · DLMF 4.37.8
About
| Examples | 18 |
|---|---|
| Checked against | Wolfram Language 14 agree3 differ1 unevaluatedSageMath 14 agree1 differ1 unevaluated1 errorSymPy 15 agree1 differ1 unevaluatedmpmath 11 agree2 errorJulia 10 agree3 errorRust 4 agree8 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.tsacosh of the reciprocal, the principal value off 0.
See also: Arcosh