Learn Before
Relation
Mathematical Functions
Python's math module provides access to the mathematical functions defined by the C standard.
import math
These functions cannot be used with complex numbers; use the functions of the same name from the cmath module if complex number support is required.
Examples of math functions:
- math.ceil(x)
- math.copysign(x, y)
- math.fabs(x)
- math.factorial(x)
- math.floor(x)
- math.gcd(*integers)
- math.isfinite(x)
- math.isinf(x)
- math.isnan(x)
- math.isqrt(n)
- math.lcm(*integers)
- math.prod(iterable, *, start=1)
- math.exp(x)
- math.log(x[, base])
0
0
Updated 2021-08-09
Contributors are:
Who are from:
Tags
Python Programming Language
Data Science