Baseline Widely available
La función Math.asinh()
retorna el arcoseno hyperbólico de un número, es decir
El arcoseno hyperbólico del número dado.
DescripciónDebido a que asinh()
es un método estático de Math
, siempre hay que usarlo como Math.asinh()
, en lugar de como un método del objeto Math
que se hayamos creado (Math
no es un constructor).
Math.asinh()
Math.asinh(1); // 0.881373587019543
Math.asinh(0); // 0
Polyfill
As a quick and dirty hack the expression arsinh ( x ) = ln ( x + x2 + 1 ) \operatorname {arsinh} (x) = \ln \left(x + \sqrt{x^{2} + 1} \right) may be used directly for a coarse emulation by the following function:
Math.asinh =
Math.asinh ||
function (x) {
if (x === -Infinity) {
return x;
} else {
return Math.log(x + Math.sqrt(x * x + 1));
}
};
Been formally correct it suffers from a number of issues related to floating point computations. Accurate result requires special handling of positive/negative, small/large arguments as it done e.g. in glibc or GNU Scientific Library.
Especificaciones Compatibilidad con navegadores See alsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4