PHP asinh() 函数
asinh() 是预定义的 PHP 函数。它用于计算不同数字的反双曲正弦,并返回 arg 的反双曲正弦值。
语法
float asinh ( float $arg );
Parameter | Description | Required/Optional |
---|---|---|
arg | Specify a number | Required |
示例1
<?php
num=0;
echo "Your number is : ".num;
echo "<br>"."By using 'asinh()' function your number is :".(asinh($num));
?>
输出:
Your number is : 0
By using 'asinh()' function your number is :0
示例2
<?php
num=7;
echo "Your number is : ".num;
echo "<br>"."By using 'asinh()' function your number is :".(asinh($num));
?>
输出:
Your number is : 7
By using 'asinh()' function your number is :2.6441207610586
示例3
<?php
num=45;
echo "Your number is : ".num;
echo "<br>"."By using 'asinh()' function your number is :".(asinh($num));
?>
输出:
Your number is : 45
By using 'asinh()' function your number is :4.4999331042643
示例4
<?php
num=3.5;
echo "Your number is : ".num;
echo "<br>"."By using 'asinh()' function your number is :".(asinh($num));
?>
输出:
Your number is : 3.5
By using 'asinh()' function your number is :1.9657204716497