Cypher Exp Function

exp() returns e^n, where e is the base of the natural logarithm, and n is the value of the argument expression.

Syntaxexp(expression)

Returns: A Float.

Arguments

NameDescription
expressionA numeric expression.

Example

RETURN exp(5)

The value returned will be e^5, which will be 148.4131591025766

Considerations

  • exp(null) returns null.

Example

RETURN exp(1)

Returns the following Result

exp(1)
2.718281828459045

Example

RETURN exp(-1)

Returns the following Result

exp(-1)
0.36787944117144233

Example

RETURN exp(0)

Returns the following Result

exp(0)
1

Example

RETURN exp(null)

Returns the following Result

exp(null)
null

Noteexp(null) returns null.

Learn More