Cypher Asin Function

asin() returns the arcsine of a number in radians. arcsine function is the inverse of the sine function. Arcsine of a number is also known as the sine inverse of the number.

Syntax: asin(expression)

Returns: A Float.

Arguments

NameDescription
expressionA numeric expression that represents the angle in radians.

Example

RETURN asin(0.5)

The value returned will be the arcsine of 0.5 radians, which is 0.5235987755982989.

Considerations

  • asin(null) returns null.
  • If (expression < -1), then (asin(expression)) returns Nan(Not a Number).
  • If (expression > 1), then (asin(expression)) returns Nan (Not a Number).

Example

RETURN asin(0.1)

Returns the following Result

asin(0.1)
0.1001674211615598

Example

RETURN asin(0.8)

Returns the following Result

asin(0.8)
0.9272952180016123

Example

RETURN asin(-0.4)

Returns the following Result

asin(-0.4)
-0.41151684606748806

Example

RETURN asin(1)

Returns the following Result

asin(1)
1.5707963267948966

Example

RETURN asin(-1)

Returns the following Result

asin(-1)
-1.5707963267948966

Example

RETURN asin(0)

Returns the following Result

asin(0)
0.0

Example

RETURN asin(1.5)

Returns the following Result

asin(1.5)
NaN

Noteasin(<Any Number greater than 1>) returns NaN.

Example

RETURN asin(-1.5)

Returns the following Result

asin(-1.5)
NaN

Noteasin(<Any Number less than -1>) returns NaN.

Example

RETURN asin(null)

Returns the following Result

asin(null)
null

Noteasin(null) returns null.

Learn More