Skip to content

Math and Statistics Module Functions

Math and Statistics Module Functions

Math module functions

The following are the functions in the Python's built-in math module:

math trig functions

acos()

acosh()

asin()

asinh()

atan()

atan2()

atanh()

cos()

cosh()

degrees()

hypot()

pi()

radians()

sin()

sinh()

tan()

tanh()

tau()

math power, exponent and logarithm functions

e()

exp()

expm1()

frexp()

factorial()

ldexp()

lgamma()

log()

log10()

log1p()

log2()

pow()

sqrt()

math miscellaneous functions

ceil()

copysign()

erf()

erfc()

abs()

floor()

fmod()

fsum()

gamma()

gcd()

inf()

isclose()

isfinite()

isinf()

isnan()

modf()

nan()

trunc()

Statistics module functions

The following are the functions and classes in Python's built-in statistics module:

statistics functions

bisect_left()

bisect_right()

chain()

collections()

decimal()

groupby()

harmonic_mean()

math()

mean()

median()

median_grouped()

median_high()

median_low()

mode()

numbers()

pstdev()

pvariance()

stdev()

variance()

statistics classes

Decimal

Fraction

StatisticsError