TUTORIAL后端与 Web 服务FETCHED

PHP atanh() 函数

PHP atanh() 函数 PHP Math 参考手册 实例 返回不同数的反双曲正切: <?php echo(atanh(M_PI_4) . '<br>');echo(atanh(0.50) . '<br>'); echo(atanh(-0.50) . '<br>');..

更新于 2026/7/16

教程详情页默认 noindex。

PHP atanh() 函数

PHP Math 参考手册 PHP Math 参考手册

实例

返回不同数的反双曲正切:

<?php
echo(atanh(M_PI_4) . "<br>");
echo(atanh(0.50) . "<br>");
echo(atanh(-0.50) . "<br>");
echo(atanh(1) . "<br>");
echo(atanh(-1));
?>

运行实例 »

定义和用法

atanh() 函数返回一个数的反双曲正切。


语法

atanh(number);

参数 描述
number 必需。规定一个数。

技术细节

返回值: number 的反双曲正切。
返回类型: Float
PHP 版本: 4.1+
PHP 更新日志: PHP 5.3:该函数在所有平台上可用。


PHP Math 参考手册 PHP Math 参考手册