Cypher Cot Function

cot() returns the cotangent of a number.

Syntax: cot(expression)

Returns: A Float.

Arguments

NameDescription
expressionA numeric expression that represents the angle in radians.

Example

RETURN cot(1)

The value returned will be the cotangent of 1 radians, which is 0.6420926159343306.

Considerations

  • cot(null) returns null.
  • cot(0) returns Infinity.

Example

RETURN cot(0.341)

Returns the following Result

cot(0.341)
2.81799362837734

Example

RETURN cot(-1.4)

Returns the following Result

cot(-1.4)
-0.17247672583180004

Example

RETURN cot(0)

Returns the following Result

cot(0)
Infinity

Notecot(0) returns Infinity.

Example

RETURN cot(null)

Returns the following Result

cot(null)
null

Notecot(null) returns null.

Learn More