PHP tanh() 函数
PHP tanh() 函数 实例 返回不同数的双曲正切: <?php echo(tanh(M_PI_4) . "<br>"); echo(tanh(0.50) . "<br>"); echo(tanh(-0.50) . "<br>"); echo(tanh(5) . "<br>"); echo(tanh(10) . "<br>"); echo(tanh(-5) . "<br>"); echo(tanh(-10)); ?> 定义和用法 tanh() 函数返回一个数的双曲正切,定义为 sinh(x)/cosh(x)。 语法 tanh( _number_ ); 参数 描述 _number_ 必需。规定一个数。 技术细节 返回值: _number_ 的双曲正切。 返回类型: Float PHP 版本: 4.1+
PHP tanh() 函数
实例
返回不同数的双曲正切:
<?php echo(tanh(M_PI_4) . "<br>"); echo(tanh(0.50) . "<br>"); echo(tanh(-0.50) . "<br>"); echo(tanh(5) . "<br>"); echo(tanh(10) . "<br>"); echo(tanh(-5) . "<br>"); echo(tanh(-10)); ?>
定义和用法
tanh() 函数返回一个数的双曲正切,定义为 sinh(x)/cosh(x)。
语法
tanh( _number_ );
| 参数 | 描述 |
|---|---|
| _number_ | 必需。规定一个数。 |
技术细节
| 返回值: | _number_ 的双曲正切。 |
|---|---|
| 返回类型: | Float |
| PHP 版本: | 4.1+ |
交流与评论