asin
(PHP 4, PHP 5)
asin — Arc sine
Описание
float asin
( float $arg
)
Returns the arc sine of arg in radians. asin() is the complementary function of sin(), which means that a==sin(asin(a)) for every value of a that is within asin()'s range.
Список параметров
- arg
-
The argument to process
Возвращаемые значения
The arc sine of arg in radians
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Математические расширения
- Математические функции
- abs
- acos
- acosh
- asin
- asinh
- atan2
- atan
- atanh
- base_convert
- bindec
- ceil
- cos
- cosh
- decbin
- dechex
- decoct
- deg2rad
- exp
- expm1
- floor
- fmod
- getrandmax
- hexdec
- hypot
- intdiv
- is_finite
- is_infinite
- is_nan
- lcg_value
- log10
- log1p
- log
- max
- min
- mt_getrandmax
- mt_rand
- mt_srand
- octdec
- pi
- pow
- rad2deg
- rand
- round
- sin
- sinh
- sqrt
- srand
- tan
- tanh
Коментарии
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/>";
?>