Skip to content

module cmath

Source: stdlib/cmath.codon


e = math.e


pi = math.pi


tau = math.tau


inf = math.inf


nan = math.nan


infj = complex(0.0, inf)


nanj = complex(0.0, nan)


phase(x)


polar(x)


rect(r, phi)


exp(x)


log(x, base = e)


log10(x)


sqrt(x)


asin(x)


acos(x)


atan(x)


sin(x)


cos(x)


tan(x)


asinh(x)


acosh(x)


atanh(x)


sinh(x)


cosh(x)


tanh(x)


isfinite(x)


isinf(x)


isnan(x)


isclose(a, b, rel_tol: float = 1e-09, abs_tol: float = 0.0)