On this page
  1. math.exp
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

math.exp

Prev: math.erfc | Up: math | Next: math.exp2
Rel: math.acos, math.acosh, math.asin, math.asinh
Ref: docs.python.org — math.exp
Tags: #public #python3 #stdlib #math


Import

import math
from math import exp

Signature & Overview

math.exp(x, /)

Return e raised to the power of x.

Usage

import math

assert math.isclose(math.exp(1.0), math.e)
assert math.isclose(math.exp(0.0), 1.0)

Gotchas

REPL Inspect

from math import exp
help(exp)

Linked from

Related notes