JavaScript Matematik atanh ()

JavaScript Math.atanh () işlevi, bir sayının hiperbolik arktanjantını döndürür.

atanh()Math.tanhişlevin ters işlemini gerçekleştirir .

Math.atanh()İşlevin sözdizimi şöyledir:

 Math.atanh(x)

atanh()Statik bir yöntem olan Mathsınıf adı kullanılarak çağrılır .

Math.atanh () Parametreler

Math.atanh()Fonksiyonun içinde tuttuğu:

  • x - Bir sayı

Math.atanh'dan dönüş değeri ()

  • Verilen sayının hiperbolik arktanjantını döndürür.
  • Sayı> 1 veya sayı <-1NaN ise döndürür .

Örnek: Math.atanh () kullanma

 // Using Math.atanh() var num = Math.atanh(0); console.log(num); // 0 var num = Math.atanh(0.75); console.log(num); // 0.9729550745276566 var num = Math.atanh(1); console.log(num); // Infinity var num = Math.atanh(-1); console.log(num); // -Infinity var num = Math.atanh(2); console.log(num); // NaN var num = Math.atanh(-2); console.log(num); // NaN

Çıktı

 0 0.9729550745276566 Infinity -Infinity NaN NaN

Önerilen okumalar:

  • JavaScript Math tanh ()
  • JavaScript Matematik asinh ()

Ilginç makaleler...