PHP tanh() İşlev
Örnek
Farklı sayıların hiperbolik tanjantını döndürün:
<?php
echo(tanh(M_PI_4) . "<br>");
echo(tanh(0.50) . "<br>");
echo(tanh(-0.50) . "<br>");
echo(tanh(5) . "<br>");
echo(tanh(10) . "<br>");
echo(tanh(-5) . "<br>");
echo(tanh(-10));
?>
Tanım ve Kullanım
tanh() işlevi, sinh(x)/cosh(x)'e eşit olan bir sayının hiperbolik tanjantını döndürür.
Sözdizimi
tanh(number);
Parametre Değerleri
Parameter | Description |
---|---|
number | Required. Specifies a number |
Teknik detaylar
Geri dönüş değeri: | Sayının hiperbolik tanjantı |
---|---|
İade Türü: | Batmadan yüzmek |
PHP Sürümü: | 4.1+ |
❮ PHP Matematik Referansı