PHP acosh()函数
acosh() 是预定义的三角函数PHP函数。它用于找到一个数的反双曲线。它返回一个浮点数。
语法
acosh(number);
Parameter | Description | Required/Optional |
---|---|---|
Number | Specify a number | Required |
示例1
<?php
num=7;
echo "Your number is : ".num;
echo "<br>"."By using 'asinh()' function your number is :".(acosh($num));
?>
输出:
Your number is : 7
By using 'acosh()' function your number is :2.6339157938496
示例2
<?php
num=2.45;
echo "Your number is : ".num;
echo "<br>"."By using 'acosh()' function your number is :".(acosh($num));
?>
输出:
Your number is : 2.45
By using 'acosh()' function your number is :1.5447131178707
示例3
<?php
num=56;
echo "Your number is : ".num;
echo "<br>"."By using 'acosh()' function your number is :".(acosh($num));
?>
输出:
Your number is : 56
By using 'acosh()' function your number is :4.7184191423729