--- title: Math.asinh() slug: Web/JavaScript/Reference/Global_Objects/Math/asinh tags: - JavaScript - Math - Méthode - Reference translation_of: Web/JavaScript/Reference/Global_Objects/Math/asinh original_slug: Web/JavaScript/Reference/Objets_globaux/Math/asinh ---
La fonction Math.asinh() renvoie l'arc sinus hyperbolique d'un nombre :
Math.asinh(x)
xL'arc sinus hyperbolique du nombre passé en argument.
asinh() étant une méthode statique de Math, elle doit toujours être utilisée avec la syntaxe Math.asinh() et ne doit pas être appelée depuis un autre objet qui aurait été créé (Math n'est pas un constructeur).
Math.asinh()Math.asinh = Math.asinh || function(x) {
if (x === -Infinity) {
return x;
} else {
return Math.log(x + Math.sqrt(x * x + 1));
}
};
| Spécification | État | Commentaires |
|---|---|---|
| {{SpecName('ES6', '#sec-math.asinh', 'Math.asinh')}} | {{Spec2('ES6')}} | Définition initiale. |
| {{SpecName('ESDraft', '#sec-math.asinh', 'Math.asinh')}} | {{Spec2('ESDraft')}} |
{{Compat("javascript.builtins.Math.asinh")}}