PHP tanh() Fonksiyonu
Tanım ve Kullanım
tanh() fonksiyonu, hiperbolik kotanı döndürür.
Sözdizimi
tanh(x)
Parametre | Açıklama |
---|---|
x | Gerekli. Bir sayı. |
Açıklama
döndürür x hiperbolik kotan değeri, tanh(arg)/cosh(arg) olarak tanımlanmıştır.
Örnek
Bu örnekte, farklı sayıların hiperbolik kotanlarını döndüreceğiz:
<?php echo(tanh(M_PI_4)); echo(tanh(0.50)); echo(tanh(-0.50)); echo(tanh(5)); echo(tanh(10)); echo(tanh(-5)); echo(tanh(-10)) ?>
Çıktı:
0.655794202633 0.46211715726 -0.46211715726 0.999909204263 0.999999995878 -0.999909204263 -0.999999995878