Skip to main content

asin

Syntax Format

asin(x)

Overview

The asin function returns the arcsine of a given value. The function returns the arcsine in radians in the range [−π/2, π/2] of a number in the range [−1, 1], nil otherwise. The provided number value can only be within the [−1, 1] range to receive a result.

Parameters

ParameterTypePurpose
xseries or numericA number in the range [−1, 1]

Returns: same type as x.

Example

asin_value = asin(-1) -- equals ~ -1.5708 radians