You are here : python_3 -> math

math

math.acos() Return the arc cosine of x, in radians
math.acosh() Return the inverse hyperbolic cosine of x
math.asin() Return the arc sine of x, in radians
math.asinh() Return the inverse hyperbolic sine of x
math.atan() Return the arc tangent of x, in radians
math.atan2() Return atan(y / x), in radians
math.atanh() Return the inverse hyperbolic tangent of x
math.ceil() Return the ceiling of x, the smallest integer greater than or equal to x.
math.copysign() Return a float with the magnitude (absolute value) of x but the sign of y
math.cos() Return the cosine of x radians
math.cosh() Return the hyperbolic cosine of x
math.degrees() Convert angle x from radians to degrees
math.erf() Return the error function at x
math.erfc() Return the complementary error function at x
math.exp() Return e**x
math.expm1() Return e**x - 1
math.fabs() Return the absolute value of x
math.factorial() Return x factorial
math.floor() Return the floor of x, the largest integer less than or equal to x
math.fmod() Return fmod(x, y), as defined by the platform C library
math.frexp() Return the mantissa and exponent of x as the pair (m, e)
math.fsum() Return an accurate floating point sum of values in the iterable
math.gamma() Return the Gamma function at x
math.gcd() Return the greatest common divisor of the integers a and b
math.hypot() Return the Euclidean norm, sqrt(x*x + y*y)
math.isclose() Return True if the values a and b are close to each other and False otherwise
math.isfinite() Return True if x is neither an infinity nor a NaN, and False otherwise
math.isinf() Return True if x is a positive or negative infinity, and False otherwise
math.isnan() Return True if x is a NaN (not a number), and False otherwise
math.ldexp() Return x * (2**i)
math.lgamma() Return the natural logarithm of the absolute value of the Gamma function at x
math.log() With one argument, return the natural logarithm of x (to base e)
math.log10() Return the base-10 logarithm of x
math.log1p() Return the natural logarithm of 1+x (base e)
math.log2() Return the base-2 logarithm of x
math.modf() Return the fractional and integer parts of x
math.pow() Return x raised to the power y
math.radians() Convert angle x from degrees to radians
math.sin() Return the sine of x radians
math.sinh() Return the hyperbolic sine of x
math.sqrt() Return the square root of x
math.tan() Return the tangent of x radians
math.tanh() Return the hyperbolic tangent of x
math.trunc() Return the Real value x truncated to an Integral (usually an integer)