UNPKG

enhancedmath

Version:

This package contains some enhanced mathematical operations

9 lines (8 loc) 341 B
/** * Calculates the probability of a combination with a population of n and a sample size r * @param {number} n The size of the population * @param {number} r The sample size * @returns {number} The amount of possible combinations */ declare const combination: (n: number, r: number) => bigint | undefined; export default combination;