ASIN

All functions > MATH > ASIN

Returns the arcsine (inverse sine) of a number in radians.

Signatures

Returns: Arcsine in radians (between -π/2 and π/2)

ASIN(number: T) → DOUBLE
sql
ParameterTypeRequiredDescription
numberTYesA number between -1 and 1 (inclusive)

Notes

  • Input must be in the range [-1, 1]
  • Returns values in the range [-π/2, π/2] radians
  • ASIN(0) = 0, ASIN(1) = π/2, ASIN(-1) = -π/2
  • Returns NULL if input is NULL
  • Returns NaN for inputs outside [-1, 1]
  • Inverse of SIN function: ASIN(SIN(x)) = x for x in [-π/2, π/2]

Examples

FeatureQL
SELECT
    f1 := ASIN(1.0e0),  -- Arcsine of 1 (90 degrees)
    f2 := ASIN(0.5e0),  -- Arcsine of 0.5 (30 degrees)
    f3 := ASIN(0.0e0),  -- Arcsine of 0
    f4 := ASIN(-0.5e0)  -- Arcsine of -0.5 (-30 degrees)
;
Result
f1 VARCHARf2 VARCHARf3 VARCHARf4 VARCHAR
1.57079632679489660.52359877559829880.0-0.5235987755982988

Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19