math.asin()

Type Function
Library math.*
Return value Number
Revision 2017.3077
Keywords asin, arc sine
See also math.sin()

Overview

Returns the arc sine of a x (in radians). The result will be in the range -pi/2 to pi/2. If the parameter x is outside the range [-1..1], the result will be NaN.

Syntax

math.asin( x )
x (required)

Number. A number.

Examples

print (math.asin (1))     -- result will be 1.57079...
print (math.asin (-1))    -- result will be -1.57079...
print (math.asin (1.1))   -- result will be NaN