English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Thisasin()
The function returns the inverse sine of a number. It specifies-1to1range, then it returns NaN.-1to1If the number is not within the range, it returns NaN.
Syntax
parameter-num-1to1number. The number to return the inverse sine of. The range is specified by
Thisasin()
The function returns the inverse sine of a number. It specifies-1to1range, then it returns NaN.-1to1If the number is not within the range, it returns NaN.
<?php echo(asin(0.50) . "<br>"); echo(asin(-0.90) . "<br>"); ?>
Output Result
0.5235987755983<br>-1.1197695149986<br>
Let's see another example-
<?php echo(asin(0) . "<br>"); echo(asin(1) . "<br>"); echo(asin(-1) . "<br>"); echo(asin(2) . "<br>"); ?>
Output Result
0<br>1.5707963267949<br>-1.5707963267949<br>NAN<br>