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).

Submitted by admin on Wed, 01/20/2021 - 12:27

math.fmod

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.

Submitted by admin on Wed, 01/20/2021 - 11:49

math.factorial

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.

Submitted by admin on Wed, 01/20/2021 - 11:31

math.fabs

The math.fabs function returns the absolute value of a number, which must be an integer or real (complex numbers are not supported).

Submitted by admin on Wed, 01/20/2021 - 11:05

math.copysign

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.

Submitted by admin on Wed, 01/20/2021 - 10:49

math.comb

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.

Submitted by admin on Wed, 01/20/2021 - 10:21

math.tau

math.tau returns the value of the mathematical constant tau (τ = 2 * π = 6.283185307179586)

Submitted by admin on Tue, 01/19/2021 - 16:05

math.e

math.e returns the value of the mathematical constant e (2.718281828459045).

Submitted by admin on Tue, 01/19/2021 - 15:57

math.isnan

The math.isnan function returns the Boolean True if the number passed as an argument is a NaN (Not a Number), or False otherwise.

Submitted by admin on Tue, 01/19/2021 - 13:03