Difference between revisions of "SHIP:Sail:asin"

From Serious Documentation
Jump to: navigation, search
(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...")
 
Line 43: Line 43:
 
|<code>{{SailFunc|toDegrees}}({{SailFunc|asin}}(2));</code> || nan ||
 
|<code>{{SailFunc|toDegrees}}({{SailFunc|asin}}(2));</code> || nan ||
 
|}
 
|}
 +
 +
[[Categories: Numeric Functions]]

Revision as of 13:55, 4 October 2016

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

Categories: Numeric Functions