math module:

ceil: Take greater than or equal to the smallest integer x, if x is an integer, x is returned 
copysign: y is applied to the front of the sign of x, can be used 0 
COS: find the cosine of x, x must be in radians 
degrees: the converted from radians to degrees x 
e: represents a constant 
exp: returns math.e, i.e. 2.71828 power of x 
expm1: returns the value of Math.E x (a value of 2.71828) th power minus. 1 
FABS: returns x the absolute value of the 
factorial: take the value of x factorial 
floor: taking the maximum integer value less than or equal to x if x is an integer, it returns itself 
fmod: obtain a remainder of x / y, which is a floating point value 
frexp: returns a tuple (m, e), which is calculated as: x 0.5 and 1, respectively, except, to give a range of values of 
fsum: each element of the iterator, summing operation 
gcd: returns the greatest common divisor of x and y 
hypot: If x is not infinite in number, the return True, otherwise False 
isFinite: If x is positive infinity or negative infinity, then return True, otherwise False 
isinf: If x is positive infinity or negative infinity, True is returned, otherwise return False 
isNaN: if x is not numeric True, otherwise False 
ldexp: return x * (2 ** i) Value 
log: returns the natural logarithm of x, the default base e, base parameters given time, the number x of the given return Base, calculated as: log (x) / log ( base)
log10: Returns x base 10 logarithm 
log1p: return x + NATURAL 1 value of the log (base e) of 
log2: Returns the group of x 2 log 
modf: returns a fractional part and an integer part of x composition tuples 
pi: numeric constants, pi 
pow: returns x to the power y, i.e. y ** x 
radians: the angle x is converted to radians 
sin: find x (x in radians) sine 
sqrt: square root of x 
tan : return x (x in radians) tangent 
trunc: returns the integer part of x 
--------------------- 
author: changaspl 
source: CSDN 
original: https: / /blog.csdn.net/qq_40674583/article/details/81940974 
Disclaimer: This article is a blogger original article, reproduced, please attach Bowen link!

  

Guess you like

Origin www.cnblogs.com/heluobing/p/10963800.html