SHIP:Sail:asin

From Serious Documentation
Jump to: navigation, search
Function Returns Introduced Description
asin Float v5.0.204 Calculates the radians angle of a value that is in the range of -1 to +1

See Also:

Prototype

Float asin(Float value);

Parameters/Return Value

Parameter Data Type Description
value Float the value, from -1 to +1, to take the arcsin of
Return Float asin(value)

Detailed Description

The asin() function returns the arcsin of the supplied value within the range of -1 to +1. If you want to return an angle in degrees you can use toDegrees(asin(value))

Examples

Example Result Notes
toDegrees(asin(1/2)); 0
toDegrees(asin(sqrt(2)/2)); 45
toDegrees(asin(sqrt(3)/2)); 60
toDegrees(asin(2)); nan