Note that tan(M_PI_2) gives 1.6331239353195E+16 instead of infinity.
(PHP 4, PHP 5, PHP 7, PHP 8)
tan — 正接(タンジェント)
num
処理する引数をラジアンで表したもの。
num
のタンジェントを返します。
例1 tan() の例
<?php
echo tan(M_PI_4); // 1
?>
Note that tan(M_PI_2) gives 1.6331239353195E+16 instead of infinity.