From 81a3b1a1b066f5a1e01754a4d12c2407593cdbc1 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 6 Mar 2021 10:13:24 -0500 Subject: add permutations and combinations --- htdocs/js/data.js | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) 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", -- cgit v1.2.3