PHP tan() 関数

❮ PHP Math リファレンス

いろいろな数値の tan を返します

<?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 を返します。


構文

tan(number);

パラメータ 説明
number 必須。ラジアンで値を指定する

技術内容
返り値: numberの tan
返り値の型: Float
PHP バージョン: 4+

❮ PHP Math リファレンス