# exp

Learn how to use the exp function in Notion formulas.

The exp() function allows you to raise Euler’s Number $$e$$ (the base of the natural logarithm) to a higher power and get the output, where the argument is the exponent:

$$e^n = m$$
.wp-block-code {
border: 0;
}

.wp-block-code > div {
overflow: auto;
}

.shcb-language {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
-webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
position: absolute;
width: 1px;
word-wrap: normal;
word-break: normal;
}

.hljs {
box-sizing: border-box;
}

.hljs.shcb-code-table {
display: table;
width: 100%;
}

.hljs.shcb-code-table > .shcb-loc {
color: inherit;
display: table-row;
width: 100%;
}

.hljs.shcb-code-table .shcb-loc > span {
display: table-cell;
}

.wp-block-code code.hljs:not(.shcb-wrap-lines) {
white-space: pre;
}

.wp-block-code code.hljs.shcb-wrap-lines {
white-space: pre-wrap;
}

.hljs.shcb-line-numbers {
border-spacing: 0;
counter-reset: line;
}

.hljs.shcb-line-numbers > .shcb-loc {
counter-increment: line;
}

.hljs.shcb-line-numbers .shcb-loc > span {
}

.hljs.shcb-line-numbers .shcb-loc::before {
border-right: 1px solid #ddd;
content: counter(line);
display: table-cell;
text-align: right;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
white-space: nowrap;
width: 1%;
}exp(number)

number.exp()


$$e$$ approximately equals 2.718281828459045.

Good to know: exp(n) is equivalent to e^n. See e (Constant) for more.

Viewed another way, the exp() function helps you find the argument (mathematical term) in a natural logarithm.

In other words, exp() accepts $$x$$ as an argument (programming term) and returns $$y$$, where:

$$\log_e y = x$$

For reference, here are the named components of a logarithm:

$$\log_{base} argument = exponent$$

exp(2) /* Output: 7.389056098931 */

5.exp() /* Output: 148.413159102577 */

e ^ 5   /* Output: 148.413159102577 */

exp(ln(5))   /* Output: 5 */

5.ln().exp() /* Output 5 */


Using exp(), we can write a Notion formula that models continuous growth of a starting population by a certain percentage each year over a certain number of years.

This example is also used in the article on Euler’s Constant (e); its use here demonstrates how exp(n) is equivalent to e^n.

prop("Starting Num") *
exp(
prop("Growth Rate") *
prop("Periods")
)


As stated in the Euler’s Constant (e) article, continuous growth of a starting number $$n$$ can be expressed as:

$$n * e^{(rate \ of \ growth \ * \ number \ of \ time \ periods)}$$

Here, we simply use the exp() function, passing prop("Growth Rate") * prop("Periods") as the argument.

We then multiply it by our starting number, passed via prop("Starting Num").