PHP 8.4.1 Released!

asin

(PHP 4, PHP 5, PHP 7, PHP 8)

asin反正弦

说明

asin(float $num): float

返回 num 的反正弦值,单位是弧度。asin()sin() 的反函数,它的意思是对于 asin() 的定义域中的每个 num 值,$num == sin(asin($num))

参数

num

待处理的参数

返回值

num 的反正弦弧度。

参见

添加备注

用户贡献的备注 1 note

up
-2
rahmatjon at gmail dot com
3 years ago
Hello!
Please put this example below the asin() function's description.
Thank you!

Example:
<?php
$arg
= 0.5;
$val = asin($arg);
echo
"asin(" . $arg . ") = " . $val . " radians.<br/>";
echo
"Pi value = " . pi() . "<br/>";
echo
"asin(" . $arg . ") = " . $val/pi()*180 . " degrees<br/>";

$arg = 1;
$val = asin($arg);
echo
"asin(" . $arg . ") = " . $val . " radians.<br/>";
echo
"Pi value = " . pi() . "<br/>";
echo
"asin(" . $arg . ") = " . $val/pi()*180 . " degrees<br/>";
?>
To Top