diff options
author | Paul Duncan <pabs@pablotron.org> | 2021-03-06 10:13:24 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2021-03-06 10:13:24 -0500 |
commit | 81a3b1a1b066f5a1e01754a4d12c2407593cdbc1 (patch) | |
tree | 102cd8888fa9660600c2e7eda2171d16826a2d3d | |
parent | bbc7aa8b51e4890f66c8298d6dc7d6368ebade38 (diff) | |
download | mathy-81a3b1a1b066f5a1e01754a4d12c2407593cdbc1.tar.bz2 mathy-81a3b1a1b066f5a1e01754a4d12c2407593cdbc1.zip |
add permutations and combinations
-rw-r--r-- | htdocs/js/data.js | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/htdocs/js/data.js b/htdocs/js/data.js index 5a12764..7b66e46 100644 --- a/htdocs/js/data.js +++ b/htdocs/js/data.js @@ -241,7 +241,40 @@ var DATA = { " y &= mx + b", "\\end{align*}", ], - }], + }, { + name: "Permutations and Combinations", + text: [ + "\\text{Permutations and Combinations} \\\\", + "", + "\\begin{array}{|c|c|c|c|}", + "\\hline", + " \\text{Name} &", + " \\text{Ordering} &", + " \\text{Repetition} &", + " \\text{Formula} \\\\ ", + "\\hline", + " \\text{Permutation} &", + " \\text{Yes} &", + " \\text{Yes} &", + " n^k \\\\", + "\\hline", + " \\text{Permutation} &", + " \\text{Yes} &", + " \\text{No} &", + " \\frac{n!}{(n - k)!} \\\\", + "\\hline", + " \\text{Combination} &", + " \\text{No} &", + " \\text{Yes} &", + " \\frac{(n + k - 1)!}{k!(n - 1)!} = {n + k - 1 \\choose k} \\\\ ", + "\\hline", + " \\text{Combination} &", + " \\text{No} &", + " \\text{No} &", + " \\frac{n!}{k!(n - k)!} = {n \\choose k} \\\\ ", + "\\hline", + "\\end{array}", + ]], themes: [ "ambiance", |