略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: acosh

2024-11-14

acosh

(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)

acosh反双曲余弦

说明

acosh(float $arg): float

返回 arg 的反双曲余弦值,即,其双曲余弦为 arg 的那个值。

参数

arg

要处理的值

返回值

The inverse hyperbolic cosine of arg

更新日志

版本 说明
5.3.0 This function is now available on all platforms

参见

add a noteadd a note

User Contributed Notes 1 note

up
0
rahmatjon at gmail dot com
1 year ago
Hello!
There is no any example for acosh() function. Please put this one below the acosh() function's description.
Thank you!

Example:
<?php
    $x
= 1;
   
$y1 = acosh($x);
    echo
"PHP function acosh(). acosh(" . $x . ") = " . $y1 . ".<br/>";
   
$y2 = log($x + sqrt($x*$x -1));
    echo
"By definition of acosh. acosh(" . $x . ") = " . $y2 . ".<br/>";

   
$x = 10;
   
$y1 = acosh($x);
    echo
"PHP function acosh(). acosh(" . $x . ") = " . $y1 . ".<br/>";
   
$y2 = log($x + sqrt($x*$x -1));
    echo
"By definition of acosh. acosh(" . $x . ") = " . $y2 . ".<br/>";
?>

官方地址:https://www.php.net/manual/en/function.acosh.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3