How to use the combinationsWithRep function from mathjs

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

71
72
73
74
75
76
77
78
79
80
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
math.randomInt(0, 11) // random int (min <= x < max)
fork icon0
star icon3
watch icon0

+ 6 other calls in file