math.frexp
The math.frexp function returns two values m and e -mantissa and exponent- such that the number passed as an argument to the function is equal to m * (2 ** e).
The math.frexp function returns two values m and e -mantissa and exponent- such that the number passed as an argument to the function is equal to m * (2 ** e).
The math.fmod function returns the modulus of two numbers as defined in the C platform library. This assumes that the modulus of two numbers a and b is defined as the result of a - n * b for some integer n such that the result has the same sign as a and a magnitude less than the absolute value of b .
Note that this criterion differs from the one used in Python's % operator, which -in addition to applying a different method for the calculation- returns a result that has the sign of b.
The math.factorial function returns the factorial of a number. This must be an integer equal to or greater than 0. In the case of being equal to 0, the function will return 1.
The math.fabs function returns the absolute value of a number, which must be an integer or real (complex numbers are not supported).
The math.copysign function takes two numbers as arguments, m and n, and returns the absolute value of m with the sign of n.
Both m and n must be whole or real numbers, not complex numbers.
The math.comb function returns the number of combinations without repetition of n elements taken in blocks of k units.
If the size of the blocks is greater than the number of elements, the function returns 0.
The math.cos function returns the cosine of the angle included as an argument.
math.tau returns the value of the mathematical constant tau (τ = 2 * π = 6.283185307179586)
math.e returns the value of the mathematical constant e (2.718281828459045).
The math.isnan function returns the Boolean True if the number passed as an argument is a NaN (Not a Number), or False otherwise.
Excepto donde se indique otra cosa, los contenidos de este sitio web se ofrecen bajo una licencia Reconocimiento-NoComercial-SinObraDerivada 4.0 Internacional