Home / Maths for AI / Symbols / Functions

Euler's number

Say it: "e"

What it means

A constant, about 2.718, that appears whenever growth is proportional to size. exe^x (also written exp⁡(x)\exp(x)) is the exponential function.

Example

e≈2.71828,e0=1,e1=ee \approx 2.71828, \quad e^0 = 1, \quad e^1 = e

The base of natural growth and the natural log.

In code

import numpy as np
print(np.e, np.exp([0, 1, 2]))

Output

2.718281828459045 [1.         2.71828183 7.3890561 ]

Where it appears in machine learning

Softmax, sigmoid and the Gaussian distribution are all built from exe^x.

Related symbols

Learn it properly in the free lesson Reading ML Maths, with practice questions that check your answers.