acosh

(PHP 4 >= 4.1.0, PHP 5)

acoshInverse hyperbolic cosine

說明

float acosh ( float $arg )

Returns the inverse hyperbolic cosine of arg, i.e. the value whose hyperbolic cosine is arg.

參數

arg

The value to process

回傳值

The inverse hyperbolic cosine of arg

更新日誌

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

參見

add a note add a note

User Contributed Notes 1 note

up
0
rahmatjon at gmail dot com
3 years 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/>";
?>
To Top