编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « srand
  • tanh »
  • PHP Manual
  • Math 函数
  • 正切

tan

(PHP 4, PHP 5, PHP 7)

tan — 正切

说明

tan ( float $arg ) : float

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

参数

arg

要处理的以弧度为单位的参数

返回值

arg 的正切值

范例

Example #1 tan() 例子

<?php

echo tan(M_PI_4); // 1

?>

参见

  • atan() - 反正切
  • atan2() - 两个参数的反正切
  • sin() - 正弦
  • cos() - 余弦
  • tanh() - 双曲正切
  • deg2rad() - 将角度转换为弧度

相关文章
php math 函数 反正切php math 函数 两个参数的反正切php math 函数 反双曲正切php math 函数 在任意进制之间转换数字php math 函数 十进制转换为八进制php math 函数 计算 e 的指数php math 函数 显示随机数最大的可能值php math 函数 十六进制转换为十进制php math 函数 判断是否为有限值php math 函数 判断是否为无限值php math 函数 以 10 为底的对数php math 函数 返回 log 1 + number ,甚至当 number 的值接近零也能计算出准确结果php math 函数 找出最大值php math 函数 找出最小值php math 函数 指数表达式php math 函数 产生一个随机整数php math 函数 对浮点数进行四舍五入php math 函数 正切php math 函数 双曲正切php math math 函数
关注编程学问公众号
编程学问网 湘ICP备20001732号