A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Math/asinh below:

Math.asinh() - JavaScript | MDN

Math.asinh()

Baseline Widely available

La función Math.asinh() retorna el arcoseno hyperbólico de un número, es decir

Math.asinh ( x ) = arsinh ( x ) = the unique y such that sinh ( y ) = x \mathtt{\operatorname{Math.asinh}(x)} = \operatorname{arsinh}(x) = \text{ the unique } ; y ; \text{such that} ; \sinh(y) = x Sintáxis Parámetros Valor de retorno

El arcoseno hyperbólico del número dado.

Descripción

Debido 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).

Ejemplos Usos de 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 also

RetroSearch 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