acosh() 是預定義的三角函數 PHP 函數。它用於求一個數的反雙曲線。它返回一個浮點數。
用法:
acosh(number);
參數 | 描述 | 必需/可選 |
---|---|---|
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
相關用法
- PHP acosh( )用法及代碼示例
- PHP acos( )用法及代碼示例
- PHP PHPUnit assertIsNotFloat()用法及代碼示例
- PHP array_reverse()用法及代碼示例
- PHP PHPUnit assertStringStartsWith()用法及代碼示例
- PHP PHPUnit assertIsObject()用法及代碼示例
- PHP PHPUnit assertNotIsReadable()用法及代碼示例
- PHP array_filter()用法及代碼示例
- PHP PHPUnit assertNotNull()用法及代碼示例
- PHP array_pop()用法及代碼示例
- PHP PHPUnit assertEqualsIgnoringCase()用法及代碼示例
- PHP asort()用法及代碼示例
- PHP array_diff_uassoc()用法及代碼示例
- PHP PHPUnit assertIsNotScalar()用法及代碼示例
- PHP array_intersect_key()用法及代碼示例
- PHP array_key_first()用法及代碼示例
- PHP PHPUnit assertDirectoryNotIsWritable()用法及代碼示例
- PHP PHPUnit assertStringEndsNotWith()用法及代碼示例
- PHP PHPUnit assertDirectoryNotIsReadable()用法及代碼示例
- PHP PHPUnit assertClassHasAttribute()用法及代碼示例
注:本文由純淨天空篩選整理自 PHP acosh() Function。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。