---
title: "E"
language: "en"
type: "Symbol"
summary: "E is the exponential constant E (base of natural logarithms), with numerical value \\[TildeEqual] 2.71828."
keywords: 
- exponential constant
- logarithms
- M_E
canonical_url: "https://reference.wolfram.com/language/ref/E.html"
source: "Wolfram Language Documentation"
related_guides: 
  - 
    title: "Mathematical Constants"
    link: "https://reference.wolfram.com/language/guide/MathematicalConstants.en.md"
  - 
    title: "Mathematical Functions"
    link: "https://reference.wolfram.com/language/guide/MathematicalFunctions.en.md"
  - 
    title: "Continued Fractions & Rational Approximations"
    link: "https://reference.wolfram.com/language/guide/ContinuedFractionsAndRationalApproximations.en.md"
related_tutorials: 
  - 
    title: "Some Mathematical Functions"
    link: "https://reference.wolfram.com/language/tutorial/SomeMathematicalFunctions.en.md"
  - 
    title: "Mathematical Constants"
    link: "https://reference.wolfram.com/language/tutorial/MathematicalFunctions.en.md#1408"
  - 
    title: "Implementation notes: Numerical and Related Functions"
    link: "https://reference.wolfram.com/language/tutorial/SomeNotesOnInternalImplementation.en.md#16094"
---
# E (E)

E is the exponential constant $e$ (base of natural logarithms), with numerical value $\simeq 2.71828$.

## Details

* Mathematical constant treated as numeric by ``NumericQ`` and as a constant by ``D``.

* ``E`` can be evaluated to any numerical precision using ``N``.

