PyDocs

Numeric and Mathematical Modules

cmath

This module provides access to mathematical functions for complex
numbers.
Symbols in cmath

a

acos
Return the arc cosine of z.
acosh
Return the inverse hyperbolic cosine of z.
asin
Return the arc sine of z.
asinh
Return the inverse hyperbolic sine of z.
atan
Return the arc tangent of z.
atanh
Return the inverse hyperbolic tangent of z.

c

cos
Return the cosine of z.
cosh
Return the hyperbolic cosine of z.

e

e
The mathematical constant e, as a float.
exp
Return the exponential value e**z.

i

inf
Floating-point positive infinity.
infj
Complex number with zero real part and positive infinity imaginary part.
isclose
Determine whether two complex numbers are close in value.
isfinite
Return True if both the real and imaginary parts of z are finite, else False.
isinf
Checks if the real or imaginary part of z is infinite.
isnan
Checks if the real or imaginary part of z not a number (NaN).

l

log
If the base is not specified, returns the natural logarithm (base e) of z.
log10
Return the base-10 logarithm of z.

n

nan
A floating-point “not a number” (NaN) value.
nanj
Complex number with zero real part and NaN imaginary part.

p

phase
Return argument, also known as the phase angle, of a complex.
pi
The mathematical constant π, as a float.
polar
Convert a complex from rectangular coordinates to polar coordinates.

r

rect
Convert from polar coordinates to rectangular coordinates.

s

sin
Return the sine of z.
sinh
Return the hyperbolic sine of z.
sqrt
Return the square root of z.

t

tan
Return the tangent of z.
tanh
Return the hyperbolic tangent of z.
tau
The mathematical constant τ, as a float.