asin()
Calculates the angle whose sine is the specified number, or the arc sine. This is the inverse operation of sin()
.
Syntax
asin(
x)
Parameters
Name | Type | Required | Description |
---|---|---|---|
x | real | ✓ | A real number in range [-1, 1] used to calculate the arc sine. |
Returns
Returns the value of the arc sine of x
. Returns null
if x
< -1 or x
> 1.
Example
print asin(0.5)
Results
result |
---|
0.5235987755982989 |