tan

(PHP 3, PHP 4, PHP 5)

tan -- 正切

说明

float tan ( float arg )

tan() 返回参数 arg 的正切值。参数 arg 的单位为弧度。

例子 1. tan()

<?php

echo tan(M_PI_4); // 1

?>

参见: atan()sin()cos()deg2rad()


add a note add a note User Contributed Notes
fformula at gmail dot com
10-Apr-2006 08:26
To find cotangent you can use
  tan (M_PI/2 - $alfa)