* ``E`` can be entered in ``StandardForm`` and ``InputForm`` as ``E``, esc`` ee ``esc or [`\[ExponentialE]`](https://reference.wolfram.com/language/ref/character/ExponentialE.en.md).

* In ``StandardForm`` and ``TraditionalForm``, ``E`` is printed as ``E``.

---

## Background & Context

``E`` is the symbol representing the base of the natural logarithm ``Log``. It is also known as Euler's number and can be input as [`\[ExponentialE]`](https://reference.wolfram.com/language/ref/character/ExponentialE.en.md). ``E`` has a number of equivalent definitions in mathematics, including as the infinite sum of reciprocal factorials over non-negative integers $\sum _{k=0}^{\infty } \frac{1}{k!}$ and as the limiting value $\lim_{x\to \infty } \, \left(1+\frac{1}{x}\right)^x$. It has a numerical value $\simeq 2.71828$. With the possible exception of ``Pi``, ``E`` is the most important constant in mathematics. It appears in many sums, products, integrals, in equations involving the compounding of interest, in growth laws involving exponential growth or decay, and in formulas from a wide range of other mathematical and scientific fields.

The exponential function ``Exp[x]`` is converted to ``E ^ x``. When ``E`` is used as a symbol, it is propagated as an exact quantity. Expansion and simplification of complicated expressions involving ``E`` may require use of functions such as ``FunctionExpand`` and ``FullSimplify``.

Euler proved that ``E`` is irrational (meaning it cannot be expressed as a ratio of any two integers) and Hermite subsequently established that it is transcendental (meaning it is not the root of any integer polynomial). However, ``E`` is the "least" transcendental number possible since it has irrationality measure of 2. lt is not known if ``E`` is normal (meaning the digits in its base-``b`` expansion are equally distributed) to any base. Despite its extensive appearance in various closed-form sums and integrals, ``E`` is conjectured to not be a Kontsevich–Zagier period (meaning it is not the value of an absolutely convergent integral of any univariate or multivariate rational function with rational coefficients over algebraically-specified domains in $\mathbb{R}^n$).

``E`` can be evaluated to arbitrary numerical precision using ``N``. In fact, calculating the first million decimal digits of ``E`` takes only a fraction of a second on a modern desktop computer. ``RealDigits`` can be used to return a list of digits of ``E`` and ``ContinuedFraction`` to obtain terms of its continued fraction expansion.

---

## Examples (14)

### Basic Examples (3)

``E`` can be entered as esc`` ee ``esc (for "exponential e"):

```wl
In[1]:= E

Out[1]= E
```

---

Evaluate to any precision:

```wl
In[1]:= N[E, 50]

Out[1]= 2.7182818284590452353602874713526624977572470937000
```

---

Do an exact numerical computation:

```wl
In[1]:= Round[E ^ 100]

Out[1]= 26881171418161354484126255515800135873611119
```

### Applications (5)

The first 20 digits of $e$ in base 10:

```wl
In[1]:= RealDigits[E, 10, 20]

Out[1]= {{2, 7, 1, 8, 2, 8, 1, 8, 2, 8, 4, 5, 9, 0, 4, 5, 2, 3, 5, 3}, 1}
```

---

$e$ has a very regular continued fraction:

```wl
In[1]:= ContinuedFraction[E, 20]

Out[1]= {2, 1, 2, 1, 1, 4, 1, 1, 6, 1, 1, 8, 1, 1, 10, 1, 1, 12, 1, 1}
```

---

Evaluate symbolic relations involving $e$ :

```wl
In[1]:= E ^ Pi > Pi ^ E

Out[1]= True
```

---

Mathematical functions and operations often give results involving $e$ :

```wl
In[1]:= Limit[(1 + z) ^ (1 / z), z -> 0]

Out[1]= E
```

---

Solve the Steiner problem:

```wl
In[1]:= Maximize[{x ^ (1 / x), x > 0}, x]

Out[1]= {E^(1/E), {x -> E}}
```

### Properties & Relations (5)

``Exp[z]`` is automatically converted to ``E^z`` :

```wl
In[1]:= Exp[z]

Out[1]= E^z
```

---

$e$ is not an algebraic number:

```wl
In[1]:= Element[E, Algebraics]

Out[1]= False
```

---

Use ``TrigToExp`` to obtain ``E`` from hyperbolic and trigonometric functions:

```wl
In[1]:= TrigToExp[Sinh[1]]

Out[1]= -(1/2 E) + (E/2)
```

---

Find twenty base-10 digits after the millionth one:

```wl
In[1]:= RealDigits[E, 10, 20, -1000000]

Out[1]= {{8, 8, 3, 7, 4, 7, 1, 1, 5, 1, 5, 6, 2, 3, 9, 6, 8, 2, 7, 1}, -999999}
```

---

$e$ arises in many limiting results:

```wl
In[1]:= Limit[(z^z/(z - 1)^z - 1) - ((z - 1)^z - 1/(z - 2)^z - 2), z -> Infinity]

Out[1]= E

In[2]:= Sum[1 / k!, {k, 0, Infinity}]

Out[2]= E

In[3]:= FullSimplify[Sum[(2k + 1) / (2k)!, {k, 0, Infinity}]]

Out[3]= E
```

### Neat Examples (1)

Weyl‐type sum involving ``E`` :

```wl
In[1]:=
ListLinePlot[{Re[#], Im[#]}& /@ 
  Accumulate[Exp[I 10. ^ 3E Sqrt[Range[2000]]]]]

Out[1]= [image]
```

## See Also

* [`Exp`](https://reference.wolfram.com/language/ref/Exp.en.md)
* [`Log`](https://reference.wolfram.com/language/ref/Log.en.md)
* [`Pi`](https://reference.wolfram.com/language/ref/Pi.en.md)
* [`N`](https://reference.wolfram.com/language/ref/N.en.md)
* [`Limit`](https://reference.wolfram.com/language/ref/Limit.en.md)
* [`\[ExponentialE]`](https://reference.wolfram.com/language/ref/character/ExponentialE.en.md)

## Tech Notes

* [Some Mathematical Functions](https://reference.wolfram.com/language/tutorial/SomeMathematicalFunctions.en.md)
* [Mathematical Constants](https://reference.wolfram.com/language/tutorial/MathematicalFunctions.en.md#1408)
* [Implementation notes: Numerical and Related Functions](https://reference.wolfram.com/language/tutorial/SomeNotesOnInternalImplementation.en.md#16094)

## Related Guides

* [Mathematical Constants](https://reference.wolfram.com/language/guide/MathematicalConstants.en.md)
* [Mathematical Functions](https://reference.wolfram.com/language/guide/MathematicalFunctions.en.md)
* [Continued Fractions & Rational Approximations](https://reference.wolfram.com/language/guide/ContinuedFractionsAndRationalApproximations.en.md)

## Related Links

* [MathWorld](http://mathworld.wolfram.com/e.html)

## History

* Introduced in 1988 (1.0) \| Updated in 1996 (3.0) ▪ 1999 (4.0) ▪ 2000 (4.1) ▪ 2002 (4.2)