Math Functions

math.exp()

Raise Euler's number to a real exponent; large positive values can overflow.

Formal Syntax & Structure

python syntaxpython
math.exp(x, /)

Parameters & Attributes

NameTypeDescription
xreal numberInput real value.

Return Value

float

Floating-point result; finite precision and domain restrictions apply.

Working Example

Example Snippetpython
import mathprint(math.exp(0))
Python Reference