tan() 函數(shù)返回正切。
tan(x)
參數(shù) | 描述 |
---|---|
x | 必需。一個數(shù)。 |
tan() 返回參數(shù) x 的正切值。參數(shù) x 的單位為弧度
在本例中,我們將返回不同的數(shù)的正切:
<?php echo(tan(M_PI_4)); echo(tan(0.50)); echo(tan(-0.50)); echo(tan(5)); echo(tan(10)); echo(tan(-5)); echo(tan(-10)); ?>
輸出:
1 0.546302489844 -0.546302489844 -3.38051500625 0.648360827459 3.38051500625 -0.648360827459
如對本文有疑問,請?zhí)峤坏浇涣髡搲?,廣大熱心網友會為你解答??! 點擊進入論壇
Powered by 365建站網 RSS地圖 HTML地圖
copyright © 2013-2024 版權所有 鄂ICP備17013400號