PHP: asin() function
Description
The asin() function returns the arc sine of a number in radians.
Version:
(PHP 4 and above)
Syntax:
asin(number)
Parameter:
Name | Description | Required / Optional |
Type |
---|---|---|---|
number | Numeric value. | Required | Float |
Return value:
The arc sine of a number radians.
Value Type: Float.
Example:
<?php
$val1= 0;
$val2=.4;
$zasine1=asin($val1);
$zasine2=asin($val2);
echo "Arc sine of $val1 is $zasine1<br />";
echo "Arc sine of $val2 is $zasine2<br />";
?>
Sample Output:
Arc sine of 0 is 0 Arc sine of 0.4 is 0.411516846067
View the example in the browser
Pictorial Presentation:
See also
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/php/function-reference/asin.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics