Python CMath

cmath is a module that support math with complex numbers.


Functions

ACos

ACosH

ASin

ASinH

ATan

ATanH

Cos

CosH

Exp

IsClose

IsFinite

IsInf

IsNaN

Log

Log10

Phase

Polar

Rect

Sin

SinH

Sqrt

Tan

TanH


Constants

Name

Value

cmath.pi

π as a float

cmath.e

e as a float

cmath.tau

τ as a float

cmath.inf

floating-point positive infinity; same as float('inf')

cmath.infj

complex(0.0, float('inf'))

cmath.nan

floating-point not a number; same as float('nan')

cmath.nanj

complex(0.0, float('nan'))


See also

Python cmath module documentation


CategoryRicottone