SHIP:Sail:asin

From Serious Documentation
Revision as of 17:26, 28 September 2016 by CarltonHeyer (talk | contribs) (Created page with "__NOTOC__ {{SailFuncTableStart|}}<onlyinclude> |{{SailFunc|asin}}||{{DataType|Float}}||style="text-align:center;"|v5.0.204||Returns the radians angle of a value that is in the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function Returns Introduced Description
asin Float v5.0.204 Returns the radians angle of a value that is in the range of -1 to +1Badge SHIPv5.gif

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