exp

math

Returns e raised to the given power

Syntax

exp(number)

Parameters

number (number)

The exponent to raise e to

Returns

number

e raised to the power of the input

Examples

Input:
1 | exp
Output:
2.718...
Input:
exp(0)
Output:
1
Input:
exp(2)
Output:
7.389...

The exp() function returns e (Euler’s number, approximately 2.718) raised to the given power.

Usage

Use exp() for exponential growth calculations, natural exponential functions, or mathematical operations involving e.

Related Functions