How to use the combinations function from mathjs

Find comprehensive JavaScript mathjs.combinations code examples handpicked from public code repositorys.

70
71
72
73
74
75
76
77
78
79
math.std(numbers);
math.variance(numbers);
math.sum(numbers);

// probability
math.combinations(7, 5) // number of ways picking 'k' unordered outcomes from 'n' possibilities
math.combinationsWithRep(7, 5) // combinations with replacement
math.factorial(a);
math.permutations(n) // number of possible ordered combinations
math.pickRandom(numbers) // random selection from array
fork icon0
star icon3
watch icon0

+ 6 other calls in file