本页内容
上一节: Func_math_srand 下一节: Func_math_tanh

PHP tan() 函数

Category:PHP Math 数学函数参考手册

返回不同数的正切:


示例

<?php

echo(tan(M_PI_4) . "<br>");

echo(tan(0.50) . "<br>");

echo(tan(-0.50) . "<br>");

echo(tan(5) . "<br>");

echo(tan(10) . "<br>");

echo(tan(-5) . "<br>");

echo(tan(-10));

    ?>

定义和用法

tan() 函数返回一个数的正切。

语法

    tan(number);
参数 描述
number 必需。规定一个弧度值。

技术细节

返回值: number 的正切。
返回类型: Float
PHP 版本: 4+

Category:PHP Math 数学函数参考手册

上一节: Func_math_srand 下一节: Func_math_tanh
此页面最后编辑于2022年8月17日 (星期三) 22:20。