On this page
cmath.exp
Prev: cmath.cosh | Up: cmath | Next: cmath.isclose
Rel: cmath.acos, cmath.acosh, cmath.asin, cmath.asinh
Ref: docs.python.org — cmath.exp
Tags: #public #python3 #stdlib #cmath
Import
import cmath
from cmath import exp
Signature & Overview
cmath.exp(z, /)
Return the exponential value e**z.
Usage
import cmath
# Euler's identity: e^(i*pi) + 1 = 0
assert cmath.isclose(cmath.exp(1j * cmath.pi), -1, abs_tol=1e-12)
Gotchas
- Euler's formula:
cmath.exp(1j * theta)traces the unit circle.
REPL Inspect
from cmath import exp
help(exp)
Linked from
Related notes
- tuts/python3/stdlib_module/cmath/cosh Linked here; links to this page; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/isclose Linked here; links to this page; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/cmath/acos Linked here; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/acosh Linked here; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/asin Linked here; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/asinh Linked here; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/atan shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/atanh shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/cos shared tags: #cmath, #stdlib