tanh() 函數(shù)返回雙曲正切。
tanh(x)
參數(shù) | 描述 |
---|---|
x | 必需。一個數(shù)。 |
返回 x 的雙曲正切值,定義為 sinh(arg)/cosh(arg)。
在本例中,我們將返回不同的數(shù)的雙曲正切:
<?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)) ?>
輸出:
0.655794202633 0.46211715726 -0.46211715726 0.999909204263 0.999999995878 -0.999909204263 -0.999999995878
如對本文有疑問,請?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會為你解答!! 點擊進(jìn)入論壇
Powered by 365建站網(wǎng) RSS地圖 HTML地圖
copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號