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/atanh below:

Math.atanh() - JavaScript | MDN

Math.atanh()

Baseline Widely available

La función Math.atanh() nos retorna un arco hiperbólico de un numero, eso es:

∀ x ∊ ( - 1 , 1 ) , Math.atanh ( x ) = arctanh ( x ) = the unique y such that tanh ( y ) = x \forall x \in \left( -1, 1 \right), \mathtt{\operatorname{Math.atanh}(x)} = \operatorname{arctanh}(x) = \text{ el unico } ; y ; \text{de tal manera que} ; \tanh(y) = x Pruébalo
console.log(Math.atanh(-1));
// Expected output: -Infinity

console.log(Math.atanh(0));
// Expected output: 0

console.log(Math.atanh(0.5));
// Expected output: 0.549306144334055 (approximately)

console.log(Math.atanh(1));
// Expected output: Infinity
Sintaxis Parametros Retorna un valor

El arco hiperbolico tangible nos otorga un numero.

Descripción

Por que atanh() es un metodo estatico de Math, tu siempre puedes usar eso como Math.atanh(), se puede usar como un metod de Math objeto que tu creaste (Math no es un constructor).

Polimorfismo

Para | x | < 1 \left|x\right| < 1 , tenemos artanh ( x ) = 1 2 ln ( 1 + x 1 - x ) \operatorname {artanh} (x) = \frac{1}{2}\ln \left( \frac{1 + x}{1 - x} \right) por lo que esto puede estar emulado con la siguiente función:

Math.atanh =
  Math.atanh ||
  function (x) {
    return Math.log((1 + x) / (1 - x)) / 2;
  };
Ejemplos Using Math.atanh()
Math.atanh(-2); // NaN
Math.atanh(-1); // -Infinito
Math.atanh(0); // 0
Math.atanh(0.5); // 0.5493061443340548
Math.atanh(1); // Infinito
Math.atanh(2); // NaN

Para valores mayores a 1 o menores a -1, NaN retorna.

Especificaciones Compatibilidad con navegadores Puedes leer

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