init({ range: [[-1, 20], [-1, 3]], scale: 20 });
label([0, 0], SUM, "right");
var x = 2.5 + 0.8 * DIGITS;
var x2 = ((DIGITS * 9 + 20) * N1 - 16) / 20;
if (N1 > 2) {
curlyBrace([x, 0.9], [x + x2, 0.9]);
label([x + x2 / 2, 1.1], "\\blue{" + N1 + "}", "above");
}
x += x2 + 0.9;
x2 = ((DIGITS * 9 + 20) * N2 - 16) / 20;
if (N2 > 2) {
curlyBrace([x, 0.9], [x + x2, 0.9]);
label([x + x2 / 2, 1.1], "\\green{" + N2 + "}", "above");
}
init({ range: [[-1, 20], [-1, 3]], scale: 20 });
label([0, 0], SUM, "right");
var x = 2.5 + 0.8 * DIGITS;
var x2 = ((DIGITS * 9 + 20) * (N1 + N2) - 16) / 20;
curlyBrace([x, 0.9], [x + x2, 0.9]);
label([0.05 + x + x2 / 2, 1.1], "\\blue{" + N1 + "} + \\green{" + N2 + "}", "above");
\qquad = \dfrac{\blue{N1} + \green{N2}}{D}
\qquad = \dfrac{N1 + N2}{D}