Cypher Atan Function

atan() returns the arctangent of a number in radians. Arctangent function is the inverse of the tangent function. Arctangent of a number is also known as the tangent inverse of the number.

Syntax: atan(expression)

Returns: A Float.

Arguments

NameDescription
expressionA numeric expression that represents the angle in radians.

Example

RETURN atan(0.5)

The value returned will be the arccosine of 0.5 radians, which is 0.4636476090008061.

Considerations

  • atan(null) returns null.

Example

RETURN atan(0.1)

Returns the following Result

atan(0.1)
0.09966865249116204

Example

RETURN atan(0.8)

Returns the following Result

atan(0.8)
0.6747409422235527

Example

RETURN atan(-4)

Returns the following Result

atan(-4)
-1.3258176636680326

Example

RETURN atan(1)

Returns the following Result

atan(1)
0.7853981633974483

Example

RETURN atan(0)

Returns the following Result

atan(0)
0.0

Example

RETURN atan(null)

Returns the following Result

atan(null)
null

Noteatan(null) returns null.

Learn More