PHP acosh()函数

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

Camera课程

Python教程

Java教程

Web教程

数据库教程

图形图像教程

办公软件教程

Linux教程

计算机教程

大数据教程

开发工具教程