How to use the combinations function from mathjs
Find comprehensive JavaScript mathjs.combinations code examples handpicked from public code repositorys.
GitHub: jly36963/notes
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
0
3
0
+ 6 other calls in file
mathjs.evaluate is the most popular function in mathjs (87200 examples)