Package math
This package provides additional math functions.
Functions
- squareNumber(natural N)
figurate numbers
- Parameters:
N (natural)
- cubicNumber(natural N)
- Parameters:
N (natural)
- triangularNumber(natural N)
- Parameters:
N (natural)
- binomialCoefficient(positive N, positive K)
coefficients binomial coefficient (N choose K)
- Parameters:
N (positive)
K (positive)
- greatestCommonDivisor(positive N1, positive N2)
greatest common divisor (gcd)
- Parameters:
N1 (positive)
N2 (positive)
- leastCommonMultiple(positive N1, positive N2)
least common multiple (lcm)
- Parameters:
N1 (positive)
N2 (positive)
×