Cypher Cos Function

cos() returns the cosine of a number.

Syntax: cos(expression)

Returns: A Float.

Arguments

NameDescription
expressionA numeric expression that represents the angle in radians.

Example

RETURN cos(1)

The value returned will be the cosine of 1 radians, which is 0.5403023058681398.

Considerations

  • cos(null) returns null.

Example

RETURN cos(0.341)

Returns the following Result

cos(0.341)
0.9424207071144931

Example

RETURN cos(-1.4)

Returns the following Result

cos(-1.4)
0.16996714290024104

Example

RETURN cos(0)

Returns the following Result

cos(0)
1.0

Example

RETURN cos(null)

Returns the following Result

cos(null)
null

Notecos(null) returns null.

Learn More