module math
¶
Source: stdlib/math.codon
e
= 2.7182818284590452354
¶
pi
= 3.14159265358979323846
¶
tau
= 6.28318530717958647693
¶
inf
= _inf()
¶
nan
= _nan()
¶
factorial(x: int)
¶
isnan(x: float)
¶
isinf(x: float)
¶
isfinite(x: float)
¶
ceil(x: float)
¶
floor(x: float)
¶
fabs(x: float)
¶
fmod(x: float, y: float)
¶
exp(x: float)
¶
expm1(x: float)
¶
ldexp(x: float, i: int)
¶
log(x: float, base: float = e)
¶
log2(x: float)
¶
log10(x: float)
¶
degrees(x: float)
¶
radians(x: float)
¶
sqrt(x: float)
¶
pow(x: float, y: float)
¶
acos(x: float)
¶
asin(x: float)
¶
atan(x: float)
¶
atan2(y: float, x: float)
¶
cos(x: float)
¶
sin(x: float)
¶
hypot(x: float, y: float)
¶
tan(x: float)
¶
cosh(x: float)
¶
sinh(x: float)
¶
tanh(x: float)
¶
acosh(x: float)
¶
asinh(x: float)
¶
atanh(x: float)
¶
copysign(x: float, y: float)
¶
log1p(x: float)
¶
trunc(x: float)
¶
erf(x: float)
¶
erfc(x: float)
¶
gamma(x: float)
¶
lgamma(x: float)
¶
remainder(x: float, y: float)
¶
gcd(*args)
¶
lcm(*args)
¶
frexp(x: float)
@pure Function has no side effects and returns same value for same inputs ¶
modf(x: float)
@pure Function has no side effects and returns same value for same inputs ¶
isclose(a: float, b: float, rel_tol: float = 1e-09, abs_tol: float = 0.0)
¶
fsum(seq)
¶
prod(iterable, start = 1)
¶
e32
= float32(e)
¶
pi32
= float32(pi)
¶
tau32
= float32(tau)
¶
inf32
= float32(inf)
¶
nan32
= float32(nan)
¶
isnan(x: float32)
@overload Function is overloaded ¶
float32
version of math.isnan()
isinf(x: float32)
@overload Function is overloaded ¶
float32
version of math.isinf()
isfinite(x: float32)
@overload Function is overloaded ¶
float32
version of math.isfinite()
ceil(x: float32)
@overload Function is overloaded ¶
float32
version of math.ceil()
floor(x: float32)
@overload Function is overloaded ¶
float32
version of math.floor()
fabs(x: float32)
@overload Function is overloaded ¶
float32
version of math.fabs()
fmod(x: float32, y: float32)
@overload Function is overloaded ¶
float32
version of math.fmod()
exp(x: float32)
@overload Function is overloaded ¶
float32
version of math.exp()
expm1(x: float32)
@overload Function is overloaded ¶
float32
version of math.expm1()
ldexp(x: float32, i: int)
@overload Function is overloaded ¶
float32
version of math.ldexp()
log(x: float32, base: float32 = e32)
@overload Function is overloaded ¶
float32
version of math.log()
log2(x: float32)
@overload Function is overloaded ¶
float32
version of math.log2()
log10(x: float32)
@overload Function is overloaded ¶
float32
version of math.log10()
degrees(x: float32)
@overload Function is overloaded ¶
float32
version of math.degrees()
radians(x: float32)
@overload Function is overloaded ¶
float32
version of math.radians()
sqrt(x: float32)
@overload Function is overloaded ¶
float32
version of math.sqrt()
pow(x: float32, y: float32)
@overload Function is overloaded ¶
float32
version of math.pow()
acos(x: float32)
@overload Function is overloaded ¶
float32
version of math.acos()
asin(x: float32)
@overload Function is overloaded ¶
float32
version of math.asin()
atan(x: float32)
@overload Function is overloaded ¶
float32
version of math.atan()
atan2(y: float32, x: float32)
@overload Function is overloaded ¶
float32
version of math.atan2()
cos(x: float32)
@overload Function is overloaded ¶
float32
version of math.cos()
sin(x: float32)
@overload Function is overloaded ¶
float32
version of math.sin()
hypot(x: float32, y: float32)
@overload Function is overloaded ¶
float32
version of math.hypot()
tan(x: float32)
@overload Function is overloaded ¶
float32
version of math.tan()
cosh(x: float32)
@overload Function is overloaded ¶
float32
version of math.cosh()
sinh(x: float32)
@overload Function is overloaded ¶
float32
version of math.sinh()
tanh(x: float32)
@overload Function is overloaded ¶
float32
version of math.tanh()
acosh(x: float32)
@overload Function is overloaded ¶
float32
version of math.acosh()
asinh(x: float32)
@overload Function is overloaded ¶
float32
version of math.asinh()
atanh(x: float32)
@overload Function is overloaded ¶
float32
version of math.atanh()
copysign(x: float32, y: float32)
@overload Function is overloaded ¶
float32
version of math.copysign()
log1p(x: float32)
@overload Function is overloaded ¶
float32
version of math.log1p()
trunc(x: float32)
@overload Function is overloaded ¶
float32
version of math.trunc()
erf(x: float32)
@overload Function is overloaded ¶
float32
version of math.erf()
erfc(x: float32)
@overload Function is overloaded ¶
float32
version of math.erfc()
gamma(x: float32)
@overload Function is overloaded ¶
float32
version of math.gamma()
lgamma(x: float32)
@overload Function is overloaded ¶
float32
version of math.lgamma()
remainder(x: float32, y: float32)
@overload Function is overloaded ¶
float32
version of math.remainder()
frexp(x: float32)
@overload Function is overloaded @pure Function has no side effects and returns same value for same inputs ¶
float32
version of math.frexp()
modf(x: float32)
@overload Function is overloaded @pure Function has no side effects and returns same value for same inputs ¶
float32
version of math.modf()
isclose(a: float32, b: float32, rel_tol: float32 = float32(1e-09), abs_tol: float32 = float32(0.0))
@overload Function is overloaded ¶
float32
version of math.isclose()