JavaScript atanh() methode
- Previous Page atan2()
- Next Page cbrt()
- Go to the Previous Level JavaScript Math Referentiemanual
Definitie en gebruik
atanh()
De methode retourneert de hyperbolische arctangent van een getal.
Opmerking:Als de parameter x groter is dan 1 of kleiner dan -1, retourneert deze methode NaN.
Opmerking:Als de parameter x 1 is, retourneert deze methode Infinity.
Opmerking:Als de parameter x -1 is, retourneert deze methode -Infinity.
Voorbeeld
Retourneert de hyperbolische arctangent van een gegeven getal:
Math.atanh(0.5);
Syntaxis
Math.atanh(x)
Parameterwaarde
Parameter | Beschrijving |
---|---|
x | Verplicht. Getal. |
Technische details
Terugkeerwaarde: | Getal, of NaN, of Infinity, of -Infinity. |
---|---|
JavaScript versie: | ECMAScript 6 |
Browser Support
Math.atanh()
Is an ES6 Feature (JavaScript 2015). All modern browsers support it:
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Support | Support | Support | Support | Support |
Related Pages
Tutorial:JavaScript Mathematics
- Previous Page atan2()
- Next Page cbrt()
- Go to the Previous Level JavaScript Math Referentiemanual