Skip to content

An AI skill that turns books into animated, narrated, interactive web experiences

Chapters 40-56: statistics, functions, polynomials and factoring

yzr32e2a3b4a288
diff --git a/.claude/skills/animebook-chapter/SKILL.md b/.claude/skills/animebook-chapter/SKILL.md
index 4be5c31..9d073d3 100644
--- a/.claude/skills/animebook-chapter/SKILL.md
+++ b/.claude/skills/animebook-chapter/SKILL.md
@@ -48,6 +48,7 @@ description: 为 AnimeBook 制作或修改一章数学动画课:读参考书
- **行内数学**用 `mathEl`,基线已和正文对齐;分数、根号、循环节都由 `M()` 绘制,不引入公式库。
- **斜体变量**:`M()` 会把 1–2 个字母的小写片段排成斜体变量,所以数学串里的单位(m、cm、kg)也会变斜体。单位请写成完整单词(meters),或放进 `T()` 的普通文字里。
- **斜体误判**:单字母 a、x 等在 `M()` 里总是斜体,所以普通英文句子(“3% a year”)不要放进 `M()`/`mline`,要用 `T()` 或改写成 “per year”。
+- **小写的英文短词**:`M()` 把 by、my、an、if、in、is、of、or 等当成英文单词排成正体,算式里的 by、my、an 要写成 `b\u200By`、`m\u200By`、`a\u200Bn`(ch53)。
- **大写变量与英文短词**:`M()` 不把 By、If、In 等看成变量,所以 `Ax + By = C` 里的 By 会是正体。写成 `B\u200By`(中间零宽空格)即可让 B、y 都变斜体。
- **grid / choice 的 parts 是 HTML 文字**:里面的算式要用 `$m(...)` 包起来才是数学排版(斜体变量、分数),普通字符串只是正文字体。
- **`BAND` 卡片放不下长填空**:一行里有多个空或文字较长时,把题拆成几行 `blanks`,并用自定义的 `{ x, y, w, cls: 'side' }` 宽卡片放在图形旁边(见 ch18 的第一次小测)。
diff --git a/.claude/skills/animebook-chapter/references/engine.md b/.claude/skills/animebook-chapter/references/engine.md
index 9d41d25..a5faa16 100644
--- a/.claude/skills/animebook-chapter/references/engine.md
+++ b/.claude/skills/animebook-chapter/references/engine.md
@@ -5,7 +5,7 @@
## 舞台与状态
- 舞台为 SVG,`viewBox 0 0 1600 900`,所有动画元素画在 `#scene` 中。HTML 卡片放在 `#ui`,坐标系与舞台相同。
-- 每个动画元素带一个状态对象,由 `render()` 写回 DOM:`x y`(平移)、`s`(缩放)、`r`(旋转,度)、`o`(不透明度)、`d`(描边绘制进度 0–1)、`a_<属性>`(数值属性,如 `'a_stroke-width'`)、`c_<属性>`(十六进制颜色)。补间用到的键要先在创建时赋初值。
+- 每个动画元素带一个状态对象,由 `render()` 写回 DOM:`x y`(平移)、`s`(缩放)、`r`(旋转,度)、`o`(不透明度)、`d`(描边绘制进度 0–1)、`a_<属性>`(数值属性,如 `'a_stroke-width'`)、`c_<属性>`(十六进制颜色)。补间用到的键要先在创建时赋初值;`a_`/`c_` 键若没有初值,补间开始时从元素的同名属性读取(属性须是数值或十六进制颜色)。
- 缩放、旋转都绕元素自身原点。所以把内容画在 (0,0) 周围,再用 `x/y` 摆放位置。
- `S` 保存本章跨步骤共用的对象(`S.line`、`S.dots`、`S.ring`、`S.panel`……)。`reset()` 会清空它,需要跨步使用的对象都要登记在 `S` 上。
@@ -43,9 +43,13 @@
| `eqLine(p, L, R, y, t0, {xEq, sym, note})` | 等号(或不等号)对齐的一行推导,右侧可带注释 |
| `ray(p, v, closed, dir, t0)`、`segment(p, a, b, ca, cb, t0)` | 数轴上的射线与线段解集(ch26、ch27) |
| `E(exp)` | `M()` 中的上标指数 |
-| `plane(p, {cx, cy, u, x0, x1, y0, y1, t0})` | 坐标系(ch30 起)。返回 `P`:`PX/PY` 换算、`dot(x, y, color, t0, {label, dx, dy, anchor, into, run})`、`walk`(从原点沿 x 再沿 y 走到点)、`line(xa, ya, xb, yb, color, t0)`(延长到网格边)、`arrow(xa, ya, xb, yb, color, t0, {label})`、`stair(x, y, rise, run, t0, {labels})`(先竖后横的斜率台阶)、`half(a, b, c, color, t0)`(给 a·x + b·y ≥ c 的半平面着色,裁在网格内);`line` 传 `dash` 时淡入而不是描出。每步设 `P.layer = panel(0)`,点和线画进本步面板,换步自动淡出;答题动画传 `{run: fx, into: 层}` |
+| `plane(p, {cx, cy, u, x0, x1, y0, y1, t0})` | 坐标系(ch30 起)。返回 `P`:`PX/PY` 换算、`dot(x, y, color, t0, {label, dx, dy, anchor, into, run})`、`walk`(从原点沿 x 再沿 y 走到点)、`line(xa, ya, xb, yb, color, t0)`(延长到网格边)、`arrow(xa, ya, xb, yb, color, t0, {label})`、`stair(x, y, rise, run, t0, {labels})`(先竖后横的斜率台阶)、`fn(f, xa, xb, color, t0, {w, dur})`(描出 y = f(x) 的曲线,超出网格的部分不画,ch47 起)、`half(a, b, c, color, t0)`(给 a·x + b·y ≥ c 的半平面着色,裁在网格内);`line` 传 `dash` 时淡入而不是描出。每步设 `P.layer = panel(0)`,点和线画进本步面板,换步自动淡出;答题动画传 `{run: fx, into: 层}` |
+| `die(p, n, x, y, s, o)`、`coin(p, 'H'/'T', x, y, t0, r, run)`、`spinner(p, cx, cy, r, t0, colors)` + `.land(k)`、`outline(p, sp, ks, color, t0, run)` | 骰子点数面、硬币、等分转盘(指针转角 `land(k)` 指向第 k 格)及高亮格子(ch42 起) |
+| `axes(p, {x0, y0, w, h, xs: [lo, hi, step], ys: [lo, hi, step], xl, yl, t0, ybreak})` | 带刻度和轴名的第一象限坐标轴(散点图、实际情境图,ch41 起),返回 `{PX, PY}` |
+| `areaGrid(p, x0, y0, ws, hs, 列标签, 行标签, t0, {size})` + `.cell(i, j, parts, t0, {fill, tint, run, into})`、`.ring(i, j, color, t0)`;`arc(p, x1, y1, x2, y2, h, color, t0)` | 多项式乘法与因式分解的面积网格(列标签在上、行标签在左),弧形箭头(ch51 起) |
+| `dataLine(p, {lo, hi, x0, x1, y, step, every, r})` | 数据数轴(ch40 起)。返回 `D`:`V(v)` 换算横坐标,`dot(v, color, t0, {from})` 在 v 上方叠点(`from` 给出时从该高度落下),`dots(vals, …)`,`mark(v, color, t0, label)` 轴下的平衡三角(`slide(mark, v, t0)` 滑动),`span(a, b, y, label, color, t0)` 上方区间括号;答题动画传 `{run: fx, into}` |
-题型补充:`pickPoint(P, [x, y], 答对说明, (x, y) => 错因, 答对动画?, test?)`(`test(x, y)` 给出时接受任何满足的点,`[x, y]` 只用于 Show answer;答对说明也可以是 `(x, y) => 文本`) 在坐标系上选格点,方向键移动光标、Enter 选定或直接点击;同一 quiz 连续两题时,前一题的答对动画要画进本步面板(qlayer 会在下一题清空)。`tapEls(row, idx, right, yes, no, onRight)` 点选画面里算式的某个记号(如“先算哪一步”);`blanks` 的格子接受分数与带分数,`{box: '3/4', lowest: true}` 要求最简形式。
+题型补充:`pickEls(items, right, 答对说明, i => 错因, 答对动画?)` 点选画面里任意对象(表格单元格、柱子、小图),`items` 为 `[{el, box: [x, y, w, h], label}]`,←/→ 切换、Enter 选定(ch41 起);`pickPoint(P, [x, y], 答对说明, (x, y) => 错因, 答对动画?, test?)`(`test(x, y)` 给出时接受任何满足的点,`[x, y]` 只用于 Show answer;答对说明也可以是 `(x, y) => 文本`) 在坐标系上选格点,方向键移动光标、Enter 选定或直接点击;同一 quiz 连续两题时,前一题的答对动画要画进本步面板(qlayer 会在下一题清空)。`tapEls(row, idx, right, yes, no, onRight)` 点选画面里算式的某个记号(如“先算哪一步”);`blanks` 的格子接受分数与带分数,`{box: '3/4', lowest: true}` 要求最简形式。行上给 `test(values)` 时整行一起判(如两个因式顺序任意,ch54 起),Show answer 仍填各格的 `box`。
## 步骤(BEATS)
diff --git a/content/ch40/narration.en.json b/content/ch40/narration.en.json
new file mode 100644
index 0000000..5d15e62
--- /dev/null
+++ b/content/ch40/narration.en.json
@@ -0,0 +1,24 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter forty. [[sub]]When you have a whole set of data, it helps to describe it with just a few numbers: one for the middle, and one for the spread.",
+ "set": "A data set is the group of values you collected. [[c]]A measure of central tendency is a single number that summarizes the middle of the set. [[three]]The three most common are [[mean]]the mean, [[med]]the median, [[mode]]and the mode. [[var]]A measure of variation tells how spread out the values are. The main one is [[range]]the range.",
+ "mean": "Start with the mean, also called the average. [[data]]A player scored twelve, nineteen, twenty-three, and ten points in four games. [[add]]First, add all the values. The total is sixty-four. [[div]]Then divide by how many values there are. Four games, so sixty-four divided by four is sixteen. [[ans]]The mean is sixteen points per game.",
+ "level": "Why does that work? [[line]]Draw a line at sixteen. [[extra]]The tall bars have points above the line, [[short]]and the short bars have room below it. [[move]]Move the extra points into the gaps, [[even]]and every bar ends up at exactly sixteen. [[fair]]The mean is a fair share: what each game would score if the total were spread out evenly.",
+ "q1": "Quick check. Find the mean.",
+ "median": "The median is the middle value. [[jumps]]Five friends counted their jump rope jumps: one hundred thirty, eighty-five, one hundred fifty, two hundred ten, and one hundred. [[sort]]First, put the values in order from least to greatest. [[cross]]Then cross off one value from each end, again and again. [[mid]]The value left in the middle, one hundred thirty, is the median.",
+ "even": "With an even number of values, two values share the middle. [[set]]Take fourteen, twenty-six, forty, and fifty-three. [[pair]]Crossing off the ends leaves twenty-six and forty. [[avg]]The median is the mean of those two: add them to get sixty-six, then divide by two. [[ans]]The median is thirty-three, halfway between them, even though thirty-three isn't in the data.",
+ "q2": "Quick check. Click the median.",
+ "mode": "The mode is the value that occurs most often. [[plot]]Here are nine quiz scores on a dot plot. Each dot is one score, and repeated scores stack up. [[tall]]The tallest stack is at eight, so the mode is eight. [[two]]A set can have two modes, when two values tie for most often. [[none]]And if no value repeats, there is no mode.",
+ "range": "Now the spread. [[a]]Here are two groups of six scores. [[bal]]Both have a mean of eight: each dot plot balances at eight. [[diff]]But the second group is far more spread out. [[def]]The range measures that: the maximum minus the minimum. [[ra]]For the first group, ten minus six is four. [[rb]]For the second, fourteen minus two is twelve. [[big]]A bigger range means more variation.",
+ "q3": "Quick check. Find the mode and the range.",
+ "outlier": "An outlier is a value much greater or much less than the rest. [[four]]Four friends ate two, three, two, and four slices of pizza. [[mn]]Their mean is two point seven five, [[md]]and their median is two point five. [[out]]Now a fifth friend ate fourteen slices. [[pull]]The mean jumps to five, more than four of the five friends ate. [[stay]]The median only moves to three. [[skew]]An outlier can skew the mean, so when a set has one, the median usually describes a typical value better.",
+ "q4": "Quick check. Which number better describes a typical friend?",
+ "wrap": "To sum up. [[w1]]Mean: add the values, then divide by how many there are. [[w2]]Median: the middle value once they're in order, or the mean of the two middle values. [[w3]]Mode: the value that occurs most often. [[w4]]Range: the maximum minus the minimum. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Find all four measures.",
+ "final2": "Next, how many modes does each set have?",
+ "final3": "Last one. This set has an even number of values.",
+ "finish": "Nicely done. That's the end of chapter forty, measures of central tendency and variation."
+ }
+}
diff --git a/content/ch40/narration.en.timings.json b/content/ch40/narration.en.timings.json
new file mode 100644
index 0000000..be5fb7a
--- /dev/null
+++ b/content/ch40/narration.en.timings.json
@@ -0,0 +1,3031 @@
+{
+ "intro": {
+ "key": "6bc7d74c3b822d290dbdbddea964889f5687ade7",
+ "dur": 8.496,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.46875,
+ "forty"
+ ],
+ [
+ 1.40625,
+ "When"
+ ],
+ [
+ 1.510416,
+ "you"
+ ],
+ [
+ 1.575541,
+ "have"
+ ],
+ [
+ 1.71875,
+ "a"
+ ],
+ [
+ 1.783875,
+ "whole"
+ ],
+ [
+ 2.135416,
+ "set"
+ ],
+ [
+ 2.369791,
+ "of"
+ ],
+ [
+ 2.447916,
+ "data"
+ ],
+ [
+ 3.333333,
+ "it"
+ ],
+ [
+ 3.4375,
+ "helps"
+ ],
+ [
+ 3.671875,
+ "to"
+ ],
+ [
+ 3.763041,
+ "describe"
+ ],
+ [
+ 4.231791,
+ "it"
+ ],
+ [
+ 4.309916,
+ "with"
+ ],
+ [
+ 4.453125,
+ "just"
+ ],
+ [
+ 4.6875,
+ "a"
+ ],
+ [
+ 4.739583,
+ "few"
+ ],
+ [
+ 5.065125,
+ "numbers"
+ ],
+ [
+ 6.041666,
+ "one"
+ ],
+ [
+ 6.367208,
+ "for"
+ ],
+ [
+ 6.471375,
+ "the"
+ ],
+ [
+ 6.523458,
+ "middle"
+ ],
+ [
+ 7.1745,
+ "and"
+ ],
+ [
+ 7.278666,
+ "one"
+ ],
+ [
+ 7.539083,
+ "for"
+ ],
+ [
+ 7.630208,
+ "the"
+ ],
+ [
+ 7.695333,
+ "spread"
+ ]
+ ],
+ "marks": {
+ "sub": 1.406
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter forty."
+ ],
+ [
+ 1.406,
+ "When you have a whole set of data, it helps to describe it with just a few numbers: one for the middle, and one for the spread."
+ ]
+ ]
+ },
+ "set": {
+ "key": "c3ee9052621f8c747a4811165c181d9478cc96ea",
+ "dur": 18.864,
+ "words": [
+ [
+ 0.104166,
+ "A"
+ ],
+ [
+ 0.169291,
+ "data"
+ ],
+ [
+ 0.46875,
+ "set"
+ ],
+ [
+ 0.911458,
+ "is"
+ ],
+ [
+ 1.015625,
+ "the"
+ ],
+ [
+ 1.119791,
+ "group"
+ ],
+ [
+ 1.471375,
+ "of"
+ ],
+ [
+ 1.588541,
+ "values"
+ ],
+ [
+ 2.083333,
+ "you"
+ ],
+ [
+ 2.1745,
+ "collected"
+ ],
+ [
+ 3.046875,
+ "A"
+ ],
+ [
+ 3.112,
+ "measure"
+ ],
+ [
+ 3.502625,
+ "of"
+ ],
+ [
+ 3.58075,
+ "central"
+ ],
+ [
+ 3.958333,
+ "tendency"
+ ],
+ [
+ 5.026041,
+ "is"
+ ],
+ [
+ 5.14325,
+ "a"
+ ],
+ [
+ 5.208333,
+ "single"
+ ],
+ [
+ 5.625,
+ "number"
+ ],
+ [
+ 6.25,
+ "that"
+ ],
+ [
+ 6.367208,
+ "summarizes"
+ ],
+ [
+ 7.200541,
+ "the"
+ ],
+ [
+ 7.291666,
+ "middle"
+ ],
+ [
+ 7.786458,
+ "of"
+ ],
+ [
+ 7.877625,
+ "the"
+ ],
+ [
+ 7.942708,
+ "set"
+ ],
+ [
+ 8.867208,
+ "The"
+ ],
+ [
+ 8.932291,
+ "three"
+ ],
+ [
+ 9.127625,
+ "most"
+ ],
+ [
+ 9.427083,
+ "common"
+ ],
+ [
+ 9.726583,
+ "are"
+ ],
+ [
+ 9.817708,
+ "the"
+ ],
+ [
+ 9.895833,
+ "mean"
+ ],
+ [
+ 10.638041,
+ "the"
+ ],
+ [
+ 10.716166,
+ "median"
+ ],
+ [
+ 11.666666,
+ "and"
+ ],
+ [
+ 11.71875,
+ "the"
+ ],
+ [
+ 11.796875,
+ "mode"
+ ],
+ [
+ 12.578125,
+ "A"
+ ],
+ [
+ 12.630208,
+ "measure"
+ ],
+ [
+ 12.994791,
+ "of"
+ ],
+ [
+ 13.059916,
+ "variation"
+ ],
+ [
+ 13.763041,
+ "tells"
+ ],
+ [
+ 14.192708,
+ "how"
+ ],
+ [
+ 14.609375,
+ "spread"
+ ],
+ [
+ 15.104166,
+ "out"
+ ],
+ [
+ 15.325541,
+ "the"
+ ],
+ [
+ 15.390625,
+ "values"
+ ],
+ [
+ 15.859375,
+ "are"
+ ],
+ [
+ 16.627625,
+ "The"
+ ],
+ [
+ 16.692708,
+ "main"
+ ],
+ [
+ 17.044291,
+ "one"
+ ],
+ [
+ 17.617208,
+ "is"
+ ],
+ [
+ 17.747416,
+ "the"
+ ],
+ [
+ 17.825541,
+ "range"
+ ]
+ ],
+ "marks": {
+ "c": 3.047,
+ "three": 8.867,
+ "mean": 9.818,
+ "med": 10.638,
+ "mode": 11.667,
+ "var": 12.578,
+ "range": 17.747
+ },
+ "cues": [
+ [
+ 0.104,
+ "A data set is the group of values you collected."
+ ],
+ [
+ 3.047,
+ "A measure of central tendency is a single number that summarizes the middle of the set."
+ ],
+ [
+ 8.867,
+ "The three most common are the mean, the median, and the mode."
+ ],
+ [
+ 12.578,
+ "A measure of variation tells how spread out the values are."
+ ],
+ [
+ 16.628,
+ "The main one is the range."
+ ]
+ ]
+ },
+ "mean": {
+ "key": "64a95a62fbf0637451c3255cce91e598ae8295d9",
+ "dur": 23.064,
+ "words": [
+ [
+ 0.104166,
+ "Start"
+ ],
+ [
+ 0.338541,
+ "with"
+ ],
+ [
+ 0.46875,
+ "the"
+ ],
+ [
+ 0.533875,
+ "mean"
+ ],
+ [
+ 1.197916,
+ "also"
+ ],
+ [
+ 1.5625,
+ "called"
+ ],
+ [
+ 1.835958,
+ "the"
+ ],
+ [
+ 1.914083,
+ "average"
+ ],
+ [
+ 2.96875,
+ "A"
+ ],
+ [
+ 3.033875,
+ "player"
+ ],
+ [
+ 3.359375,
+ "scored"
+ ],
+ [
+ 3.710958,
+ "twelve"
+ ],
+ [
+ 4.466166,
+ "nineteen"
+ ],
+ [
+ 5.46875,
+ "twenty-three"
+ ],
+ [
+ 6.588541,
+ "and"
+ ],
+ [
+ 6.992208,
+ "ten"
+ ],
+ [
+ 7.252625,
+ "points"
+ ],
+ [
+ 7.591166,
+ "in"
+ ],
+ [
+ 7.682291,
+ "four"
+ ],
+ [
+ 7.95575,
+ "games"
+ ],
+ [
+ 8.997416,
+ "First"
+ ],
+ [
+ 9.700541,
+ "add"
+ ],
+ [
+ 10.429708,
+ "all"
+ ],
+ [
+ 10.598958,
+ "the"
+ ],
+ [
+ 10.677083,
+ "values"
+ ],
+ [
+ 11.796875,
+ "The"
+ ],
+ [
+ 11.875,
+ "total"
+ ],
+ [
+ 12.526041,
+ "is"
+ ],
+ [
+ 12.65625,
+ "sixty-four"
+ ],
+ [
+ 14.023458,
+ "Then"
+ ],
+ [
+ 14.114583,
+ "divide"
+ ],
+ [
+ 14.661458,
+ "by"
+ ],
+ [
+ 14.791666,
+ "how"
+ ],
+ [
+ 15.026041,
+ "many"
+ ],
+ [
+ 15.2995,
+ "values"
+ ],
+ [
+ 15.755208,
+ "there"
+ ],
+ [
+ 15.950541,
+ "are"
+ ],
+ [
+ 16.744791,
+ "Four"
+ ],
+ [
+ 16.875,
+ "games"
+ ],
+ [
+ 17.695333,
+ "so"
+ ],
+ [
+ 17.851583,
+ "sixty-four"
+ ],
+ [
+ 18.476583,
+ "divided"
+ ],
+ [
+ 18.867208,
+ "by"
+ ],
+ [
+ 19.075541,
+ "four"
+ ],
+ [
+ 19.778666,
+ "is"
+ ],
+ [
+ 19.895833,
+ "sixteen"
+ ],
+ [
+ 20.911458,
+ "The"
+ ],
+ [
+ 20.976583,
+ "mean"
+ ],
+ [
+ 21.237,
+ "is"
+ ],
+ [
+ 21.367208,
+ "sixteen"
+ ],
+ [
+ 21.914083,
+ "points"
+ ],
+ [
+ 22.1875,
+ "per"
+ ],
+ [
+ 22.34375,
+ "game"
+ ]
+ ],
+ "marks": {
+ "data": 2.969,
+ "add": 8.997,
+ "div": 14.023,
+ "ans": 20.911
+ },
+ "cues": [
+ [
+ 0.104,
+ "Start with the mean, also called the average."
+ ],
+ [
+ 2.969,
+ "A player scored twelve, nineteen, twenty-three, and ten points in four games."
+ ],
+ [
+ 8.997,
+ "First, add all the values."
+ ],
+ [
+ 11.797,
+ "The total is sixty-four."
+ ],
+ [
+ 14.023,
+ "Then divide by how many values there are."
+ ],
+ [
+ 16.745,
+ "Four games, so sixty-four divided by four is sixteen."
+ ],
+ [
+ 20.911,
+ "The mean is sixteen points per game."
+ ]
+ ]
+ },
+ "level": {
+ "key": "5d111fbb10d599b0a7d860772601967aba735f60",
+ "dur": 18.24,
+ "words": [
+ [
+ 0.104166,
+ "Why"
+ ],
+ [
+ 0.182291,
+ "does"
+ ],
+ [
+ 0.273458,
+ "that"
+ ],
+ [
+ 0.442708,
+ "work"
+ ],
+ [
+ 1.237,
+ "Draw"
+ ],
+ [
+ 1.419291,
+ "a"
+ ],
+ [
+ 1.497416,
+ "line"
+ ],
+ [
+ 1.848958,
+ "at"
+ ],
+ [
+ 1.914083,
+ "sixteen"
+ ],
+ [
+ 2.981791,
+ "The"
+ ],
+ [
+ 3.059916,
+ "tall"
+ ],
+ [
+ 3.320333,
+ "bars"
+ ],
+ [
+ 3.645833,
+ "have"
+ ],
+ [
+ 3.841166,
+ "points"
+ ],
+ [
+ 4.348958,
+ "above"
+ ],
+ [
+ 4.609375,
+ "the"
+ ],
+ [
+ 4.6875,
+ "line"
+ ],
+ [
+ 5.520833,
+ "and"
+ ],
+ [
+ 5.559916,
+ "the"
+ ],
+ [
+ 5.638041,
+ "short"
+ ],
+ [
+ 5.989583,
+ "bars"
+ ],
+ [
+ 6.289083,
+ "have"
+ ],
+ [
+ 6.497416,
+ "room"
+ ],
+ [
+ 6.627625,
+ "below"
+ ],
+ [
+ 7.005208,
+ "it"
+ ],
+ [
+ 7.552083,
+ "Move"
+ ],
+ [
+ 7.890625,
+ "the"
+ ],
+ [
+ 8.059916,
+ "extra"
+ ],
+ [
+ 8.4245,
+ "points"
+ ],
+ [
+ 8.815125,
+ "into"
+ ],
+ [
+ 8.919291,
+ "the"
+ ],
+ [
+ 8.984375,
+ "gaps"
+ ],
+ [
+ 9.804708,
+ "and"
+ ],
+ [
+ 10.104166,
+ "every"
+ ],
+ [
+ 10.338541,
+ "bar"
+ ],
+ [
+ 10.690125,
+ "ends"
+ ],
+ [
+ 10.859375,
+ "up"
+ ],
+ [
+ 11.210958,
+ "at"
+ ],
+ [
+ 11.289083,
+ "exactly"
+ ],
+ [
+ 11.901041,
+ "sixteen"
+ ],
+ [
+ 13.007833,
+ "The"
+ ],
+ [
+ 13.072916,
+ "mean"
+ ],
+ [
+ 13.346375,
+ "is"
+ ],
+ [
+ 13.476583,
+ "a"
+ ],
+ [
+ 13.528666,
+ "fair"
+ ],
+ [
+ 13.945333,
+ "share"
+ ],
+ [
+ 14.908875,
+ "what"
+ ],
+ [
+ 15.039083,
+ "each"
+ ],
+ [
+ 15.208333,
+ "game"
+ ],
+ [
+ 15.429708,
+ "would"
+ ],
+ [
+ 15.559916,
+ "score"
+ ],
+ [
+ 16.158875,
+ "if"
+ ],
+ [
+ 16.237,
+ "the"
+ ],
+ [
+ 16.315125,
+ "total"
+ ],
+ [
+ 16.679708,
+ "were"
+ ],
+ [
+ 16.796875,
+ "spread"
+ ],
+ [
+ 17.1745,
+ "out"
+ ],
+ [
+ 17.33075,
+ "evenly"
+ ]
+ ],
+ "marks": {
+ "line": 1.237,
+ "extra": 2.982,
+ "short": 5.521,
+ "move": 7.552,
+ "even": 9.805,
+ "fair": 13.008
+ },
+ "cues": [
+ [
+ 0.104,
+ "Why does that work?"
+ ],
+ [
+ 1.237,
+ "Draw a line at sixteen."
+ ],
+ [
+ 2.982,
+ "The tall bars have points above the line, and the short bars have room below it."
+ ],
+ [
+ 7.552,
+ "Move the extra points into the gaps, and every bar ends up at exactly sixteen."
+ ],
+ [
+ 13.008,
+ "The mean is a fair share: what each game would score if the total were spread out evenly."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "02fa79fd5143e1110912a829e61689223e6d9e59",
+ "dur": 2.16,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.247416,
+ "check"
+ ],
+ [
+ 1.197916,
+ "Find"
+ ],
+ [
+ 1.39325,
+ "the"
+ ],
+ [
+ 1.432291,
+ "mean"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.198,
+ "Find the mean."
+ ]
+ ]
+ },
+ "median": {
+ "key": "bf4f0b5004c6be0093c51280de0578a7f9866eab",
+ "dur": 23.016,
+ "words": [
+ [
+ 0.104166,
+ "The"
+ ],
+ [
+ 0.169291,
+ "median"
+ ],
+ [
+ 0.963541,
+ "is"
+ ],
+ [
+ 1.067708,
+ "the"
+ ],
+ [
+ 1.145833,
+ "middle"
+ ],
+ [
+ 1.484375,
+ "value"
+ ],
+ [
+ 2.382833,
+ "Five"
+ ],
+ [
+ 2.695333,
+ "friends"
+ ],
+ [
+ 3.085958,
+ "counted"
+ ],
+ [
+ 3.411458,
+ "their"
+ ],
+ [
+ 3.606791,
+ "jump"
+ ],
+ [
+ 3.984375,
+ "rope"
+ ],
+ [
+ 4.283875,
+ "jumps"
+ ],
+ [
+ 5.221375,
+ "one"
+ ],
+ [
+ 5.364583,
+ "hundred"
+ ],
+ [
+ 5.625,
+ "thirty"
+ ],
+ [
+ 6.445333,
+ "eighty-five"
+ ],
+ [
+ 7.395833,
+ "one"
+ ],
+ [
+ 7.539083,
+ "hundred"
+ ],
+ [
+ 7.8125,
+ "fifty"
+ ],
+ [
+ 8.645833,
+ "two"
+ ],
+ [
+ 8.828125,
+ "hundred"
+ ],
+ [
+ 9.0625,
+ "ten"
+ ],
+ [
+ 9.700541,
+ "and"
+ ],
+ [
+ 9.817708,
+ "one"
+ ],
+ [
+ 9.987,
+ "hundred"
+ ],
+ [
+ 10.898458,
+ "First"
+ ],
+ [
+ 11.627625,
+ "put"
+ ],
+ [
+ 11.783875,
+ "the"
+ ],
+ [
+ 11.875,
+ "values"
+ ],
+ [
+ 12.421875,
+ "in"
+ ],
+ [
+ 12.617208,
+ "order"
+ ],
+ [
+ 12.903666,
+ "from"
+ ],
+ [
+ 13.177083,
+ "least"
+ ],
+ [
+ 13.502625,
+ "to"
+ ],
+ [
+ 13.58075,
+ "greatest"
+ ],
+ [
+ 14.661458,
+ "Then"
+ ],
+ [
+ 14.778666,
+ "cross"
+ ],
+ [
+ 15.15625,
+ "off"
+ ],
+ [
+ 15.416666,
+ "one"
+ ],
+ [
+ 15.690125,
+ "value"
+ ],
+ [
+ 16.054708,
+ "from"
+ ],
+ [
+ 16.223958,
+ "each"
+ ],
+ [
+ 16.523458,
+ "end"
+ ],
+ [
+ 17.356791,
+ "again"
+ ],
+ [
+ 17.994791,
+ "and"
+ ],
+ [
+ 18.125,
+ "again"
+ ],
+ [
+ 18.89325,
+ "The"
+ ],
+ [
+ 18.971375,
+ "value"
+ ],
+ [
+ 19.388041,
+ "left"
+ ],
+ [
+ 19.739583,
+ "in"
+ ],
+ [
+ 19.804708,
+ "the"
+ ],
+ [
+ 19.856791,
+ "middle"
+ ],
+ [
+ 20.572916,
+ "one"
+ ],
+ [
+ 20.703125,
+ "hundred"
+ ],
+ [
+ 20.976583,
+ "thirty"
+ ],
+ [
+ 21.888041,
+ "is"
+ ],
+ [
+ 21.992208,
+ "the"
+ ],
+ [
+ 22.057291,
+ "median"
+ ]
+ ],
+ "marks": {
+ "jumps": 2.383,
+ "sort": 10.898,
+ "cross": 14.661,
+ "mid": 18.893
+ },
+ "cues": [
+ [
+ 0.104,
+ "The median is the middle value."
+ ],
+ [
+ 2.383,
+ "Five friends counted their jump rope jumps: one hundred thirty, eighty-five, one hundred fifty, two hundred ten, and one hundred."
+ ],
+ [
+ 10.898,
+ "First, put the values in order from least to greatest."
+ ],
+ [
+ 14.661,
+ "Then cross off one value from each end, again and again."
+ ],
+ [
+ 18.893,
+ "The value left in the middle, one hundred thirty, is the median."
+ ]
+ ]
+ },
+ "even": {
+ "key": "14a9f8716e30990cf1adea8a1d5b9984ba1fa728",
+ "dur": 23.88,
+ "words": [
+ [
+ 0.117208,
+ "With"
+ ],
+ [
+ 0.221375,
+ "an"
+ ],
+ [
+ 0.325541,
+ "even"
+ ],
+ [
+ 0.559916,
+ "number"
+ ],
+ [
+ 0.78125,
+ "of"
+ ],
+ [
+ 0.846375,
+ "values"
+ ],
+ [
+ 1.744791,
+ "two"
+ ],
+ [
+ 1.953125,
+ "values"
+ ],
+ [
+ 2.539083,
+ "share"
+ ],
+ [
+ 2.786458,
+ "the"
+ ],
+ [
+ 2.851583,
+ "middle"
+ ],
+ [
+ 3.619791,
+ "Take"
+ ],
+ [
+ 3.802083,
+ "fourteen"
+ ],
+ [
+ 4.739583,
+ "twenty-six"
+ ],
+ [
+ 5.78125,
+ "forty"
+ ],
+ [
+ 6.523458,
+ "and"
+ ],
+ [
+ 6.757833,
+ "fifty-three"
+ ],
+ [
+ 7.981791,
+ "Crossing"
+ ],
+ [
+ 8.346375,
+ "off"
+ ],
+ [
+ 8.619791,
+ "the"
+ ],
+ [
+ 8.723958,
+ "ends"
+ ],
+ [
+ 9.557291,
+ "leaves"
+ ],
+ [
+ 9.895833,
+ "twenty-six"
+ ],
+ [
+ 10.755208,
+ "and"
+ ],
+ [
+ 10.833333,
+ "forty"
+ ],
+ [
+ 11.757833,
+ "The"
+ ],
+ [
+ 11.822916,
+ "median"
+ ],
+ [
+ 12.34375,
+ "is"
+ ],
+ [
+ 12.460958,
+ "the"
+ ],
+ [
+ 12.526041,
+ "mean"
+ ],
+ [
+ 12.916666,
+ "of"
+ ],
+ [
+ 13.059916,
+ "those"
+ ],
+ [
+ 13.359375,
+ "two"
+ ],
+ [
+ 14.362,
+ "add"
+ ],
+ [
+ 14.544291,
+ "them"
+ ],
+ [
+ 14.713541,
+ "to"
+ ],
+ [
+ 14.778666,
+ "get"
+ ],
+ [
+ 14.934916,
+ "sixty-six"
+ ],
+ [
+ 16.197916,
+ "then"
+ ],
+ [
+ 16.315125,
+ "divide"
+ ],
+ [
+ 16.692708,
+ "by"
+ ],
+ [
+ 16.848958,
+ "two"
+ ],
+ [
+ 17.734375,
+ "The"
+ ],
+ [
+ 17.786458,
+ "median"
+ ],
+ [
+ 18.28125,
+ "is"
+ ],
+ [
+ 18.515625,
+ "thirty-three"
+ ],
+ [
+ 19.817708,
+ "halfway"
+ ],
+ [
+ 20.273458,
+ "between"
+ ],
+ [
+ 20.703125,
+ "them"
+ ],
+ [
+ 21.419291,
+ "even"
+ ],
+ [
+ 21.588541,
+ "though"
+ ],
+ [
+ 21.744791,
+ "thirty-three"
+ ],
+ [
+ 22.630208,
+ "isn't"
+ ],
+ [
+ 22.877625,
+ "in"
+ ],
+ [
+ 22.929708,
+ "the"
+ ],
+ [
+ 23.020833,
+ "data"
+ ]
+ ],
+ "marks": {
+ "set": 3.62,
+ "pair": 7.982,
+ "avg": 11.758,
+ "ans": 17.734
+ },
+ "cues": [
+ [
+ 0.117,
+ "With an even number of values, two values share the middle."
+ ],
+ [
+ 3.62,
+ "Take fourteen, twenty-six, forty, and fifty-three."
+ ],
+ [
+ 7.982,
+ "Crossing off the ends leaves twenty-six and forty."
+ ],
+ [
+ 11.758,
+ "The median is the mean of those two: add them to get sixty-six, then divide by two."
+ ],
+ [
+ 17.734,
+ "The median is thirty-three, halfway between them, even though thirty-three isn't in the data."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "a9fe2b3dc2f962db2e35f933fce8f6d5b71d4b42",
+ "dur": 2.28,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.286458,
+ "check"
+ ],
+ [
+ 1.132833,
+ "Click"
+ ],
+ [
+ 1.315125,
+ "the"
+ ],
+ [
+ 1.380208,
+ "median"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Click the median."
+ ]
+ ]
+ },
+ "mode": {
+ "key": "bdc545872cf5ae4f71209ed8772f96d726a1b7df",
+ "dur": 20.976,
+ "words": [
+ [
+ 0.104166,
+ "The"
+ ],
+ [
+ 0.15625,
+ "mode"
+ ],
+ [
+ 0.481791,
+ "is"
+ ],
+ [
+ 0.598958,
+ "the"
+ ],
+ [
+ 0.664083,
+ "value"
+ ],
+ [
+ 1.119791,
+ "that"
+ ],
+ [
+ 1.223958,
+ "occurs"
+ ],
+ [
+ 1.71875,
+ "most"
+ ],
+ [
+ 2.057291,
+ "often"
+ ],
+ [
+ 2.929708,
+ "Here"
+ ],
+ [
+ 3.216166,
+ "are"
+ ],
+ [
+ 3.333333,
+ "nine"
+ ],
+ [
+ 3.684916,
+ "quiz"
+ ],
+ [
+ 3.932291,
+ "scores"
+ ],
+ [
+ 4.322916,
+ "on"
+ ],
+ [
+ 4.401041,
+ "a"
+ ],
+ [
+ 4.440125,
+ "dot"
+ ],
+ [
+ 4.700541,
+ "plot"
+ ],
+ [
+ 5.598958,
+ "Each"
+ ],
+ [
+ 5.846375,
+ "dot"
+ ],
+ [
+ 6.145833,
+ "is"
+ ],
+ [
+ 6.289083,
+ "one"
+ ],
+ [
+ 6.614583,
+ "score"
+ ],
+ [
+ 7.565125,
+ "and"
+ ],
+ [
+ 7.630208,
+ "repeated"
+ ],
+ [
+ 8.085958,
+ "scores"
+ ],
+ [
+ 8.75,
+ "stack"
+ ],
+ [
+ 9.088541,
+ "up"
+ ],
+ [
+ 9.778666,
+ "The"
+ ],
+ [
+ 9.856791,
+ "tallest"
+ ],
+ [
+ 10.221375,
+ "stack"
+ ],
+ [
+ 10.677083,
+ "is"
+ ],
+ [
+ 10.794291,
+ "at"
+ ],
+ [
+ 10.885416,
+ "eight"
+ ],
+ [
+ 11.601583,
+ "so"
+ ],
+ [
+ 11.744791,
+ "the"
+ ],
+ [
+ 11.835958,
+ "mode"
+ ],
+ [
+ 12.148458,
+ "is"
+ ],
+ [
+ 12.317708,
+ "eight"
+ ],
+ [
+ 13.098958,
+ "A"
+ ],
+ [
+ 13.151041,
+ "set"
+ ],
+ [
+ 13.346375,
+ "can"
+ ],
+ [
+ 13.450541,
+ "have"
+ ],
+ [
+ 13.710958,
+ "two"
+ ],
+ [
+ 13.932291,
+ "modes"
+ ],
+ [
+ 14.856791,
+ "when"
+ ],
+ [
+ 15.247416,
+ "two"
+ ],
+ [
+ 15.520833,
+ "values"
+ ],
+ [
+ 16.028666,
+ "tie"
+ ],
+ [
+ 16.588541,
+ "for"
+ ],
+ [
+ 16.744791,
+ "most"
+ ],
+ [
+ 17.044291,
+ "often"
+ ],
+ [
+ 17.864583,
+ "And"
+ ],
+ [
+ 17.942708,
+ "if"
+ ],
+ [
+ 18.059916,
+ "no"
+ ],
+ [
+ 18.320333,
+ "value"
+ ],
+ [
+ 18.737,
+ "repeats"
+ ],
+ [
+ 19.726583,
+ "there"
+ ],
+ [
+ 19.856791,
+ "is"
+ ],
+ [
+ 19.973958,
+ "no"
+ ],
+ [
+ 20.169291,
+ "mode"
+ ]
+ ],
+ "marks": {
+ "plot": 2.93,
+ "tall": 9.779,
+ "two": 13.099,
+ "none": 17.865
+ },
+ "cues": [
+ [
+ 0.104,
+ "The mode is the value that occurs most often."
+ ],
+ [
+ 2.93,
+ "Here are nine quiz scores on a dot plot."
+ ],
+ [
+ 5.599,
+ "Each dot is one score, and repeated scores stack up."
+ ],
+ [
+ 9.779,
+ "The tallest stack is at eight, so the mode is eight."
+ ],
+ [
+ 13.099,
+ "A set can have two modes, when two values tie for most often."
+ ],
+ [
+ 17.865,
+ "And if no value repeats, there is no mode."
+ ]
+ ]
+ },
+ "range": {
+ "key": "2cc1f417f1e30636634869f666937ca49ee35a62",
+ "dur": 24.864,
+ "words": [
+ [
+ 0.104166,
+ "Now"
+ ],
+ [
+ 0.286458,
+ "the"
+ ],
+ [
+ 0.377625,
+ "spread"
+ ],
+ [
+ 1.237,
+ "Here"
+ ],
+ [
+ 1.458333,
+ "are"
+ ],
+ [
+ 1.5625,
+ "two"
+ ],
+ [
+ 1.875,
+ "groups"
+ ],
+ [
+ 2.239583,
+ "of"
+ ],
+ [
+ 2.304708,
+ "six"
+ ],
+ [
+ 2.591166,
+ "scores"
+ ],
+ [
+ 3.59375,
+ "Both"
+ ],
+ [
+ 3.75,
+ "have"
+ ],
+ [
+ 3.880208,
+ "a"
+ ],
+ [
+ 3.932291,
+ "mean"
+ ],
+ [
+ 4.309916,
+ "of"
+ ],
+ [
+ 4.453125,
+ "eight"
+ ],
+ [
+ 5.364583,
+ "each"
+ ],
+ [
+ 5.546875,
+ "dot"
+ ],
+ [
+ 5.78125,
+ "plot"
+ ],
+ [
+ 6.067708,
+ "balances"
+ ],
+ [
+ 6.536458,
+ "at"
+ ],
+ [
+ 6.627625,
+ "eight"
+ ],
+ [
+ 7.382833,
+ "But"
+ ],
+ [
+ 7.487,
+ "the"
+ ],
+ [
+ 7.565125,
+ "second"
+ ],
+ [
+ 7.95575,
+ "group"
+ ],
+ [
+ 8.502625,
+ "is"
+ ],
+ [
+ 8.658875,
+ "far"
+ ],
+ [
+ 9.036458,
+ "more"
+ ],
+ [
+ 9.348958,
+ "spread"
+ ],
+ [
+ 9.739583,
+ "out"
+ ],
+ [
+ 10.507833,
+ "The"
+ ],
+ [
+ 10.585958,
+ "range"
+ ],
+ [
+ 10.911458,
+ "measures"
+ ],
+ [
+ 11.432291,
+ "that"
+ ],
+ [
+ 12.1875,
+ "the"
+ ],
+ [
+ 12.265625,
+ "maximum"
+ ],
+ [
+ 13.164083,
+ "minus"
+ ],
+ [
+ 13.645833,
+ "the"
+ ],
+ [
+ 13.763041,
+ "minimum"
+ ],
+ [
+ 14.726583,
+ "For"
+ ],
+ [
+ 14.778666,
+ "the"
+ ],
+ [
+ 14.856791,
+ "first"
+ ],
+ [
+ 15.221375,
+ "group"
+ ],
+ [
+ 15.846375,
+ "ten"
+ ],
+ [
+ 16.145833,
+ "minus"
+ ],
+ [
+ 16.497416,
+ "six"
+ ],
+ [
+ 17.252625,
+ "is"
+ ],
+ [
+ 17.395833,
+ "four"
+ ],
+ [
+ 18.346375,
+ "For"
+ ],
+ [
+ 18.411458,
+ "the"
+ ],
+ [
+ 18.489583,
+ "second"
+ ],
+ [
+ 19.388041,
+ "fourteen"
+ ],
+ [
+ 19.856791,
+ "minus"
+ ],
+ [
+ 20.208333,
+ "two"
+ ],
+ [
+ 20.76825,
+ "is"
+ ],
+ [
+ 20.963541,
+ "twelve"
+ ],
+ [
+ 22.01825,
+ "A"
+ ],
+ [
+ 22.083333,
+ "bigger"
+ ],
+ [
+ 22.460958,
+ "range"
+ ],
+ [
+ 23.033875,
+ "means"
+ ],
+ [
+ 23.385416,
+ "more"
+ ],
+ [
+ 23.75,
+ "variation"
+ ]
+ ],
+ "marks": {
+ "a": 1.237,
+ "bal": 3.594,
+ "diff": 7.383,
+ "def": 10.508,
+ "ra": 14.727,
+ "rb": 18.346,
+ "big": 22.018
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now the spread."
+ ],
+ [
+ 1.237,
+ "Here are two groups of six scores."
+ ],
+ [
+ 3.594,
+ "Both have a mean of eight: each dot plot balances at eight."
+ ],
+ [
+ 7.383,
+ "But the second group is far more spread out."
+ ],
+ [
+ 10.508,
+ "The range measures that: the maximum minus the minimum."
+ ],
+ [
+ 14.727,
+ "For the first group, ten minus six is four."
+ ],
+ [
+ 18.346,
+ "For the second, fourteen minus two is twelve."
+ ],
+ [
+ 22.018,
+ "A bigger range means more variation."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "e205d5c4a950256c51f69c0788c2a6ff25acd637",
+ "dur": 3.24,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.132833,
+ "Find"
+ ],
+ [
+ 1.367208,
+ "the"
+ ],
+ [
+ 1.432291,
+ "mode"
+ ],
+ [
+ 2.096375,
+ "and"
+ ],
+ [
+ 2.200541,
+ "the"
+ ],
+ [
+ 2.265625,
+ "range"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Find the mode and the range."
+ ]
+ ]
+ },
+ "outlier": {
+ "key": "fa5c209812ec3d1d844ba098c8ad8ef2356927df",
+ "dur": 30.744,
+ "words": [
+ [
+ 0.104166,
+ "An"
+ ],
+ [
+ 0.221375,
+ "outlier"
+ ],
+ [
+ 0.820333,
+ "is"
+ ],
+ [
+ 0.950541,
+ "a"
+ ],
+ [
+ 0.989583,
+ "value"
+ ],
+ [
+ 1.419291,
+ "much"
+ ],
+ [
+ 1.653666,
+ "greater"
+ ],
+ [
+ 2.473958,
+ "or"
+ ],
+ [
+ 2.578125,
+ "much"
+ ],
+ [
+ 2.981791,
+ "less"
+ ],
+ [
+ 3.4245,
+ "than"
+ ],
+ [
+ 3.528666,
+ "the"
+ ],
+ [
+ 3.59375,
+ "rest"
+ ],
+ [
+ 4.583333,
+ "Four"
+ ],
+ [
+ 4.739583,
+ "friends"
+ ],
+ [
+ 5.091166,
+ "ate"
+ ],
+ [
+ 5.234375,
+ "two"
+ ],
+ [
+ 5.9245,
+ "three"
+ ],
+ [
+ 6.835958,
+ "two"
+ ],
+ [
+ 7.552083,
+ "and"
+ ],
+ [
+ 7.708333,
+ "four"
+ ],
+ [
+ 8.085958,
+ "slices"
+ ],
+ [
+ 8.554708,
+ "of"
+ ],
+ [
+ 8.619791,
+ "pizza"
+ ],
+ [
+ 9.505208,
+ "Their"
+ ],
+ [
+ 9.661458,
+ "mean"
+ ],
+ [
+ 9.869791,
+ "is"
+ ],
+ [
+ 10.0,
+ "two"
+ ],
+ [
+ 10.247416,
+ "point"
+ ],
+ [
+ 10.533875,
+ "seven"
+ ],
+ [
+ 10.846375,
+ "five"
+ ],
+ [
+ 11.627625,
+ "and"
+ ],
+ [
+ 11.679708,
+ "their"
+ ],
+ [
+ 11.835958,
+ "median"
+ ],
+ [
+ 12.278666,
+ "is"
+ ],
+ [
+ 12.408875,
+ "two"
+ ],
+ [
+ 12.695333,
+ "point"
+ ],
+ [
+ 12.981791,
+ "five"
+ ],
+ [
+ 13.880208,
+ "Now"
+ ],
+ [
+ 14.166666,
+ "a"
+ ],
+ [
+ 14.20575,
+ "fifth"
+ ],
+ [
+ 14.583333,
+ "friend"
+ ],
+ [
+ 15.273458,
+ "ate"
+ ],
+ [
+ 15.45575,
+ "fourteen"
+ ],
+ [
+ 16.106791,
+ "slices"
+ ],
+ [
+ 17.265625,
+ "The"
+ ],
+ [
+ 17.34375,
+ "mean"
+ ],
+ [
+ 17.578125,
+ "jumps"
+ ],
+ [
+ 17.916666,
+ "to"
+ ],
+ [
+ 18.020833,
+ "five"
+ ],
+ [
+ 19.0625,
+ "more"
+ ],
+ [
+ 19.21875,
+ "than"
+ ],
+ [
+ 19.309916,
+ "four"
+ ],
+ [
+ 19.622416,
+ "of"
+ ],
+ [
+ 19.661458,
+ "the"
+ ],
+ [
+ 19.739583,
+ "five"
+ ],
+ [
+ 20.130208,
+ "friends"
+ ],
+ [
+ 20.46875,
+ "ate"
+ ],
+ [
+ 21.171875,
+ "The"
+ ],
+ [
+ 21.237,
+ "median"
+ ],
+ [
+ 21.835958,
+ "only"
+ ],
+ [
+ 22.122416,
+ "moves"
+ ],
+ [
+ 22.565125,
+ "to"
+ ],
+ [
+ 22.630208,
+ "three"
+ ],
+ [
+ 23.554708,
+ "An"
+ ],
+ [
+ 23.658875,
+ "outlier"
+ ],
+ [
+ 24.21875,
+ "can"
+ ],
+ [
+ 24.414083,
+ "skew"
+ ],
+ [
+ 24.765625,
+ "the"
+ ],
+ [
+ 24.84375,
+ "mean"
+ ],
+ [
+ 25.677083,
+ "so"
+ ],
+ [
+ 25.833333,
+ "when"
+ ],
+ [
+ 25.9375,
+ "a"
+ ],
+ [
+ 25.989583,
+ "set"
+ ],
+ [
+ 26.302083,
+ "has"
+ ],
+ [
+ 26.601583,
+ "one"
+ ],
+ [
+ 27.578125,
+ "the"
+ ],
+ [
+ 27.65625,
+ "median"
+ ],
+ [
+ 28.151041,
+ "usually"
+ ],
+ [
+ 28.59375,
+ "describes"
+ ],
+ [
+ 29.153666,
+ "a"
+ ],
+ [
+ 29.20575,
+ "typical"
+ ],
+ [
+ 29.635416,
+ "value"
+ ],
+ [
+ 29.973958,
+ "better"
+ ]
+ ],
+ "marks": {
+ "four": 4.583,
+ "mn": 9.505,
+ "md": 11.628,
+ "out": 13.88,
+ "pull": 17.266,
+ "stay": 21.172,
+ "skew": 23.555
+ },
+ "cues": [
+ [
+ 0.104,
+ "An outlier is a value much greater or much less than the rest."
+ ],
+ [
+ 4.583,
+ "Four friends ate two, three, two, and four slices of pizza."
+ ],
+ [
+ 9.505,
+ "Their mean is two point seven five, and their median is two point five."
+ ],
+ [
+ 13.88,
+ "Now a fifth friend ate fourteen slices."
+ ],
+ [
+ 17.266,
+ "The mean jumps to five, more than four of the five friends ate."
+ ],
+ [
+ 21.172,
+ "The median only moves to three."
+ ],
+ [
+ 23.555,
+ "An outlier can skew the mean, so when a set has one, the median usually describes a typical value better."
+ ]
+ ]
+ },
+ "q4": {
+ "key": "7fed69ee2b8dd1c0c9471521fdb0320c66c5466d",
+ "dur": 3.984,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.158875,
+ "Which"
+ ],
+ [
+ 1.354166,
+ "number"
+ ],
+ [
+ 1.653666,
+ "better"
+ ],
+ [
+ 1.914083,
+ "describes"
+ ],
+ [
+ 2.695333,
+ "a"
+ ],
+ [
+ 2.773458,
+ "typical"
+ ],
+ [
+ 3.177083,
+ "friend"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.159,
+ "Which number better describes a typical friend?"
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "cb3d25739162d977938701725b9ce41dc027fa05",
+ "dur": 19.416,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "sum"
+ ],
+ [
+ 0.364583,
+ "up"
+ ],
+ [
+ 0.976583,
+ "Mean"
+ ],
+ [
+ 1.770833,
+ "add"
+ ],
+ [
+ 1.940125,
+ "the"
+ ],
+ [
+ 2.005208,
+ "values"
+ ],
+ [
+ 3.007833,
+ "then"
+ ],
+ [
+ 3.125,
+ "divide"
+ ],
+ [
+ 3.606791,
+ "by"
+ ],
+ [
+ 3.723958,
+ "how"
+ ],
+ [
+ 3.90625,
+ "many"
+ ],
+ [
+ 4.20575,
+ "there"
+ ],
+ [
+ 4.401041,
+ "are"
+ ],
+ [
+ 5.182291,
+ "Median"
+ ],
+ [
+ 6.054708,
+ "the"
+ ],
+ [
+ 6.119791,
+ "middle"
+ ],
+ [
+ 6.432291,
+ "value"
+ ],
+ [
+ 7.161458,
+ "once"
+ ],
+ [
+ 7.434916,
+ "they're"
+ ],
+ [
+ 7.617208,
+ "in"
+ ],
+ [
+ 7.760416,
+ "order"
+ ],
+ [
+ 8.723958,
+ "or"
+ ],
+ [
+ 8.802083,
+ "the"
+ ],
+ [
+ 8.867208,
+ "mean"
+ ],
+ [
+ 9.20575,
+ "of"
+ ],
+ [
+ 9.257833,
+ "the"
+ ],
+ [
+ 9.348958,
+ "two"
+ ],
+ [
+ 9.583333,
+ "middle"
+ ],
+ [
+ 9.83075,
+ "values"
+ ],
+ [
+ 10.898458,
+ "Mode"
+ ],
+ [
+ 11.744791,
+ "the"
+ ],
+ [
+ 11.822916,
+ "value"
+ ],
+ [
+ 12.252625,
+ "that"
+ ],
+ [
+ 12.369791,
+ "occurs"
+ ],
+ [
+ 12.786458,
+ "most"
+ ],
+ [
+ 13.164083,
+ "often"
+ ],
+ [
+ 14.023458,
+ "Range"
+ ],
+ [
+ 14.947916,
+ "the"
+ ],
+ [
+ 15.026041,
+ "maximum"
+ ],
+ [
+ 15.794291,
+ "minus"
+ ],
+ [
+ 16.263041,
+ "the"
+ ],
+ [
+ 16.367208,
+ "minimum"
+ ],
+ [
+ 17.1875,
+ "Now"
+ ],
+ [
+ 17.65625,
+ "try"
+ ],
+ [
+ 17.825541,
+ "the"
+ ],
+ [
+ 17.916666,
+ "chapter"
+ ],
+ [
+ 18.307291,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 0.977,
+ "w2": 5.182,
+ "w3": 10.898,
+ "w4": 14.023,
+ "end": 17.188
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.977,
+ "Mean: add the values, then divide by how many there are."
+ ],
+ [
+ 5.182,
+ "Median: the middle value once they're in order, or the mean of the two middle values."
+ ],
+ [
+ 10.898,
+ "Mode: the value that occurs most often."
+ ],
+ [
+ 14.023,
+ "Range: the maximum minus the minimum."
+ ],
+ [
+ 17.188,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "e8003086ea9cd87b722aacd06129bffc7a1a902e",
+ "dur": 3.528,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.416666,
+ "practice"
+ ],
+ [
+ 1.588541,
+ "Find"
+ ],
+ [
+ 2.135416,
+ "all"
+ ],
+ [
+ 2.317708,
+ "four"
+ ],
+ [
+ 2.565125,
+ "measures"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.589,
+ "Find all four measures."
+ ]
+ ]
+ },
+ "final2": {
+ "key": "32e5f89e8f7b0a4a6ca3d9882cb28beb480f6aa2",
+ "dur": 3.336,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.950541,
+ "how"
+ ],
+ [
+ 1.054708,
+ "many"
+ ],
+ [
+ 1.223958,
+ "modes"
+ ],
+ [
+ 1.627625,
+ "does"
+ ],
+ [
+ 1.966166,
+ "each"
+ ],
+ [
+ 2.200541,
+ "set"
+ ],
+ [
+ 2.526041,
+ "have"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, how many modes does each set have?"
+ ]
+ ]
+ },
+ "final3": {
+ "key": "8166486bc7d87c3709ff785fce7c1ce2ea0c3252",
+ "dur": 3.408,
+ "words": [
+ [
+ 0.091166,
+ "Last"
+ ],
+ [
+ 0.390625,
+ "one"
+ ],
+ [
+ 1.08075,
+ "This"
+ ],
+ [
+ 1.223958,
+ "set"
+ ],
+ [
+ 1.458333,
+ "has"
+ ],
+ [
+ 1.666666,
+ "an"
+ ],
+ [
+ 1.822916,
+ "even"
+ ],
+ [
+ 2.096375,
+ "number"
+ ],
+ [
+ 2.34375,
+ "of"
+ ],
+ [
+ 2.395833,
+ "values"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Last one."
+ ],
+ [
+ 1.081,
+ "This set has an even number of values."
+ ]
+ ]
+ },
+ "finish": {
+ "key": "12d759bb8dce55b4d3f077ceee3356ce3f3cb064",
+ "dur": 6.888,
+ "words": [
+ [
+ 0.104166,
+ "Nicely"
+ ],
+ [
+ 0.442708,
+ "done"
+ ],
+ [
+ 1.210958,
+ "That's"
+ ],
+ [
+ 1.380208,
+ "the"
+ ],
+ [
+ 1.484375,
+ "end"
+ ],
+ [
+ 1.809916,
+ "of"
+ ],
+ [
+ 2.148458,
+ "chapter"
+ ],
+ [
+ 2.708333,
+ "forty"
+ ],
+ [
+ 3.723958,
+ "measures"
+ ],
+ [
+ 4.140625,
+ "of"
+ ],
+ [
+ 4.21875,
+ "central"
+ ],
+ [
+ 4.713541,
+ "tendency"
+ ],
+ [
+ 5.598958,
+ "and"
+ ],
+ [
+ 5.76825,
+ "variation"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Nicely done."
+ ],
+ [
+ 1.211,
+ "That's the end of chapter forty, measures of central tendency and variation."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch41/narration.en.json b/content/ch41/narration.en.json
new file mode 100644
index 0000000..aedf3bc
--- /dev/null
+++ b/content/ch41/narration.en.json
@@ -0,0 +1,24 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter forty-one. [[sub]]A long list of numbers is hard to read at a glance. A good display lets you see the pattern.",
+ "twoway": "A two-way table sorts one group by two questions at once. [[q]]Thirty-six students took a test. Did they go to the review session, and did they pass? [[cols]]The columns split the students by the review. [[rows]]The rows split them by the result. [[cells]]Each cell counts the students who fit both. Eighteen did the review and passed. [[tot]]Adding across a row gives a row total. Adding down a column gives a column total. [[all]]Both ways, the totals add up to all thirty-six students. [[cmp]]Now compare. Of the twenty-one students who did the review, eighteen passed. [[cmp2]]Of the fifteen who skipped it, only six passed. [[rel]]The table suggests a relationship: students who did the review were more likely to pass.",
+ "q1": "Quick check. Click the right cell.",
+ "lineplot": "A line plot shows the frequency of each value, meaning how often it occurs. [[data]]Twelve students said how many pets they have. [[line]]Draw a number line that covers every answer, [[marks]]then put one x above the value for each answer. [[read]]Now the pattern is easy to see. [[mode]]One pet is the most common answer, so the mode is one. [[range]]The answers run from zero to four, so the range is four.",
+ "histogram": "A histogram also shows frequency, but for equal intervals instead of single values. [[data]]Here are twenty students' homework times, in minutes. [[bins]]Split the scale into intervals of ten minutes: zero to nine, ten to nineteen, and so on. [[fill]]Each time adds one to the height of its interval's bar. [[gap]]The bars touch, because the intervals cover the whole scale with no gaps. [[read]]The tallest bar shows the most common interval: twenty to twenty-nine minutes.",
+ "q2": "Quick check. Read the histogram.",
+ "boxplot": "A box plot shows how a data set is spread out, using just five numbers. [[data]]Here are eleven values, in order, on a number line. [[med]]First find the median, the middle value. It's eleven, and it splits the data into a lower half and an upper half. [[q1]]The median of the lower half is the lower quartile, Q one. Here it's six. [[q3]]The median of the upper half is the upper quartile, Q three. Here it's fifteen. [[ends]]The minimum is two, and the maximum is twenty-four. [[box]]Draw a box from Q one to Q three, with a line at the median, [[wh]]then whiskers out to the minimum and the maximum.",
+ "quarters": "Those five numbers cut the data into four parts, [[four]]and each part holds about a quarter of the values. [[mid]]So the box holds the middle half of the data. [[long]]A long part means the values in it are spread out. [[short]]A short part means they're bunched close together. [[ex]]Here, the right whisker is the longest part: the largest values are the most spread out.",
+ "q3": "Quick check. Find the median and the quartiles.",
+ "scatter": "A scatter plot compares two sets of data that come in pairs. [[tab]]Ten students report the hours they studied and their test scores. [[pt]]Each student becomes an ordered pair: hours across, score up. [[all]]Plot every student. [[trend]]The points drift upward: more studying tends to go with a higher score. [[fit]]A line of best fit runs through the middle of the points to show that trend. It doesn't have to pass through any of them.",
+ "corr": "The trend in a scatter plot is called a correlation. [[pos]]Positive correlation: as one value goes up, the other tends to go up too. [[neg]]Negative correlation: as one value goes up, the other tends to go down, like a car's age and its price. [[none]]No correlation: the points show no trend, like shoe size and birthday month. [[tend]]Notice the word tends. A correlation describes the overall pattern, not every single point.",
+ "q4": "Quick check. Which plot shows a negative correlation?",
+ "wrap": "Each display answers a different question. [[w1]]A two-way table counts one group by two categories at once. [[w2]]Line plots and histograms show how often values occur. [[w3]]A box plot summarizes the spread with five numbers. [[w4]]A scatter plot shows whether two sets of data are related. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Read the two-way table.",
+ "final2": "Next, read the histogram.",
+ "final3": "Now decide the kind of correlation.",
+ "final4": "Last one. Find the five numbers for a box plot.",
+ "finish": "Great work. That's the end of chapter forty-one, displaying data."
+ }
+}
diff --git a/content/ch41/narration.en.timings.json b/content/ch41/narration.en.timings.json
new file mode 100644
index 0000000..ac0dfff
--- /dev/null
+++ b/content/ch41/narration.en.timings.json
@@ -0,0 +1,3408 @@
+{
+ "intro": {
+ "key": "27bdcf00bd2d328b6c393872cd2f193fa458be85",
+ "dur": 7.728,
+ "words": [
+ [
+ 0.091166,
+ "Chapter"
+ ],
+ [
+ 0.533875,
+ "forty-one"
+ ],
+ [
+ 1.666666,
+ "A"
+ ],
+ [
+ 1.71875,
+ "long"
+ ],
+ [
+ 2.057291,
+ "list"
+ ],
+ [
+ 2.291666,
+ "of"
+ ],
+ [
+ 2.356791,
+ "numbers"
+ ],
+ [
+ 2.942708,
+ "is"
+ ],
+ [
+ 3.033875,
+ "hard"
+ ],
+ [
+ 3.450541,
+ "to"
+ ],
+ [
+ 3.554708,
+ "read"
+ ],
+ [
+ 3.945333,
+ "at"
+ ],
+ [
+ 4.010416,
+ "a"
+ ],
+ [
+ 4.036458,
+ "glance"
+ ],
+ [
+ 5.104166,
+ "A"
+ ],
+ [
+ 5.15625,
+ "good"
+ ],
+ [
+ 5.325541,
+ "display"
+ ],
+ [
+ 6.302083,
+ "lets"
+ ],
+ [
+ 6.471375,
+ "you"
+ ],
+ [
+ 6.614583,
+ "see"
+ ],
+ [
+ 6.848958,
+ "the"
+ ],
+ [
+ 6.927083,
+ "pattern"
+ ]
+ ],
+ "marks": {
+ "sub": 1.667
+ },
+ "cues": [
+ [
+ 0.091,
+ "Chapter forty-one."
+ ],
+ [
+ 1.667,
+ "A long list of numbers is hard to read at a glance."
+ ],
+ [
+ 5.104,
+ "A good display lets you see the pattern."
+ ]
+ ]
+ },
+ "twoway": {
+ "key": "916d2367da609ef3e745abe435f3e002e312dcdf",
+ "dur": 43.608,
+ "words": [
+ [
+ 0.091166,
+ "A"
+ ],
+ [
+ 0.14325,
+ "two-way"
+ ],
+ [
+ 0.520833,
+ "table"
+ ],
+ [
+ 0.859375,
+ "sorts"
+ ],
+ [
+ 1.197916,
+ "one"
+ ],
+ [
+ 1.510416,
+ "group"
+ ],
+ [
+ 2.161458,
+ "by"
+ ],
+ [
+ 2.604166,
+ "two"
+ ],
+ [
+ 2.877625,
+ "questions"
+ ],
+ [
+ 3.346375,
+ "at"
+ ],
+ [
+ 3.450541,
+ "once"
+ ],
+ [
+ 4.466166,
+ "Thirty-six"
+ ],
+ [
+ 4.987,
+ "students"
+ ],
+ [
+ 5.377625,
+ "took"
+ ],
+ [
+ 5.559916,
+ "a"
+ ],
+ [
+ 5.612,
+ "test"
+ ],
+ [
+ 6.5495,
+ "Did"
+ ],
+ [
+ 6.614583,
+ "they"
+ ],
+ [
+ 6.70575,
+ "go"
+ ],
+ [
+ 6.848958,
+ "to"
+ ],
+ [
+ 6.901041,
+ "the"
+ ],
+ [
+ 6.979166,
+ "review"
+ ],
+ [
+ 7.33075,
+ "session"
+ ],
+ [
+ 8.072916,
+ "and"
+ ],
+ [
+ 8.242208,
+ "did"
+ ],
+ [
+ 8.385416,
+ "they"
+ ],
+ [
+ 8.515625,
+ "pass"
+ ],
+ [
+ 9.596375,
+ "The"
+ ],
+ [
+ 9.661458,
+ "columns"
+ ],
+ [
+ 10.104166,
+ "split"
+ ],
+ [
+ 10.559916,
+ "the"
+ ],
+ [
+ 10.664083,
+ "students"
+ ],
+ [
+ 11.210958,
+ "by"
+ ],
+ [
+ 11.40625,
+ "the"
+ ],
+ [
+ 11.471375,
+ "review"
+ ],
+ [
+ 12.421875,
+ "The"
+ ],
+ [
+ 12.5,
+ "rows"
+ ],
+ [
+ 12.8125,
+ "split"
+ ],
+ [
+ 13.242208,
+ "them"
+ ],
+ [
+ 13.58075,
+ "by"
+ ],
+ [
+ 13.75,
+ "the"
+ ],
+ [
+ 13.815125,
+ "result"
+ ],
+ [
+ 14.713541,
+ "Each"
+ ],
+ [
+ 14.869791,
+ "cell"
+ ],
+ [
+ 15.15625,
+ "counts"
+ ],
+ [
+ 15.494791,
+ "the"
+ ],
+ [
+ 15.598958,
+ "students"
+ ],
+ [
+ 16.09375,
+ "who"
+ ],
+ [
+ 16.197916,
+ "fit"
+ ],
+ [
+ 16.497416,
+ "both"
+ ],
+ [
+ 17.421875,
+ "Eighteen"
+ ],
+ [
+ 17.877625,
+ "did"
+ ],
+ [
+ 17.994791,
+ "the"
+ ],
+ [
+ 18.046875,
+ "review"
+ ],
+ [
+ 18.645833,
+ "and"
+ ],
+ [
+ 18.710958,
+ "passed"
+ ],
+ [
+ 19.739583,
+ "Adding"
+ ],
+ [
+ 20.0,
+ "across"
+ ],
+ [
+ 20.403666,
+ "a"
+ ],
+ [
+ 20.442708,
+ "row"
+ ],
+ [
+ 21.08075,
+ "gives"
+ ],
+ [
+ 21.25,
+ "a"
+ ],
+ [
+ 21.315125,
+ "row"
+ ],
+ [
+ 21.744791,
+ "total"
+ ],
+ [
+ 22.695333,
+ "Adding"
+ ],
+ [
+ 22.95575,
+ "down"
+ ],
+ [
+ 23.190125,
+ "a"
+ ],
+ [
+ 23.242208,
+ "column"
+ ],
+ [
+ 24.127625,
+ "gives"
+ ],
+ [
+ 24.335958,
+ "a"
+ ],
+ [
+ 24.401041,
+ "column"
+ ],
+ [
+ 24.882833,
+ "total"
+ ],
+ [
+ 25.729166,
+ "Both"
+ ],
+ [
+ 25.963541,
+ "ways"
+ ],
+ [
+ 26.809916,
+ "the"
+ ],
+ [
+ 26.940125,
+ "totals"
+ ],
+ [
+ 27.356791,
+ "add"
+ ],
+ [
+ 27.565125,
+ "up"
+ ],
+ [
+ 27.708333,
+ "to"
+ ],
+ [
+ 27.929708,
+ "all"
+ ],
+ [
+ 28.164083,
+ "thirty-six"
+ ],
+ [
+ 28.815125,
+ "students"
+ ],
+ [
+ 29.84375,
+ "Now"
+ ],
+ [
+ 30.065125,
+ "compare"
+ ],
+ [
+ 31.015625,
+ "Of"
+ ],
+ [
+ 31.09375,
+ "the"
+ ],
+ [
+ 31.171875,
+ "twenty-one"
+ ],
+ [
+ 31.575541,
+ "students"
+ ],
+ [
+ 31.953125,
+ "who"
+ ],
+ [
+ 32.01825,
+ "did"
+ ],
+ [
+ 32.1875,
+ "the"
+ ],
+ [
+ 32.265625,
+ "review"
+ ],
+ [
+ 33.138041,
+ "eighteen"
+ ],
+ [
+ 33.554708,
+ "passed"
+ ],
+ [
+ 34.557291,
+ "Of"
+ ],
+ [
+ 34.635416,
+ "the"
+ ],
+ [
+ 34.700541,
+ "fifteen"
+ ],
+ [
+ 35.234375,
+ "who"
+ ],
+ [
+ 35.390625,
+ "skipped"
+ ],
+ [
+ 35.807291,
+ "it"
+ ],
+ [
+ 36.263041,
+ "only"
+ ],
+ [
+ 36.484375,
+ "six"
+ ],
+ [
+ 36.783875,
+ "passed"
+ ],
+ [
+ 37.7995,
+ "The"
+ ],
+ [
+ 37.864583,
+ "table"
+ ],
+ [
+ 38.4375,
+ "suggests"
+ ],
+ [
+ 39.023458,
+ "a"
+ ],
+ [
+ 39.075541,
+ "relationship"
+ ],
+ [
+ 40.2995,
+ "students"
+ ],
+ [
+ 40.742208,
+ "who"
+ ],
+ [
+ 40.846375,
+ "did"
+ ],
+ [
+ 41.054708,
+ "the"
+ ],
+ [
+ 41.119791,
+ "review"
+ ],
+ [
+ 41.601583,
+ "were"
+ ],
+ [
+ 41.731791,
+ "more"
+ ],
+ [
+ 42.096375,
+ "likely"
+ ],
+ [
+ 42.487,
+ "to"
+ ],
+ [
+ 42.565125,
+ "pass"
+ ]
+ ],
+ "marks": {
+ "q": 4.466,
+ "cols": 9.596,
+ "rows": 12.422,
+ "cells": 14.714,
+ "tot": 19.74,
+ "all": 25.729,
+ "cmp": 29.844,
+ "cmp2": 34.557,
+ "rel": 37.8
+ },
+ "cues": [
+ [
+ 0.091,
+ "A two-way table sorts one group by two questions at once."
+ ],
+ [
+ 4.466,
+ "Thirty-six students took a test."
+ ],
+ [
+ 6.55,
+ "Did they go to the review session, and did they pass?"
+ ],
+ [
+ 9.596,
+ "The columns split the students by the review."
+ ],
+ [
+ 12.422,
+ "The rows split them by the result."
+ ],
+ [
+ 14.714,
+ "Each cell counts the students who fit both."
+ ],
+ [
+ 17.422,
+ "Eighteen did the review and passed."
+ ],
+ [
+ 19.74,
+ "Adding across a row gives a row total."
+ ],
+ [
+ 22.695,
+ "Adding down a column gives a column total."
+ ],
+ [
+ 25.729,
+ "Both ways, the totals add up to all thirty-six students."
+ ],
+ [
+ 29.844,
+ "Now compare."
+ ],
+ [
+ 31.016,
+ "Of the twenty-one students who did the review, eighteen passed."
+ ],
+ [
+ 34.557,
+ "Of the fifteen who skipped it, only six passed."
+ ],
+ [
+ 37.8,
+ "The table suggests a relationship: students who did the review were more likely to pass."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "4e626c7eae53c01724680e10f1ae7072c03d3e8d",
+ "dur": 2.424,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.2995,
+ "check"
+ ],
+ [
+ 1.145833,
+ "Click"
+ ],
+ [
+ 1.302083,
+ "the"
+ ],
+ [
+ 1.380208,
+ "right"
+ ],
+ [
+ 1.614583,
+ "cell"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.146,
+ "Click the right cell."
+ ]
+ ]
+ },
+ "lineplot": {
+ "key": "fa52c1b15d66191d22497b51fc1f45c9f70ff126",
+ "dur": 26.256,
+ "words": [
+ [
+ 0.065125,
+ "A"
+ ],
+ [
+ 0.130208,
+ "line"
+ ],
+ [
+ 0.416666,
+ "plot"
+ ],
+ [
+ 0.716166,
+ "shows"
+ ],
+ [
+ 1.106791,
+ "the"
+ ],
+ [
+ 1.210958,
+ "frequency"
+ ],
+ [
+ 2.01825,
+ "of"
+ ],
+ [
+ 2.33075,
+ "each"
+ ],
+ [
+ 2.578125,
+ "value"
+ ],
+ [
+ 3.645833,
+ "meaning"
+ ],
+ [
+ 3.880208,
+ "how"
+ ],
+ [
+ 4.127625,
+ "often"
+ ],
+ [
+ 4.492208,
+ "it"
+ ],
+ [
+ 4.557291,
+ "occurs"
+ ],
+ [
+ 5.612,
+ "Twelve"
+ ],
+ [
+ 5.911458,
+ "students"
+ ],
+ [
+ 6.679708,
+ "said"
+ ],
+ [
+ 7.421875,
+ "how"
+ ],
+ [
+ 7.578125,
+ "many"
+ ],
+ [
+ 7.7995,
+ "pets"
+ ],
+ [
+ 8.151041,
+ "they"
+ ],
+ [
+ 8.307291,
+ "have"
+ ],
+ [
+ 9.192708,
+ "Draw"
+ ],
+ [
+ 9.388041,
+ "a"
+ ],
+ [
+ 9.414083,
+ "number"
+ ],
+ [
+ 9.713541,
+ "line"
+ ],
+ [
+ 10.065125,
+ "that"
+ ],
+ [
+ 10.182291,
+ "covers"
+ ],
+ [
+ 10.703125,
+ "every"
+ ],
+ [
+ 11.054708,
+ "answer"
+ ],
+ [
+ 12.070333,
+ "then"
+ ],
+ [
+ 12.278666,
+ "put"
+ ],
+ [
+ 12.5,
+ "one"
+ ],
+ [
+ 13.26825,
+ "x"
+ ],
+ [
+ 13.567708,
+ "above"
+ ],
+ [
+ 13.90625,
+ "the"
+ ],
+ [
+ 13.997416,
+ "value"
+ ],
+ [
+ 14.414083,
+ "for"
+ ],
+ [
+ 14.583333,
+ "each"
+ ],
+ [
+ 14.817708,
+ "answer"
+ ],
+ [
+ 15.716166,
+ "Now"
+ ],
+ [
+ 15.833333,
+ "the"
+ ],
+ [
+ 15.950541,
+ "pattern"
+ ],
+ [
+ 16.731791,
+ "is"
+ ],
+ [
+ 17.070333,
+ "easy"
+ ],
+ [
+ 17.421875,
+ "to"
+ ],
+ [
+ 17.5,
+ "see"
+ ],
+ [
+ 18.463541,
+ "One"
+ ],
+ [
+ 18.776041,
+ "pet"
+ ],
+ [
+ 19.257833,
+ "is"
+ ],
+ [
+ 19.362,
+ "the"
+ ],
+ [
+ 19.427083,
+ "most"
+ ],
+ [
+ 19.765625,
+ "common"
+ ],
+ [
+ 20.052083,
+ "answer"
+ ],
+ [
+ 20.820333,
+ "so"
+ ],
+ [
+ 20.950541,
+ "the"
+ ],
+ [
+ 21.041666,
+ "mode"
+ ],
+ [
+ 21.380208,
+ "is"
+ ],
+ [
+ 21.497416,
+ "one"
+ ],
+ [
+ 22.252625,
+ "The"
+ ],
+ [
+ 22.356791,
+ "answers"
+ ],
+ [
+ 22.760416,
+ "run"
+ ],
+ [
+ 23.072916,
+ "from"
+ ],
+ [
+ 23.26825,
+ "zero"
+ ],
+ [
+ 23.710958,
+ "to"
+ ],
+ [
+ 23.854166,
+ "four"
+ ],
+ [
+ 24.791666,
+ "so"
+ ],
+ [
+ 24.908875,
+ "the"
+ ],
+ [
+ 25.0,
+ "range"
+ ],
+ [
+ 25.3125,
+ "is"
+ ],
+ [
+ 25.403666,
+ "four"
+ ]
+ ],
+ "marks": {
+ "data": 5.612,
+ "line": 9.193,
+ "marks": 12.07,
+ "read": 15.716,
+ "mode": 18.464,
+ "range": 22.253
+ },
+ "cues": [
+ [
+ 0.065,
+ "A line plot shows the frequency of each value, meaning how often it occurs."
+ ],
+ [
+ 5.612,
+ "Twelve students said how many pets they have."
+ ],
+ [
+ 9.193,
+ "Draw a number line that covers every answer, then put one x above the value for each answer."
+ ],
+ [
+ 15.716,
+ "Now the pattern is easy to see."
+ ],
+ [
+ 18.464,
+ "One pet is the most common answer, so the mode is one."
+ ],
+ [
+ 22.253,
+ "The answers run from zero to four, so the range is four."
+ ]
+ ]
+ },
+ "histogram": {
+ "key": "99937d92e2713b7d73d1fa705243a631cf382744",
+ "dur": 30.528,
+ "words": [
+ [
+ 0.091166,
+ "A"
+ ],
+ [
+ 0.14325,
+ "histogram"
+ ],
+ [
+ 0.989583,
+ "also"
+ ],
+ [
+ 1.367208,
+ "shows"
+ ],
+ [
+ 1.796875,
+ "frequency"
+ ],
+ [
+ 3.26825,
+ "but"
+ ],
+ [
+ 3.398458,
+ "for"
+ ],
+ [
+ 3.815125,
+ "equal"
+ ],
+ [
+ 4.153666,
+ "intervals"
+ ],
+ [
+ 4.84375,
+ "instead"
+ ],
+ [
+ 5.45575,
+ "of"
+ ],
+ [
+ 5.520833,
+ "single"
+ ],
+ [
+ 5.859375,
+ "values"
+ ],
+ [
+ 6.953125,
+ "Here"
+ ],
+ [
+ 7.161458,
+ "are"
+ ],
+ [
+ 7.265625,
+ "twenty"
+ ],
+ [
+ 7.630208,
+ "students'"
+ ],
+ [
+ 7.96875,
+ "homework"
+ ],
+ [
+ 8.411458,
+ "times"
+ ],
+ [
+ 9.20575,
+ "in"
+ ],
+ [
+ 9.348958,
+ "minutes"
+ ],
+ [
+ 10.286458,
+ "Split"
+ ],
+ [
+ 10.612,
+ "the"
+ ],
+ [
+ 10.716166,
+ "scale"
+ ],
+ [
+ 11.210958,
+ "into"
+ ],
+ [
+ 11.510416,
+ "intervals"
+ ],
+ [
+ 11.992208,
+ "of"
+ ],
+ [
+ 12.096375,
+ "ten"
+ ],
+ [
+ 12.395833,
+ "minutes"
+ ],
+ [
+ 13.4375,
+ "zero"
+ ],
+ [
+ 13.880208,
+ "to"
+ ],
+ [
+ 14.010416,
+ "nine"
+ ],
+ [
+ 14.987,
+ "ten"
+ ],
+ [
+ 15.221375,
+ "to"
+ ],
+ [
+ 15.338541,
+ "nineteen"
+ ],
+ [
+ 16.341166,
+ "and"
+ ],
+ [
+ 16.445333,
+ "so"
+ ],
+ [
+ 16.731791,
+ "on"
+ ],
+ [
+ 17.369791,
+ "Each"
+ ],
+ [
+ 17.552083,
+ "time"
+ ],
+ [
+ 17.994791,
+ "adds"
+ ],
+ [
+ 18.372416,
+ "one"
+ ],
+ [
+ 18.632833,
+ "to"
+ ],
+ [
+ 18.723958,
+ "the"
+ ],
+ [
+ 18.815125,
+ "height"
+ ],
+ [
+ 19.53125,
+ "of"
+ ],
+ [
+ 19.622416,
+ "its"
+ ],
+ [
+ 19.765625,
+ "interval's"
+ ],
+ [
+ 20.117208,
+ "bar"
+ ],
+ [
+ 20.963541,
+ "The"
+ ],
+ [
+ 21.054708,
+ "bars"
+ ],
+ [
+ 21.419291,
+ "touch"
+ ],
+ [
+ 22.1875,
+ "because"
+ ],
+ [
+ 22.539083,
+ "the"
+ ],
+ [
+ 22.64325,
+ "intervals"
+ ],
+ [
+ 23.085958,
+ "cover"
+ ],
+ [
+ 23.359375,
+ "the"
+ ],
+ [
+ 23.4245,
+ "whole"
+ ],
+ [
+ 23.737,
+ "scale"
+ ],
+ [
+ 24.20575,
+ "with"
+ ],
+ [
+ 24.335958,
+ "no"
+ ],
+ [
+ 24.570333,
+ "gaps"
+ ],
+ [
+ 25.625,
+ "The"
+ ],
+ [
+ 25.690125,
+ "tallest"
+ ],
+ [
+ 26.145833,
+ "bar"
+ ],
+ [
+ 26.692708,
+ "shows"
+ ],
+ [
+ 27.096375,
+ "the"
+ ],
+ [
+ 27.1875,
+ "most"
+ ],
+ [
+ 27.552083,
+ "common"
+ ],
+ [
+ 28.007833,
+ "interval"
+ ],
+ [
+ 28.684916,
+ "twenty"
+ ],
+ [
+ 29.023458,
+ "to"
+ ],
+ [
+ 29.101583,
+ "twenty-nine"
+ ],
+ [
+ 29.622416,
+ "minutes"
+ ]
+ ],
+ "marks": {
+ "data": 6.953,
+ "bins": 10.286,
+ "fill": 17.37,
+ "gap": 20.964,
+ "read": 25.625
+ },
+ "cues": [
+ [
+ 0.091,
+ "A histogram also shows frequency, but for equal intervals instead of single values."
+ ],
+ [
+ 6.953,
+ "Here are twenty students' homework times, in minutes."
+ ],
+ [
+ 10.286,
+ "Split the scale into intervals of ten minutes: zero to nine, ten to nineteen, and so on."
+ ],
+ [
+ 17.37,
+ "Each time adds one to the height of its interval's bar."
+ ],
+ [
+ 20.964,
+ "The bars touch, because the intervals cover the whole scale with no gaps."
+ ],
+ [
+ 25.625,
+ "The tallest bar shows the most common interval: twenty to twenty-nine minutes."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "4efb706d3d776861fdec0ea5a6cc0dbfeca2fc30",
+ "dur": 2.544,
+ "words": [
+ [
+ 0.091166,
+ "Quick"
+ ],
+ [
+ 0.247416,
+ "check"
+ ],
+ [
+ 1.08075,
+ "Read"
+ ],
+ [
+ 1.380208,
+ "the"
+ ],
+ [
+ 1.458333,
+ "histogram"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.081,
+ "Read the histogram."
+ ]
+ ]
+ },
+ "boxplot": {
+ "key": "9c5e67f4e9aab9f15520ddaaa671dc02bd5a637b",
+ "dur": 39.312,
+ "words": [
+ [
+ 0.091166,
+ "A"
+ ],
+ [
+ 0.14325,
+ "box"
+ ],
+ [
+ 0.416666,
+ "plot"
+ ],
+ [
+ 0.677083,
+ "shows"
+ ],
+ [
+ 1.041666,
+ "how"
+ ],
+ [
+ 1.184916,
+ "a"
+ ],
+ [
+ 1.25,
+ "data"
+ ],
+ [
+ 1.523458,
+ "set"
+ ],
+ [
+ 1.979166,
+ "is"
+ ],
+ [
+ 2.083333,
+ "spread"
+ ],
+ [
+ 2.526041,
+ "out"
+ ],
+ [
+ 3.28125,
+ "using"
+ ],
+ [
+ 3.619791,
+ "just"
+ ],
+ [
+ 3.919291,
+ "five"
+ ],
+ [
+ 4.192708,
+ "numbers"
+ ],
+ [
+ 5.195333,
+ "Here"
+ ],
+ [
+ 5.416666,
+ "are"
+ ],
+ [
+ 5.494791,
+ "eleven"
+ ],
+ [
+ 6.002625,
+ "values"
+ ],
+ [
+ 6.940125,
+ "in"
+ ],
+ [
+ 7.122416,
+ "order"
+ ],
+ [
+ 8.072916,
+ "on"
+ ],
+ [
+ 8.151041,
+ "a"
+ ],
+ [
+ 8.190125,
+ "number"
+ ],
+ [
+ 8.476583,
+ "line"
+ ],
+ [
+ 9.309916,
+ "First"
+ ],
+ [
+ 9.544291,
+ "find"
+ ],
+ [
+ 9.817708,
+ "the"
+ ],
+ [
+ 9.856791,
+ "median"
+ ],
+ [
+ 10.664083,
+ "the"
+ ],
+ [
+ 10.729166,
+ "middle"
+ ],
+ [
+ 11.028666,
+ "value"
+ ],
+ [
+ 11.927083,
+ "It's"
+ ],
+ [
+ 12.044291,
+ "eleven"
+ ],
+ [
+ 12.942708,
+ "and"
+ ],
+ [
+ 12.994791,
+ "it"
+ ],
+ [
+ 13.072916,
+ "splits"
+ ],
+ [
+ 13.541666,
+ "the"
+ ],
+ [
+ 13.697916,
+ "data"
+ ],
+ [
+ 14.322916,
+ "into"
+ ],
+ [
+ 14.53125,
+ "a"
+ ],
+ [
+ 14.609375,
+ "lower"
+ ],
+ [
+ 15.0,
+ "half"
+ ],
+ [
+ 15.585958,
+ "and"
+ ],
+ [
+ 15.690125,
+ "an"
+ ],
+ [
+ 15.794291,
+ "upper"
+ ],
+ [
+ 16.067708,
+ "half"
+ ],
+ [
+ 17.005208,
+ "The"
+ ],
+ [
+ 17.083333,
+ "median"
+ ],
+ [
+ 17.447916,
+ "of"
+ ],
+ [
+ 17.5,
+ "the"
+ ],
+ [
+ 17.591166,
+ "lower"
+ ],
+ [
+ 17.864583,
+ "half"
+ ],
+ [
+ 18.502625,
+ "is"
+ ],
+ [
+ 18.606791,
+ "the"
+ ],
+ [
+ 18.723958,
+ "lower"
+ ],
+ [
+ 19.023458,
+ "quartile"
+ ],
+ [
+ 20.078125,
+ "Q"
+ ],
+ [
+ 20.338541,
+ "one"
+ ],
+ [
+ 21.09375,
+ "Here"
+ ],
+ [
+ 21.210958,
+ "it's"
+ ],
+ [
+ 21.328125,
+ "six"
+ ],
+ [
+ 22.356791,
+ "The"
+ ],
+ [
+ 22.434916,
+ "median"
+ ],
+ [
+ 22.8125,
+ "of"
+ ],
+ [
+ 22.864583,
+ "the"
+ ],
+ [
+ 22.95575,
+ "upper"
+ ],
+ [
+ 23.229166,
+ "half"
+ ],
+ [
+ 23.828125,
+ "is"
+ ],
+ [
+ 23.932291,
+ "the"
+ ],
+ [
+ 24.166666,
+ "upper"
+ ],
+ [
+ 24.427083,
+ "quartile"
+ ],
+ [
+ 25.494791,
+ "Q"
+ ],
+ [
+ 25.755208,
+ "three"
+ ],
+ [
+ 26.640625,
+ "Here"
+ ],
+ [
+ 26.744791,
+ "it's"
+ ],
+ [
+ 26.848958,
+ "fifteen"
+ ],
+ [
+ 27.825541,
+ "The"
+ ],
+ [
+ 27.903666,
+ "minimum"
+ ],
+ [
+ 28.450541,
+ "is"
+ ],
+ [
+ 28.606791,
+ "two"
+ ],
+ [
+ 29.609375,
+ "and"
+ ],
+ [
+ 29.661458,
+ "the"
+ ],
+ [
+ 29.726583,
+ "maximum"
+ ],
+ [
+ 30.598958,
+ "is"
+ ],
+ [
+ 30.690125,
+ "twenty-four"
+ ],
+ [
+ 31.744791,
+ "Draw"
+ ],
+ [
+ 31.992208,
+ "a"
+ ],
+ [
+ 32.070333,
+ "box"
+ ],
+ [
+ 32.5,
+ "from"
+ ],
+ [
+ 32.669291,
+ "Q"
+ ],
+ [
+ 32.942708,
+ "one"
+ ],
+ [
+ 33.203125,
+ "to"
+ ],
+ [
+ 33.346375,
+ "Q"
+ ],
+ [
+ 33.606791,
+ "three"
+ ],
+ [
+ 34.570333,
+ "with"
+ ],
+ [
+ 34.713541,
+ "a"
+ ],
+ [
+ 34.752625,
+ "line"
+ ],
+ [
+ 35.130208,
+ "at"
+ ],
+ [
+ 35.208333,
+ "the"
+ ],
+ [
+ 35.286458,
+ "median"
+ ],
+ [
+ 36.223958,
+ "then"
+ ],
+ [
+ 36.419291,
+ "whiskers"
+ ],
+ [
+ 36.992208,
+ "out"
+ ],
+ [
+ 37.239583,
+ "to"
+ ],
+ [
+ 37.34375,
+ "the"
+ ],
+ [
+ 37.421875,
+ "minimum"
+ ],
+ [
+ 38.255208,
+ "and"
+ ],
+ [
+ 38.307291,
+ "the"
+ ],
+ [
+ 38.359375,
+ "maximum"
+ ]
+ ],
+ "marks": {
+ "data": 5.195,
+ "med": 9.31,
+ "q1": 17.005,
+ "q3": 22.357,
+ "ends": 27.826,
+ "box": 31.745,
+ "wh": 36.224
+ },
+ "cues": [
+ [
+ 0.091,
+ "A box plot shows how a data set is spread out, using just five numbers."
+ ],
+ [
+ 5.195,
+ "Here are eleven values, in order, on a number line."
+ ],
+ [
+ 9.31,
+ "First find the median, the middle value."
+ ],
+ [
+ 11.927,
+ "It's eleven, and it splits the data into a lower half and an upper half."
+ ],
+ [
+ 17.005,
+ "The median of the lower half is the lower quartile, Q one."
+ ],
+ [
+ 21.094,
+ "Here it's six."
+ ],
+ [
+ 22.357,
+ "The median of the upper half is the upper quartile, Q three."
+ ],
+ [
+ 26.641,
+ "Here it's fifteen."
+ ],
+ [
+ 27.826,
+ "The minimum is two, and the maximum is twenty-four."
+ ],
+ [
+ 31.745,
+ "Draw a box from Q one to Q three, with a line at the median, then whiskers out to the minimum and the maximum."
+ ]
+ ]
+ },
+ "quarters": {
+ "key": "6f49166afb55e1f80495882317f70f9872a1944f",
+ "dur": 20.544,
+ "words": [
+ [
+ 0.104166,
+ "Those"
+ ],
+ [
+ 0.325541,
+ "five"
+ ],
+ [
+ 0.598958,
+ "numbers"
+ ],
+ [
+ 0.872416,
+ "cut"
+ ],
+ [
+ 1.08075,
+ "the"
+ ],
+ [
+ 1.184916,
+ "data"
+ ],
+ [
+ 1.71875,
+ "into"
+ ],
+ [
+ 2.044291,
+ "four"
+ ],
+ [
+ 2.5,
+ "parts"
+ ],
+ [
+ 3.320333,
+ "and"
+ ],
+ [
+ 3.658875,
+ "each"
+ ],
+ [
+ 3.789083,
+ "part"
+ ],
+ [
+ 3.997416,
+ "holds"
+ ],
+ [
+ 4.309916,
+ "about"
+ ],
+ [
+ 4.544291,
+ "a"
+ ],
+ [
+ 4.583333,
+ "quarter"
+ ],
+ [
+ 5.065125,
+ "of"
+ ],
+ [
+ 5.117208,
+ "the"
+ ],
+ [
+ 5.169291,
+ "values"
+ ],
+ [
+ 6.223958,
+ "So"
+ ],
+ [
+ 6.341166,
+ "the"
+ ],
+ [
+ 6.419291,
+ "box"
+ ],
+ [
+ 6.875,
+ "holds"
+ ],
+ [
+ 7.1745,
+ "the"
+ ],
+ [
+ 7.252625,
+ "middle"
+ ],
+ [
+ 7.630208,
+ "half"
+ ],
+ [
+ 7.981791,
+ "of"
+ ],
+ [
+ 8.033875,
+ "the"
+ ],
+ [
+ 8.125,
+ "data"
+ ],
+ [
+ 8.971375,
+ "A"
+ ],
+ [
+ 9.036458,
+ "long"
+ ],
+ [
+ 9.322916,
+ "part"
+ ],
+ [
+ 9.6875,
+ "means"
+ ],
+ [
+ 9.973958,
+ "the"
+ ],
+ [
+ 10.065125,
+ "values"
+ ],
+ [
+ 10.651041,
+ "in"
+ ],
+ [
+ 10.742208,
+ "it"
+ ],
+ [
+ 11.002625,
+ "are"
+ ],
+ [
+ 11.106791,
+ "spread"
+ ],
+ [
+ 11.445333,
+ "out"
+ ],
+ [
+ 12.1875,
+ "A"
+ ],
+ [
+ 12.226583,
+ "short"
+ ],
+ [
+ 12.473958,
+ "part"
+ ],
+ [
+ 12.721375,
+ "means"
+ ],
+ [
+ 12.95575,
+ "they're"
+ ],
+ [
+ 13.138041,
+ "bunched"
+ ],
+ [
+ 13.554708,
+ "close"
+ ],
+ [
+ 13.854166,
+ "together"
+ ],
+ [
+ 14.791666,
+ "Here"
+ ],
+ [
+ 15.494791,
+ "the"
+ ],
+ [
+ 15.572916,
+ "right"
+ ],
+ [
+ 15.859375,
+ "whisker"
+ ],
+ [
+ 16.627625,
+ "is"
+ ],
+ [
+ 16.731791,
+ "the"
+ ],
+ [
+ 16.848958,
+ "longest"
+ ],
+ [
+ 17.421875,
+ "part"
+ ],
+ [
+ 18.242208,
+ "the"
+ ],
+ [
+ 18.333333,
+ "largest"
+ ],
+ [
+ 18.789083,
+ "values"
+ ],
+ [
+ 19.20575,
+ "are"
+ ],
+ [
+ 19.257833,
+ "the"
+ ],
+ [
+ 19.322916,
+ "most"
+ ],
+ [
+ 19.53125,
+ "spread"
+ ],
+ [
+ 19.83075,
+ "out"
+ ]
+ ],
+ "marks": {
+ "four": 3.32,
+ "mid": 6.224,
+ "long": 8.971,
+ "short": 12.188,
+ "ex": 14.792
+ },
+ "cues": [
+ [
+ 0.104,
+ "Those five numbers cut the data into four parts, and each part holds about a quarter of the values."
+ ],
+ [
+ 6.224,
+ "So the box holds the middle half of the data."
+ ],
+ [
+ 8.971,
+ "A long part means the values in it are spread out."
+ ],
+ [
+ 12.188,
+ "A short part means they're bunched close together."
+ ],
+ [
+ 14.792,
+ "Here, the right whisker is the longest part: the largest values are the most spread out."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "6a46737ef8e6234305e4bb96171e8ae40c140667",
+ "dur": 3.624,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.260416,
+ "check"
+ ],
+ [
+ 1.158875,
+ "Find"
+ ],
+ [
+ 1.367208,
+ "the"
+ ],
+ [
+ 1.419291,
+ "median"
+ ],
+ [
+ 2.083333,
+ "and"
+ ],
+ [
+ 2.161458,
+ "the"
+ ],
+ [
+ 2.239583,
+ "quartiles"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.159,
+ "Find the median and the quartiles."
+ ]
+ ]
+ },
+ "scatter": {
+ "key": "8a5291f94b1a80037335df59af757bdde1288ec3",
+ "dur": 25.752,
+ "words": [
+ [
+ 0.091166,
+ "A"
+ ],
+ [
+ 0.15625,
+ "scatter"
+ ],
+ [
+ 0.585958,
+ "plot"
+ ],
+ [
+ 1.054708,
+ "compares"
+ ],
+ [
+ 1.627625,
+ "two"
+ ],
+ [
+ 2.01825,
+ "sets"
+ ],
+ [
+ 2.369791,
+ "of"
+ ],
+ [
+ 2.487,
+ "data"
+ ],
+ [
+ 3.112,
+ "that"
+ ],
+ [
+ 3.229166,
+ "come"
+ ],
+ [
+ 3.411458,
+ "in"
+ ],
+ [
+ 3.489583,
+ "pairs"
+ ],
+ [
+ 4.570333,
+ "Ten"
+ ],
+ [
+ 4.817708,
+ "students"
+ ],
+ [
+ 5.182291,
+ "report"
+ ],
+ [
+ 5.612,
+ "the"
+ ],
+ [
+ 5.742208,
+ "hours"
+ ],
+ [
+ 6.132833,
+ "they"
+ ],
+ [
+ 6.276041,
+ "studied"
+ ],
+ [
+ 6.966166,
+ "and"
+ ],
+ [
+ 7.096375,
+ "their"
+ ],
+ [
+ 7.239583,
+ "test"
+ ],
+ [
+ 7.578125,
+ "scores"
+ ],
+ [
+ 8.58075,
+ "Each"
+ ],
+ [
+ 8.737,
+ "student"
+ ],
+ [
+ 9.088541,
+ "becomes"
+ ],
+ [
+ 9.505208,
+ "an"
+ ],
+ [
+ 9.635416,
+ "ordered"
+ ],
+ [
+ 9.960958,
+ "pair"
+ ],
+ [
+ 10.976583,
+ "hours"
+ ],
+ [
+ 11.237,
+ "across"
+ ],
+ [
+ 12.005208,
+ "score"
+ ],
+ [
+ 12.356791,
+ "up"
+ ],
+ [
+ 12.994791,
+ "Plot"
+ ],
+ [
+ 13.502625,
+ "every"
+ ],
+ [
+ 13.802083,
+ "student"
+ ],
+ [
+ 14.778666,
+ "The"
+ ],
+ [
+ 14.856791,
+ "points"
+ ],
+ [
+ 15.260416,
+ "drift"
+ ],
+ [
+ 15.78125,
+ "upward"
+ ],
+ [
+ 16.744791,
+ "more"
+ ],
+ [
+ 16.927083,
+ "studying"
+ ],
+ [
+ 17.473958,
+ "tends"
+ ],
+ [
+ 17.708333,
+ "to"
+ ],
+ [
+ 17.7995,
+ "go"
+ ],
+ [
+ 18.112,
+ "with"
+ ],
+ [
+ 18.229166,
+ "a"
+ ],
+ [
+ 18.28125,
+ "higher"
+ ],
+ [
+ 18.619791,
+ "score"
+ ],
+ [
+ 19.505208,
+ "A"
+ ],
+ [
+ 19.557291,
+ "line"
+ ],
+ [
+ 19.84375,
+ "of"
+ ],
+ [
+ 20.0,
+ "best"
+ ],
+ [
+ 20.2995,
+ "fit"
+ ],
+ [
+ 20.585958,
+ "runs"
+ ],
+ [
+ 20.950541,
+ "through"
+ ],
+ [
+ 21.08075,
+ "the"
+ ],
+ [
+ 21.158875,
+ "middle"
+ ],
+ [
+ 21.484375,
+ "of"
+ ],
+ [
+ 21.575541,
+ "the"
+ ],
+ [
+ 21.653666,
+ "points"
+ ],
+ [
+ 22.109375,
+ "to"
+ ],
+ [
+ 22.200541,
+ "show"
+ ],
+ [
+ 22.539083,
+ "that"
+ ],
+ [
+ 22.682291,
+ "trend"
+ ],
+ [
+ 23.606791,
+ "It"
+ ],
+ [
+ 23.684916,
+ "doesn't"
+ ],
+ [
+ 23.89325,
+ "have"
+ ],
+ [
+ 24.036458,
+ "to"
+ ],
+ [
+ 24.101583,
+ "pass"
+ ],
+ [
+ 24.557291,
+ "through"
+ ],
+ [
+ 24.778666,
+ "any"
+ ],
+ [
+ 25.026041,
+ "of"
+ ],
+ [
+ 25.117208,
+ "them"
+ ]
+ ],
+ "marks": {
+ "tab": 4.57,
+ "pt": 8.581,
+ "all": 12.995,
+ "trend": 14.779,
+ "fit": 19.505
+ },
+ "cues": [
+ [
+ 0.091,
+ "A scatter plot compares two sets of data that come in pairs."
+ ],
+ [
+ 4.57,
+ "Ten students report the hours they studied and their test scores."
+ ],
+ [
+ 8.581,
+ "Each student becomes an ordered pair: hours across, score up."
+ ],
+ [
+ 12.995,
+ "Plot every student."
+ ],
+ [
+ 14.779,
+ "The points drift upward: more studying tends to go with a higher score."
+ ],
+ [
+ 19.505,
+ "A line of best fit runs through the middle of the points to show that trend."
+ ],
+ [
+ 23.607,
+ "It doesn't have to pass through any of them."
+ ]
+ ]
+ },
+ "corr": {
+ "key": "44ba6e44bb458c18dbdb9642a551996ec888097a",
+ "dur": 28.224,
+ "words": [
+ [
+ 0.117208,
+ "The"
+ ],
+ [
+ 0.169291,
+ "trend"
+ ],
+ [
+ 0.533875,
+ "in"
+ ],
+ [
+ 0.585958,
+ "a"
+ ],
+ [
+ 0.625,
+ "scatter"
+ ],
+ [
+ 1.041666,
+ "plot"
+ ],
+ [
+ 1.757833,
+ "is"
+ ],
+ [
+ 1.875,
+ "called"
+ ],
+ [
+ 2.135416,
+ "a"
+ ],
+ [
+ 2.1875,
+ "correlation"
+ ],
+ [
+ 3.359375,
+ "Positive"
+ ],
+ [
+ 3.776041,
+ "correlation"
+ ],
+ [
+ 5.013041,
+ "as"
+ ],
+ [
+ 5.117208,
+ "one"
+ ],
+ [
+ 5.338541,
+ "value"
+ ],
+ [
+ 5.690125,
+ "goes"
+ ],
+ [
+ 5.976583,
+ "up"
+ ],
+ [
+ 6.458333,
+ "the"
+ ],
+ [
+ 6.601583,
+ "other"
+ ],
+ [
+ 6.992208,
+ "tends"
+ ],
+ [
+ 7.226583,
+ "to"
+ ],
+ [
+ 7.317708,
+ "go"
+ ],
+ [
+ 7.526041,
+ "up"
+ ],
+ [
+ 7.695333,
+ "too"
+ ],
+ [
+ 8.541666,
+ "Negative"
+ ],
+ [
+ 8.919291,
+ "correlation"
+ ],
+ [
+ 10.169291,
+ "as"
+ ],
+ [
+ 10.2995,
+ "one"
+ ],
+ [
+ 10.546875,
+ "value"
+ ],
+ [
+ 10.872416,
+ "goes"
+ ],
+ [
+ 11.158875,
+ "up"
+ ],
+ [
+ 11.679708,
+ "the"
+ ],
+ [
+ 11.822916,
+ "other"
+ ],
+ [
+ 12.1745,
+ "tends"
+ ],
+ [
+ 12.369791,
+ "to"
+ ],
+ [
+ 12.447916,
+ "go"
+ ],
+ [
+ 12.64325,
+ "down"
+ ],
+ [
+ 13.307291,
+ "like"
+ ],
+ [
+ 13.4245,
+ "a"
+ ],
+ [
+ 13.502625,
+ "car's"
+ ],
+ [
+ 13.997416,
+ "age"
+ ],
+ [
+ 14.557291,
+ "and"
+ ],
+ [
+ 14.635416,
+ "its"
+ ],
+ [
+ 14.739583,
+ "price"
+ ],
+ [
+ 15.885416,
+ "No"
+ ],
+ [
+ 16.054708,
+ "correlation"
+ ],
+ [
+ 17.122416,
+ "the"
+ ],
+ [
+ 17.200541,
+ "points"
+ ],
+ [
+ 17.487,
+ "show"
+ ],
+ [
+ 17.721375,
+ "no"
+ ],
+ [
+ 17.96875,
+ "trend"
+ ],
+ [
+ 18.984375,
+ "like"
+ ],
+ [
+ 19.114583,
+ "shoe"
+ ],
+ [
+ 19.427083,
+ "size"
+ ],
+ [
+ 20.182291,
+ "and"
+ ],
+ [
+ 20.3125,
+ "birthday"
+ ],
+ [
+ 20.716166,
+ "month"
+ ],
+ [
+ 21.588541,
+ "Notice"
+ ],
+ [
+ 21.809916,
+ "the"
+ ],
+ [
+ 21.914083,
+ "word"
+ ],
+ [
+ 22.200541,
+ "tends"
+ ],
+ [
+ 23.28125,
+ "A"
+ ],
+ [
+ 23.333333,
+ "correlation"
+ ],
+ [
+ 24.010416,
+ "describes"
+ ],
+ [
+ 24.583333,
+ "the"
+ ],
+ [
+ 24.791666,
+ "overall"
+ ],
+ [
+ 25.351583,
+ "pattern"
+ ],
+ [
+ 26.302083,
+ "not"
+ ],
+ [
+ 26.770833,
+ "every"
+ ],
+ [
+ 27.083333,
+ "single"
+ ],
+ [
+ 27.395833,
+ "point"
+ ]
+ ],
+ "marks": {
+ "pos": 3.359,
+ "neg": 8.542,
+ "none": 15.885,
+ "tend": 21.589
+ },
+ "cues": [
+ [
+ 0.117,
+ "The trend in a scatter plot is called a correlation."
+ ],
+ [
+ 3.359,
+ "Positive correlation: as one value goes up, the other tends to go up too."
+ ],
+ [
+ 8.542,
+ "Negative correlation: as one value goes up, the other tends to go down, like a car's age and its price."
+ ],
+ [
+ 15.885,
+ "No correlation: the points show no trend, like shoe size and birthday month."
+ ],
+ [
+ 21.589,
+ "Notice the word tends."
+ ],
+ [
+ 23.281,
+ "A correlation describes the overall pattern, not every single point."
+ ]
+ ]
+ },
+ "q4": {
+ "key": "2a562a7b539eef0aa1787eb357821989f3171f4e",
+ "dur": 3.48,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.106791,
+ "Which"
+ ],
+ [
+ 1.237,
+ "plot"
+ ],
+ [
+ 1.484375,
+ "shows"
+ ],
+ [
+ 1.901041,
+ "a"
+ ],
+ [
+ 1.940125,
+ "negative"
+ ],
+ [
+ 2.434916,
+ "correlation"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.107,
+ "Which plot shows a negative correlation?"
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "a91086423cabf0d68ba9185b6139ec845d27b46a",
+ "dur": 22.488,
+ "words": [
+ [
+ 0.104166,
+ "Each"
+ ],
+ [
+ 0.286458,
+ "display"
+ ],
+ [
+ 1.25,
+ "answers"
+ ],
+ [
+ 1.692708,
+ "a"
+ ],
+ [
+ 1.822916,
+ "different"
+ ],
+ [
+ 2.135416,
+ "question"
+ ],
+ [
+ 3.046875,
+ "A"
+ ],
+ [
+ 3.098958,
+ "two-way"
+ ],
+ [
+ 3.450541,
+ "table"
+ ],
+ [
+ 3.828125,
+ "counts"
+ ],
+ [
+ 4.21875,
+ "one"
+ ],
+ [
+ 4.51825,
+ "group"
+ ],
+ [
+ 5.169291,
+ "by"
+ ],
+ [
+ 5.651041,
+ "two"
+ ],
+ [
+ 5.9245,
+ "categories"
+ ],
+ [
+ 6.510416,
+ "at"
+ ],
+ [
+ 6.601583,
+ "once"
+ ],
+ [
+ 7.539083,
+ "Line"
+ ],
+ [
+ 7.8125,
+ "plots"
+ ],
+ [
+ 8.697916,
+ "and"
+ ],
+ [
+ 8.854166,
+ "histograms"
+ ],
+ [
+ 9.934916,
+ "show"
+ ],
+ [
+ 10.130208,
+ "how"
+ ],
+ [
+ 10.546875,
+ "often"
+ ],
+ [
+ 10.989583,
+ "values"
+ ],
+ [
+ 11.445333,
+ "occur"
+ ],
+ [
+ 12.382833,
+ "A"
+ ],
+ [
+ 12.434916,
+ "box"
+ ],
+ [
+ 12.825541,
+ "plot"
+ ],
+ [
+ 13.320333,
+ "summarizes"
+ ],
+ [
+ 14.036458,
+ "the"
+ ],
+ [
+ 14.114583,
+ "spread"
+ ],
+ [
+ 14.856791,
+ "with"
+ ],
+ [
+ 14.987,
+ "five"
+ ],
+ [
+ 15.416666,
+ "numbers"
+ ],
+ [
+ 16.39325,
+ "A"
+ ],
+ [
+ 16.458333,
+ "scatter"
+ ],
+ [
+ 16.875,
+ "plot"
+ ],
+ [
+ 17.148458,
+ "shows"
+ ],
+ [
+ 17.565125,
+ "whether"
+ ],
+ [
+ 17.903666,
+ "two"
+ ],
+ [
+ 18.177083,
+ "sets"
+ ],
+ [
+ 18.515625,
+ "of"
+ ],
+ [
+ 18.59375,
+ "data"
+ ],
+ [
+ 19.101583,
+ "are"
+ ],
+ [
+ 19.257833,
+ "related"
+ ],
+ [
+ 20.15625,
+ "Now"
+ ],
+ [
+ 20.598958,
+ "try"
+ ],
+ [
+ 20.859375,
+ "the"
+ ],
+ [
+ 20.950541,
+ "chapter"
+ ],
+ [
+ 21.380208,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 3.047,
+ "w2": 7.539,
+ "w3": 12.383,
+ "w4": 16.393,
+ "end": 20.156
+ },
+ "cues": [
+ [
+ 0.104,
+ "Each display answers a different question."
+ ],
+ [
+ 3.047,
+ "A two-way table counts one group by two categories at once."
+ ],
+ [
+ 7.539,
+ "Line plots and histograms show how often values occur."
+ ],
+ [
+ 12.383,
+ "A box plot summarizes the spread with five numbers."
+ ],
+ [
+ 16.393,
+ "A scatter plot shows whether two sets of data are related."
+ ],
+ [
+ 20.156,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "623ba63c7228978bdef14d8556ba47c132616f7c",
+ "dur": 3.144,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.403666,
+ "practice"
+ ],
+ [
+ 1.484375,
+ "Read"
+ ],
+ [
+ 1.731791,
+ "the"
+ ],
+ [
+ 1.822916,
+ "two-way"
+ ],
+ [
+ 2.252625,
+ "table"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.484,
+ "Read the two-way table."
+ ]
+ ]
+ },
+ "final2": {
+ "key": "04380904db4a51a9ef78b4bb6b0cc45f9324b870",
+ "dur": 2.112,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.703125,
+ "read"
+ ],
+ [
+ 1.002625,
+ "the"
+ ],
+ [
+ 1.067708,
+ "histogram"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, read the histogram."
+ ]
+ ]
+ },
+ "final3": {
+ "key": "ff4e4b73240a4f84f3a7ea307cc9a244ea7f8e53",
+ "dur": 2.664,
+ "words": [
+ [
+ 0.091166,
+ "Now"
+ ],
+ [
+ 0.664083,
+ "decide"
+ ],
+ [
+ 1.223958,
+ "the"
+ ],
+ [
+ 1.315125,
+ "kind"
+ ],
+ [
+ 1.5625,
+ "of"
+ ],
+ [
+ 1.627625,
+ "correlation"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Now decide the kind of correlation."
+ ]
+ ]
+ },
+ "final4": {
+ "key": "4e653bc16fea30615786b6269f7740bdf2374878",
+ "dur": 3.624,
+ "words": [
+ [
+ 0.104166,
+ "Last"
+ ],
+ [
+ 0.390625,
+ "one"
+ ],
+ [
+ 1.145833,
+ "Find"
+ ],
+ [
+ 1.328125,
+ "the"
+ ],
+ [
+ 1.39325,
+ "five"
+ ],
+ [
+ 1.70575,
+ "numbers"
+ ],
+ [
+ 2.200541,
+ "for"
+ ],
+ [
+ 2.369791,
+ "a"
+ ],
+ [
+ 2.408875,
+ "box"
+ ],
+ [
+ 2.773458,
+ "plot"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.146,
+ "Find the five numbers for a box plot."
+ ]
+ ]
+ },
+ "finish": {
+ "key": "f2b1703996bb05cc7bd6b123f700abda5c3bd607",
+ "dur": 5.088,
+ "words": [
+ [
+ 0.104166,
+ "Great"
+ ],
+ [
+ 0.403666,
+ "work"
+ ],
+ [
+ 1.276041,
+ "That's"
+ ],
+ [
+ 1.445333,
+ "the"
+ ],
+ [
+ 1.5625,
+ "end"
+ ],
+ [
+ 1.835958,
+ "of"
+ ],
+ [
+ 1.940125,
+ "chapter"
+ ],
+ [
+ 2.526041,
+ "forty-one"
+ ],
+ [
+ 3.671875,
+ "displaying"
+ ],
+ [
+ 4.257833,
+ "data"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Great work."
+ ],
+ [
+ 1.276,
+ "That's the end of chapter forty-one, displaying data."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch42/narration.en.json b/content/ch42/narration.en.json
new file mode 100644
index 0000000..1b50273
--- /dev/null
+++ b/content/ch42/narration.en.json
@@ -0,0 +1,26 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter forty-two. [[sub]]Probability measures how likely something is to happen, with a number from zero to one.",
+ "terms": "Start with a few words. [[act]]The action is what you do: here, roll a number cube once. [[out]]The outcomes are all the possible results: one, two, three, four, five, or six. [[ev]]An event is an outcome or a group of outcomes, like rolling an even number. [[fav]]The outcomes in the event are the favorable ones: two, four, and six. [[eq]]On a fair cube, every face is equally likely to come up.",
+ "formula": "When the outcomes are equally likely, the probability of an event is a ratio. [[def]]The number of favorable outcomes, over the number of possible outcomes. [[num]]Three outcomes are even, [[den]]out of six possible outcomes. [[frac]]So the probability of rolling an even number is three sixths, [[simp]]which is one half, [[pct]]or fifty percent.",
+ "scale": "Every probability lands somewhere from zero to one. [[zero]]Rolling a seven can't happen: probability zero, impossible. [[one]]Rolling a number less than seven always happens: probability one, certain. [[half]]An even number is a fifty-fifty chance: one half. [[six]]Rolling a six is unlikely: one sixth, closer to zero. [[more]]Rolling more than one is likely: five sixths, closer to one. [[pct]]The same scale in percents runs from zero to one hundred percent.",
+ "q1": "Quick check. Find a probability on the spinner.",
+ "or": "Now an event with the word or. [[ask]]What is the probability of landing on red or yellow? [[fav]]Count every section that is red or yellow: two red plus two yellow is four. [[frac]]Four out of eight is one half. [[why]]You can add the two counts because one spin can't land on red and yellow at the same time. [[spin]]Spin it, and half the sections would make the event happen.",
+ "sample": "Some actions have more than one stage. [[two]]Flip a coin twice. [[list]]List every possible result in order: heads heads, heads tails, tails heads, and tails tails. [[space]]This list of all possible outcomes is the sample space. [[order]]Heads tails and tails heads are different outcomes, because the first flip is different. [[hh]]Only one of the four outcomes is two heads, so the probability is one fourth, or twenty-five percent.",
+ "tree": "A tree diagram builds the sample space one stage at a time. [[coin]]Flip a coin: two branches, heads or tails. [[die]]Then roll a number cube: each branch splits into six. [[leaves]]Following every path gives twelve outcomes, from heads one to tails six. [[ev]]What's the probability of heads and a six? [[one]]Just one path out of twelve: one twelfth.",
+ "q2": "Quick check. Use the tree diagram.",
+ "count": "You don't always need to draw the whole tree. [[rule]]The counting principle says: if one choice can be made in a ways and a second in b ways, then both together can be made in a times b ways. [[shirts]]Four shirts [[pants]]and three pairs of pants [[grid]]make four times three, or twelve outfits. [[each]]Each shirt pairs with each pair of pants.",
+ "coins": "The rule extends to more stages. [[flip]]Flip a coin three times. [[branch]]Each flip doubles the number of paths: two, then four, then eight. [[mult]]So there are two times two times two, eight arrangements. [[warn]]Not two times three. Three flips means three factors of two.",
+ "q3": "Quick check. Count the choices.",
+ "comp": "The complement of an event is the event not happening. [[ex]]Winning and losing, or heads and tails. [[sum]]Together, an event and its complement cover every outcome, so their probabilities add up to one, or one hundred percent. [[rain]]If the chance of rain tomorrow is thirty percent, [[no]]the chance of no rain is one hundred minus thirty: seventy percent. [[spin]]On the spinner, the probability of blue is three eighths, so the probability of not blue is five eighths.",
+ "q4": "Quick check. Find the complement.",
+ "wrap": "To sum up. [[w1]]The probability of an event is favorable outcomes over possible outcomes, a number from zero to one. [[w2]]A table or a tree diagram lists the sample space. [[w3]]The counting principle multiplies the number of choices at each stage. [[w4]]An event and its complement add up to one. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Find each probability.",
+ "final2": "Next, count the outcomes.",
+ "final3": "How likely is each event?",
+ "final4": "Last one. Find each complement.",
+ "finish": "Well done. That's the end of chapter forty-two, probability."
+ }
+}
diff --git a/content/ch42/narration.en.timings.json b/content/ch42/narration.en.timings.json
new file mode 100644
index 0000000..4442fcd
--- /dev/null
+++ b/content/ch42/narration.en.timings.json
@@ -0,0 +1,3313 @@
+{
+ "intro": {
+ "key": "3709808117fdd372d03bd26319b956743852d585",
+ "dur": 7.296,
+ "words": [
+ [
+ 0.091166,
+ "Chapter"
+ ],
+ [
+ 0.429708,
+ "forty-two"
+ ],
+ [
+ 1.575541,
+ "Probability"
+ ],
+ [
+ 2.161458,
+ "measures"
+ ],
+ [
+ 2.64325,
+ "how"
+ ],
+ [
+ 2.877625,
+ "likely"
+ ],
+ [
+ 3.398458,
+ "something"
+ ],
+ [
+ 4.179708,
+ "is"
+ ],
+ [
+ 4.270833,
+ "to"
+ ],
+ [
+ 4.375,
+ "happen"
+ ],
+ [
+ 5.260416,
+ "with"
+ ],
+ [
+ 5.403666,
+ "a"
+ ],
+ [
+ 5.429708,
+ "number"
+ ],
+ [
+ 5.820333,
+ "from"
+ ],
+ [
+ 6.015625,
+ "zero"
+ ],
+ [
+ 6.445333,
+ "to"
+ ],
+ [
+ 6.5495,
+ "one"
+ ]
+ ],
+ "marks": {
+ "sub": 1.576
+ },
+ "cues": [
+ [
+ 0.091,
+ "Chapter forty-two."
+ ],
+ [
+ 1.576,
+ "Probability measures how likely something is to happen, with a number from zero to one."
+ ]
+ ]
+ },
+ "terms": {
+ "key": "f3a7cd86289f7ad00e2454344a541fa354061307",
+ "dur": 28.032,
+ "words": [
+ [
+ 0.104166,
+ "Start"
+ ],
+ [
+ 0.325541,
+ "with"
+ ],
+ [
+ 0.442708,
+ "a"
+ ],
+ [
+ 0.494791,
+ "few"
+ ],
+ [
+ 0.794291,
+ "words"
+ ],
+ [
+ 1.744791,
+ "The"
+ ],
+ [
+ 1.822916,
+ "action"
+ ],
+ [
+ 2.213541,
+ "is"
+ ],
+ [
+ 2.33075,
+ "what"
+ ],
+ [
+ 2.473958,
+ "you"
+ ],
+ [
+ 2.578125,
+ "do"
+ ],
+ [
+ 3.567708,
+ "here"
+ ],
+ [
+ 4.335958,
+ "roll"
+ ],
+ [
+ 4.557291,
+ "a"
+ ],
+ [
+ 4.583333,
+ "number"
+ ],
+ [
+ 4.84375,
+ "cube"
+ ],
+ [
+ 5.104166,
+ "once"
+ ],
+ [
+ 6.041666,
+ "The"
+ ],
+ [
+ 6.145833,
+ "outcomes"
+ ],
+ [
+ 6.5625,
+ "are"
+ ],
+ [
+ 6.666666,
+ "all"
+ ],
+ [
+ 6.875,
+ "the"
+ ],
+ [
+ 6.953125,
+ "possible"
+ ],
+ [
+ 7.421875,
+ "results"
+ ],
+ [
+ 8.372416,
+ "one"
+ ],
+ [
+ 9.140625,
+ "two"
+ ],
+ [
+ 9.726583,
+ "three"
+ ],
+ [
+ 10.520833,
+ "four"
+ ],
+ [
+ 11.197916,
+ "five"
+ ],
+ [
+ 12.057291,
+ "or"
+ ],
+ [
+ 12.161458,
+ "six"
+ ],
+ [
+ 13.177083,
+ "An"
+ ],
+ [
+ 13.26825,
+ "event"
+ ],
+ [
+ 13.75,
+ "is"
+ ],
+ [
+ 13.854166,
+ "an"
+ ],
+ [
+ 13.984375,
+ "outcome"
+ ],
+ [
+ 14.6875,
+ "or"
+ ],
+ [
+ 14.817708,
+ "a"
+ ],
+ [
+ 14.882833,
+ "group"
+ ],
+ [
+ 15.169291,
+ "of"
+ ],
+ [
+ 15.260416,
+ "outcomes"
+ ],
+ [
+ 16.210958,
+ "like"
+ ],
+ [
+ 16.432291,
+ "rolling"
+ ],
+ [
+ 16.966166,
+ "an"
+ ],
+ [
+ 17.057291,
+ "even"
+ ],
+ [
+ 17.34375,
+ "number"
+ ],
+ [
+ 18.242208,
+ "The"
+ ],
+ [
+ 18.333333,
+ "outcomes"
+ ],
+ [
+ 18.776041,
+ "in"
+ ],
+ [
+ 18.828125,
+ "the"
+ ],
+ [
+ 18.89325,
+ "event"
+ ],
+ [
+ 19.453125,
+ "are"
+ ],
+ [
+ 19.51825,
+ "the"
+ ],
+ [
+ 19.596375,
+ "favorable"
+ ],
+ [
+ 20.208333,
+ "ones"
+ ],
+ [
+ 21.015625,
+ "two"
+ ],
+ [
+ 21.70575,
+ "four"
+ ],
+ [
+ 22.5,
+ "and"
+ ],
+ [
+ 22.604166,
+ "six"
+ ],
+ [
+ 23.632833,
+ "On"
+ ],
+ [
+ 23.75,
+ "a"
+ ],
+ [
+ 23.828125,
+ "fair"
+ ],
+ [
+ 24.283875,
+ "cube"
+ ],
+ [
+ 25.208333,
+ "every"
+ ],
+ [
+ 25.442708,
+ "face"
+ ],
+ [
+ 26.028666,
+ "is"
+ ],
+ [
+ 26.367208,
+ "equally"
+ ],
+ [
+ 26.692708,
+ "likely"
+ ],
+ [
+ 27.096375,
+ "to"
+ ],
+ [
+ 27.1745,
+ "come"
+ ],
+ [
+ 27.395833,
+ "up"
+ ]
+ ],
+ "marks": {
+ "act": 1.745,
+ "out": 6.042,
+ "ev": 13.177,
+ "fav": 18.242,
+ "eq": 23.633
+ },
+ "cues": [
+ [
+ 0.104,
+ "Start with a few words."
+ ],
+ [
+ 1.745,
+ "The action is what you do: here, roll a number cube once."
+ ],
+ [
+ 6.042,
+ "The outcomes are all the possible results: one, two, three, four, five, or six."
+ ],
+ [
+ 13.177,
+ "An event is an outcome or a group of outcomes, like rolling an even number."
+ ],
+ [
+ 18.242,
+ "The outcomes in the event are the favorable ones: two, four, and six."
+ ],
+ [
+ 23.633,
+ "On a fair cube, every face is equally likely to come up."
+ ]
+ ]
+ },
+ "formula": {
+ "key": "0864f6a6180dae4c8734d78c9033007317246349",
+ "dur": 21.0,
+ "words": [
+ [
+ 0.091166,
+ "When"
+ ],
+ [
+ 0.182291,
+ "the"
+ ],
+ [
+ 0.260416,
+ "outcomes"
+ ],
+ [
+ 0.807291,
+ "are"
+ ],
+ [
+ 1.106791,
+ "equally"
+ ],
+ [
+ 1.471375,
+ "likely"
+ ],
+ [
+ 2.434916,
+ "the"
+ ],
+ [
+ 2.526041,
+ "probability"
+ ],
+ [
+ 3.294291,
+ "of"
+ ],
+ [
+ 3.359375,
+ "an"
+ ],
+ [
+ 3.4375,
+ "event"
+ ],
+ [
+ 4.036458,
+ "is"
+ ],
+ [
+ 4.140625,
+ "a"
+ ],
+ [
+ 4.179708,
+ "ratio"
+ ],
+ [
+ 5.286458,
+ "The"
+ ],
+ [
+ 5.351583,
+ "number"
+ ],
+ [
+ 5.638041,
+ "of"
+ ],
+ [
+ 5.729166,
+ "favorable"
+ ],
+ [
+ 6.25,
+ "outcomes"
+ ],
+ [
+ 7.317708,
+ "over"
+ ],
+ [
+ 7.487,
+ "the"
+ ],
+ [
+ 7.565125,
+ "number"
+ ],
+ [
+ 7.916666,
+ "of"
+ ],
+ [
+ 7.981791,
+ "possible"
+ ],
+ [
+ 8.554708,
+ "outcomes"
+ ],
+ [
+ 9.765625,
+ "Three"
+ ],
+ [
+ 9.987,
+ "outcomes"
+ ],
+ [
+ 10.494791,
+ "are"
+ ],
+ [
+ 10.833333,
+ "even"
+ ],
+ [
+ 11.692708,
+ "out"
+ ],
+ [
+ 11.809916,
+ "of"
+ ],
+ [
+ 11.875,
+ "six"
+ ],
+ [
+ 12.1745,
+ "possible"
+ ],
+ [
+ 12.734375,
+ "outcomes"
+ ],
+ [
+ 13.867208,
+ "So"
+ ],
+ [
+ 13.958333,
+ "the"
+ ],
+ [
+ 14.036458,
+ "probability"
+ ],
+ [
+ 14.752625,
+ "of"
+ ],
+ [
+ 14.856791,
+ "rolling"
+ ],
+ [
+ 15.2995,
+ "an"
+ ],
+ [
+ 15.46875,
+ "even"
+ ],
+ [
+ 15.76825,
+ "number"
+ ],
+ [
+ 16.276041,
+ "is"
+ ],
+ [
+ 16.627625,
+ "three"
+ ],
+ [
+ 17.161458,
+ "sixths"
+ ],
+ [
+ 18.242208,
+ "which"
+ ],
+ [
+ 18.398458,
+ "is"
+ ],
+ [
+ 18.502625,
+ "one"
+ ],
+ [
+ 18.75,
+ "half"
+ ],
+ [
+ 19.557291,
+ "or"
+ ],
+ [
+ 19.6875,
+ "fifty"
+ ],
+ [
+ 20.052083,
+ "percent"
+ ]
+ ],
+ "marks": {
+ "def": 5.286,
+ "num": 9.766,
+ "den": 11.693,
+ "frac": 13.867,
+ "simp": 18.242,
+ "pct": 19.557
+ },
+ "cues": [
+ [
+ 0.091,
+ "When the outcomes are equally likely, the probability of an event is a ratio."
+ ],
+ [
+ 5.286,
+ "The number of favorable outcomes, over the number of possible outcomes."
+ ],
+ [
+ 9.766,
+ "Three outcomes are even, out of six possible outcomes."
+ ],
+ [
+ 13.867,
+ "So the probability of rolling an even number is three sixths, which is one half, or fifty percent."
+ ]
+ ]
+ },
+ "scale": {
+ "key": "0e6aa3d6c26043b4d2ab76430d929792116843a0",
+ "dur": 31.104,
+ "words": [
+ [
+ 0.091166,
+ "Every"
+ ],
+ [
+ 0.325541,
+ "probability"
+ ],
+ [
+ 0.989583,
+ "lands"
+ ],
+ [
+ 1.380208,
+ "somewhere"
+ ],
+ [
+ 1.953125,
+ "from"
+ ],
+ [
+ 2.148458,
+ "zero"
+ ],
+ [
+ 2.734375,
+ "to"
+ ],
+ [
+ 2.851583,
+ "one"
+ ],
+ [
+ 3.684916,
+ "Rolling"
+ ],
+ [
+ 4.0495,
+ "a"
+ ],
+ [
+ 4.114583,
+ "seven"
+ ],
+ [
+ 4.648458,
+ "can't"
+ ],
+ [
+ 4.987,
+ "happen"
+ ],
+ [
+ 5.846375,
+ "probability"
+ ],
+ [
+ 6.523458,
+ "zero"
+ ],
+ [
+ 7.369791,
+ "impossible"
+ ],
+ [
+ 8.619791,
+ "Rolling"
+ ],
+ [
+ 8.932291,
+ "a"
+ ],
+ [
+ 8.958333,
+ "number"
+ ],
+ [
+ 9.348958,
+ "less"
+ ],
+ [
+ 9.778666,
+ "than"
+ ],
+ [
+ 9.921875,
+ "seven"
+ ],
+ [
+ 10.585958,
+ "always"
+ ],
+ [
+ 11.054708,
+ "happens"
+ ],
+ [
+ 11.953125,
+ "probability"
+ ],
+ [
+ 12.617208,
+ "one"
+ ],
+ [
+ 13.26825,
+ "certain"
+ ],
+ [
+ 14.192708,
+ "An"
+ ],
+ [
+ 14.283875,
+ "even"
+ ],
+ [
+ 14.505208,
+ "number"
+ ],
+ [
+ 14.908875,
+ "is"
+ ],
+ [
+ 15.026041,
+ "a"
+ ],
+ [
+ 15.169291,
+ "fifty-fifty"
+ ],
+ [
+ 15.833333,
+ "chance"
+ ],
+ [
+ 16.71875,
+ "one"
+ ],
+ [
+ 16.927083,
+ "half"
+ ],
+ [
+ 17.838541,
+ "Rolling"
+ ],
+ [
+ 18.085958,
+ "a"
+ ],
+ [
+ 18.138041,
+ "six"
+ ],
+ [
+ 18.958333,
+ "is"
+ ],
+ [
+ 19.296875,
+ "unlikely"
+ ],
+ [
+ 20.481791,
+ "one"
+ ],
+ [
+ 20.755208,
+ "sixth"
+ ],
+ [
+ 21.484375,
+ "closer"
+ ],
+ [
+ 21.914083,
+ "to"
+ ],
+ [
+ 21.966166,
+ "zero"
+ ],
+ [
+ 22.916666,
+ "Rolling"
+ ],
+ [
+ 23.203125,
+ "more"
+ ],
+ [
+ 23.411458,
+ "than"
+ ],
+ [
+ 23.58075,
+ "one"
+ ],
+ [
+ 23.841166,
+ "is"
+ ],
+ [
+ 24.010416,
+ "likely"
+ ],
+ [
+ 24.960958,
+ "five"
+ ],
+ [
+ 25.338541,
+ "sixths"
+ ],
+ [
+ 26.002625,
+ "closer"
+ ],
+ [
+ 26.341166,
+ "to"
+ ],
+ [
+ 26.39325,
+ "one"
+ ],
+ [
+ 27.135416,
+ "The"
+ ],
+ [
+ 27.200541,
+ "same"
+ ],
+ [
+ 27.473958,
+ "scale"
+ ],
+ [
+ 27.825541,
+ "in"
+ ],
+ [
+ 27.903666,
+ "percents"
+ ],
+ [
+ 28.463541,
+ "runs"
+ ],
+ [
+ 28.815125,
+ "from"
+ ],
+ [
+ 29.010416,
+ "zero"
+ ],
+ [
+ 29.583333,
+ "to"
+ ],
+ [
+ 29.713541,
+ "one"
+ ],
+ [
+ 29.921875,
+ "hundred"
+ ],
+ [
+ 30.208333,
+ "percent"
+ ]
+ ],
+ "marks": {
+ "zero": 3.685,
+ "one": 8.62,
+ "half": 14.193,
+ "six": 17.839,
+ "more": 22.917,
+ "pct": 27.135
+ },
+ "cues": [
+ [
+ 0.091,
+ "Every probability lands somewhere from zero to one."
+ ],
+ [
+ 3.685,
+ "Rolling a seven can't happen: probability zero, impossible."
+ ],
+ [
+ 8.62,
+ "Rolling a number less than seven always happens: probability one, certain."
+ ],
+ [
+ 14.193,
+ "An even number is a fifty-fifty chance: one half."
+ ],
+ [
+ 17.839,
+ "Rolling a six is unlikely: one sixth, closer to zero."
+ ],
+ [
+ 22.917,
+ "Rolling more than one is likely: five sixths, closer to one."
+ ],
+ [
+ 27.135,
+ "The same scale in percents runs from zero to one hundred percent."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "6f5dd70974ee9b3e167149c54e35884f0d35e96b",
+ "dur": 3.6,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.184916,
+ "Find"
+ ],
+ [
+ 1.367208,
+ "a"
+ ],
+ [
+ 1.419291,
+ "probability"
+ ],
+ [
+ 2.473958,
+ "on"
+ ],
+ [
+ 2.604166,
+ "the"
+ ],
+ [
+ 2.669291,
+ "spinner"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.185,
+ "Find a probability on the spinner."
+ ]
+ ]
+ },
+ "or": {
+ "key": "2bfcd643a9de2bf0982f9343f910dd1591886617",
+ "dur": 22.272,
+ "words": [
+ [
+ 0.104166,
+ "Now"
+ ],
+ [
+ 0.2995,
+ "an"
+ ],
+ [
+ 0.364583,
+ "event"
+ ],
+ [
+ 0.690125,
+ "with"
+ ],
+ [
+ 0.820333,
+ "the"
+ ],
+ [
+ 0.898458,
+ "word"
+ ],
+ [
+ 1.302083,
+ "or"
+ ],
+ [
+ 2.070333,
+ "What"
+ ],
+ [
+ 2.161458,
+ "is"
+ ],
+ [
+ 2.239583,
+ "the"
+ ],
+ [
+ 2.34375,
+ "probability"
+ ],
+ [
+ 3.059916,
+ "of"
+ ],
+ [
+ 3.177083,
+ "landing"
+ ],
+ [
+ 3.658875,
+ "on"
+ ],
+ [
+ 3.880208,
+ "red"
+ ],
+ [
+ 4.583333,
+ "or"
+ ],
+ [
+ 4.700541,
+ "yellow"
+ ],
+ [
+ 5.638041,
+ "Count"
+ ],
+ [
+ 6.002625,
+ "every"
+ ],
+ [
+ 6.25,
+ "section"
+ ],
+ [
+ 6.692708,
+ "that"
+ ],
+ [
+ 6.835958,
+ "is"
+ ],
+ [
+ 6.992208,
+ "red"
+ ],
+ [
+ 7.565125,
+ "or"
+ ],
+ [
+ 7.721375,
+ "yellow"
+ ],
+ [
+ 8.684916,
+ "two"
+ ],
+ [
+ 8.958333,
+ "red"
+ ],
+ [
+ 9.335958,
+ "plus"
+ ],
+ [
+ 9.700541,
+ "two"
+ ],
+ [
+ 9.947916,
+ "yellow"
+ ],
+ [
+ 10.690125,
+ "is"
+ ],
+ [
+ 10.820333,
+ "four"
+ ],
+ [
+ 11.757833,
+ "Four"
+ ],
+ [
+ 11.862,
+ "out"
+ ],
+ [
+ 11.966166,
+ "of"
+ ],
+ [
+ 12.070333,
+ "eight"
+ ],
+ [
+ 12.526041,
+ "is"
+ ],
+ [
+ 12.64325,
+ "one"
+ ],
+ [
+ 12.838541,
+ "half"
+ ],
+ [
+ 13.763041,
+ "You"
+ ],
+ [
+ 13.815125,
+ "can"
+ ],
+ [
+ 13.90625,
+ "add"
+ ],
+ [
+ 14.075541,
+ "the"
+ ],
+ [
+ 14.153666,
+ "two"
+ ],
+ [
+ 14.414083,
+ "counts"
+ ],
+ [
+ 14.921875,
+ "because"
+ ],
+ [
+ 15.260416,
+ "one"
+ ],
+ [
+ 15.520833,
+ "spin"
+ ],
+ [
+ 15.898458,
+ "can't"
+ ],
+ [
+ 16.276041,
+ "land"
+ ],
+ [
+ 16.666666,
+ "on"
+ ],
+ [
+ 16.875,
+ "red"
+ ],
+ [
+ 17.148458,
+ "and"
+ ],
+ [
+ 17.252625,
+ "yellow"
+ ],
+ [
+ 17.617208,
+ "at"
+ ],
+ [
+ 17.682291,
+ "the"
+ ],
+ [
+ 17.760416,
+ "same"
+ ],
+ [
+ 18.059916,
+ "time"
+ ],
+ [
+ 18.841166,
+ "Spin"
+ ],
+ [
+ 19.166666,
+ "it"
+ ],
+ [
+ 19.622416,
+ "and"
+ ],
+ [
+ 19.713541,
+ "half"
+ ],
+ [
+ 19.987,
+ "the"
+ ],
+ [
+ 20.091166,
+ "sections"
+ ],
+ [
+ 20.638041,
+ "would"
+ ],
+ [
+ 20.78125,
+ "make"
+ ],
+ [
+ 21.08075,
+ "the"
+ ],
+ [
+ 21.145833,
+ "event"
+ ],
+ [
+ 21.484375,
+ "happen"
+ ]
+ ],
+ "marks": {
+ "ask": 2.07,
+ "fav": 5.638,
+ "frac": 11.758,
+ "why": 13.763,
+ "spin": 18.841
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now an event with the word or."
+ ],
+ [
+ 2.07,
+ "What is the probability of landing on red or yellow?"
+ ],
+ [
+ 5.638,
+ "Count every section that is red or yellow: two red plus two yellow is four."
+ ],
+ [
+ 11.758,
+ "Four out of eight is one half."
+ ],
+ [
+ 13.763,
+ "You can add the two counts because one spin can't land on red and yellow at the same time."
+ ],
+ [
+ 18.841,
+ "Spin it, and half the sections would make the event happen."
+ ]
+ ]
+ },
+ "sample": {
+ "key": "dace8e26d22341693120264244ab3d9282c840a2",
+ "dur": 27.696,
+ "words": [
+ [
+ 0.104166,
+ "Some"
+ ],
+ [
+ 0.273458,
+ "actions"
+ ],
+ [
+ 0.729166,
+ "have"
+ ],
+ [
+ 0.9245,
+ "more"
+ ],
+ [
+ 1.367208,
+ "than"
+ ],
+ [
+ 1.497416,
+ "one"
+ ],
+ [
+ 1.71875,
+ "stage"
+ ],
+ [
+ 2.773458,
+ "Flip"
+ ],
+ [
+ 2.890625,
+ "a"
+ ],
+ [
+ 2.942708,
+ "coin"
+ ],
+ [
+ 3.216166,
+ "twice"
+ ],
+ [
+ 4.283875,
+ "List"
+ ],
+ [
+ 4.726583,
+ "every"
+ ],
+ [
+ 5.013041,
+ "possible"
+ ],
+ [
+ 5.559916,
+ "result"
+ ],
+ [
+ 5.989583,
+ "in"
+ ],
+ [
+ 6.119791,
+ "order"
+ ],
+ [
+ 7.01825,
+ "heads"
+ ],
+ [
+ 7.278666,
+ "heads"
+ ],
+ [
+ 7.916666,
+ "heads"
+ ],
+ [
+ 8.151041,
+ "tails"
+ ],
+ [
+ 8.90625,
+ "tails"
+ ],
+ [
+ 9.231791,
+ "heads"
+ ],
+ [
+ 9.921875,
+ "and"
+ ],
+ [
+ 10.026041,
+ "tails"
+ ],
+ [
+ 10.403666,
+ "tails"
+ ],
+ [
+ 11.40625,
+ "This"
+ ],
+ [
+ 11.5625,
+ "list"
+ ],
+ [
+ 11.783875,
+ "of"
+ ],
+ [
+ 11.888041,
+ "all"
+ ],
+ [
+ 12.122416,
+ "possible"
+ ],
+ [
+ 12.630208,
+ "outcomes"
+ ],
+ [
+ 13.567708,
+ "is"
+ ],
+ [
+ 13.658875,
+ "the"
+ ],
+ [
+ 13.75,
+ "sample"
+ ],
+ [
+ 14.20575,
+ "space"
+ ],
+ [
+ 15.325541,
+ "Heads"
+ ],
+ [
+ 15.533875,
+ "tails"
+ ],
+ [
+ 15.950541,
+ "and"
+ ],
+ [
+ 16.054708,
+ "tails"
+ ],
+ [
+ 16.419291,
+ "heads"
+ ],
+ [
+ 16.888041,
+ "are"
+ ],
+ [
+ 17.01825,
+ "different"
+ ],
+ [
+ 17.395833,
+ "outcomes"
+ ],
+ [
+ 17.994791,
+ "because"
+ ],
+ [
+ 18.385416,
+ "the"
+ ],
+ [
+ 18.502625,
+ "first"
+ ],
+ [
+ 18.90625,
+ "flip"
+ ],
+ [
+ 19.466166,
+ "is"
+ ],
+ [
+ 19.622416,
+ "different"
+ ],
+ [
+ 20.572916,
+ "Only"
+ ],
+ [
+ 20.742208,
+ "one"
+ ],
+ [
+ 20.859375,
+ "of"
+ ],
+ [
+ 20.898458,
+ "the"
+ ],
+ [
+ 20.989583,
+ "four"
+ ],
+ [
+ 21.341166,
+ "outcomes"
+ ],
+ [
+ 22.083333,
+ "is"
+ ],
+ [
+ 22.278666,
+ "two"
+ ],
+ [
+ 22.565125,
+ "heads"
+ ],
+ [
+ 23.528666,
+ "so"
+ ],
+ [
+ 23.658875,
+ "the"
+ ],
+ [
+ 23.75,
+ "probability"
+ ],
+ [
+ 24.570333,
+ "is"
+ ],
+ [
+ 24.778666,
+ "one"
+ ],
+ [
+ 25.15625,
+ "fourth"
+ ],
+ [
+ 26.041666,
+ "or"
+ ],
+ [
+ 26.158875,
+ "twenty-five"
+ ],
+ [
+ 26.757833,
+ "percent"
+ ]
+ ],
+ "marks": {
+ "two": 2.773,
+ "list": 4.284,
+ "space": 11.406,
+ "order": 15.326,
+ "hh": 20.573
+ },
+ "cues": [
+ [
+ 0.104,
+ "Some actions have more than one stage."
+ ],
+ [
+ 2.773,
+ "Flip a coin twice."
+ ],
+ [
+ 4.284,
+ "List every possible result in order: heads heads, heads tails, tails heads, and tails tails."
+ ],
+ [
+ 11.406,
+ "This list of all possible outcomes is the sample space."
+ ],
+ [
+ 15.326,
+ "Heads tails and tails heads are different outcomes, because the first flip is different."
+ ],
+ [
+ 20.573,
+ "Only one of the four outcomes is two heads, so the probability is one fourth, or twenty-five percent."
+ ]
+ ]
+ },
+ "tree": {
+ "key": "095aa248c6968c6663858c9bc2903b90aac18449",
+ "dur": 24.576,
+ "words": [
+ [
+ 0.104166,
+ "A"
+ ],
+ [
+ 0.15625,
+ "tree"
+ ],
+ [
+ 0.390625,
+ "diagram"
+ ],
+ [
+ 1.197916,
+ "builds"
+ ],
+ [
+ 1.5495,
+ "the"
+ ],
+ [
+ 1.640625,
+ "sample"
+ ],
+ [
+ 2.096375,
+ "space"
+ ],
+ [
+ 2.552083,
+ "one"
+ ],
+ [
+ 2.864583,
+ "stage"
+ ],
+ [
+ 3.28125,
+ "at"
+ ],
+ [
+ 3.346375,
+ "a"
+ ],
+ [
+ 3.385416,
+ "time"
+ ],
+ [
+ 4.192708,
+ "Flip"
+ ],
+ [
+ 4.362,
+ "a"
+ ],
+ [
+ 4.427083,
+ "coin"
+ ],
+ [
+ 5.273458,
+ "two"
+ ],
+ [
+ 5.481791,
+ "branches"
+ ],
+ [
+ 6.380208,
+ "heads"
+ ],
+ [
+ 7.083333,
+ "or"
+ ],
+ [
+ 7.226583,
+ "tails"
+ ],
+ [
+ 8.320333,
+ "Then"
+ ],
+ [
+ 8.541666,
+ "roll"
+ ],
+ [
+ 8.90625,
+ "a"
+ ],
+ [
+ 8.932291,
+ "number"
+ ],
+ [
+ 9.322916,
+ "cube"
+ ],
+ [
+ 10.221375,
+ "each"
+ ],
+ [
+ 10.416666,
+ "branch"
+ ],
+ [
+ 10.820333,
+ "splits"
+ ],
+ [
+ 11.354166,
+ "into"
+ ],
+ [
+ 11.510416,
+ "six"
+ ],
+ [
+ 12.630208,
+ "Following"
+ ],
+ [
+ 13.098958,
+ "every"
+ ],
+ [
+ 13.411458,
+ "path"
+ ],
+ [
+ 13.984375,
+ "gives"
+ ],
+ [
+ 14.244791,
+ "twelve"
+ ],
+ [
+ 14.609375,
+ "outcomes"
+ ],
+ [
+ 15.572916,
+ "from"
+ ],
+ [
+ 15.755208,
+ "heads"
+ ],
+ [
+ 16.171875,
+ "one"
+ ],
+ [
+ 16.653666,
+ "to"
+ ],
+ [
+ 16.757833,
+ "tails"
+ ],
+ [
+ 17.161458,
+ "six"
+ ],
+ [
+ 18.242208,
+ "What's"
+ ],
+ [
+ 18.385416,
+ "the"
+ ],
+ [
+ 18.489583,
+ "probability"
+ ],
+ [
+ 19.21875,
+ "of"
+ ],
+ [
+ 19.309916,
+ "heads"
+ ],
+ [
+ 20.091166,
+ "and"
+ ],
+ [
+ 20.3125,
+ "a"
+ ],
+ [
+ 20.364583,
+ "six"
+ ],
+ [
+ 21.510416,
+ "Just"
+ ],
+ [
+ 21.692708,
+ "one"
+ ],
+ [
+ 21.940125,
+ "path"
+ ],
+ [
+ 22.291666,
+ "out"
+ ],
+ [
+ 22.382833,
+ "of"
+ ],
+ [
+ 22.447916,
+ "twelve"
+ ],
+ [
+ 23.359375,
+ "one"
+ ],
+ [
+ 23.645833,
+ "twelfth"
+ ]
+ ],
+ "marks": {
+ "coin": 4.193,
+ "die": 8.32,
+ "leaves": 12.63,
+ "ev": 18.242,
+ "one": 21.51
+ },
+ "cues": [
+ [
+ 0.104,
+ "A tree diagram builds the sample space one stage at a time."
+ ],
+ [
+ 4.193,
+ "Flip a coin: two branches, heads or tails."
+ ],
+ [
+ 8.32,
+ "Then roll a number cube: each branch splits into six."
+ ],
+ [
+ 12.63,
+ "Following every path gives twelve outcomes, from heads one to tails six."
+ ],
+ [
+ 18.242,
+ "What's the probability of heads and a six?"
+ ],
+ [
+ 21.51,
+ "Just one path out of twelve: one twelfth."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "adfd3f52da2f5a874e11a068638a04f017f9ca53",
+ "dur": 2.688,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.286458,
+ "check"
+ ],
+ [
+ 1.09375,
+ "Use"
+ ],
+ [
+ 1.315125,
+ "the"
+ ],
+ [
+ 1.40625,
+ "tree"
+ ],
+ [
+ 1.71875,
+ "diagram"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.094,
+ "Use the tree diagram."
+ ]
+ ]
+ },
+ "count": {
+ "key": "e7aaf16a90807364aad4f358aa01673b1ba48c7d",
+ "dur": 19.68,
+ "words": [
+ [
+ 0.104166,
+ "You"
+ ],
+ [
+ 0.15625,
+ "don't"
+ ],
+ [
+ 0.3125,
+ "always"
+ ],
+ [
+ 0.703125,
+ "need"
+ ],
+ [
+ 0.859375,
+ "to"
+ ],
+ [
+ 0.911458,
+ "draw"
+ ],
+ [
+ 1.197916,
+ "the"
+ ],
+ [
+ 1.263041,
+ "whole"
+ ],
+ [
+ 1.510416,
+ "tree"
+ ],
+ [
+ 2.434916,
+ "The"
+ ],
+ [
+ 2.5,
+ "counting"
+ ],
+ [
+ 2.890625,
+ "principle"
+ ],
+ [
+ 3.4375,
+ "says"
+ ],
+ [
+ 4.544291,
+ "if"
+ ],
+ [
+ 4.6875,
+ "one"
+ ],
+ [
+ 4.973958,
+ "choice"
+ ],
+ [
+ 5.351583,
+ "can"
+ ],
+ [
+ 5.46875,
+ "be"
+ ],
+ [
+ 5.546875,
+ "made"
+ ],
+ [
+ 5.78125,
+ "in"
+ ],
+ [
+ 5.846375,
+ "a"
+ ],
+ [
+ 5.9245,
+ "ways"
+ ],
+ [
+ 6.757833,
+ "and"
+ ],
+ [
+ 7.01825,
+ "a"
+ ],
+ [
+ 7.057291,
+ "second"
+ ],
+ [
+ 7.539083,
+ "in"
+ ],
+ [
+ 7.604166,
+ "b"
+ ],
+ [
+ 7.747416,
+ "ways"
+ ],
+ [
+ 8.606791,
+ "then"
+ ],
+ [
+ 8.828125,
+ "both"
+ ],
+ [
+ 9.153666,
+ "together"
+ ],
+ [
+ 9.648458,
+ "can"
+ ],
+ [
+ 9.765625,
+ "be"
+ ],
+ [
+ 9.882833,
+ "made"
+ ],
+ [
+ 10.247416,
+ "in"
+ ],
+ [
+ 10.325541,
+ "a"
+ ],
+ [
+ 10.377625,
+ "times"
+ ],
+ [
+ 10.78125,
+ "b"
+ ],
+ [
+ 10.9245,
+ "ways"
+ ],
+ [
+ 11.966166,
+ "Four"
+ ],
+ [
+ 12.135416,
+ "shirts"
+ ],
+ [
+ 12.773458,
+ "and"
+ ],
+ [
+ 13.098958,
+ "three"
+ ],
+ [
+ 13.476583,
+ "pairs"
+ ],
+ [
+ 13.789083,
+ "of"
+ ],
+ [
+ 13.854166,
+ "pants"
+ ],
+ [
+ 14.244791,
+ "make"
+ ],
+ [
+ 14.388041,
+ "four"
+ ],
+ [
+ 14.635416,
+ "times"
+ ],
+ [
+ 15.0,
+ "three"
+ ],
+ [
+ 15.76825,
+ "or"
+ ],
+ [
+ 15.898458,
+ "twelve"
+ ],
+ [
+ 16.223958,
+ "outfits"
+ ],
+ [
+ 17.369791,
+ "Each"
+ ],
+ [
+ 17.487,
+ "shirt"
+ ],
+ [
+ 17.734375,
+ "pairs"
+ ],
+ [
+ 18.059916,
+ "with"
+ ],
+ [
+ 18.229166,
+ "each"
+ ],
+ [
+ 18.4245,
+ "pair"
+ ],
+ [
+ 18.632833,
+ "of"
+ ],
+ [
+ 18.697916,
+ "pants"
+ ]
+ ],
+ "marks": {
+ "rule": 2.435,
+ "shirts": 11.966,
+ "pants": 12.773,
+ "grid": 14.245,
+ "each": 17.37
+ },
+ "cues": [
+ [
+ 0.104,
+ "You don't always need to draw the whole tree."
+ ],
+ [
+ 2.435,
+ "The counting principle says: if one choice can be made in a ways and a second in b ways, then both together can be made in a times b ways."
+ ],
+ [
+ 11.966,
+ "Four shirts and three pairs of pants make four times three, or twelve outfits."
+ ],
+ [
+ 17.37,
+ "Each shirt pairs with each pair of pants."
+ ]
+ ]
+ },
+ "coins": {
+ "key": "d69824eee881e84537bb4be7c53a06d678f9a220",
+ "dur": 17.904,
+ "words": [
+ [
+ 0.104166,
+ "The"
+ ],
+ [
+ 0.182291,
+ "rule"
+ ],
+ [
+ 0.598958,
+ "extends"
+ ],
+ [
+ 1.171875,
+ "to"
+ ],
+ [
+ 1.25,
+ "more"
+ ],
+ [
+ 1.510416,
+ "stages"
+ ],
+ [
+ 2.630208,
+ "Flip"
+ ],
+ [
+ 2.773458,
+ "a"
+ ],
+ [
+ 2.851583,
+ "coin"
+ ],
+ [
+ 3.489583,
+ "three"
+ ],
+ [
+ 3.776041,
+ "times"
+ ],
+ [
+ 4.84375,
+ "Each"
+ ],
+ [
+ 5.0,
+ "flip"
+ ],
+ [
+ 5.45575,
+ "doubles"
+ ],
+ [
+ 5.807291,
+ "the"
+ ],
+ [
+ 5.885416,
+ "number"
+ ],
+ [
+ 6.171875,
+ "of"
+ ],
+ [
+ 6.263041,
+ "paths"
+ ],
+ [
+ 7.135416,
+ "two"
+ ],
+ [
+ 8.020833,
+ "then"
+ ],
+ [
+ 8.242208,
+ "four"
+ ],
+ [
+ 9.036458,
+ "then"
+ ],
+ [
+ 9.244791,
+ "eight"
+ ],
+ [
+ 9.934916,
+ "So"
+ ],
+ [
+ 10.052083,
+ "there"
+ ],
+ [
+ 10.15625,
+ "are"
+ ],
+ [
+ 10.247416,
+ "two"
+ ],
+ [
+ 10.442708,
+ "times"
+ ],
+ [
+ 10.807291,
+ "two"
+ ],
+ [
+ 11.041666,
+ "times"
+ ],
+ [
+ 11.419291,
+ "two"
+ ],
+ [
+ 12.161458,
+ "eight"
+ ],
+ [
+ 12.252625,
+ "arrangements"
+ ],
+ [
+ 13.4245,
+ "Not"
+ ],
+ [
+ 13.619791,
+ "two"
+ ],
+ [
+ 13.841166,
+ "times"
+ ],
+ [
+ 14.283875,
+ "three"
+ ],
+ [
+ 15.208333,
+ "Three"
+ ],
+ [
+ 15.390625,
+ "flips"
+ ],
+ [
+ 15.807291,
+ "means"
+ ],
+ [
+ 16.25,
+ "three"
+ ],
+ [
+ 16.5495,
+ "factors"
+ ],
+ [
+ 17.083333,
+ "of"
+ ],
+ [
+ 17.148458,
+ "two"
+ ]
+ ],
+ "marks": {
+ "flip": 2.63,
+ "branch": 4.844,
+ "mult": 9.935,
+ "warn": 13.425
+ },
+ "cues": [
+ [
+ 0.104,
+ "The rule extends to more stages."
+ ],
+ [
+ 2.63,
+ "Flip a coin three times."
+ ],
+ [
+ 4.844,
+ "Each flip doubles the number of paths: two, then four, then eight."
+ ],
+ [
+ 9.935,
+ "So there are two times two times two, eight arrangements."
+ ],
+ [
+ 13.425,
+ "Not two times three."
+ ],
+ [
+ 15.208,
+ "Three flips means three factors of two."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "cad4dd20790feba08aa09af1600549e5fca74cb9",
+ "dur": 2.448,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.132833,
+ "Count"
+ ],
+ [
+ 1.328125,
+ "the"
+ ],
+ [
+ 1.39325,
+ "choices"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Count the choices."
+ ]
+ ]
+ },
+ "comp": {
+ "key": "bbf1736b59f7b6f4dda44237727505e32008459a",
+ "dur": 29.544,
+ "words": [
+ [
+ 0.091166,
+ "The"
+ ],
+ [
+ 0.15625,
+ "complement"
+ ],
+ [
+ 0.625,
+ "of"
+ ],
+ [
+ 0.703125,
+ "an"
+ ],
+ [
+ 0.76825,
+ "event"
+ ],
+ [
+ 1.614583,
+ "is"
+ ],
+ [
+ 1.71875,
+ "the"
+ ],
+ [
+ 1.783875,
+ "event"
+ ],
+ [
+ 2.278666,
+ "not"
+ ],
+ [
+ 2.526041,
+ "happening"
+ ],
+ [
+ 3.4245,
+ "Winning"
+ ],
+ [
+ 3.789083,
+ "and"
+ ],
+ [
+ 3.932291,
+ "losing"
+ ],
+ [
+ 4.739583,
+ "or"
+ ],
+ [
+ 4.84375,
+ "heads"
+ ],
+ [
+ 5.169291,
+ "and"
+ ],
+ [
+ 5.234375,
+ "tails"
+ ],
+ [
+ 6.289083,
+ "Together"
+ ],
+ [
+ 7.304708,
+ "an"
+ ],
+ [
+ 7.356791,
+ "event"
+ ],
+ [
+ 7.877625,
+ "and"
+ ],
+ [
+ 7.95575,
+ "its"
+ ],
+ [
+ 8.072916,
+ "complement"
+ ],
+ [
+ 8.632833,
+ "cover"
+ ],
+ [
+ 9.231791,
+ "every"
+ ],
+ [
+ 9.609375,
+ "outcome"
+ ],
+ [
+ 10.507833,
+ "so"
+ ],
+ [
+ 10.651041,
+ "their"
+ ],
+ [
+ 10.78125,
+ "probabilities"
+ ],
+ [
+ 11.653666,
+ "add"
+ ],
+ [
+ 11.862,
+ "up"
+ ],
+ [
+ 12.01825,
+ "to"
+ ],
+ [
+ 12.135416,
+ "one"
+ ],
+ [
+ 13.059916,
+ "or"
+ ],
+ [
+ 13.164083,
+ "one"
+ ],
+ [
+ 13.307291,
+ "hundred"
+ ],
+ [
+ 13.58075,
+ "percent"
+ ],
+ [
+ 14.583333,
+ "If"
+ ],
+ [
+ 14.6875,
+ "the"
+ ],
+ [
+ 14.778666,
+ "chance"
+ ],
+ [
+ 15.130208,
+ "of"
+ ],
+ [
+ 15.260416,
+ "rain"
+ ],
+ [
+ 15.507833,
+ "tomorrow"
+ ],
+ [
+ 16.223958,
+ "is"
+ ],
+ [
+ 16.575541,
+ "thirty"
+ ],
+ [
+ 16.927083,
+ "percent"
+ ],
+ [
+ 17.864583,
+ "the"
+ ],
+ [
+ 17.942708,
+ "chance"
+ ],
+ [
+ 18.26825,
+ "of"
+ ],
+ [
+ 18.359375,
+ "no"
+ ],
+ [
+ 18.567708,
+ "rain"
+ ],
+ [
+ 19.101583,
+ "is"
+ ],
+ [
+ 19.244791,
+ "one"
+ ],
+ [
+ 19.466166,
+ "hundred"
+ ],
+ [
+ 19.765625,
+ "minus"
+ ],
+ [
+ 20.15625,
+ "thirty"
+ ],
+ [
+ 20.976583,
+ "seventy"
+ ],
+ [
+ 21.289083,
+ "percent"
+ ],
+ [
+ 22.278666,
+ "On"
+ ],
+ [
+ 22.382833,
+ "the"
+ ],
+ [
+ 22.460958,
+ "spinner"
+ ],
+ [
+ 23.229166,
+ "the"
+ ],
+ [
+ 23.320333,
+ "probability"
+ ],
+ [
+ 24.036458,
+ "of"
+ ],
+ [
+ 24.114583,
+ "blue"
+ ],
+ [
+ 24.6875,
+ "is"
+ ],
+ [
+ 25.0,
+ "three"
+ ],
+ [
+ 25.416666,
+ "eighths"
+ ],
+ [
+ 26.25,
+ "so"
+ ],
+ [
+ 26.39325,
+ "the"
+ ],
+ [
+ 26.497416,
+ "probability"
+ ],
+ [
+ 27.161458,
+ "of"
+ ],
+ [
+ 27.239583,
+ "not"
+ ],
+ [
+ 27.513041,
+ "blue"
+ ],
+ [
+ 28.059916,
+ "is"
+ ],
+ [
+ 28.216166,
+ "five"
+ ],
+ [
+ 28.59375,
+ "eighths"
+ ]
+ ],
+ "marks": {
+ "ex": 3.425,
+ "sum": 6.289,
+ "rain": 14.583,
+ "no": 17.865,
+ "spin": 22.279
+ },
+ "cues": [
+ [
+ 0.091,
+ "The complement of an event is the event not happening."
+ ],
+ [
+ 3.425,
+ "Winning and losing, or heads and tails."
+ ],
+ [
+ 6.289,
+ "Together, an event and its complement cover every outcome, so their probabilities add up to one, or one hundred percent."
+ ],
+ [
+ 14.583,
+ "If the chance of rain tomorrow is thirty percent, the chance of no rain is one hundred minus thirty: seventy percent."
+ ],
+ [
+ 22.279,
+ "On the spinner, the probability of blue is three eighths, so the probability of not blue is five eighths."
+ ]
+ ]
+ },
+ "q4": {
+ "key": "52690424950d498977608c70e1e371f72925b9ef",
+ "dur": 2.616,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.25,
+ "Find"
+ ],
+ [
+ 1.432291,
+ "the"
+ ],
+ [
+ 1.497416,
+ "complement"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.25,
+ "Find the complement."
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "a321063adbb53f0d9615e7d4b5161dee9fed5bc3",
+ "dur": 21.216,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "sum"
+ ],
+ [
+ 0.364583,
+ "up"
+ ],
+ [
+ 0.989583,
+ "The"
+ ],
+ [
+ 1.041666,
+ "probability"
+ ],
+ [
+ 1.770833,
+ "of"
+ ],
+ [
+ 1.835958,
+ "an"
+ ],
+ [
+ 1.901041,
+ "event"
+ ],
+ [
+ 2.421875,
+ "is"
+ ],
+ [
+ 2.552083,
+ "favorable"
+ ],
+ [
+ 3.203125,
+ "outcomes"
+ ],
+ [
+ 4.010416,
+ "over"
+ ],
+ [
+ 4.231791,
+ "possible"
+ ],
+ [
+ 4.791666,
+ "outcomes"
+ ],
+ [
+ 5.833333,
+ "a"
+ ],
+ [
+ 5.898458,
+ "number"
+ ],
+ [
+ 6.223958,
+ "from"
+ ],
+ [
+ 6.419291,
+ "zero"
+ ],
+ [
+ 6.901041,
+ "to"
+ ],
+ [
+ 7.01825,
+ "one"
+ ],
+ [
+ 7.7995,
+ "A"
+ ],
+ [
+ 7.851583,
+ "table"
+ ],
+ [
+ 8.333333,
+ "or"
+ ],
+ [
+ 8.4375,
+ "a"
+ ],
+ [
+ 8.489583,
+ "tree"
+ ],
+ [
+ 8.841166,
+ "diagram"
+ ],
+ [
+ 9.856791,
+ "lists"
+ ],
+ [
+ 10.104166,
+ "the"
+ ],
+ [
+ 10.208333,
+ "sample"
+ ],
+ [
+ 10.612,
+ "space"
+ ],
+ [
+ 11.666666,
+ "The"
+ ],
+ [
+ 11.731791,
+ "counting"
+ ],
+ [
+ 12.083333,
+ "principle"
+ ],
+ [
+ 12.708333,
+ "multiplies"
+ ],
+ [
+ 13.411458,
+ "the"
+ ],
+ [
+ 13.489583,
+ "number"
+ ],
+ [
+ 13.854166,
+ "of"
+ ],
+ [
+ 13.919291,
+ "choices"
+ ],
+ [
+ 14.752625,
+ "at"
+ ],
+ [
+ 15.026041,
+ "each"
+ ],
+ [
+ 15.260416,
+ "stage"
+ ],
+ [
+ 16.289083,
+ "An"
+ ],
+ [
+ 16.367208,
+ "event"
+ ],
+ [
+ 16.966166,
+ "and"
+ ],
+ [
+ 17.044291,
+ "its"
+ ],
+ [
+ 17.1875,
+ "complement"
+ ],
+ [
+ 17.916666,
+ "add"
+ ],
+ [
+ 18.112,
+ "up"
+ ],
+ [
+ 18.242208,
+ "to"
+ ],
+ [
+ 18.346375,
+ "one"
+ ],
+ [
+ 19.127625,
+ "Now"
+ ],
+ [
+ 19.401041,
+ "try"
+ ],
+ [
+ 19.622416,
+ "the"
+ ],
+ [
+ 19.713541,
+ "chapter"
+ ],
+ [
+ 20.117208,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 0.99,
+ "w2": 7.8,
+ "w3": 11.667,
+ "w4": 16.289,
+ "end": 19.128
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.99,
+ "The probability of an event is favorable outcomes over possible outcomes, a number from zero to one."
+ ],
+ [
+ 7.8,
+ "A table or a tree diagram lists the sample space."
+ ],
+ [
+ 11.667,
+ "The counting principle multiplies the number of choices at each stage."
+ ],
+ [
+ 16.289,
+ "An event and its complement add up to one."
+ ],
+ [
+ 19.128,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "dc752368d7df98ef46af091947765e1226567ab3",
+ "dur": 3.384,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.429708,
+ "practice"
+ ],
+ [
+ 1.614583,
+ "Find"
+ ],
+ [
+ 2.148458,
+ "each"
+ ],
+ [
+ 2.317708,
+ "probability"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.615,
+ "Find each probability."
+ ]
+ ]
+ },
+ "final2": {
+ "key": "6c7dfb87565204e9b336f482c41bf262c39a1384",
+ "dur": 1.968,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.494791,
+ "count"
+ ],
+ [
+ 0.703125,
+ "the"
+ ],
+ [
+ 0.820333,
+ "outcomes"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, count the outcomes."
+ ]
+ ]
+ },
+ "final3": {
+ "key": "9e7edec2e0ac4a9d1d023c3837bd1ae49358aac1",
+ "dur": 2.04,
+ "words": [
+ [
+ 0.104166,
+ "How"
+ ],
+ [
+ 0.247416,
+ "likely"
+ ],
+ [
+ 0.716166,
+ "is"
+ ],
+ [
+ 1.028666,
+ "each"
+ ],
+ [
+ 1.237,
+ "event"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "How likely is each event?"
+ ]
+ ]
+ },
+ "final4": {
+ "key": "03e36ac84b20a2ae1a9cec7f0e7b6cea275a540e",
+ "dur": 2.928,
+ "words": [
+ [
+ 0.104166,
+ "Last"
+ ],
+ [
+ 0.390625,
+ "one"
+ ],
+ [
+ 1.184916,
+ "Find"
+ ],
+ [
+ 1.653666,
+ "each"
+ ],
+ [
+ 1.848958,
+ "complement"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.185,
+ "Find each complement."
+ ]
+ ]
+ },
+ "finish": {
+ "key": "64955fbe0a4782a7f7797798fd06b7e28be53605",
+ "dur": 4.416,
+ "words": [
+ [
+ 0.104166,
+ "Well"
+ ],
+ [
+ 0.260416,
+ "done"
+ ],
+ [
+ 1.08075,
+ "That's"
+ ],
+ [
+ 1.25,
+ "the"
+ ],
+ [
+ 1.354166,
+ "end"
+ ],
+ [
+ 1.601583,
+ "of"
+ ],
+ [
+ 1.692708,
+ "chapter"
+ ],
+ [
+ 2.213541,
+ "forty-two"
+ ],
+ [
+ 3.255208,
+ "probability"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Well done."
+ ],
+ [
+ 1.081,
+ "That's the end of chapter forty-two, probability."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch43/narration.en.json b/content/ch43/narration.en.json
new file mode 100644
index 0000000..dcd0dbb
--- /dev/null
+++ b/content/ch43/narration.en.json
@@ -0,0 +1,20 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter forty-three. [[sub]]A compound event is made of two or more events happening together.",
+ "compound": "Flip a coin and roll a number cube. [[grid]]Every pair of results is one outcome: the coin's two sides, times the cube's six faces, makes twelve equally likely outcomes. [[ev]]The compound event tails and a three is just one of them. [[p]]So its probability is one twelfth.",
+ "multiply": "There's a faster way. [[sq]]Picture all the outcomes as one square of area one. [[col]]Rolling a three takes one sixth of the width. [[row]]Getting tails takes one half of the height. [[both]]Both happen only where the strips overlap: one half of one sixth, [[eq]]which is one twelfth. [[ind]]This works because the events are independent: the coin has no effect on the cube. [[rule]]For independent events, the probability of A and B is the probability of A times the probability of B.",
+ "q1": "Quick check. Spin, then flip.",
+ "dep": "Now a bag of ten marbles: four red and six blue. [[first]]Pick one without looking. The chance it's red is four tenths. [[keep]]Keep that marble out of the bag. [[now]]Now only nine marbles are left, and six of them are blue. [[second]]So the chance the second marble is blue is six ninths. [[dep]]The first pick changed the bag, so these events are dependent. [[mult]]Multiply the first probability by the second one, after the first event: four tenths times six ninths is twenty-four ninetieths, [[simp]]or four fifteenths.",
+ "replace": "Compare that with putting the marble back. [[back]]With replacement, the bag is the same for the second pick: [[ten]]six blue out of ten. [[ind]]The picks are independent, and the probability is four tenths times six tenths. [[diff]]Without replacement, the second fraction changes: both the top and the bottom can shrink.",
+ "q2": "Quick check. Two picks without replacement.",
+ "cards": "A deck has fifty-two cards, [[aces]]and four of them are aces. [[first]]Draw one card: the chance of an ace is four out of fifty-two. [[out]]Keep it out. [[left]]Now fifty-one cards are left, and only three are aces. [[mult]]So the probability of an ace, then another ace, is four fifty-seconds times three fifty-firsts, [[simp]]which is one out of two hundred twenty-one. That's less than half of one percent.",
+ "q3": "Quick check. Independent or dependent?",
+ "wrap": "To sum up. [[w1]]A compound event combines two or more events. [[w2]]If the events are independent, multiply their probabilities. [[w3]]If the first event changes the second, they're dependent: multiply by the second probability after the first event has happened. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Independent or dependent?",
+ "final2": "Next, independent events.",
+ "final3": "Last one. Picks without replacement.",
+ "finish": "Nice work. That's the end of chapter forty-three, compound events."
+ }
+}
diff --git a/content/ch43/narration.en.timings.json b/content/ch43/narration.en.timings.json
new file mode 100644
index 0000000..196f945
--- /dev/null
+++ b/content/ch43/narration.en.timings.json
@@ -0,0 +1,2075 @@
+{
+ "intro": {
+ "key": "722e0d6c313d15a642267266aa37ecccd07dfca5",
+ "dur": 6.024,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.481791,
+ "forty-three"
+ ],
+ [
+ 1.666666,
+ "A"
+ ],
+ [
+ 1.71875,
+ "compound"
+ ],
+ [
+ 2.226583,
+ "event"
+ ],
+ [
+ 2.721375,
+ "is"
+ ],
+ [
+ 2.851583,
+ "made"
+ ],
+ [
+ 3.164083,
+ "of"
+ ],
+ [
+ 3.26825,
+ "two"
+ ],
+ [
+ 3.89325,
+ "or"
+ ],
+ [
+ 4.036458,
+ "more"
+ ],
+ [
+ 4.348958,
+ "events"
+ ],
+ [
+ 4.648458,
+ "happening"
+ ],
+ [
+ 5.078125,
+ "together"
+ ]
+ ],
+ "marks": {
+ "sub": 1.667
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter forty-three."
+ ],
+ [
+ 1.667,
+ "A compound event is made of two or more events happening together."
+ ]
+ ]
+ },
+ "compound": {
+ "key": "9081d27f90e715888159e90533c8200656f92b8f",
+ "dur": 18.552,
+ "words": [
+ [
+ 0.104166,
+ "Flip"
+ ],
+ [
+ 0.273458,
+ "a"
+ ],
+ [
+ 0.325541,
+ "coin"
+ ],
+ [
+ 0.989583,
+ "and"
+ ],
+ [
+ 1.171875,
+ "roll"
+ ],
+ [
+ 1.70575,
+ "a"
+ ],
+ [
+ 1.731791,
+ "number"
+ ],
+ [
+ 2.01825,
+ "cube"
+ ],
+ [
+ 2.773458,
+ "Every"
+ ],
+ [
+ 2.994791,
+ "pair"
+ ],
+ [
+ 3.229166,
+ "of"
+ ],
+ [
+ 3.307291,
+ "results"
+ ],
+ [
+ 3.945333,
+ "is"
+ ],
+ [
+ 4.088541,
+ "one"
+ ],
+ [
+ 4.401041,
+ "outcome"
+ ],
+ [
+ 5.286458,
+ "the"
+ ],
+ [
+ 5.377625,
+ "coin's"
+ ],
+ [
+ 5.742208,
+ "two"
+ ],
+ [
+ 6.041666,
+ "sides"
+ ],
+ [
+ 6.914083,
+ "times"
+ ],
+ [
+ 7.317708,
+ "the"
+ ],
+ [
+ 7.408875,
+ "cube's"
+ ],
+ [
+ 7.929708,
+ "six"
+ ],
+ [
+ 8.229166,
+ "faces"
+ ],
+ [
+ 9.244791,
+ "makes"
+ ],
+ [
+ 9.492208,
+ "twelve"
+ ],
+ [
+ 10.039083,
+ "equally"
+ ],
+ [
+ 10.585958,
+ "likely"
+ ],
+ [
+ 11.028666,
+ "outcomes"
+ ],
+ [
+ 12.1875,
+ "The"
+ ],
+ [
+ 12.252625,
+ "compound"
+ ],
+ [
+ 12.708333,
+ "event"
+ ],
+ [
+ 12.942708,
+ "tails"
+ ],
+ [
+ 13.515625,
+ "and"
+ ],
+ [
+ 13.697916,
+ "a"
+ ],
+ [
+ 13.75,
+ "three"
+ ],
+ [
+ 14.453125,
+ "is"
+ ],
+ [
+ 14.609375,
+ "just"
+ ],
+ [
+ 14.804708,
+ "one"
+ ],
+ [
+ 14.934916,
+ "of"
+ ],
+ [
+ 15.0,
+ "them"
+ ],
+ [
+ 15.677083,
+ "So"
+ ],
+ [
+ 15.820333,
+ "its"
+ ],
+ [
+ 15.911458,
+ "probability"
+ ],
+ [
+ 16.862,
+ "is"
+ ],
+ [
+ 17.122416,
+ "one"
+ ],
+ [
+ 17.539083,
+ "twelfth"
+ ]
+ ],
+ "marks": {
+ "grid": 2.773,
+ "ev": 12.188,
+ "p": 15.677
+ },
+ "cues": [
+ [
+ 0.104,
+ "Flip a coin and roll a number cube."
+ ],
+ [
+ 2.773,
+ "Every pair of results is one outcome: the coin's two sides, times the cube's six faces, makes twelve equally likely outcomes."
+ ],
+ [
+ 12.188,
+ "The compound event tails and a three is just one of them."
+ ],
+ [
+ 15.677,
+ "So its probability is one twelfth."
+ ]
+ ]
+ },
+ "multiply": {
+ "key": "bd0f2c9fc7a3d1ba3f1e25676fa374240d4e5d90",
+ "dur": 30.576,
+ "words": [
+ [
+ 0.104166,
+ "There's"
+ ],
+ [
+ 0.221375,
+ "a"
+ ],
+ [
+ 0.273458,
+ "faster"
+ ],
+ [
+ 0.807291,
+ "way"
+ ],
+ [
+ 1.523458,
+ "Picture"
+ ],
+ [
+ 1.979166,
+ "all"
+ ],
+ [
+ 2.213541,
+ "the"
+ ],
+ [
+ 2.34375,
+ "outcomes"
+ ],
+ [
+ 3.164083,
+ "as"
+ ],
+ [
+ 3.4245,
+ "one"
+ ],
+ [
+ 3.763041,
+ "square"
+ ],
+ [
+ 4.335958,
+ "of"
+ ],
+ [
+ 4.635416,
+ "area"
+ ],
+ [
+ 5.0,
+ "one"
+ ],
+ [
+ 5.755208,
+ "Rolling"
+ ],
+ [
+ 6.041666,
+ "a"
+ ],
+ [
+ 6.106791,
+ "three"
+ ],
+ [
+ 6.940125,
+ "takes"
+ ],
+ [
+ 7.265625,
+ "one"
+ ],
+ [
+ 7.64325,
+ "sixth"
+ ],
+ [
+ 7.981791,
+ "of"
+ ],
+ [
+ 8.020833,
+ "the"
+ ],
+ [
+ 8.098958,
+ "width"
+ ],
+ [
+ 8.932291,
+ "Getting"
+ ],
+ [
+ 9.179708,
+ "tails"
+ ],
+ [
+ 9.6875,
+ "takes"
+ ],
+ [
+ 10.039083,
+ "one"
+ ],
+ [
+ 10.390625,
+ "half"
+ ],
+ [
+ 10.859375,
+ "of"
+ ],
+ [
+ 10.898458,
+ "the"
+ ],
+ [
+ 10.963541,
+ "height"
+ ],
+ [
+ 11.822916,
+ "Both"
+ ],
+ [
+ 12.070333,
+ "happen"
+ ],
+ [
+ 12.630208,
+ "only"
+ ],
+ [
+ 12.96875,
+ "where"
+ ],
+ [
+ 13.112,
+ "the"
+ ],
+ [
+ 13.203125,
+ "strips"
+ ],
+ [
+ 14.0495,
+ "overlap"
+ ],
+ [
+ 15.14325,
+ "one"
+ ],
+ [
+ 15.351583,
+ "half"
+ ],
+ [
+ 15.703125,
+ "of"
+ ],
+ [
+ 15.794291,
+ "one"
+ ],
+ [
+ 16.041666,
+ "sixth"
+ ],
+ [
+ 16.966166,
+ "which"
+ ],
+ [
+ 17.122416,
+ "is"
+ ],
+ [
+ 17.239583,
+ "one"
+ ],
+ [
+ 17.460958,
+ "twelfth"
+ ],
+ [
+ 18.4245,
+ "This"
+ ],
+ [
+ 18.671875,
+ "works"
+ ],
+ [
+ 18.971375,
+ "because"
+ ],
+ [
+ 19.296875,
+ "the"
+ ],
+ [
+ 19.375,
+ "events"
+ ],
+ [
+ 19.83075,
+ "are"
+ ],
+ [
+ 19.987,
+ "independent"
+ ],
+ [
+ 21.145833,
+ "the"
+ ],
+ [
+ 21.237,
+ "coin"
+ ],
+ [
+ 21.523458,
+ "has"
+ ],
+ [
+ 21.70575,
+ "no"
+ ],
+ [
+ 21.940125,
+ "effect"
+ ],
+ [
+ 22.382833,
+ "on"
+ ],
+ [
+ 22.447916,
+ "the"
+ ],
+ [
+ 22.5,
+ "cube"
+ ],
+ [
+ 23.359375,
+ "For"
+ ],
+ [
+ 23.554708,
+ "independent"
+ ],
+ [
+ 23.945333,
+ "events"
+ ],
+ [
+ 24.791666,
+ "the"
+ ],
+ [
+ 24.882833,
+ "probability"
+ ],
+ [
+ 25.585958,
+ "of"
+ ],
+ [
+ 25.703125,
+ "A"
+ ],
+ [
+ 26.210958,
+ "and"
+ ],
+ [
+ 26.510416,
+ "B"
+ ],
+ [
+ 27.317708,
+ "is"
+ ],
+ [
+ 27.460958,
+ "the"
+ ],
+ [
+ 27.539083,
+ "probability"
+ ],
+ [
+ 28.4245,
+ "of"
+ ],
+ [
+ 28.489583,
+ "A"
+ ],
+ [
+ 28.541666,
+ "times"
+ ],
+ [
+ 28.971375,
+ "the"
+ ],
+ [
+ 29.075541,
+ "probability"
+ ],
+ [
+ 29.752625,
+ "of"
+ ],
+ [
+ 29.856791,
+ "B"
+ ]
+ ],
+ "marks": {
+ "sq": 1.523,
+ "col": 5.755,
+ "row": 8.932,
+ "both": 11.823,
+ "eq": 16.966,
+ "ind": 18.424,
+ "rule": 23.359
+ },
+ "cues": [
+ [
+ 0.104,
+ "There's a faster way."
+ ],
+ [
+ 1.523,
+ "Picture all the outcomes as one square of area one."
+ ],
+ [
+ 5.755,
+ "Rolling a three takes one sixth of the width."
+ ],
+ [
+ 8.932,
+ "Getting tails takes one half of the height."
+ ],
+ [
+ 11.823,
+ "Both happen only where the strips overlap: one half of one sixth, which is one twelfth."
+ ],
+ [
+ 18.424,
+ "This works because the events are independent: the coin has no effect on the cube."
+ ],
+ [
+ 23.359,
+ "For independent events, the probability of A and B is the probability of A times the probability of B."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "8542c7ef18d42ae24685155ba0627d8d19f857ac",
+ "dur": 2.544,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.119791,
+ "Spin"
+ ],
+ [
+ 1.5495,
+ "then"
+ ],
+ [
+ 1.731791,
+ "flip"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "Spin, then flip."
+ ]
+ ]
+ },
+ "dep": {
+ "key": "ff876c13ec1fbc68a8aaaa51f80e5fb04f27df37",
+ "dur": 31.2,
+ "words": [
+ [
+ 0.104166,
+ "Now"
+ ],
+ [
+ 0.273458,
+ "a"
+ ],
+ [
+ 0.338541,
+ "bag"
+ ],
+ [
+ 0.677083,
+ "of"
+ ],
+ [
+ 0.78125,
+ "ten"
+ ],
+ [
+ 1.067708,
+ "marbles"
+ ],
+ [
+ 2.096375,
+ "four"
+ ],
+ [
+ 2.421875,
+ "red"
+ ],
+ [
+ 2.916666,
+ "and"
+ ],
+ [
+ 3.085958,
+ "six"
+ ],
+ [
+ 3.385416,
+ "blue"
+ ],
+ [
+ 4.231791,
+ "Pick"
+ ],
+ [
+ 4.401041,
+ "one"
+ ],
+ [
+ 4.635416,
+ "without"
+ ],
+ [
+ 5.026041,
+ "looking"
+ ],
+ [
+ 5.794291,
+ "The"
+ ],
+ [
+ 5.846375,
+ "chance"
+ ],
+ [
+ 6.132833,
+ "it's"
+ ],
+ [
+ 6.263041,
+ "red"
+ ],
+ [
+ 6.862,
+ "is"
+ ],
+ [
+ 7.03125,
+ "four"
+ ],
+ [
+ 7.356791,
+ "tenths"
+ ],
+ [
+ 8.372416,
+ "Keep"
+ ],
+ [
+ 8.554708,
+ "that"
+ ],
+ [
+ 8.723958,
+ "marble"
+ ],
+ [
+ 9.21875,
+ "out"
+ ],
+ [
+ 9.362,
+ "of"
+ ],
+ [
+ 9.414083,
+ "the"
+ ],
+ [
+ 9.492208,
+ "bag"
+ ],
+ [
+ 10.325541,
+ "Now"
+ ],
+ [
+ 10.507833,
+ "only"
+ ],
+ [
+ 10.755208,
+ "nine"
+ ],
+ [
+ 11.041666,
+ "marbles"
+ ],
+ [
+ 11.367208,
+ "are"
+ ],
+ [
+ 11.471375,
+ "left"
+ ],
+ [
+ 12.447916,
+ "and"
+ ],
+ [
+ 12.552083,
+ "six"
+ ],
+ [
+ 12.838541,
+ "of"
+ ],
+ [
+ 12.890625,
+ "them"
+ ],
+ [
+ 13.020833,
+ "are"
+ ],
+ [
+ 13.125,
+ "blue"
+ ],
+ [
+ 13.997416,
+ "So"
+ ],
+ [
+ 14.101583,
+ "the"
+ ],
+ [
+ 14.179708,
+ "chance"
+ ],
+ [
+ 14.51825,
+ "the"
+ ],
+ [
+ 14.609375,
+ "second"
+ ],
+ [
+ 14.960958,
+ "marble"
+ ],
+ [
+ 15.494791,
+ "is"
+ ],
+ [
+ 15.651041,
+ "blue"
+ ],
+ [
+ 16.445333,
+ "is"
+ ],
+ [
+ 16.666666,
+ "six"
+ ],
+ [
+ 16.992208,
+ "ninths"
+ ],
+ [
+ 18.059916,
+ "The"
+ ],
+ [
+ 18.138041,
+ "first"
+ ],
+ [
+ 18.411458,
+ "pick"
+ ],
+ [
+ 18.606791,
+ "changed"
+ ],
+ [
+ 19.023458,
+ "the"
+ ],
+ [
+ 19.088541,
+ "bag"
+ ],
+ [
+ 19.856791,
+ "so"
+ ],
+ [
+ 20.013041,
+ "these"
+ ],
+ [
+ 20.195333,
+ "events"
+ ],
+ [
+ 20.494791,
+ "are"
+ ],
+ [
+ 20.559916,
+ "dependent"
+ ],
+ [
+ 21.484375,
+ "Multiply"
+ ],
+ [
+ 21.992208,
+ "the"
+ ],
+ [
+ 22.096375,
+ "first"
+ ],
+ [
+ 22.460958,
+ "probability"
+ ],
+ [
+ 23.098958,
+ "by"
+ ],
+ [
+ 23.216166,
+ "the"
+ ],
+ [
+ 23.294291,
+ "second"
+ ],
+ [
+ 23.697916,
+ "one"
+ ],
+ [
+ 24.440125,
+ "after"
+ ],
+ [
+ 24.635416,
+ "the"
+ ],
+ [
+ 24.700541,
+ "first"
+ ],
+ [
+ 25.091166,
+ "event"
+ ],
+ [
+ 25.989583,
+ "four"
+ ],
+ [
+ 26.315125,
+ "tenths"
+ ],
+ [
+ 26.640625,
+ "times"
+ ],
+ [
+ 27.01825,
+ "six"
+ ],
+ [
+ 27.317708,
+ "ninths"
+ ],
+ [
+ 28.020833,
+ "is"
+ ],
+ [
+ 28.138041,
+ "twenty-four"
+ ],
+ [
+ 28.606791,
+ "ninetieths"
+ ],
+ [
+ 29.557291,
+ "or"
+ ],
+ [
+ 29.6875,
+ "four"
+ ],
+ [
+ 30.013041,
+ "fifteenths"
+ ]
+ ],
+ "marks": {
+ "first": 4.232,
+ "keep": 8.372,
+ "now": 10.326,
+ "second": 13.997,
+ "dep": 18.06,
+ "mult": 21.484,
+ "simp": 29.557
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now a bag of ten marbles: four red and six blue."
+ ],
+ [
+ 4.232,
+ "Pick one without looking."
+ ],
+ [
+ 5.794,
+ "The chance it's red is four tenths."
+ ],
+ [
+ 8.372,
+ "Keep that marble out of the bag."
+ ],
+ [
+ 10.326,
+ "Now only nine marbles are left, and six of them are blue."
+ ],
+ [
+ 13.997,
+ "So the chance the second marble is blue is six ninths."
+ ],
+ [
+ 18.06,
+ "The first pick changed the bag, so these events are dependent."
+ ],
+ [
+ 21.484,
+ "Multiply the first probability by the second one, after the first event: four tenths times six ninths is twenty-four ninetieths, or four fifteenths."
+ ]
+ ]
+ },
+ "replace": {
+ "key": "5d5426c9f13e80de6b46032a2c3c11c4158ccd71",
+ "dur": 18.984,
+ "words": [
+ [
+ 0.091166,
+ "Compare"
+ ],
+ [
+ 0.520833,
+ "that"
+ ],
+ [
+ 0.76825,
+ "with"
+ ],
+ [
+ 0.885416,
+ "putting"
+ ],
+ [
+ 1.119791,
+ "the"
+ ],
+ [
+ 1.197916,
+ "marble"
+ ],
+ [
+ 1.5625,
+ "back"
+ ],
+ [
+ 2.460958,
+ "With"
+ ],
+ [
+ 2.617208,
+ "replacement"
+ ],
+ [
+ 3.528666,
+ "the"
+ ],
+ [
+ 3.619791,
+ "bag"
+ ],
+ [
+ 3.932291,
+ "is"
+ ],
+ [
+ 4.023458,
+ "the"
+ ],
+ [
+ 4.127625,
+ "same"
+ ],
+ [
+ 4.505208,
+ "for"
+ ],
+ [
+ 4.596375,
+ "the"
+ ],
+ [
+ 4.6745,
+ "second"
+ ],
+ [
+ 5.091166,
+ "pick"
+ ],
+ [
+ 5.859375,
+ "six"
+ ],
+ [
+ 6.171875,
+ "blue"
+ ],
+ [
+ 6.458333,
+ "out"
+ ],
+ [
+ 6.5625,
+ "of"
+ ],
+ [
+ 6.640625,
+ "ten"
+ ],
+ [
+ 7.434916,
+ "The"
+ ],
+ [
+ 7.552083,
+ "picks"
+ ],
+ [
+ 7.877625,
+ "are"
+ ],
+ [
+ 8.046875,
+ "independent"
+ ],
+ [
+ 9.244791,
+ "and"
+ ],
+ [
+ 9.309916,
+ "the"
+ ],
+ [
+ 9.375,
+ "probability"
+ ],
+ [
+ 10.260416,
+ "is"
+ ],
+ [
+ 10.429708,
+ "four"
+ ],
+ [
+ 10.885416,
+ "tenths"
+ ],
+ [
+ 11.25,
+ "times"
+ ],
+ [
+ 11.653666,
+ "six"
+ ],
+ [
+ 11.940125,
+ "tenths"
+ ],
+ [
+ 12.942708,
+ "Without"
+ ],
+ [
+ 13.216166,
+ "replacement"
+ ],
+ [
+ 14.231791,
+ "the"
+ ],
+ [
+ 14.335958,
+ "second"
+ ],
+ [
+ 14.6875,
+ "fraction"
+ ],
+ [
+ 15.15625,
+ "changes"
+ ],
+ [
+ 16.132833,
+ "both"
+ ],
+ [
+ 16.419291,
+ "the"
+ ],
+ [
+ 16.510416,
+ "top"
+ ],
+ [
+ 17.044291,
+ "and"
+ ],
+ [
+ 17.109375,
+ "the"
+ ],
+ [
+ 17.200541,
+ "bottom"
+ ],
+ [
+ 17.7995,
+ "can"
+ ],
+ [
+ 17.96875,
+ "shrink"
+ ]
+ ],
+ "marks": {
+ "back": 2.461,
+ "ten": 5.859,
+ "ind": 7.435,
+ "diff": 12.943
+ },
+ "cues": [
+ [
+ 0.091,
+ "Compare that with putting the marble back."
+ ],
+ [
+ 2.461,
+ "With replacement, the bag is the same for the second pick: six blue out of ten."
+ ],
+ [
+ 7.435,
+ "The picks are independent, and the probability is four tenths times six tenths."
+ ],
+ [
+ 12.943,
+ "Without replacement, the second fraction changes: both the top and the bottom can shrink."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "40dbab02d46391357d445f8d0e79325f0f826e87",
+ "dur": 3.072,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.132833,
+ "Two"
+ ],
+ [
+ 1.341166,
+ "picks"
+ ],
+ [
+ 1.71875,
+ "without"
+ ],
+ [
+ 2.057291,
+ "replacement"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Two picks without replacement."
+ ]
+ ]
+ },
+ "cards": {
+ "key": "c806a808c2770d6d64112f57408c9b60f398b244",
+ "dur": 25.104,
+ "words": [
+ [
+ 0.091166,
+ "A"
+ ],
+ [
+ 0.15625,
+ "deck"
+ ],
+ [
+ 0.416666,
+ "has"
+ ],
+ [
+ 0.651041,
+ "fifty-two"
+ ],
+ [
+ 1.341166,
+ "cards"
+ ],
+ [
+ 2.1875,
+ "and"
+ ],
+ [
+ 2.304708,
+ "four"
+ ],
+ [
+ 2.669291,
+ "of"
+ ],
+ [
+ 2.747416,
+ "them"
+ ],
+ [
+ 3.138041,
+ "are"
+ ],
+ [
+ 3.26825,
+ "aces"
+ ],
+ [
+ 4.322916,
+ "Draw"
+ ],
+ [
+ 4.635416,
+ "one"
+ ],
+ [
+ 4.987,
+ "card"
+ ],
+ [
+ 5.846375,
+ "the"
+ ],
+ [
+ 5.9245,
+ "chance"
+ ],
+ [
+ 6.25,
+ "of"
+ ],
+ [
+ 6.302083,
+ "an"
+ ],
+ [
+ 6.380208,
+ "ace"
+ ],
+ [
+ 6.888041,
+ "is"
+ ],
+ [
+ 7.03125,
+ "four"
+ ],
+ [
+ 7.434916,
+ "out"
+ ],
+ [
+ 7.552083,
+ "of"
+ ],
+ [
+ 7.617208,
+ "fifty-two"
+ ],
+ [
+ 8.776041,
+ "Keep"
+ ],
+ [
+ 8.945333,
+ "it"
+ ],
+ [
+ 8.997416,
+ "out"
+ ],
+ [
+ 9.700541,
+ "Now"
+ ],
+ [
+ 10.052083,
+ "fifty-one"
+ ],
+ [
+ 10.585958,
+ "cards"
+ ],
+ [
+ 10.9245,
+ "are"
+ ],
+ [
+ 11.028666,
+ "left"
+ ],
+ [
+ 11.822916,
+ "and"
+ ],
+ [
+ 11.992208,
+ "only"
+ ],
+ [
+ 12.265625,
+ "three"
+ ],
+ [
+ 12.8125,
+ "are"
+ ],
+ [
+ 12.994791,
+ "aces"
+ ],
+ [
+ 14.0495,
+ "So"
+ ],
+ [
+ 14.166666,
+ "the"
+ ],
+ [
+ 14.257833,
+ "probability"
+ ],
+ [
+ 15.026041,
+ "of"
+ ],
+ [
+ 15.104166,
+ "an"
+ ],
+ [
+ 15.208333,
+ "ace"
+ ],
+ [
+ 16.015625,
+ "then"
+ ],
+ [
+ 16.158875,
+ "another"
+ ],
+ [
+ 16.510416,
+ "ace"
+ ],
+ [
+ 17.434916,
+ "is"
+ ],
+ [
+ 17.617208,
+ "four"
+ ],
+ [
+ 17.96875,
+ "fifty-seconds"
+ ],
+ [
+ 18.828125,
+ "times"
+ ],
+ [
+ 19.296875,
+ "three"
+ ],
+ [
+ 19.635416,
+ "fifty-firsts"
+ ],
+ [
+ 20.820333,
+ "which"
+ ],
+ [
+ 21.002625,
+ "is"
+ ],
+ [
+ 21.119791,
+ "one"
+ ],
+ [
+ 21.419291,
+ "out"
+ ],
+ [
+ 21.653666,
+ "of"
+ ],
+ [
+ 21.744791,
+ "two"
+ ],
+ [
+ 21.966166,
+ "hundred"
+ ],
+ [
+ 22.200541,
+ "twenty-one"
+ ],
+ [
+ 23.072916,
+ "That's"
+ ],
+ [
+ 23.242208,
+ "less"
+ ],
+ [
+ 23.4245,
+ "than"
+ ],
+ [
+ 23.541666,
+ "half"
+ ],
+ [
+ 23.90625,
+ "of"
+ ],
+ [
+ 23.984375,
+ "one"
+ ],
+ [
+ 24.140625,
+ "percent"
+ ]
+ ],
+ "marks": {
+ "aces": 2.188,
+ "first": 4.323,
+ "out": 8.776,
+ "left": 9.701,
+ "mult": 14.05,
+ "simp": 20.82
+ },
+ "cues": [
+ [
+ 0.091,
+ "A deck has fifty-two cards, and four of them are aces."
+ ],
+ [
+ 4.323,
+ "Draw one card: the chance of an ace is four out of fifty-two."
+ ],
+ [
+ 8.776,
+ "Keep it out."
+ ],
+ [
+ 9.701,
+ "Now fifty-one cards are left, and only three are aces."
+ ],
+ [
+ 14.05,
+ "So the probability of an ace, then another ace, is four fifty-seconds times three fifty-firsts, which is one out of two hundred twenty-one."
+ ],
+ [
+ 23.073,
+ "That's less than half of one percent."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "db6033b2d0a86ab109233d13c812df805461122e",
+ "dur": 2.976,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.247416,
+ "check"
+ ],
+ [
+ 1.106791,
+ "Independent"
+ ],
+ [
+ 1.914083,
+ "or"
+ ],
+ [
+ 2.005208,
+ "dependent"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.107,
+ "Independent or dependent?"
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "91ff4452b0c7393774e7d6d81eabb28ab7d499cb",
+ "dur": 19.008,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.15625,
+ "sum"
+ ],
+ [
+ 0.364583,
+ "up"
+ ],
+ [
+ 1.015625,
+ "A"
+ ],
+ [
+ 1.067708,
+ "compound"
+ ],
+ [
+ 1.614583,
+ "event"
+ ],
+ [
+ 1.862,
+ "combines"
+ ],
+ [
+ 2.747416,
+ "two"
+ ],
+ [
+ 3.320333,
+ "or"
+ ],
+ [
+ 3.4375,
+ "more"
+ ],
+ [
+ 3.645833,
+ "events"
+ ],
+ [
+ 4.609375,
+ "If"
+ ],
+ [
+ 4.713541,
+ "the"
+ ],
+ [
+ 4.778666,
+ "events"
+ ],
+ [
+ 5.14325,
+ "are"
+ ],
+ [
+ 5.260416,
+ "independent"
+ ],
+ [
+ 6.445333,
+ "multiply"
+ ],
+ [
+ 7.109375,
+ "their"
+ ],
+ [
+ 7.252625,
+ "probabilities"
+ ],
+ [
+ 8.632833,
+ "If"
+ ],
+ [
+ 8.75,
+ "the"
+ ],
+ [
+ 8.841166,
+ "first"
+ ],
+ [
+ 9.153666,
+ "event"
+ ],
+ [
+ 9.583333,
+ "changes"
+ ],
+ [
+ 10.039083,
+ "the"
+ ],
+ [
+ 10.117208,
+ "second"
+ ],
+ [
+ 11.015625,
+ "they're"
+ ],
+ [
+ 11.119791,
+ "dependent"
+ ],
+ [
+ 12.226583,
+ "multiply"
+ ],
+ [
+ 13.177083,
+ "by"
+ ],
+ [
+ 13.346375,
+ "the"
+ ],
+ [
+ 13.4375,
+ "second"
+ ],
+ [
+ 13.880208,
+ "probability"
+ ],
+ [
+ 14.635416,
+ "after"
+ ],
+ [
+ 14.869791,
+ "the"
+ ],
+ [
+ 14.947916,
+ "first"
+ ],
+ [
+ 15.2995,
+ "event"
+ ],
+ [
+ 15.638041,
+ "has"
+ ],
+ [
+ 15.76825,
+ "happened"
+ ],
+ [
+ 16.653666,
+ "Now"
+ ],
+ [
+ 17.083333,
+ "try"
+ ],
+ [
+ 17.356791,
+ "the"
+ ],
+ [
+ 17.447916,
+ "chapter"
+ ],
+ [
+ 17.877625,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 1.016,
+ "w2": 4.609,
+ "w3": 8.633,
+ "end": 16.654
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.016,
+ "A compound event combines two or more events."
+ ],
+ [
+ 4.609,
+ "If the events are independent, multiply their probabilities."
+ ],
+ [
+ 8.633,
+ "If the first event changes the second, they're dependent: multiply by the second probability after the first event has happened."
+ ],
+ [
+ 16.654,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "18eb530b2f1c08f4c28b6122d480b9417c50c46d",
+ "dur": 3.408,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.429708,
+ "practice"
+ ],
+ [
+ 1.536458,
+ "Independent"
+ ],
+ [
+ 2.317708,
+ "or"
+ ],
+ [
+ 2.408875,
+ "dependent"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.536,
+ "Independent or dependent?"
+ ]
+ ]
+ },
+ "final2": {
+ "key": "aa8d3816224628e8cb360bde2b9e06b6a940ac33",
+ "dur": 2.376,
+ "words": [
+ [
+ 0.091166,
+ "Next"
+ ],
+ [
+ 0.950541,
+ "independent"
+ ],
+ [
+ 1.39325,
+ "events"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Next, independent events."
+ ]
+ ]
+ },
+ "final3": {
+ "key": "394531430ce78e7a03bb40eaf834dadc4e0112f1",
+ "dur": 2.784,
+ "words": [
+ [
+ 0.091166,
+ "Last"
+ ],
+ [
+ 0.390625,
+ "one"
+ ],
+ [
+ 1.132833,
+ "Picks"
+ ],
+ [
+ 1.354166,
+ "without"
+ ],
+ [
+ 1.71875,
+ "replacement"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Last one."
+ ],
+ [
+ 1.133,
+ "Picks without replacement."
+ ]
+ ]
+ },
+ "finish": {
+ "key": "5753796456efd5c564dd3e05a7d2274e9265b52f",
+ "dur": 4.872,
+ "words": [
+ [
+ 0.091166,
+ "Nice"
+ ],
+ [
+ 0.351583,
+ "work"
+ ],
+ [
+ 1.145833,
+ "That's"
+ ],
+ [
+ 1.315125,
+ "the"
+ ],
+ [
+ 1.39325,
+ "end"
+ ],
+ [
+ 1.653666,
+ "of"
+ ],
+ [
+ 1.731791,
+ "chapter"
+ ],
+ [
+ 2.213541,
+ "forty-three"
+ ],
+ [
+ 3.4375,
+ "compound"
+ ],
+ [
+ 3.919291,
+ "events"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Nice work."
+ ],
+ [
+ 1.146,
+ "That's the end of chapter forty-three, compound events."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch44/narration.en.json b/content/ch44/narration.en.json
new file mode 100644
index 0000000..8c82a39
--- /dev/null
+++ b/content/ch44/narration.en.json
@@ -0,0 +1,21 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter forty-four. [[sub]]How many ways can you arrange or choose things? It depends on whether order matters.",
+ "order": "Three friends: Ana, Ben, and Cal. [[perm]]If you pick a president and a vice president, Ana then Ben is different from Ben then Ana. Order matters, so each arrangement is a permutation. [[comb]]If you just pick two of them for a committee, Ana and Ben is the same committee as Ben and Ana. Order doesn't matter, so each group is a combination.",
+ "repeat": "Start with permutations that allow repetition. [[code]]A lock code has three digits, each from zero to nine, and digits can repeat. [[s1]]The first digit has ten choices. [[s2]]The second still has ten, [[s3]]and so does the third. [[mult]]By the counting principle, that's ten times ten times ten, or ten to the third power: one thousand codes. [[gen]]In general, choosing r times from n options with repetition gives n to the r.",
+ "norep": "Without repetition, the choices shrink. [[books]]Arrange four different books on a shelf. [[s1]]Any of the four can go first. [[s2]]Then three are left for the second spot, [[s3]]two for the third, [[s4]]and one for the last. [[mult]]Four times three times two times one is twenty-four. [[fact]]A product like this is called a factorial, written with an exclamation mark: four factorial. [[zero]]By definition, zero factorial is one.",
+ "q1": "Quick check. Count the arrangements.",
+ "npr": "Sometimes you arrange only some of the items. [[club]]A club has six members and needs a president, a vice president, and a secretary. [[s]]That's six choices, then five, then four: one hundred twenty. [[name]]This is called the number of permutations of six things taken three at a time. [[form]]As a formula, it's six factorial over three factorial. [[cancel]]The three times two times one cancels, [[left]]leaving six times five times four. [[gen]]In general, n factorial over the quantity n minus r, factorial.",
+ "qp": "Quick check. Arrange some of the items.",
+ "comb": "Now let order stop mattering. [[menu]]A dessert plate lets you pick two of four desserts. [[ordered]]Counting ordered picks gives four times three, twelve. [[pairs]]But apple then berry, and berry then apple, are the same plate. [[twice]]Every plate was counted twice. [[div]]So divide by two: six different plates.",
+ "groups": "Why divide by two? [[pick]]Two items can be ordered in two factorial ways. [[three]]A group of three can be ordered in three factorial, or six, ways. [[each]]Every group shows up that many times in the permutation count. [[rule]]So the number of combinations is the number of permutations divided by r factorial.",
+ "q2": "Quick check. Does order matter here?",
+ "wrap": "To sum up. [[w1]]Order matters: permutations. Order doesn't: combinations. [[w2]]With repetition, n choices r times gives n to the r. [[w3]]Without repetition, the permutations of n things taken r at a time are n factorial over n minus r factorial. [[w4]]Combinations are those permutations divided by r factorial. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Does order matter?",
+ "final2": "Next, count the permutations.",
+ "final3": "Last one. Count the combinations.",
+ "finish": "Excellent. That's the end of chapter forty-four, and of unit seven."
+ }
+}
\ No newline at end of file
diff --git a/content/ch44/narration.en.timings.json b/content/ch44/narration.en.timings.json
new file mode 100644
index 0000000..a677f8c
--- /dev/null
+++ b/content/ch44/narration.en.timings.json
@@ -0,0 +1,2383 @@
+{
+ "intro": {
+ "key": "b4b0d313668c4afc9f15be08e94418665c6a69d9",
+ "dur": 7.008,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.481791,
+ "forty-four"
+ ],
+ [
+ 1.71875,
+ "How"
+ ],
+ [
+ 1.796875,
+ "many"
+ ],
+ [
+ 1.940125,
+ "ways"
+ ],
+ [
+ 2.213541,
+ "can"
+ ],
+ [
+ 2.33075,
+ "you"
+ ],
+ [
+ 2.447916,
+ "arrange"
+ ],
+ [
+ 3.411458,
+ "or"
+ ],
+ [
+ 3.528666,
+ "choose"
+ ],
+ [
+ 3.89325,
+ "things"
+ ],
+ [
+ 4.817708,
+ "It"
+ ],
+ [
+ 4.882833,
+ "depends"
+ ],
+ [
+ 5.260416,
+ "on"
+ ],
+ [
+ 5.429708,
+ "whether"
+ ],
+ [
+ 5.78125,
+ "order"
+ ],
+ [
+ 6.002625,
+ "matters"
+ ]
+ ],
+ "marks": {
+ "sub": 1.719
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter forty-four."
+ ],
+ [
+ 1.719,
+ "How many ways can you arrange or choose things?"
+ ],
+ [
+ 4.818,
+ "It depends on whether order matters."
+ ]
+ ]
+ },
+ "order": {
+ "key": "1853c5efa5dc2508757b082941c0f893b10d390c",
+ "dur": 23.616,
+ "words": [
+ [
+ 0.15625,
+ "Three"
+ ],
+ [
+ 0.377625,
+ "friends"
+ ],
+ [
+ 1.419291,
+ "Ana"
+ ],
+ [
+ 2.135416,
+ "Ben"
+ ],
+ [
+ 2.825541,
+ "and"
+ ],
+ [
+ 2.916666,
+ "Cal"
+ ],
+ [
+ 3.802083,
+ "If"
+ ],
+ [
+ 3.90625,
+ "you"
+ ],
+ [
+ 3.984375,
+ "pick"
+ ],
+ [
+ 4.153666,
+ "a"
+ ],
+ [
+ 4.21875,
+ "president"
+ ],
+ [
+ 4.856791,
+ "and"
+ ],
+ [
+ 4.947916,
+ "a"
+ ],
+ [
+ 4.987,
+ "vice"
+ ],
+ [
+ 5.364583,
+ "president"
+ ],
+ [
+ 6.510416,
+ "Ana"
+ ],
+ [
+ 7.200541,
+ "then"
+ ],
+ [
+ 7.434916,
+ "Ben"
+ ],
+ [
+ 8.203125,
+ "is"
+ ],
+ [
+ 8.385416,
+ "different"
+ ],
+ [
+ 8.789083,
+ "from"
+ ],
+ [
+ 8.984375,
+ "Ben"
+ ],
+ [
+ 9.335958,
+ "then"
+ ],
+ [
+ 9.505208,
+ "Ana"
+ ],
+ [
+ 10.390625,
+ "Order"
+ ],
+ [
+ 10.572916,
+ "matters"
+ ],
+ [
+ 11.5625,
+ "so"
+ ],
+ [
+ 11.901041,
+ "each"
+ ],
+ [
+ 12.070333,
+ "arrangement"
+ ],
+ [
+ 12.825541,
+ "is"
+ ],
+ [
+ 12.916666,
+ "a"
+ ],
+ [
+ 12.981791,
+ "permutation"
+ ],
+ [
+ 14.20575,
+ "If"
+ ],
+ [
+ 14.309916,
+ "you"
+ ],
+ [
+ 14.388041,
+ "just"
+ ],
+ [
+ 14.557291,
+ "pick"
+ ],
+ [
+ 14.739583,
+ "two"
+ ],
+ [
+ 14.973958,
+ "of"
+ ],
+ [
+ 15.091166,
+ "them"
+ ],
+ [
+ 15.325541,
+ "for"
+ ],
+ [
+ 15.481791,
+ "a"
+ ],
+ [
+ 15.520833,
+ "committee"
+ ],
+ [
+ 16.510416,
+ "Ana"
+ ],
+ [
+ 16.940125,
+ "and"
+ ],
+ [
+ 17.083333,
+ "Ben"
+ ],
+ [
+ 17.64325,
+ "is"
+ ],
+ [
+ 17.773458,
+ "the"
+ ],
+ [
+ 17.864583,
+ "same"
+ ],
+ [
+ 18.203125,
+ "committee"
+ ],
+ [
+ 18.645833,
+ "as"
+ ],
+ [
+ 18.776041,
+ "Ben"
+ ],
+ [
+ 19.010416,
+ "and"
+ ],
+ [
+ 19.088541,
+ "Ana"
+ ],
+ [
+ 19.960958,
+ "Order"
+ ],
+ [
+ 20.15625,
+ "doesn't"
+ ],
+ [
+ 20.442708,
+ "matter"
+ ],
+ [
+ 21.223958,
+ "so"
+ ],
+ [
+ 21.523458,
+ "each"
+ ],
+ [
+ 21.744791,
+ "group"
+ ],
+ [
+ 22.33075,
+ "is"
+ ],
+ [
+ 22.421875,
+ "a"
+ ],
+ [
+ 22.473958,
+ "combination"
+ ]
+ ],
+ "marks": {
+ "perm": 3.802,
+ "comb": 14.206
+ },
+ "cues": [
+ [
+ 0.156,
+ "Three friends: Ana, Ben, and Cal."
+ ],
+ [
+ 3.802,
+ "If you pick a president and a vice president, Ana then Ben is different from Ben then Ana."
+ ],
+ [
+ 10.391,
+ "Order matters, so each arrangement is a permutation."
+ ],
+ [
+ 14.206,
+ "If you just pick two of them for a committee, Ana and Ben is the same committee as Ben and Ana."
+ ],
+ [
+ 19.961,
+ "Order doesn't matter, so each group is a combination."
+ ]
+ ]
+ },
+ "repeat": {
+ "key": "81cae11ad0b06920d1387409757ce6ad9c848d86",
+ "dur": 28.128,
+ "words": [
+ [
+ 0.104166,
+ "Start"
+ ],
+ [
+ 0.364583,
+ "with"
+ ],
+ [
+ 0.494791,
+ "permutations"
+ ],
+ [
+ 1.692708,
+ "that"
+ ],
+ [
+ 1.809916,
+ "allow"
+ ],
+ [
+ 2.213541,
+ "repetition"
+ ],
+ [
+ 3.359375,
+ "A"
+ ],
+ [
+ 3.398458,
+ "lock"
+ ],
+ [
+ 3.671875,
+ "code"
+ ],
+ [
+ 3.971375,
+ "has"
+ ],
+ [
+ 4.257833,
+ "three"
+ ],
+ [
+ 4.6745,
+ "digits"
+ ],
+ [
+ 5.690125,
+ "each"
+ ],
+ [
+ 5.833333,
+ "from"
+ ],
+ [
+ 6.028666,
+ "zero"
+ ],
+ [
+ 6.497416,
+ "to"
+ ],
+ [
+ 6.640625,
+ "nine"
+ ],
+ [
+ 7.591166,
+ "and"
+ ],
+ [
+ 7.682291,
+ "digits"
+ ],
+ [
+ 8.072916,
+ "can"
+ ],
+ [
+ 8.216166,
+ "repeat"
+ ],
+ [
+ 9.179708,
+ "The"
+ ],
+ [
+ 9.270833,
+ "first"
+ ],
+ [
+ 9.53125,
+ "digit"
+ ],
+ [
+ 9.856791,
+ "has"
+ ],
+ [
+ 10.065125,
+ "ten"
+ ],
+ [
+ 10.403666,
+ "choices"
+ ],
+ [
+ 11.5625,
+ "The"
+ ],
+ [
+ 11.614583,
+ "second"
+ ],
+ [
+ 12.044291,
+ "still"
+ ],
+ [
+ 12.317708,
+ "has"
+ ],
+ [
+ 12.5,
+ "ten"
+ ],
+ [
+ 13.359375,
+ "and"
+ ],
+ [
+ 13.541666,
+ "so"
+ ],
+ [
+ 13.802083,
+ "does"
+ ],
+ [
+ 14.036458,
+ "the"
+ ],
+ [
+ 14.127625,
+ "third"
+ ],
+ [
+ 15.052083,
+ "By"
+ ],
+ [
+ 15.14325,
+ "the"
+ ],
+ [
+ 15.234375,
+ "counting"
+ ],
+ [
+ 15.638041,
+ "principle"
+ ],
+ [
+ 16.40625,
+ "that's"
+ ],
+ [
+ 16.627625,
+ "ten"
+ ],
+ [
+ 16.875,
+ "times"
+ ],
+ [
+ 17.265625,
+ "ten"
+ ],
+ [
+ 17.5,
+ "times"
+ ],
+ [
+ 17.877625,
+ "ten"
+ ],
+ [
+ 18.671875,
+ "or"
+ ],
+ [
+ 19.101583,
+ "ten"
+ ],
+ [
+ 19.375,
+ "to"
+ ],
+ [
+ 19.466166,
+ "the"
+ ],
+ [
+ 19.570333,
+ "third"
+ ],
+ [
+ 19.908875,
+ "power"
+ ],
+ [
+ 20.872416,
+ "one"
+ ],
+ [
+ 21.158875,
+ "thousand"
+ ],
+ [
+ 21.601583,
+ "codes"
+ ],
+ [
+ 22.604166,
+ "In"
+ ],
+ [
+ 22.747416,
+ "general"
+ ],
+ [
+ 23.541666,
+ "choosing"
+ ],
+ [
+ 23.984375,
+ "r"
+ ],
+ [
+ 24.114583,
+ "times"
+ ],
+ [
+ 24.557291,
+ "from"
+ ],
+ [
+ 24.921875,
+ "n"
+ ],
+ [
+ 25.091166,
+ "options"
+ ],
+ [
+ 25.533875,
+ "with"
+ ],
+ [
+ 25.651041,
+ "repetition"
+ ],
+ [
+ 26.419291,
+ "gives"
+ ],
+ [
+ 26.875,
+ "n"
+ ],
+ [
+ 27.070333,
+ "to"
+ ],
+ [
+ 27.1875,
+ "the"
+ ],
+ [
+ 27.33075,
+ "r"
+ ]
+ ],
+ "marks": {
+ "code": 3.359,
+ "s1": 9.18,
+ "s2": 11.562,
+ "s3": 13.359,
+ "mult": 15.052,
+ "gen": 22.604
+ },
+ "cues": [
+ [
+ 0.104,
+ "Start with permutations that allow repetition."
+ ],
+ [
+ 3.359,
+ "A lock code has three digits, each from zero to nine, and digits can repeat."
+ ],
+ [
+ 9.18,
+ "The first digit has ten choices."
+ ],
+ [
+ 11.562,
+ "The second still has ten, and so does the third."
+ ],
+ [
+ 15.052,
+ "By the counting principle, that's ten times ten times ten, or ten to the third power: one thousand codes."
+ ],
+ [
+ 22.604,
+ "In general, choosing r times from n options with repetition gives n to the r."
+ ]
+ ]
+ },
+ "norep": {
+ "key": "dc41fd4376d26cad35227398927e775b83f2d7f1",
+ "dur": 26.376,
+ "words": [
+ [
+ 0.117208,
+ "Without"
+ ],
+ [
+ 0.403666,
+ "repetition"
+ ],
+ [
+ 1.341166,
+ "the"
+ ],
+ [
+ 1.432291,
+ "choices"
+ ],
+ [
+ 1.927083,
+ "shrink"
+ ],
+ [
+ 2.96875,
+ "Arrange"
+ ],
+ [
+ 3.398458,
+ "four"
+ ],
+ [
+ 3.671875,
+ "different"
+ ],
+ [
+ 3.971375,
+ "books"
+ ],
+ [
+ 4.296875,
+ "on"
+ ],
+ [
+ 4.414083,
+ "a"
+ ],
+ [
+ 4.427083,
+ "shelf"
+ ],
+ [
+ 5.416666,
+ "Any"
+ ],
+ [
+ 5.612,
+ "of"
+ ],
+ [
+ 5.677083,
+ "the"
+ ],
+ [
+ 5.755208,
+ "four"
+ ],
+ [
+ 6.40625,
+ "can"
+ ],
+ [
+ 6.536458,
+ "go"
+ ],
+ [
+ 6.757833,
+ "first"
+ ],
+ [
+ 7.903666,
+ "Then"
+ ],
+ [
+ 8.190125,
+ "three"
+ ],
+ [
+ 8.463541,
+ "are"
+ ],
+ [
+ 8.58075,
+ "left"
+ ],
+ [
+ 8.867208,
+ "for"
+ ],
+ [
+ 8.958333,
+ "the"
+ ],
+ [
+ 9.036458,
+ "second"
+ ],
+ [
+ 9.401041,
+ "spot"
+ ],
+ [
+ 10.14325,
+ "two"
+ ],
+ [
+ 10.364583,
+ "for"
+ ],
+ [
+ 10.46875,
+ "the"
+ ],
+ [
+ 10.546875,
+ "third"
+ ],
+ [
+ 11.276041,
+ "and"
+ ],
+ [
+ 11.445333,
+ "one"
+ ],
+ [
+ 11.692708,
+ "for"
+ ],
+ [
+ 11.796875,
+ "the"
+ ],
+ [
+ 11.862,
+ "last"
+ ],
+ [
+ 12.864583,
+ "Four"
+ ],
+ [
+ 13.033875,
+ "times"
+ ],
+ [
+ 13.541666,
+ "three"
+ ],
+ [
+ 13.867208,
+ "times"
+ ],
+ [
+ 14.283875,
+ "two"
+ ],
+ [
+ 14.583333,
+ "times"
+ ],
+ [
+ 15.0,
+ "one"
+ ],
+ [
+ 15.286458,
+ "is"
+ ],
+ [
+ 15.377625,
+ "twenty-four"
+ ],
+ [
+ 16.484375,
+ "A"
+ ],
+ [
+ 16.536458,
+ "product"
+ ],
+ [
+ 16.927083,
+ "like"
+ ],
+ [
+ 17.135416,
+ "this"
+ ],
+ [
+ 17.578125,
+ "is"
+ ],
+ [
+ 17.708333,
+ "called"
+ ],
+ [
+ 18.112,
+ "a"
+ ],
+ [
+ 18.151041,
+ "factorial"
+ ],
+ [
+ 19.492208,
+ "written"
+ ],
+ [
+ 19.882833,
+ "with"
+ ],
+ [
+ 20.026041,
+ "an"
+ ],
+ [
+ 20.14325,
+ "exclamation"
+ ],
+ [
+ 20.76825,
+ "mark"
+ ],
+ [
+ 21.5495,
+ "four"
+ ],
+ [
+ 21.862,
+ "factorial"
+ ],
+ [
+ 23.085958,
+ "By"
+ ],
+ [
+ 23.216166,
+ "definition"
+ ],
+ [
+ 24.179708,
+ "zero"
+ ],
+ [
+ 24.583333,
+ "factorial"
+ ],
+ [
+ 25.429708,
+ "is"
+ ],
+ [
+ 25.559916,
+ "one"
+ ]
+ ],
+ "marks": {
+ "books": 2.969,
+ "s1": 5.417,
+ "s2": 7.904,
+ "s3": 10.143,
+ "s4": 11.276,
+ "mult": 12.865,
+ "fact": 16.484,
+ "zero": 23.086
+ },
+ "cues": [
+ [
+ 0.117,
+ "Without repetition, the choices shrink."
+ ],
+ [
+ 2.969,
+ "Arrange four different books on a shelf."
+ ],
+ [
+ 5.417,
+ "Any of the four can go first."
+ ],
+ [
+ 7.904,
+ "Then three are left for the second spot, two for the third, and one for the last."
+ ],
+ [
+ 12.865,
+ "Four times three times two times one is twenty-four."
+ ],
+ [
+ 16.484,
+ "A product like this is called a factorial, written with an exclamation mark: four factorial."
+ ],
+ [
+ 23.086,
+ "By definition, zero factorial is one."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "eadd85f89617b4be98b96fce67446f945b66ca03",
+ "dur": 2.688,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.286458,
+ "check"
+ ],
+ [
+ 1.132833,
+ "Count"
+ ],
+ [
+ 1.39325,
+ "the"
+ ],
+ [
+ 1.471375,
+ "arrangements"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Count the arrangements."
+ ]
+ ]
+ },
+ "npr": {
+ "key": "85d97f68773c9ee5c3169f909f25372136846119",
+ "dur": 34.176,
+ "words": [
+ [
+ 0.104166,
+ "Sometimes"
+ ],
+ [
+ 0.533875,
+ "you"
+ ],
+ [
+ 0.638041,
+ "arrange"
+ ],
+ [
+ 1.458333,
+ "only"
+ ],
+ [
+ 1.862,
+ "some"
+ ],
+ [
+ 2.070333,
+ "of"
+ ],
+ [
+ 2.135416,
+ "the"
+ ],
+ [
+ 2.226583,
+ "items"
+ ],
+ [
+ 3.28125,
+ "A"
+ ],
+ [
+ 3.333333,
+ "club"
+ ],
+ [
+ 3.606791,
+ "has"
+ ],
+ [
+ 3.841166,
+ "six"
+ ],
+ [
+ 4.153666,
+ "members"
+ ],
+ [
+ 4.856791,
+ "and"
+ ],
+ [
+ 5.091166,
+ "needs"
+ ],
+ [
+ 5.377625,
+ "a"
+ ],
+ [
+ 5.45575,
+ "president"
+ ],
+ [
+ 6.458333,
+ "a"
+ ],
+ [
+ 6.510416,
+ "vice"
+ ],
+ [
+ 6.940125,
+ "president"
+ ],
+ [
+ 7.96875,
+ "and"
+ ],
+ [
+ 8.033875,
+ "a"
+ ],
+ [
+ 8.072916,
+ "secretary"
+ ],
+ [
+ 9.21875,
+ "That's"
+ ],
+ [
+ 9.427083,
+ "six"
+ ],
+ [
+ 9.6745,
+ "choices"
+ ],
+ [
+ 10.612,
+ "then"
+ ],
+ [
+ 11.09375,
+ "five"
+ ],
+ [
+ 12.057291,
+ "then"
+ ],
+ [
+ 12.304708,
+ "four"
+ ],
+ [
+ 13.125,
+ "one"
+ ],
+ [
+ 13.229166,
+ "hundred"
+ ],
+ [
+ 13.476583,
+ "twenty"
+ ],
+ [
+ 14.309916,
+ "This"
+ ],
+ [
+ 14.453125,
+ "is"
+ ],
+ [
+ 14.544291,
+ "called"
+ ],
+ [
+ 14.752625,
+ "the"
+ ],
+ [
+ 14.804708,
+ "number"
+ ],
+ [
+ 15.234375,
+ "of"
+ ],
+ [
+ 15.351583,
+ "permutations"
+ ],
+ [
+ 16.302083,
+ "of"
+ ],
+ [
+ 16.39325,
+ "six"
+ ],
+ [
+ 16.809916,
+ "things"
+ ],
+ [
+ 17.460958,
+ "taken"
+ ],
+ [
+ 17.825541,
+ "three"
+ ],
+ [
+ 18.26825,
+ "at"
+ ],
+ [
+ 18.333333,
+ "a"
+ ],
+ [
+ 18.372416,
+ "time"
+ ],
+ [
+ 19.179708,
+ "As"
+ ],
+ [
+ 19.283875,
+ "a"
+ ],
+ [
+ 19.348958,
+ "formula"
+ ],
+ [
+ 20.416666,
+ "it's"
+ ],
+ [
+ 20.585958,
+ "six"
+ ],
+ [
+ 20.885416,
+ "factorial"
+ ],
+ [
+ 21.601583,
+ "over"
+ ],
+ [
+ 21.822916,
+ "three"
+ ],
+ [
+ 22.239583,
+ "factorial"
+ ],
+ [
+ 23.4375,
+ "The"
+ ],
+ [
+ 23.502625,
+ "three"
+ ],
+ [
+ 23.710958,
+ "times"
+ ],
+ [
+ 24.0495,
+ "two"
+ ],
+ [
+ 24.375,
+ "times"
+ ],
+ [
+ 24.791666,
+ "one"
+ ],
+ [
+ 25.169291,
+ "cancels"
+ ],
+ [
+ 26.289083,
+ "leaving"
+ ],
+ [
+ 26.575541,
+ "six"
+ ],
+ [
+ 26.875,
+ "times"
+ ],
+ [
+ 27.291666,
+ "five"
+ ],
+ [
+ 27.682291,
+ "times"
+ ],
+ [
+ 28.007833,
+ "four"
+ ],
+ [
+ 28.880208,
+ "In"
+ ],
+ [
+ 29.010416,
+ "general"
+ ],
+ [
+ 30.013041,
+ "n"
+ ],
+ [
+ 30.15625,
+ "factorial"
+ ],
+ [
+ 30.9375,
+ "over"
+ ],
+ [
+ 31.09375,
+ "the"
+ ],
+ [
+ 31.197916,
+ "quantity"
+ ],
+ [
+ 31.783875,
+ "n"
+ ],
+ [
+ 31.966166,
+ "minus"
+ ],
+ [
+ 32.395833,
+ "r"
+ ],
+ [
+ 32.96875,
+ "factorial"
+ ]
+ ],
+ "marks": {
+ "club": 3.281,
+ "s": 9.219,
+ "name": 14.31,
+ "form": 19.18,
+ "cancel": 23.438,
+ "left": 26.289,
+ "gen": 28.88
+ },
+ "cues": [
+ [
+ 0.104,
+ "Sometimes you arrange only some of the items."
+ ],
+ [
+ 3.281,
+ "A club has six members and needs a president, a vice president, and a secretary."
+ ],
+ [
+ 9.219,
+ "That's six choices, then five, then four: one hundred twenty."
+ ],
+ [
+ 14.31,
+ "This is called the number of permutations of six things taken three at a time."
+ ],
+ [
+ 19.18,
+ "As a formula, it's six factorial over three factorial."
+ ],
+ [
+ 23.438,
+ "The three times two times one cancels, leaving six times five times four."
+ ],
+ [
+ 28.88,
+ "In general, n factorial over the quantity n minus r, factorial."
+ ]
+ ]
+ },
+ "qp": {
+ "key": "e87254ef14896e4b04af16447174130400f2e073",
+ "dur": 3.024,
+ "words": [
+ [
+ 0.091166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.145833,
+ "Arrange"
+ ],
+ [
+ 1.666666,
+ "some"
+ ],
+ [
+ 1.862,
+ "of"
+ ],
+ [
+ 1.927083,
+ "the"
+ ],
+ [
+ 2.01825,
+ "items"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.146,
+ "Arrange some of the items."
+ ]
+ ]
+ },
+ "comb": {
+ "key": "bd0d370205c313edebf52a5b9440668d8b1fd0af",
+ "dur": 19.44,
+ "words": [
+ [
+ 0.104166,
+ "Now"
+ ],
+ [
+ 0.651041,
+ "let"
+ ],
+ [
+ 0.78125,
+ "order"
+ ],
+ [
+ 1.015625,
+ "stop"
+ ],
+ [
+ 1.354166,
+ "mattering"
+ ],
+ [
+ 2.252625,
+ "A"
+ ],
+ [
+ 2.291666,
+ "dessert"
+ ],
+ [
+ 2.591166,
+ "plate"
+ ],
+ [
+ 3.151041,
+ "lets"
+ ],
+ [
+ 3.333333,
+ "you"
+ ],
+ [
+ 3.554708,
+ "pick"
+ ],
+ [
+ 3.828125,
+ "two"
+ ],
+ [
+ 4.322916,
+ "of"
+ ],
+ [
+ 4.414083,
+ "four"
+ ],
+ [
+ 4.661458,
+ "desserts"
+ ],
+ [
+ 5.729166,
+ "Counting"
+ ],
+ [
+ 5.963541,
+ "ordered"
+ ],
+ [
+ 6.184916,
+ "picks"
+ ],
+ [
+ 6.796875,
+ "gives"
+ ],
+ [
+ 7.03125,
+ "four"
+ ],
+ [
+ 7.356791,
+ "times"
+ ],
+ [
+ 7.786458,
+ "three"
+ ],
+ [
+ 8.567708,
+ "twelve"
+ ],
+ [
+ 9.544291,
+ "But"
+ ],
+ [
+ 9.700541,
+ "apple"
+ ],
+ [
+ 10.117208,
+ "then"
+ ],
+ [
+ 10.377625,
+ "berry"
+ ],
+ [
+ 11.184916,
+ "and"
+ ],
+ [
+ 11.328125,
+ "berry"
+ ],
+ [
+ 11.731791,
+ "then"
+ ],
+ [
+ 11.927083,
+ "apple"
+ ],
+ [
+ 12.64325,
+ "are"
+ ],
+ [
+ 12.734375,
+ "the"
+ ],
+ [
+ 12.8125,
+ "same"
+ ],
+ [
+ 13.229166,
+ "plate"
+ ],
+ [
+ 14.114583,
+ "Every"
+ ],
+ [
+ 14.348958,
+ "plate"
+ ],
+ [
+ 14.726583,
+ "was"
+ ],
+ [
+ 14.869791,
+ "counted"
+ ],
+ [
+ 15.221375,
+ "twice"
+ ],
+ [
+ 16.341166,
+ "So"
+ ],
+ [
+ 16.471375,
+ "divide"
+ ],
+ [
+ 16.822916,
+ "by"
+ ],
+ [
+ 16.992208,
+ "two"
+ ],
+ [
+ 17.916666,
+ "six"
+ ],
+ [
+ 18.190125,
+ "different"
+ ],
+ [
+ 18.463541,
+ "plates"
+ ]
+ ],
+ "marks": {
+ "menu": 2.253,
+ "ordered": 5.729,
+ "pairs": 9.544,
+ "twice": 14.115,
+ "div": 16.341
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now let order stop mattering."
+ ],
+ [
+ 2.253,
+ "A dessert plate lets you pick two of four desserts."
+ ],
+ [
+ 5.729,
+ "Counting ordered picks gives four times three, twelve."
+ ],
+ [
+ 9.544,
+ "But apple then berry, and berry then apple, are the same plate."
+ ],
+ [
+ 14.115,
+ "Every plate was counted twice."
+ ],
+ [
+ 16.341,
+ "So divide by two: six different plates."
+ ]
+ ]
+ },
+ "groups": {
+ "key": "24a394050cf990a667a0217c788e96922b83fa33",
+ "dur": 19.632,
+ "words": [
+ [
+ 0.104166,
+ "Why"
+ ],
+ [
+ 0.208333,
+ "divide"
+ ],
+ [
+ 0.559916,
+ "by"
+ ],
+ [
+ 0.703125,
+ "two"
+ ],
+ [
+ 1.536458,
+ "Two"
+ ],
+ [
+ 1.744791,
+ "items"
+ ],
+ [
+ 2.148458,
+ "can"
+ ],
+ [
+ 2.265625,
+ "be"
+ ],
+ [
+ 2.421875,
+ "ordered"
+ ],
+ [
+ 2.825541,
+ "in"
+ ],
+ [
+ 2.96875,
+ "two"
+ ],
+ [
+ 3.320333,
+ "factorial"
+ ],
+ [
+ 3.984375,
+ "ways"
+ ],
+ [
+ 4.947916,
+ "A"
+ ],
+ [
+ 5.0,
+ "group"
+ ],
+ [
+ 5.234375,
+ "of"
+ ],
+ [
+ 5.364583,
+ "three"
+ ],
+ [
+ 5.898458,
+ "can"
+ ],
+ [
+ 6.028666,
+ "be"
+ ],
+ [
+ 6.197916,
+ "ordered"
+ ],
+ [
+ 6.5625,
+ "in"
+ ],
+ [
+ 6.70575,
+ "three"
+ ],
+ [
+ 7.070333,
+ "factorial"
+ ],
+ [
+ 8.255208,
+ "or"
+ ],
+ [
+ 8.372416,
+ "six"
+ ],
+ [
+ 9.179708,
+ "ways"
+ ],
+ [
+ 10.182291,
+ "Every"
+ ],
+ [
+ 10.377625,
+ "group"
+ ],
+ [
+ 10.651041,
+ "shows"
+ ],
+ [
+ 11.028666,
+ "up"
+ ],
+ [
+ 11.25,
+ "that"
+ ],
+ [
+ 11.471375,
+ "many"
+ ],
+ [
+ 11.901041,
+ "times"
+ ],
+ [
+ 12.460958,
+ "in"
+ ],
+ [
+ 12.526041,
+ "the"
+ ],
+ [
+ 12.604166,
+ "permutation"
+ ],
+ [
+ 13.26825,
+ "count"
+ ],
+ [
+ 14.088541,
+ "So"
+ ],
+ [
+ 14.192708,
+ "the"
+ ],
+ [
+ 14.270833,
+ "number"
+ ],
+ [
+ 14.51825,
+ "of"
+ ],
+ [
+ 14.596375,
+ "combinations"
+ ],
+ [
+ 15.703125,
+ "is"
+ ],
+ [
+ 15.833333,
+ "the"
+ ],
+ [
+ 15.9245,
+ "number"
+ ],
+ [
+ 16.341166,
+ "of"
+ ],
+ [
+ 16.432291,
+ "permutations"
+ ],
+ [
+ 17.565125,
+ "divided"
+ ],
+ [
+ 18.112,
+ "by"
+ ],
+ [
+ 18.307291,
+ "r"
+ ],
+ [
+ 18.4245,
+ "factorial"
+ ]
+ ],
+ "marks": {
+ "pick": 1.536,
+ "three": 4.948,
+ "each": 10.182,
+ "rule": 14.089
+ },
+ "cues": [
+ [
+ 0.104,
+ "Why divide by two?"
+ ],
+ [
+ 1.536,
+ "Two items can be ordered in two factorial ways."
+ ],
+ [
+ 4.948,
+ "A group of three can be ordered in three factorial, or six, ways."
+ ],
+ [
+ 10.182,
+ "Every group shows up that many times in the permutation count."
+ ],
+ [
+ 14.089,
+ "So the number of combinations is the number of permutations divided by r factorial."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "d17f9a988658cf8e1f622718aab9cbeae6bbcd85",
+ "dur": 2.856,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.260416,
+ "check"
+ ],
+ [
+ 1.119791,
+ "Does"
+ ],
+ [
+ 1.71875,
+ "order"
+ ],
+ [
+ 1.901041,
+ "matter"
+ ],
+ [
+ 2.161458,
+ "here"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "Does order matter here?"
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "0c3a0d67687de32c0d91cb90138887ed9c13f599",
+ "dur": 25.68,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "sum"
+ ],
+ [
+ 0.364583,
+ "up"
+ ],
+ [
+ 0.989583,
+ "Order"
+ ],
+ [
+ 1.197916,
+ "matters"
+ ],
+ [
+ 2.291666,
+ "permutations"
+ ],
+ [
+ 3.697916,
+ "Order"
+ ],
+ [
+ 3.854166,
+ "doesn't"
+ ],
+ [
+ 4.6875,
+ "combinations"
+ ],
+ [
+ 6.067708,
+ "With"
+ ],
+ [
+ 6.184916,
+ "repetition"
+ ],
+ [
+ 7.356791,
+ "n"
+ ],
+ [
+ 7.526041,
+ "choices"
+ ],
+ [
+ 8.059916,
+ "r"
+ ],
+ [
+ 8.229166,
+ "times"
+ ],
+ [
+ 8.776041,
+ "gives"
+ ],
+ [
+ 9.166666,
+ "n"
+ ],
+ [
+ 9.335958,
+ "to"
+ ],
+ [
+ 9.453125,
+ "the"
+ ],
+ [
+ 9.596375,
+ "r"
+ ],
+ [
+ 10.429708,
+ "Without"
+ ],
+ [
+ 10.755208,
+ "repetition"
+ ],
+ [
+ 11.809916,
+ "the"
+ ],
+ [
+ 11.901041,
+ "permutations"
+ ],
+ [
+ 12.747416,
+ "of"
+ ],
+ [
+ 12.994791,
+ "n"
+ ],
+ [
+ 13.216166,
+ "things"
+ ],
+ [
+ 13.567708,
+ "taken"
+ ],
+ [
+ 13.90625,
+ "r"
+ ],
+ [
+ 14.036458,
+ "at"
+ ],
+ [
+ 14.114583,
+ "a"
+ ],
+ [
+ 14.153666,
+ "time"
+ ],
+ [
+ 15.065125,
+ "are"
+ ],
+ [
+ 15.351583,
+ "n"
+ ],
+ [
+ 15.546875,
+ "factorial"
+ ],
+ [
+ 16.380208,
+ "over"
+ ],
+ [
+ 16.822916,
+ "n"
+ ],
+ [
+ 16.992208,
+ "minus"
+ ],
+ [
+ 17.64325,
+ "r"
+ ],
+ [
+ 17.851583,
+ "factorial"
+ ],
+ [
+ 19.075541,
+ "Combinations"
+ ],
+ [
+ 19.83075,
+ "are"
+ ],
+ [
+ 20.078125,
+ "those"
+ ],
+ [
+ 20.403666,
+ "permutations"
+ ],
+ [
+ 21.367208,
+ "divided"
+ ],
+ [
+ 21.914083,
+ "by"
+ ],
+ [
+ 22.096375,
+ "r"
+ ],
+ [
+ 22.200541,
+ "factorial"
+ ],
+ [
+ 23.502625,
+ "Now"
+ ],
+ [
+ 23.880208,
+ "try"
+ ],
+ [
+ 24.075541,
+ "the"
+ ],
+ [
+ 24.166666,
+ "chapter"
+ ],
+ [
+ 24.596375,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 0.99,
+ "w2": 6.068,
+ "w3": 10.43,
+ "w4": 19.076,
+ "end": 23.503
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.99,
+ "Order matters: permutations."
+ ],
+ [
+ 3.698,
+ "Order doesn't: combinations."
+ ],
+ [
+ 6.068,
+ "With repetition, n choices r times gives n to the r."
+ ],
+ [
+ 10.43,
+ "Without repetition, the permutations of n things taken r at a time are n factorial over n minus r factorial."
+ ],
+ [
+ 19.076,
+ "Combinations are those permutations divided by r factorial."
+ ],
+ [
+ 23.503,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "d219c788d057abf83b280caba71ed7d85f097b72",
+ "dur": 3.024,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.403666,
+ "practice"
+ ],
+ [
+ 1.523458,
+ "Does"
+ ],
+ [
+ 2.096375,
+ "order"
+ ],
+ [
+ 2.304708,
+ "matter"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.523,
+ "Does order matter?"
+ ]
+ ]
+ },
+ "final2": {
+ "key": "6e0807a371c7c7cc2db2027cecd33fb1f28c3b50",
+ "dur": 2.496,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.807291,
+ "count"
+ ],
+ [
+ 1.067708,
+ "the"
+ ],
+ [
+ 1.145833,
+ "permutations"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, count the permutations."
+ ]
+ ]
+ },
+ "final3": {
+ "key": "5e71c772e29a58b0b817d5dd8d2b6698f38e5fff",
+ "dur": 2.688,
+ "words": [
+ [
+ 0.104166,
+ "Last"
+ ],
+ [
+ 0.390625,
+ "one"
+ ],
+ [
+ 1.119791,
+ "Count"
+ ],
+ [
+ 1.328125,
+ "the"
+ ],
+ [
+ 1.39325,
+ "combinations"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.12,
+ "Count the combinations."
+ ]
+ ]
+ },
+ "finish": {
+ "key": "81ac8e5b2fa0d096505b64385e9bd5098f911f06",
+ "dur": 4.824,
+ "words": [
+ [
+ 0.091166,
+ "Excellent"
+ ],
+ [
+ 1.054708,
+ "That's"
+ ],
+ [
+ 1.223958,
+ "the"
+ ],
+ [
+ 1.39325,
+ "end"
+ ],
+ [
+ 1.627625,
+ "of"
+ ],
+ [
+ 1.71875,
+ "chapter"
+ ],
+ [
+ 2.239583,
+ "forty-four"
+ ],
+ [
+ 3.528666,
+ "and"
+ ],
+ [
+ 3.606791,
+ "of"
+ ],
+ [
+ 3.697916,
+ "unit"
+ ],
+ [
+ 3.997416,
+ "seven"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Excellent."
+ ],
+ [
+ 1.055,
+ "That's the end of chapter forty-four, and of unit seven."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch45/narration.en.json b/content/ch45/narration.en.json
new file mode 100644
index 0000000..822e78c
--- /dev/null
+++ b/content/ch45/narration.en.json
@@ -0,0 +1,19 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Unit eight, chapter forty-five. [[sub]]A function is a rule that gives exactly one output for each input.",
+ "relation": "A relation is a set of ordered pairs: each pair matches an input with an output. [[pairs]]Here's a relation with four pairs. [[dom]]The set of all inputs, the x-values, is the domain: negative two, zero, one, and four. [[ran]]The set of all outputs, the y-values, is the range: one, three, and six. Three appears twice, but a set lists it once. [[map]]A mapping diagram draws an arrow from each input to its output.",
+ "function": "A function is a special relation: [[one]]every input has exactly one output. [[check]]In this diagram, each input sends out a single arrow, so the relation is a function. [[share]]Two inputs may share an output. Zero and one both go to three, and that's fine. [[bad]]Now look at this relation. [[split]]The input three goes to both one and five. One input, two outputs: [[not]]this relation is not a function.",
+ "q1": "Quick check. Find the relation that is not a function.",
+ "forms": "In a function, the output depends on the input. [[vars]]The input x is the independent variable, and the output y is the dependent variable. [[rule]]Take the rule: y is twice x. [[table]]You can show it as a table, [[graph]]or as points on a graph. [[same]]Words, table, diagram, or graph: they're four views of the same function.",
+ "vlt": "On a graph, the vertical line test checks for a function. [[pts]]Plot the relation. [[sweep]]Slide a vertical line across the plane. [[pass]]If it never touches more than one point at a time, every x has only one y: the relation is a function. [[other]]Try a second relation. [[hit]]At x equals negative five, the line touches two points. [[fail]]Two y-values for one x: it fails the test, so it's not a function.",
+ "curves": "The test works on curves too. [[para]]This U-shaped curve passes: any vertical line crosses it once. [[circ]]A circle fails: most vertical lines cross it twice. [[side]]A U turned on its side fails too. [[rule]]If any vertical line crosses the graph more than once, it's not a function.",
+ "q2": "Quick check. Use the vertical line test.",
+ "wrap": "To sum up. [[w1]]A relation is a set of ordered pairs; its inputs form the domain and its outputs form the range. [[w2]]In a function, each input has exactly one output. Outputs may repeat; inputs may not. [[w3]]On a graph, use the vertical line test. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Is each relation a function?",
+ "final2": "Next, list the domain and the range.",
+ "final3": "Last one. Does each graph show a function?",
+ "finish": "Great job. That's the end of chapter forty-five, relations and functions."
+ }
+}
diff --git a/content/ch45/narration.en.timings.json b/content/ch45/narration.en.timings.json
new file mode 100644
index 0000000..ceba2bf
--- /dev/null
+++ b/content/ch45/narration.en.timings.json
@@ -0,0 +1,2080 @@
+{
+ "intro": {
+ "key": "c9420309b355a6d45a670cd01ff0dc979c48d578",
+ "dur": 7.296,
+ "words": [
+ [
+ 0.104166,
+ "Unit"
+ ],
+ [
+ 0.377625,
+ "eight"
+ ],
+ [
+ 0.976583,
+ "chapter"
+ ],
+ [
+ 1.523458,
+ "forty-five"
+ ],
+ [
+ 2.916666,
+ "A"
+ ],
+ [
+ 2.96875,
+ "function"
+ ],
+ [
+ 3.398458,
+ "is"
+ ],
+ [
+ 3.528666,
+ "a"
+ ],
+ [
+ 3.567708,
+ "rule"
+ ],
+ [
+ 3.945333,
+ "that"
+ ],
+ [
+ 4.0625,
+ "gives"
+ ],
+ [
+ 4.257833,
+ "exactly"
+ ],
+ [
+ 4.869791,
+ "one"
+ ],
+ [
+ 5.208333,
+ "output"
+ ],
+ [
+ 5.794291,
+ "for"
+ ],
+ [
+ 6.171875,
+ "each"
+ ],
+ [
+ 6.458333,
+ "input"
+ ]
+ ],
+ "marks": {
+ "sub": 2.917
+ },
+ "cues": [
+ [
+ 0.104,
+ "Unit eight, chapter forty-five."
+ ],
+ [
+ 2.917,
+ "A function is a rule that gives exactly one output for each input."
+ ]
+ ]
+ },
+ "relation": {
+ "key": "4ac4ce4d9e87fac01b91db2a95ff13d5e9dc8880",
+ "dur": 30.216,
+ "words": [
+ [
+ 0.078125,
+ "A"
+ ],
+ [
+ 0.130208,
+ "relation"
+ ],
+ [
+ 0.690125,
+ "is"
+ ],
+ [
+ 0.820333,
+ "a"
+ ],
+ [
+ 0.872416,
+ "set"
+ ],
+ [
+ 1.380208,
+ "of"
+ ],
+ [
+ 1.666666,
+ "ordered"
+ ],
+ [
+ 1.992208,
+ "pairs"
+ ],
+ [
+ 3.085958,
+ "each"
+ ],
+ [
+ 3.294291,
+ "pair"
+ ],
+ [
+ 3.958333,
+ "matches"
+ ],
+ [
+ 4.427083,
+ "an"
+ ],
+ [
+ 4.53125,
+ "input"
+ ],
+ [
+ 5.039083,
+ "with"
+ ],
+ [
+ 5.195333,
+ "an"
+ ],
+ [
+ 5.286458,
+ "output"
+ ],
+ [
+ 6.210958,
+ "Here's"
+ ],
+ [
+ 6.39325,
+ "a"
+ ],
+ [
+ 6.445333,
+ "relation"
+ ],
+ [
+ 7.109375,
+ "with"
+ ],
+ [
+ 7.252625,
+ "four"
+ ],
+ [
+ 7.604166,
+ "pairs"
+ ],
+ [
+ 8.606791,
+ "The"
+ ],
+ [
+ 8.671875,
+ "set"
+ ],
+ [
+ 8.867208,
+ "of"
+ ],
+ [
+ 8.997416,
+ "all"
+ ],
+ [
+ 9.21875,
+ "inputs"
+ ],
+ [
+ 10.0,
+ "the"
+ ],
+ [
+ 10.182291,
+ "x-values"
+ ],
+ [
+ 11.223958,
+ "is"
+ ],
+ [
+ 11.328125,
+ "the"
+ ],
+ [
+ 11.432291,
+ "domain"
+ ],
+ [
+ 12.473958,
+ "negative"
+ ],
+ [
+ 12.890625,
+ "two"
+ ],
+ [
+ 13.58075,
+ "zero"
+ ],
+ [
+ 14.440125,
+ "one"
+ ],
+ [
+ 14.713541,
+ "and"
+ ],
+ [
+ 14.791666,
+ "four"
+ ],
+ [
+ 15.703125,
+ "The"
+ ],
+ [
+ 15.76825,
+ "set"
+ ],
+ [
+ 15.911458,
+ "of"
+ ],
+ [
+ 16.002625,
+ "all"
+ ],
+ [
+ 16.237,
+ "outputs"
+ ],
+ [
+ 17.1875,
+ "the"
+ ],
+ [
+ 17.317708,
+ "y-values"
+ ],
+ [
+ 18.450541,
+ "is"
+ ],
+ [
+ 18.554708,
+ "the"
+ ],
+ [
+ 18.632833,
+ "range"
+ ],
+ [
+ 19.570333,
+ "one"
+ ],
+ [
+ 20.234375,
+ "three"
+ ],
+ [
+ 21.158875,
+ "and"
+ ],
+ [
+ 21.302083,
+ "six"
+ ],
+ [
+ 22.408875,
+ "Three"
+ ],
+ [
+ 22.565125,
+ "appears"
+ ],
+ [
+ 22.981791,
+ "twice"
+ ],
+ [
+ 23.958333,
+ "but"
+ ],
+ [
+ 24.0625,
+ "a"
+ ],
+ [
+ 24.101583,
+ "set"
+ ],
+ [
+ 24.440125,
+ "lists"
+ ],
+ [
+ 24.700541,
+ "it"
+ ],
+ [
+ 24.778666,
+ "once"
+ ],
+ [
+ 25.690125,
+ "A"
+ ],
+ [
+ 25.755208,
+ "mapping"
+ ],
+ [
+ 26.145833,
+ "diagram"
+ ],
+ [
+ 26.809916,
+ "draws"
+ ],
+ [
+ 27.226583,
+ "an"
+ ],
+ [
+ 27.356791,
+ "arrow"
+ ],
+ [
+ 27.773458,
+ "from"
+ ],
+ [
+ 28.190125,
+ "each"
+ ],
+ [
+ 28.515625,
+ "input"
+ ],
+ [
+ 29.036458,
+ "to"
+ ],
+ [
+ 29.179708,
+ "its"
+ ],
+ [
+ 29.309916,
+ "output"
+ ]
+ ],
+ "marks": {
+ "pairs": 6.211,
+ "dom": 8.607,
+ "ran": 15.703,
+ "map": 25.69
+ },
+ "cues": [
+ [
+ 0.078,
+ "A relation is a set of ordered pairs: each pair matches an input with an output."
+ ],
+ [
+ 6.211,
+ "Here's a relation with four pairs."
+ ],
+ [
+ 8.607,
+ "The set of all inputs, the x-values, is the domain: negative two, zero, one, and four."
+ ],
+ [
+ 15.703,
+ "The set of all outputs, the y-values, is the range: one, three, and six."
+ ],
+ [
+ 22.409,
+ "Three appears twice, but a set lists it once."
+ ],
+ [
+ 25.69,
+ "A mapping diagram draws an arrow from each input to its output."
+ ]
+ ]
+ },
+ "function": {
+ "key": "05fb65889a10ad73ec52b72357b8aa171cf5faa8",
+ "dur": 27.6,
+ "words": [
+ [
+ 0.104166,
+ "A"
+ ],
+ [
+ 0.169291,
+ "function"
+ ],
+ [
+ 0.807291,
+ "is"
+ ],
+ [
+ 0.911458,
+ "a"
+ ],
+ [
+ 0.976583,
+ "special"
+ ],
+ [
+ 1.588541,
+ "relation"
+ ],
+ [
+ 2.630208,
+ "every"
+ ],
+ [
+ 2.994791,
+ "input"
+ ],
+ [
+ 3.398458,
+ "has"
+ ],
+ [
+ 3.567708,
+ "exactly"
+ ],
+ [
+ 4.231791,
+ "one"
+ ],
+ [
+ 4.492208,
+ "output"
+ ],
+ [
+ 5.45575,
+ "In"
+ ],
+ [
+ 5.559916,
+ "this"
+ ],
+ [
+ 5.742208,
+ "diagram"
+ ],
+ [
+ 6.835958,
+ "each"
+ ],
+ [
+ 7.057291,
+ "input"
+ ],
+ [
+ 7.5,
+ "sends"
+ ],
+ [
+ 7.877625,
+ "out"
+ ],
+ [
+ 8.190125,
+ "a"
+ ],
+ [
+ 8.229166,
+ "single"
+ ],
+ [
+ 8.723958,
+ "arrow"
+ ],
+ [
+ 9.622416,
+ "so"
+ ],
+ [
+ 9.726583,
+ "the"
+ ],
+ [
+ 9.804708,
+ "relation"
+ ],
+ [
+ 10.559916,
+ "is"
+ ],
+ [
+ 10.677083,
+ "a"
+ ],
+ [
+ 10.729166,
+ "function"
+ ],
+ [
+ 11.744791,
+ "Two"
+ ],
+ [
+ 11.927083,
+ "inputs"
+ ],
+ [
+ 12.64325,
+ "may"
+ ],
+ [
+ 12.838541,
+ "share"
+ ],
+ [
+ 13.177083,
+ "an"
+ ],
+ [
+ 13.242208,
+ "output"
+ ],
+ [
+ 14.166666,
+ "Zero"
+ ],
+ [
+ 14.908875,
+ "and"
+ ],
+ [
+ 15.2995,
+ "one"
+ ],
+ [
+ 15.677083,
+ "both"
+ ],
+ [
+ 15.9375,
+ "go"
+ ],
+ [
+ 16.067708,
+ "to"
+ ],
+ [
+ 16.132833,
+ "three"
+ ],
+ [
+ 17.005208,
+ "and"
+ ],
+ [
+ 17.109375,
+ "that's"
+ ],
+ [
+ 17.317708,
+ "fine"
+ ],
+ [
+ 18.177083,
+ "Now"
+ ],
+ [
+ 18.619791,
+ "look"
+ ],
+ [
+ 18.776041,
+ "at"
+ ],
+ [
+ 18.841166,
+ "this"
+ ],
+ [
+ 18.997416,
+ "relation"
+ ],
+ [
+ 19.960958,
+ "The"
+ ],
+ [
+ 20.026041,
+ "input"
+ ],
+ [
+ 20.46875,
+ "three"
+ ],
+ [
+ 20.976583,
+ "goes"
+ ],
+ [
+ 21.315125,
+ "to"
+ ],
+ [
+ 21.419291,
+ "both"
+ ],
+ [
+ 21.770833,
+ "one"
+ ],
+ [
+ 21.992208,
+ "and"
+ ],
+ [
+ 22.083333,
+ "five"
+ ],
+ [
+ 23.125,
+ "One"
+ ],
+ [
+ 23.333333,
+ "input"
+ ],
+ [
+ 24.088541,
+ "two"
+ ],
+ [
+ 24.492208,
+ "outputs"
+ ],
+ [
+ 25.546875,
+ "this"
+ ],
+ [
+ 25.755208,
+ "relation"
+ ],
+ [
+ 26.302083,
+ "is"
+ ],
+ [
+ 26.419291,
+ "not"
+ ],
+ [
+ 26.653666,
+ "a"
+ ],
+ [
+ 26.679708,
+ "function"
+ ]
+ ],
+ "marks": {
+ "one": 2.63,
+ "check": 5.456,
+ "share": 11.745,
+ "bad": 18.177,
+ "split": 19.961,
+ "not": 25.547
+ },
+ "cues": [
+ [
+ 0.104,
+ "A function is a special relation: every input has exactly one output."
+ ],
+ [
+ 5.456,
+ "In this diagram, each input sends out a single arrow, so the relation is a function."
+ ],
+ [
+ 11.745,
+ "Two inputs may share an output."
+ ],
+ [
+ 14.167,
+ "Zero and one both go to three, and that's fine."
+ ],
+ [
+ 18.177,
+ "Now look at this relation."
+ ],
+ [
+ 19.961,
+ "The input three goes to both one and five."
+ ],
+ [
+ 23.125,
+ "One input, two outputs: this relation is not a function."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "6c71b3bcd7f88c528603f00749e1638f789a1977",
+ "dur": 3.696,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.260416,
+ "check"
+ ],
+ [
+ 1.171875,
+ "Find"
+ ],
+ [
+ 1.367208,
+ "the"
+ ],
+ [
+ 1.432291,
+ "relation"
+ ],
+ [
+ 2.1875,
+ "that"
+ ],
+ [
+ 2.317708,
+ "is"
+ ],
+ [
+ 2.421875,
+ "not"
+ ],
+ [
+ 2.695333,
+ "a"
+ ],
+ [
+ 2.721375,
+ "function"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.172,
+ "Find the relation that is not a function."
+ ]
+ ]
+ },
+ "forms": {
+ "key": "7472e333d9835da2fe83d9eebad43129ed4291b7",
+ "dur": 21.48,
+ "words": [
+ [
+ 0.078125,
+ "In"
+ ],
+ [
+ 0.14325,
+ "a"
+ ],
+ [
+ 0.182291,
+ "function"
+ ],
+ [
+ 1.002625,
+ "the"
+ ],
+ [
+ 1.119791,
+ "output"
+ ],
+ [
+ 1.627625,
+ "depends"
+ ],
+ [
+ 2.083333,
+ "on"
+ ],
+ [
+ 2.1875,
+ "the"
+ ],
+ [
+ 2.239583,
+ "input"
+ ],
+ [
+ 3.203125,
+ "The"
+ ],
+ [
+ 3.320333,
+ "input"
+ ],
+ [
+ 3.723958,
+ "x"
+ ],
+ [
+ 4.322916,
+ "is"
+ ],
+ [
+ 4.440125,
+ "the"
+ ],
+ [
+ 4.544291,
+ "independent"
+ ],
+ [
+ 5.065125,
+ "variable"
+ ],
+ [
+ 6.132833,
+ "and"
+ ],
+ [
+ 6.184916,
+ "the"
+ ],
+ [
+ 6.354166,
+ "output"
+ ],
+ [
+ 6.848958,
+ "y"
+ ],
+ [
+ 7.539083,
+ "is"
+ ],
+ [
+ 7.682291,
+ "the"
+ ],
+ [
+ 7.760416,
+ "dependent"
+ ],
+ [
+ 8.151041,
+ "variable"
+ ],
+ [
+ 9.114583,
+ "Take"
+ ],
+ [
+ 9.257833,
+ "the"
+ ],
+ [
+ 9.322916,
+ "rule"
+ ],
+ [
+ 10.15625,
+ "y"
+ ],
+ [
+ 10.364583,
+ "is"
+ ],
+ [
+ 10.507833,
+ "twice"
+ ],
+ [
+ 10.9375,
+ "x"
+ ],
+ [
+ 11.796875,
+ "You"
+ ],
+ [
+ 11.875,
+ "can"
+ ],
+ [
+ 11.979166,
+ "show"
+ ],
+ [
+ 12.265625,
+ "it"
+ ],
+ [
+ 12.395833,
+ "as"
+ ],
+ [
+ 12.526041,
+ "a"
+ ],
+ [
+ 12.591166,
+ "table"
+ ],
+ [
+ 13.619791,
+ "or"
+ ],
+ [
+ 13.776041,
+ "as"
+ ],
+ [
+ 13.90625,
+ "points"
+ ],
+ [
+ 14.309916,
+ "on"
+ ],
+ [
+ 14.401041,
+ "a"
+ ],
+ [
+ 14.440125,
+ "graph"
+ ],
+ [
+ 15.442708,
+ "Words"
+ ],
+ [
+ 16.223958,
+ "table"
+ ],
+ [
+ 17.005208,
+ "diagram"
+ ],
+ [
+ 18.112,
+ "or"
+ ],
+ [
+ 18.203125,
+ "graph"
+ ],
+ [
+ 19.192708,
+ "they're"
+ ],
+ [
+ 19.335958,
+ "four"
+ ],
+ [
+ 19.752625,
+ "views"
+ ],
+ [
+ 20.182291,
+ "of"
+ ],
+ [
+ 20.234375,
+ "the"
+ ],
+ [
+ 20.3125,
+ "same"
+ ],
+ [
+ 20.625,
+ "function"
+ ]
+ ],
+ "marks": {
+ "vars": 3.203,
+ "rule": 9.115,
+ "table": 11.797,
+ "graph": 13.62,
+ "same": 15.443
+ },
+ "cues": [
+ [
+ 0.078,
+ "In a function, the output depends on the input."
+ ],
+ [
+ 3.203,
+ "The input x is the independent variable, and the output y is the dependent variable."
+ ],
+ [
+ 9.115,
+ "Take the rule: y is twice x."
+ ],
+ [
+ 11.797,
+ "You can show it as a table, or as points on a graph."
+ ],
+ [
+ 15.443,
+ "Words, table, diagram, or graph: they're four views of the same function."
+ ]
+ ]
+ },
+ "vlt": {
+ "key": "30be791b5bb4a55c325371bc8b9736454797c809",
+ "dur": 26.4,
+ "words": [
+ [
+ 0.091166,
+ "On"
+ ],
+ [
+ 0.195333,
+ "a"
+ ],
+ [
+ 0.247416,
+ "graph"
+ ],
+ [
+ 1.171875,
+ "the"
+ ],
+ [
+ 1.276041,
+ "vertical"
+ ],
+ [
+ 1.71875,
+ "line"
+ ],
+ [
+ 1.992208,
+ "test"
+ ],
+ [
+ 2.317708,
+ "checks"
+ ],
+ [
+ 2.760416,
+ "for"
+ ],
+ [
+ 2.903666,
+ "a"
+ ],
+ [
+ 2.942708,
+ "function"
+ ],
+ [
+ 3.854166,
+ "Plot"
+ ],
+ [
+ 4.075541,
+ "the"
+ ],
+ [
+ 4.166666,
+ "relation"
+ ],
+ [
+ 5.117208,
+ "Slide"
+ ],
+ [
+ 5.533875,
+ "a"
+ ],
+ [
+ 5.572916,
+ "vertical"
+ ],
+ [
+ 6.171875,
+ "line"
+ ],
+ [
+ 6.796875,
+ "across"
+ ],
+ [
+ 7.200541,
+ "the"
+ ],
+ [
+ 7.278666,
+ "plane"
+ ],
+ [
+ 8.085958,
+ "If"
+ ],
+ [
+ 8.203125,
+ "it"
+ ],
+ [
+ 8.28125,
+ "never"
+ ],
+ [
+ 8.554708,
+ "touches"
+ ],
+ [
+ 8.997416,
+ "more"
+ ],
+ [
+ 9.375,
+ "than"
+ ],
+ [
+ 9.570333,
+ "one"
+ ],
+ [
+ 9.869791,
+ "point"
+ ],
+ [
+ 10.195333,
+ "at"
+ ],
+ [
+ 10.260416,
+ "a"
+ ],
+ [
+ 10.3125,
+ "time"
+ ],
+ [
+ 11.171875,
+ "every"
+ ],
+ [
+ 11.484375,
+ "x"
+ ],
+ [
+ 11.809916,
+ "has"
+ ],
+ [
+ 12.109375,
+ "only"
+ ],
+ [
+ 12.408875,
+ "one"
+ ],
+ [
+ 12.721375,
+ "y"
+ ],
+ [
+ 13.763041,
+ "the"
+ ],
+ [
+ 13.841166,
+ "relation"
+ ],
+ [
+ 14.51825,
+ "is"
+ ],
+ [
+ 14.648458,
+ "a"
+ ],
+ [
+ 14.6875,
+ "function"
+ ],
+ [
+ 15.651041,
+ "Try"
+ ],
+ [
+ 15.833333,
+ "a"
+ ],
+ [
+ 15.885416,
+ "second"
+ ],
+ [
+ 16.263041,
+ "relation"
+ ],
+ [
+ 17.200541,
+ "At"
+ ],
+ [
+ 17.356791,
+ "x"
+ ],
+ [
+ 17.695333,
+ "equals"
+ ],
+ [
+ 18.112,
+ "negative"
+ ],
+ [
+ 18.671875,
+ "five"
+ ],
+ [
+ 19.479166,
+ "the"
+ ],
+ [
+ 19.609375,
+ "line"
+ ],
+ [
+ 20.013041,
+ "touches"
+ ],
+ [
+ 20.481791,
+ "two"
+ ],
+ [
+ 20.690125,
+ "points"
+ ],
+ [
+ 21.731791,
+ "Two"
+ ],
+ [
+ 21.914083,
+ "y-values"
+ ],
+ [
+ 22.669291,
+ "for"
+ ],
+ [
+ 22.825541,
+ "one"
+ ],
+ [
+ 23.112,
+ "x"
+ ],
+ [
+ 23.971375,
+ "it"
+ ],
+ [
+ 24.036458,
+ "fails"
+ ],
+ [
+ 24.401041,
+ "the"
+ ],
+ [
+ 24.492208,
+ "test"
+ ],
+ [
+ 25.169291,
+ "so"
+ ],
+ [
+ 25.286458,
+ "it's"
+ ],
+ [
+ 25.377625,
+ "not"
+ ],
+ [
+ 25.520833,
+ "a"
+ ],
+ [
+ 25.546875,
+ "function"
+ ]
+ ],
+ "marks": {
+ "pts": 3.854,
+ "sweep": 5.117,
+ "pass": 8.086,
+ "other": 15.651,
+ "hit": 17.201,
+ "fail": 21.732
+ },
+ "cues": [
+ [
+ 0.091,
+ "On a graph, the vertical line test checks for a function."
+ ],
+ [
+ 3.854,
+ "Plot the relation."
+ ],
+ [
+ 5.117,
+ "Slide a vertical line across the plane."
+ ],
+ [
+ 8.086,
+ "If it never touches more than one point at a time, every x has only one y: the relation is a function."
+ ],
+ [
+ 15.651,
+ "Try a second relation."
+ ],
+ [
+ 17.201,
+ "At x equals negative five, the line touches two points."
+ ],
+ [
+ 21.732,
+ "Two y-values for one x: it fails the test, so it's not a function."
+ ]
+ ]
+ },
+ "curves": {
+ "key": "077deb8a3a17613afe2a3c679b0bc177fb34d3b3",
+ "dur": 18.96,
+ "words": [
+ [
+ 0.117208,
+ "The"
+ ],
+ [
+ 0.169291,
+ "test"
+ ],
+ [
+ 0.494791,
+ "works"
+ ],
+ [
+ 0.742208,
+ "on"
+ ],
+ [
+ 0.859375,
+ "curves"
+ ],
+ [
+ 1.237,
+ "too"
+ ],
+ [
+ 2.01825,
+ "This"
+ ],
+ [
+ 2.239583,
+ "U-shaped"
+ ],
+ [
+ 2.95575,
+ "curve"
+ ],
+ [
+ 3.385416,
+ "passes"
+ ],
+ [
+ 4.583333,
+ "any"
+ ],
+ [
+ 4.778666,
+ "vertical"
+ ],
+ [
+ 5.195333,
+ "line"
+ ],
+ [
+ 5.703125,
+ "crosses"
+ ],
+ [
+ 6.184916,
+ "it"
+ ],
+ [
+ 6.263041,
+ "once"
+ ],
+ [
+ 7.213541,
+ "A"
+ ],
+ [
+ 7.278666,
+ "circle"
+ ],
+ [
+ 7.669291,
+ "fails"
+ ],
+ [
+ 8.828125,
+ "most"
+ ],
+ [
+ 9.231791,
+ "vertical"
+ ],
+ [
+ 9.648458,
+ "lines"
+ ],
+ [
+ 10.130208,
+ "cross"
+ ],
+ [
+ 10.481791,
+ "it"
+ ],
+ [
+ 10.546875,
+ "twice"
+ ],
+ [
+ 11.70575,
+ "A"
+ ],
+ [
+ 11.770833,
+ "U"
+ ],
+ [
+ 11.888041,
+ "turned"
+ ],
+ [
+ 12.148458,
+ "on"
+ ],
+ [
+ 12.239583,
+ "its"
+ ],
+ [
+ 12.34375,
+ "side"
+ ],
+ [
+ 12.760416,
+ "fails"
+ ],
+ [
+ 13.164083,
+ "too"
+ ],
+ [
+ 13.958333,
+ "If"
+ ],
+ [
+ 14.21875,
+ "any"
+ ],
+ [
+ 14.401041,
+ "vertical"
+ ],
+ [
+ 14.856791,
+ "line"
+ ],
+ [
+ 15.377625,
+ "crosses"
+ ],
+ [
+ 15.872416,
+ "the"
+ ],
+ [
+ 15.950541,
+ "graph"
+ ],
+ [
+ 16.471375,
+ "more"
+ ],
+ [
+ 16.731791,
+ "than"
+ ],
+ [
+ 16.888041,
+ "once"
+ ],
+ [
+ 17.734375,
+ "it's"
+ ],
+ [
+ 17.851583,
+ "not"
+ ],
+ [
+ 18.020833,
+ "a"
+ ],
+ [
+ 18.046875,
+ "function"
+ ]
+ ],
+ "marks": {
+ "para": 2.018,
+ "circ": 7.214,
+ "side": 11.706,
+ "rule": 13.958
+ },
+ "cues": [
+ [
+ 0.117,
+ "The test works on curves too."
+ ],
+ [
+ 2.018,
+ "This U-shaped curve passes: any vertical line crosses it once."
+ ],
+ [
+ 7.214,
+ "A circle fails: most vertical lines cross it twice."
+ ],
+ [
+ 11.706,
+ "A U turned on its side fails too."
+ ],
+ [
+ 13.958,
+ "If any vertical line crosses the graph more than once, it's not a function."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "c540702e45ae5cca6f188750b3bc6e31a289439e",
+ "dur": 3.336,
+ "words": [
+ [
+ 0.091166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.106791,
+ "Use"
+ ],
+ [
+ 1.445333,
+ "the"
+ ],
+ [
+ 1.5625,
+ "vertical"
+ ],
+ [
+ 2.122416,
+ "line"
+ ],
+ [
+ 2.395833,
+ "test"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.107,
+ "Use the vertical line test."
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "aa353790d179f2e59501f660209eb54dcbbac996",
+ "dur": 20.28,
+ "words": [
+ [
+ 0.091166,
+ "To"
+ ],
+ [
+ 0.14325,
+ "sum"
+ ],
+ [
+ 0.338541,
+ "up"
+ ],
+ [
+ 0.9375,
+ "A"
+ ],
+ [
+ 0.989583,
+ "relation"
+ ],
+ [
+ 1.523458,
+ "is"
+ ],
+ [
+ 1.679708,
+ "a"
+ ],
+ [
+ 1.731791,
+ "set"
+ ],
+ [
+ 2.265625,
+ "of"
+ ],
+ [
+ 2.591166,
+ "ordered"
+ ],
+ [
+ 2.916666,
+ "pairs"
+ ],
+ [
+ 3.958333,
+ "its"
+ ],
+ [
+ 4.166666,
+ "inputs"
+ ],
+ [
+ 4.6875,
+ "form"
+ ],
+ [
+ 5.0,
+ "the"
+ ],
+ [
+ 5.104166,
+ "domain"
+ ],
+ [
+ 5.950541,
+ "and"
+ ],
+ [
+ 6.054708,
+ "its"
+ ],
+ [
+ 6.302083,
+ "outputs"
+ ],
+ [
+ 6.862,
+ "form"
+ ],
+ [
+ 7.122416,
+ "the"
+ ],
+ [
+ 7.1745,
+ "range"
+ ],
+ [
+ 8.177083,
+ "In"
+ ],
+ [
+ 8.242208,
+ "a"
+ ],
+ [
+ 8.307291,
+ "function"
+ ],
+ [
+ 9.296875,
+ "each"
+ ],
+ [
+ 9.505208,
+ "input"
+ ],
+ [
+ 9.908875,
+ "has"
+ ],
+ [
+ 10.091166,
+ "exactly"
+ ],
+ [
+ 10.742208,
+ "one"
+ ],
+ [
+ 10.989583,
+ "output"
+ ],
+ [
+ 11.927083,
+ "Outputs"
+ ],
+ [
+ 12.33075,
+ "may"
+ ],
+ [
+ 12.487,
+ "repeat"
+ ],
+ [
+ 13.4375,
+ "inputs"
+ ],
+ [
+ 13.919291,
+ "may"
+ ],
+ [
+ 14.114583,
+ "not"
+ ],
+ [
+ 14.934916,
+ "On"
+ ],
+ [
+ 15.039083,
+ "a"
+ ],
+ [
+ 15.078125,
+ "graph"
+ ],
+ [
+ 16.106791,
+ "use"
+ ],
+ [
+ 16.367208,
+ "the"
+ ],
+ [
+ 16.458333,
+ "vertical"
+ ],
+ [
+ 16.875,
+ "line"
+ ],
+ [
+ 17.161458,
+ "test"
+ ],
+ [
+ 18.085958,
+ "Now"
+ ],
+ [
+ 18.463541,
+ "try"
+ ],
+ [
+ 18.671875,
+ "the"
+ ],
+ [
+ 18.763041,
+ "chapter"
+ ],
+ [
+ 19.192708,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 0.938,
+ "w2": 8.177,
+ "w3": 14.935,
+ "end": 18.086
+ },
+ "cues": [
+ [
+ 0.091,
+ "To sum up."
+ ],
+ [
+ 0.938,
+ "A relation is a set of ordered pairs; its inputs form the domain and its outputs form the range."
+ ],
+ [
+ 8.177,
+ "In a function, each input has exactly one output."
+ ],
+ [
+ 11.927,
+ "Outputs may repeat; inputs may not."
+ ],
+ [
+ 14.935,
+ "On a graph, use the vertical line test."
+ ],
+ [
+ 18.086,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "a8b441ce660728d527106d19b77a4c88db909633",
+ "dur": 3.264,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.403666,
+ "practice"
+ ],
+ [
+ 1.497416,
+ "Is"
+ ],
+ [
+ 1.692708,
+ "each"
+ ],
+ [
+ 1.875,
+ "relation"
+ ],
+ [
+ 2.317708,
+ "a"
+ ],
+ [
+ 2.356791,
+ "function"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.497,
+ "Is each relation a function?"
+ ]
+ ]
+ },
+ "final2": {
+ "key": "89d1535181c5a575428108a74626ba87ea275aa2",
+ "dur": 3.216,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.963541,
+ "list"
+ ],
+ [
+ 1.197916,
+ "the"
+ ],
+ [
+ 1.276041,
+ "domain"
+ ],
+ [
+ 2.057291,
+ "and"
+ ],
+ [
+ 2.1745,
+ "the"
+ ],
+ [
+ 2.252625,
+ "range"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, list the domain and the range."
+ ]
+ ]
+ },
+ "final3": {
+ "key": "13e1a6c379d4cd3e6e1b6ba6da81ea4d54f52af9",
+ "dur": 3.408,
+ "words": [
+ [
+ 0.104166,
+ "Last"
+ ],
+ [
+ 0.403666,
+ "one"
+ ],
+ [
+ 1.132833,
+ "Does"
+ ],
+ [
+ 1.458333,
+ "each"
+ ],
+ [
+ 1.679708,
+ "graph"
+ ],
+ [
+ 2.148458,
+ "show"
+ ],
+ [
+ 2.460958,
+ "a"
+ ],
+ [
+ 2.5,
+ "function"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.133,
+ "Does each graph show a function?"
+ ]
+ ]
+ },
+ "finish": {
+ "key": "d6d4f6ccfba367d1792d38991390d2f52d9fe979",
+ "dur": 5.76,
+ "words": [
+ [
+ 0.104166,
+ "Great"
+ ],
+ [
+ 0.364583,
+ "job"
+ ],
+ [
+ 1.132833,
+ "That's"
+ ],
+ [
+ 1.302083,
+ "the"
+ ],
+ [
+ 1.39325,
+ "end"
+ ],
+ [
+ 1.770833,
+ "of"
+ ],
+ [
+ 1.848958,
+ "chapter"
+ ],
+ [
+ 2.513041,
+ "forty-five"
+ ],
+ [
+ 3.89325,
+ "relations"
+ ],
+ [
+ 4.544291,
+ "and"
+ ],
+ [
+ 4.648458,
+ "functions"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Great job."
+ ],
+ [
+ 1.133,
+ "That's the end of chapter forty-five, relations and functions."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch46/narration.en.json b/content/ch46/narration.en.json
new file mode 100644
index 0000000..e463e7f
--- /dev/null
+++ b/content/ch46/narration.en.json
@@ -0,0 +1,20 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter forty-six. [[sub]]Function notation is a short way to name a function and say what goes into it.",
+ "notation": "Here's a function written in function notation. [[name]]The letter f is the name of the function. [[input]]The x inside the parentheses is the input. [[rule]]The right side is the rule that turns the input into the output. [[read]]Read it as f of x. [[warn]]It does not mean f times x. [[mach]]Think of f as a machine: [[in]]an input x goes in, [[out]]and the output, f of x, comes out. [[other]]Any letter can name a function: g of x, or h of t, work the same way.",
+ "q1": "Quick check. What does f of three mean?",
+ "eval": "Evaluating a function means finding the output for a given input. [[ask]]Find f of three. [[sub]]Replace every x in the rule with three. [[calc]]Two times three is six, [[ans]]and six minus one is five. So f of three equals five. [[mach]]In the machine, three goes in and five comes out.",
+ "graph": "Every input and output pair is a point on the graph of the function. [[pt]]f of three equals five means the point three, five is on the graph. [[more]]Other inputs give other points, [[line]]and together they draw the graph of f. [[read]]You can read values off the graph, too. Go to x equals zero, [[down]]and the graph is at negative one, so f of zero is negative one.",
+ "q2": "Quick check. Pick a point on the graph.",
+ "expr": "The input can be an expression. [[ask]]Find f of a plus two. [[sub]]Put a plus two, in parentheses, everywhere x was. [[dist]]Distribute the two: two a plus four, [[comb]]then combine like terms: two a plus three. [[ans]]So f of a plus two equals two a plus three.",
+ "solve": "Function notation can also ask the reverse question. [[ask]]For what input does f of x equal seven? [[set]]Set the rule equal to seven: two x minus one equals seven. [[add]]Add one to both sides: two x equals eight. [[div]]Divide by two: x equals four. [[chk]]Check: f of four is eight minus one, which is seven. [[graph]]On the graph, the height seven meets the line right above x equals four.",
+ "q3": "Quick check. Find the input.",
+ "wrap": "To sum up. [[w1]]f of x names the output of the function f for the input x. It's not multiplication. [[w2]]To evaluate, replace every x with the input and calculate. [[w3]]Each pair, x and f of x, is a point on the graph. [[w4]]To find an input, set the rule equal to the output and solve. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Evaluate each function.",
+ "final2": "Next, find each input.",
+ "final3": "Last one. The input is an expression.",
+ "finish": "Well done. That's the end of chapter forty-six, function notation."
+ }
+}
diff --git a/content/ch46/narration.en.timings.json b/content/ch46/narration.en.timings.json
new file mode 100644
index 0000000..14bdc88
--- /dev/null
+++ b/content/ch46/narration.en.timings.json
@@ -0,0 +1,2167 @@
+{
+ "intro": {
+ "key": "a68f95be733c3de17382b731872d31307feaecaf",
+ "dur": 6.48,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.481791,
+ "forty-six"
+ ],
+ [
+ 1.848958,
+ "Function"
+ ],
+ [
+ 2.135416,
+ "notation"
+ ],
+ [
+ 2.838541,
+ "is"
+ ],
+ [
+ 2.96875,
+ "a"
+ ],
+ [
+ 3.007833,
+ "short"
+ ],
+ [
+ 3.411458,
+ "way"
+ ],
+ [
+ 3.58075,
+ "to"
+ ],
+ [
+ 3.697916,
+ "name"
+ ],
+ [
+ 3.90625,
+ "a"
+ ],
+ [
+ 3.945333,
+ "function"
+ ],
+ [
+ 4.713541,
+ "and"
+ ],
+ [
+ 4.84375,
+ "say"
+ ],
+ [
+ 5.15625,
+ "what"
+ ],
+ [
+ 5.338541,
+ "goes"
+ ],
+ [
+ 5.612,
+ "into"
+ ],
+ [
+ 5.9245,
+ "it"
+ ]
+ ],
+ "marks": {
+ "sub": 1.849
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter forty-six."
+ ],
+ [
+ 1.849,
+ "Function notation is a short way to name a function and say what goes into it."
+ ]
+ ]
+ },
+ "notation": {
+ "key": "cd76ed35af316083e5e5ded5676bf74e1fb5985d",
+ "dur": 30.528,
+ "words": [
+ [
+ 0.117208,
+ "Here's"
+ ],
+ [
+ 0.286458,
+ "a"
+ ],
+ [
+ 0.351583,
+ "function"
+ ],
+ [
+ 1.054708,
+ "written"
+ ],
+ [
+ 1.575541,
+ "in"
+ ],
+ [
+ 1.744791,
+ "function"
+ ],
+ [
+ 2.200541,
+ "notation"
+ ],
+ [
+ 3.255208,
+ "The"
+ ],
+ [
+ 3.346375,
+ "letter"
+ ],
+ [
+ 3.776041,
+ "f"
+ ],
+ [
+ 4.296875,
+ "is"
+ ],
+ [
+ 4.414083,
+ "the"
+ ],
+ [
+ 4.505208,
+ "name"
+ ],
+ [
+ 5.091166,
+ "of"
+ ],
+ [
+ 5.15625,
+ "the"
+ ],
+ [
+ 5.234375,
+ "function"
+ ],
+ [
+ 6.171875,
+ "The"
+ ],
+ [
+ 6.276041,
+ "x"
+ ],
+ [
+ 6.536458,
+ "inside"
+ ],
+ [
+ 6.966166,
+ "the"
+ ],
+ [
+ 7.057291,
+ "parentheses"
+ ],
+ [
+ 8.216166,
+ "is"
+ ],
+ [
+ 8.320333,
+ "the"
+ ],
+ [
+ 8.4375,
+ "input"
+ ],
+ [
+ 9.427083,
+ "The"
+ ],
+ [
+ 9.492208,
+ "right"
+ ],
+ [
+ 9.6875,
+ "side"
+ ],
+ [
+ 10.195333,
+ "is"
+ ],
+ [
+ 10.325541,
+ "the"
+ ],
+ [
+ 10.429708,
+ "rule"
+ ],
+ [
+ 10.885416,
+ "that"
+ ],
+ [
+ 11.041666,
+ "turns"
+ ],
+ [
+ 11.341166,
+ "the"
+ ],
+ [
+ 11.523458,
+ "input"
+ ],
+ [
+ 12.070333,
+ "into"
+ ],
+ [
+ 12.265625,
+ "the"
+ ],
+ [
+ 12.382833,
+ "output"
+ ],
+ [
+ 13.333333,
+ "Read"
+ ],
+ [
+ 13.528666,
+ "it"
+ ],
+ [
+ 13.815125,
+ "as"
+ ],
+ [
+ 14.20575,
+ "f"
+ ],
+ [
+ 14.414083,
+ "of"
+ ],
+ [
+ 14.505208,
+ "x"
+ ],
+ [
+ 15.403666,
+ "It"
+ ],
+ [
+ 15.45575,
+ "does"
+ ],
+ [
+ 15.559916,
+ "not"
+ ],
+ [
+ 15.794291,
+ "mean"
+ ],
+ [
+ 16.145833,
+ "f"
+ ],
+ [
+ 16.315125,
+ "times"
+ ],
+ [
+ 16.770833,
+ "x"
+ ],
+ [
+ 17.8125,
+ "Think"
+ ],
+ [
+ 18.007833,
+ "of"
+ ],
+ [
+ 18.242208,
+ "f"
+ ],
+ [
+ 18.710958,
+ "as"
+ ],
+ [
+ 18.841166,
+ "a"
+ ],
+ [
+ 18.867208,
+ "machine"
+ ],
+ [
+ 19.934916,
+ "an"
+ ],
+ [
+ 20.013041,
+ "input"
+ ],
+ [
+ 20.390625,
+ "x"
+ ],
+ [
+ 20.559916,
+ "goes"
+ ],
+ [
+ 20.846375,
+ "in"
+ ],
+ [
+ 21.70575,
+ "and"
+ ],
+ [
+ 21.757833,
+ "the"
+ ],
+ [
+ 21.875,
+ "output"
+ ],
+ [
+ 22.890625,
+ "f"
+ ],
+ [
+ 23.072916,
+ "of"
+ ],
+ [
+ 23.177083,
+ "x"
+ ],
+ [
+ 23.567708,
+ "comes"
+ ],
+ [
+ 23.841166,
+ "out"
+ ],
+ [
+ 24.622416,
+ "Any"
+ ],
+ [
+ 24.804708,
+ "letter"
+ ],
+ [
+ 25.117208,
+ "can"
+ ],
+ [
+ 25.286458,
+ "name"
+ ],
+ [
+ 25.442708,
+ "a"
+ ],
+ [
+ 25.481791,
+ "function"
+ ],
+ [
+ 26.458333,
+ "g"
+ ],
+ [
+ 26.731791,
+ "of"
+ ],
+ [
+ 26.822916,
+ "x"
+ ],
+ [
+ 27.721375,
+ "or"
+ ],
+ [
+ 28.059916,
+ "h"
+ ],
+ [
+ 28.255208,
+ "of"
+ ],
+ [
+ 28.346375,
+ "t"
+ ],
+ [
+ 29.244791,
+ "work"
+ ],
+ [
+ 29.427083,
+ "the"
+ ],
+ [
+ 29.51825,
+ "same"
+ ],
+ [
+ 29.84375,
+ "way"
+ ]
+ ],
+ "marks": {
+ "name": 3.255,
+ "input": 6.172,
+ "rule": 9.427,
+ "read": 13.333,
+ "warn": 15.404,
+ "mach": 17.812,
+ "in": 19.935,
+ "out": 21.706,
+ "other": 24.622
+ },
+ "cues": [
+ [
+ 0.117,
+ "Here's a function written in function notation."
+ ],
+ [
+ 3.255,
+ "The letter f is the name of the function."
+ ],
+ [
+ 6.172,
+ "The x inside the parentheses is the input."
+ ],
+ [
+ 9.427,
+ "The right side is the rule that turns the input into the output."
+ ],
+ [
+ 13.333,
+ "Read it as f of x."
+ ],
+ [
+ 15.404,
+ "It does not mean f times x."
+ ],
+ [
+ 17.812,
+ "Think of f as a machine: an input x goes in, and the output, f of x, comes out."
+ ],
+ [
+ 24.622,
+ "Any letter can name a function: g of x, or h of t, work the same way."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "fb1d318847b57297dda99309467e16f6bf90b178",
+ "dur": 2.712,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.132833,
+ "What"
+ ],
+ [
+ 1.197916,
+ "does"
+ ],
+ [
+ 1.341166,
+ "f"
+ ],
+ [
+ 1.510416,
+ "of"
+ ],
+ [
+ 1.601583,
+ "three"
+ ],
+ [
+ 1.992208,
+ "mean"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "What does f of three mean?"
+ ]
+ ]
+ },
+ "eval": {
+ "key": "a0e1227fe3a9c0e7f46c849fe35e79e61390ca0d",
+ "dur": 19.488,
+ "words": [
+ [
+ 0.104166,
+ "Evaluating"
+ ],
+ [
+ 0.742208,
+ "a"
+ ],
+ [
+ 0.794291,
+ "function"
+ ],
+ [
+ 1.575541,
+ "means"
+ ],
+ [
+ 1.796875,
+ "finding"
+ ],
+ [
+ 2.1875,
+ "the"
+ ],
+ [
+ 2.356791,
+ "output"
+ ],
+ [
+ 3.033875,
+ "for"
+ ],
+ [
+ 3.229166,
+ "a"
+ ],
+ [
+ 3.307291,
+ "given"
+ ],
+ [
+ 3.606791,
+ "input"
+ ],
+ [
+ 4.557291,
+ "Find"
+ ],
+ [
+ 4.778666,
+ "f"
+ ],
+ [
+ 4.960958,
+ "of"
+ ],
+ [
+ 5.052083,
+ "three"
+ ],
+ [
+ 5.9375,
+ "Replace"
+ ],
+ [
+ 6.523458,
+ "every"
+ ],
+ [
+ 6.848958,
+ "x"
+ ],
+ [
+ 7.278666,
+ "in"
+ ],
+ [
+ 7.395833,
+ "the"
+ ],
+ [
+ 7.473958,
+ "rule"
+ ],
+ [
+ 7.825541,
+ "with"
+ ],
+ [
+ 7.981791,
+ "three"
+ ],
+ [
+ 8.919291,
+ "Two"
+ ],
+ [
+ 9.0625,
+ "times"
+ ],
+ [
+ 9.479166,
+ "three"
+ ],
+ [
+ 10.117208,
+ "is"
+ ],
+ [
+ 10.247416,
+ "six"
+ ],
+ [
+ 11.119791,
+ "and"
+ ],
+ [
+ 11.276041,
+ "six"
+ ],
+ [
+ 11.5495,
+ "minus"
+ ],
+ [
+ 11.914083,
+ "one"
+ ],
+ [
+ 12.135416,
+ "is"
+ ],
+ [
+ 12.239583,
+ "five"
+ ],
+ [
+ 13.151041,
+ "So"
+ ],
+ [
+ 13.411458,
+ "f"
+ ],
+ [
+ 13.632833,
+ "of"
+ ],
+ [
+ 13.723958,
+ "three"
+ ],
+ [
+ 14.414083,
+ "equals"
+ ],
+ [
+ 14.752625,
+ "five"
+ ],
+ [
+ 15.651041,
+ "In"
+ ],
+ [
+ 15.729166,
+ "the"
+ ],
+ [
+ 15.794291,
+ "machine"
+ ],
+ [
+ 16.588541,
+ "three"
+ ],
+ [
+ 16.953125,
+ "goes"
+ ],
+ [
+ 17.265625,
+ "in"
+ ],
+ [
+ 17.747416,
+ "and"
+ ],
+ [
+ 17.890625,
+ "five"
+ ],
+ [
+ 18.385416,
+ "comes"
+ ],
+ [
+ 18.75,
+ "out"
+ ]
+ ],
+ "marks": {
+ "ask": 4.557,
+ "sub": 5.938,
+ "calc": 8.919,
+ "ans": 11.12,
+ "mach": 15.651
+ },
+ "cues": [
+ [
+ 0.104,
+ "Evaluating a function means finding the output for a given input."
+ ],
+ [
+ 4.557,
+ "Find f of three."
+ ],
+ [
+ 5.938,
+ "Replace every x in the rule with three."
+ ],
+ [
+ 8.919,
+ "Two times three is six, and six minus one is five."
+ ],
+ [
+ 13.151,
+ "So f of three equals five."
+ ],
+ [
+ 15.651,
+ "In the machine, three goes in and five comes out."
+ ]
+ ]
+ },
+ "graph": {
+ "key": "7512b58e7d314f8c4ba5b3a513b49beea276cbeb",
+ "dur": 24.216,
+ "words": [
+ [
+ 0.091166,
+ "Every"
+ ],
+ [
+ 0.377625,
+ "input"
+ ],
+ [
+ 0.963541,
+ "and"
+ ],
+ [
+ 1.08075,
+ "output"
+ ],
+ [
+ 1.510416,
+ "pair"
+ ],
+ [
+ 2.135416,
+ "is"
+ ],
+ [
+ 2.239583,
+ "a"
+ ],
+ [
+ 2.291666,
+ "point"
+ ],
+ [
+ 2.695333,
+ "on"
+ ],
+ [
+ 2.786458,
+ "the"
+ ],
+ [
+ 2.864583,
+ "graph"
+ ],
+ [
+ 3.346375,
+ "of"
+ ],
+ [
+ 3.398458,
+ "the"
+ ],
+ [
+ 3.476583,
+ "function"
+ ],
+ [
+ 4.401041,
+ "f"
+ ],
+ [
+ 4.596375,
+ "of"
+ ],
+ [
+ 4.6875,
+ "three"
+ ],
+ [
+ 5.026041,
+ "equals"
+ ],
+ [
+ 5.429708,
+ "five"
+ ],
+ [
+ 6.289083,
+ "means"
+ ],
+ [
+ 6.510416,
+ "the"
+ ],
+ [
+ 6.627625,
+ "point"
+ ],
+ [
+ 6.940125,
+ "three"
+ ],
+ [
+ 7.96875,
+ "five"
+ ],
+ [
+ 8.372416,
+ "is"
+ ],
+ [
+ 8.476583,
+ "on"
+ ],
+ [
+ 8.567708,
+ "the"
+ ],
+ [
+ 8.606791,
+ "graph"
+ ],
+ [
+ 9.609375,
+ "Other"
+ ],
+ [
+ 9.83075,
+ "inputs"
+ ],
+ [
+ 10.716166,
+ "give"
+ ],
+ [
+ 11.119791,
+ "other"
+ ],
+ [
+ 11.367208,
+ "points"
+ ],
+ [
+ 12.200541,
+ "and"
+ ],
+ [
+ 12.291666,
+ "together"
+ ],
+ [
+ 12.721375,
+ "they"
+ ],
+ [
+ 12.825541,
+ "draw"
+ ],
+ [
+ 13.177083,
+ "the"
+ ],
+ [
+ 13.294291,
+ "graph"
+ ],
+ [
+ 13.75,
+ "of"
+ ],
+ [
+ 13.867208,
+ "f"
+ ],
+ [
+ 14.804708,
+ "You"
+ ],
+ [
+ 14.882833,
+ "can"
+ ],
+ [
+ 15.052083,
+ "read"
+ ],
+ [
+ 15.260416,
+ "values"
+ ],
+ [
+ 15.677083,
+ "off"
+ ],
+ [
+ 15.833333,
+ "the"
+ ],
+ [
+ 15.898458,
+ "graph"
+ ],
+ [
+ 16.354166,
+ "too"
+ ],
+ [
+ 17.148458,
+ "Go"
+ ],
+ [
+ 17.33075,
+ "to"
+ ],
+ [
+ 17.473958,
+ "x"
+ ],
+ [
+ 17.877625,
+ "equals"
+ ],
+ [
+ 18.26825,
+ "zero"
+ ],
+ [
+ 19.231791,
+ "and"
+ ],
+ [
+ 19.322916,
+ "the"
+ ],
+ [
+ 19.401041,
+ "graph"
+ ],
+ [
+ 20.195333,
+ "is"
+ ],
+ [
+ 20.325541,
+ "at"
+ ],
+ [
+ 20.403666,
+ "negative"
+ ],
+ [
+ 20.911458,
+ "one"
+ ],
+ [
+ 21.614583,
+ "so"
+ ],
+ [
+ 21.901041,
+ "f"
+ ],
+ [
+ 22.096375,
+ "of"
+ ],
+ [
+ 22.1745,
+ "zero"
+ ],
+ [
+ 22.942708,
+ "is"
+ ],
+ [
+ 23.085958,
+ "negative"
+ ],
+ [
+ 23.541666,
+ "one"
+ ]
+ ],
+ "marks": {
+ "pt": 4.401,
+ "more": 9.609,
+ "line": 12.201,
+ "read": 14.805,
+ "down": 19.232
+ },
+ "cues": [
+ [
+ 0.091,
+ "Every input and output pair is a point on the graph of the function."
+ ],
+ [
+ 4.401,
+ "f of three equals five means the point three, five is on the graph."
+ ],
+ [
+ 9.609,
+ "Other inputs give other points, and together they draw the graph of f."
+ ],
+ [
+ 14.805,
+ "You can read values off the graph, too."
+ ],
+ [
+ 17.148,
+ "Go to x equals zero, and the graph is at negative one, so f of zero is negative one."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "cf4b9b656d386aca41fca6d83a6ced779dbe7668",
+ "dur": 2.64,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.286458,
+ "check"
+ ],
+ [
+ 1.158875,
+ "Pick"
+ ],
+ [
+ 1.276041,
+ "a"
+ ],
+ [
+ 1.328125,
+ "point"
+ ],
+ [
+ 1.5625,
+ "on"
+ ],
+ [
+ 1.640625,
+ "the"
+ ],
+ [
+ 1.70575,
+ "graph"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.159,
+ "Pick a point on the graph."
+ ]
+ ]
+ },
+ "expr": {
+ "key": "1f9ff3999e52455320744d1555f1eb0ee50a6c45",
+ "dur": 17.4,
+ "words": [
+ [
+ 0.104166,
+ "The"
+ ],
+ [
+ 0.221375,
+ "input"
+ ],
+ [
+ 0.742208,
+ "can"
+ ],
+ [
+ 0.859375,
+ "be"
+ ],
+ [
+ 1.002625,
+ "an"
+ ],
+ [
+ 1.054708,
+ "expression"
+ ],
+ [
+ 2.200541,
+ "Find"
+ ],
+ [
+ 2.408875,
+ "f"
+ ],
+ [
+ 2.552083,
+ "of"
+ ],
+ [
+ 2.617208,
+ "a"
+ ],
+ [
+ 2.669291,
+ "plus"
+ ],
+ [
+ 2.994791,
+ "two"
+ ],
+ [
+ 3.737,
+ "Put"
+ ],
+ [
+ 3.841166,
+ "a"
+ ],
+ [
+ 3.90625,
+ "plus"
+ ],
+ [
+ 4.244791,
+ "two"
+ ],
+ [
+ 5.013041,
+ "in"
+ ],
+ [
+ 5.15625,
+ "parentheses"
+ ],
+ [
+ 6.08075,
+ "everywhere"
+ ],
+ [
+ 6.523458,
+ "x"
+ ],
+ [
+ 6.783875,
+ "was"
+ ],
+ [
+ 7.708333,
+ "Distribute"
+ ],
+ [
+ 8.242208,
+ "the"
+ ],
+ [
+ 8.320333,
+ "two"
+ ],
+ [
+ 9.348958,
+ "two"
+ ],
+ [
+ 9.557291,
+ "a"
+ ],
+ [
+ 9.609375,
+ "plus"
+ ],
+ [
+ 9.934916,
+ "four"
+ ],
+ [
+ 10.729166,
+ "then"
+ ],
+ [
+ 10.885416,
+ "combine"
+ ],
+ [
+ 11.39325,
+ "like"
+ ],
+ [
+ 11.588541,
+ "terms"
+ ],
+ [
+ 12.434916,
+ "two"
+ ],
+ [
+ 12.773458,
+ "a"
+ ],
+ [
+ 12.825541,
+ "plus"
+ ],
+ [
+ 13.177083,
+ "three"
+ ],
+ [
+ 14.010416,
+ "So"
+ ],
+ [
+ 14.20575,
+ "f"
+ ],
+ [
+ 14.362,
+ "of"
+ ],
+ [
+ 14.414083,
+ "a"
+ ],
+ [
+ 14.505208,
+ "plus"
+ ],
+ [
+ 14.83075,
+ "two"
+ ],
+ [
+ 15.208333,
+ "equals"
+ ],
+ [
+ 15.625,
+ "two"
+ ],
+ [
+ 16.158875,
+ "a"
+ ],
+ [
+ 16.210958,
+ "plus"
+ ],
+ [
+ 16.575541,
+ "three"
+ ]
+ ],
+ "marks": {
+ "ask": 2.201,
+ "sub": 3.737,
+ "dist": 7.708,
+ "comb": 10.729,
+ "ans": 14.01
+ },
+ "cues": [
+ [
+ 0.104,
+ "The input can be an expression."
+ ],
+ [
+ 2.201,
+ "Find f of a plus two."
+ ],
+ [
+ 3.737,
+ "Put a plus two, in parentheses, everywhere x was."
+ ],
+ [
+ 7.708,
+ "Distribute the two: two a plus four, then combine like terms: two a plus three."
+ ],
+ [
+ 14.01,
+ "So f of a plus two equals two a plus three."
+ ]
+ ]
+ },
+ "solve": {
+ "key": "eb27a533b617fe2d6f22c3a465315b1a129a7858",
+ "dur": 29.136,
+ "words": [
+ [
+ 0.14325,
+ "Function"
+ ],
+ [
+ 0.429708,
+ "notation"
+ ],
+ [
+ 1.197916,
+ "can"
+ ],
+ [
+ 1.354166,
+ "also"
+ ],
+ [
+ 1.796875,
+ "ask"
+ ],
+ [
+ 2.291666,
+ "the"
+ ],
+ [
+ 2.395833,
+ "reverse"
+ ],
+ [
+ 2.786458,
+ "question"
+ ],
+ [
+ 3.828125,
+ "For"
+ ],
+ [
+ 4.023458,
+ "what"
+ ],
+ [
+ 4.179708,
+ "input"
+ ],
+ [
+ 4.960958,
+ "does"
+ ],
+ [
+ 5.729166,
+ "f"
+ ],
+ [
+ 6.002625,
+ "of"
+ ],
+ [
+ 6.263041,
+ "x"
+ ],
+ [
+ 6.653666,
+ "equal"
+ ],
+ [
+ 6.888041,
+ "seven"
+ ],
+ [
+ 7.721375,
+ "Set"
+ ],
+ [
+ 7.890625,
+ "the"
+ ],
+ [
+ 7.96875,
+ "rule"
+ ],
+ [
+ 8.710958,
+ "equal"
+ ],
+ [
+ 9.088541,
+ "to"
+ ],
+ [
+ 9.192708,
+ "seven"
+ ],
+ [
+ 10.078125,
+ "two"
+ ],
+ [
+ 10.533875,
+ "x"
+ ],
+ [
+ 10.755208,
+ "minus"
+ ],
+ [
+ 11.210958,
+ "one"
+ ],
+ [
+ 12.01825,
+ "equals"
+ ],
+ [
+ 12.33075,
+ "seven"
+ ],
+ [
+ 13.190125,
+ "Add"
+ ],
+ [
+ 13.333333,
+ "one"
+ ],
+ [
+ 13.528666,
+ "to"
+ ],
+ [
+ 13.619791,
+ "both"
+ ],
+ [
+ 13.89325,
+ "sides"
+ ],
+ [
+ 14.726583,
+ "two"
+ ],
+ [
+ 15.078125,
+ "x"
+ ],
+ [
+ 15.481791,
+ "equals"
+ ],
+ [
+ 15.859375,
+ "eight"
+ ],
+ [
+ 16.588541,
+ "Divide"
+ ],
+ [
+ 16.966166,
+ "by"
+ ],
+ [
+ 17.096375,
+ "two"
+ ],
+ [
+ 17.617208,
+ ": x"
+ ],
+ [
+ 18.033875,
+ "equals"
+ ],
+ [
+ 18.372416,
+ "four"
+ ],
+ [
+ 19.21875,
+ "Check"
+ ],
+ [
+ 20.013041,
+ "f"
+ ],
+ [
+ 20.169291,
+ "of"
+ ],
+ [
+ 20.286458,
+ "four"
+ ],
+ [
+ 20.911458,
+ "is"
+ ],
+ [
+ 21.237,
+ "eight"
+ ],
+ [
+ 21.380208,
+ "minus"
+ ],
+ [
+ 21.770833,
+ "one"
+ ],
+ [
+ 22.539083,
+ "which"
+ ],
+ [
+ 22.682291,
+ "is"
+ ],
+ [
+ 22.8125,
+ "seven"
+ ],
+ [
+ 23.645833,
+ "On"
+ ],
+ [
+ 23.737,
+ "the"
+ ],
+ [
+ 23.789083,
+ "graph"
+ ],
+ [
+ 24.648458,
+ "the"
+ ],
+ [
+ 24.739583,
+ "height"
+ ],
+ [
+ 24.987,
+ "seven"
+ ],
+ [
+ 25.664083,
+ "meets"
+ ],
+ [
+ 25.911458,
+ "the"
+ ],
+ [
+ 26.028666,
+ "line"
+ ],
+ [
+ 26.796875,
+ "right"
+ ],
+ [
+ 27.057291,
+ "above"
+ ],
+ [
+ 27.578125,
+ "x"
+ ],
+ [
+ 27.981791,
+ "equals"
+ ],
+ [
+ 28.307291,
+ "four"
+ ]
+ ],
+ "marks": {
+ "ask": 3.828,
+ "set": 7.721,
+ "add": 13.19,
+ "div": 16.589,
+ "chk": 19.219,
+ "graph": 23.646
+ },
+ "cues": [
+ [
+ 0.143,
+ "Function notation can also ask the reverse question."
+ ],
+ [
+ 3.828,
+ "For what input does f of x equal seven?"
+ ],
+ [
+ 7.721,
+ "Set the rule equal to seven: two x minus one equals seven."
+ ],
+ [
+ 13.19,
+ "Add one to both sides: two x equals eight."
+ ],
+ [
+ 16.589,
+ "Divide by two: x equals four."
+ ],
+ [
+ 19.219,
+ "Check: f of four is eight minus one, which is seven."
+ ],
+ [
+ 23.646,
+ "On the graph, the height seven meets the line right above x equals four."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "3446931f567021cf5885b087778ce72ab840ee44",
+ "dur": 2.304,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.197916,
+ "Find"
+ ],
+ [
+ 1.380208,
+ "the"
+ ],
+ [
+ 1.432291,
+ "input"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.198,
+ "Find the input."
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "f08dcc24ffa0ba55cab1314ec75731f02a622ded",
+ "dur": 23.472,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "sum"
+ ],
+ [
+ 0.377625,
+ "up"
+ ],
+ [
+ 1.015625,
+ "f"
+ ],
+ [
+ 1.223958,
+ "of"
+ ],
+ [
+ 1.484375,
+ "x"
+ ],
+ [
+ 2.161458,
+ "names"
+ ],
+ [
+ 2.460958,
+ "the"
+ ],
+ [
+ 2.669291,
+ "output"
+ ],
+ [
+ 3.138041,
+ "of"
+ ],
+ [
+ 3.203125,
+ "the"
+ ],
+ [
+ 3.28125,
+ "function"
+ ],
+ [
+ 3.815125,
+ "f"
+ ],
+ [
+ 4.270833,
+ "for"
+ ],
+ [
+ 4.414083,
+ "the"
+ ],
+ [
+ 4.505208,
+ "input"
+ ],
+ [
+ 4.947916,
+ "x"
+ ],
+ [
+ 5.846375,
+ "It's"
+ ],
+ [
+ 5.963541,
+ "not"
+ ],
+ [
+ 6.25,
+ "multiplication"
+ ],
+ [
+ 7.65625,
+ "To"
+ ],
+ [
+ 7.786458,
+ "evaluate"
+ ],
+ [
+ 8.919291,
+ "replace"
+ ],
+ [
+ 9.51825,
+ "every"
+ ],
+ [
+ 9.856791,
+ "x"
+ ],
+ [
+ 10.221375,
+ "with"
+ ],
+ [
+ 10.325541,
+ "the"
+ ],
+ [
+ 10.494791,
+ "input"
+ ],
+ [
+ 11.119791,
+ "and"
+ ],
+ [
+ 11.223958,
+ "calculate"
+ ],
+ [
+ 12.304708,
+ "Each"
+ ],
+ [
+ 12.487,
+ "pair"
+ ],
+ [
+ 13.398458,
+ "x"
+ ],
+ [
+ 13.90625,
+ "and"
+ ],
+ [
+ 14.231791,
+ "f"
+ ],
+ [
+ 14.453125,
+ "of"
+ ],
+ [
+ 14.544291,
+ "x"
+ ],
+ [
+ 15.2995,
+ "is"
+ ],
+ [
+ 15.416666,
+ "a"
+ ],
+ [
+ 15.481791,
+ "point"
+ ],
+ [
+ 15.742208,
+ "on"
+ ],
+ [
+ 15.820333,
+ "the"
+ ],
+ [
+ 15.872416,
+ "graph"
+ ],
+ [
+ 16.848958,
+ "To"
+ ],
+ [
+ 16.901041,
+ "find"
+ ],
+ [
+ 17.148458,
+ "an"
+ ],
+ [
+ 17.200541,
+ "input"
+ ],
+ [
+ 18.033875,
+ "set"
+ ],
+ [
+ 18.242208,
+ "the"
+ ],
+ [
+ 18.320333,
+ "rule"
+ ],
+ [
+ 18.997416,
+ "equal"
+ ],
+ [
+ 19.283875,
+ "to"
+ ],
+ [
+ 19.388041,
+ "the"
+ ],
+ [
+ 19.51825,
+ "output"
+ ],
+ [
+ 20.15625,
+ "and"
+ ],
+ [
+ 20.286458,
+ "solve"
+ ],
+ [
+ 21.289083,
+ "Now"
+ ],
+ [
+ 21.70575,
+ "try"
+ ],
+ [
+ 21.901041,
+ "the"
+ ],
+ [
+ 21.992208,
+ "chapter"
+ ],
+ [
+ 22.382833,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 1.016,
+ "w2": 7.656,
+ "w3": 12.305,
+ "w4": 16.849,
+ "end": 21.289
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.016,
+ "f of x names the output of the function f for the input x."
+ ],
+ [
+ 5.846,
+ "It's not multiplication."
+ ],
+ [
+ 7.656,
+ "To evaluate, replace every x with the input and calculate."
+ ],
+ [
+ 12.305,
+ "Each pair, x and f of x, is a point on the graph."
+ ],
+ [
+ 16.849,
+ "To find an input, set the rule equal to the output and solve."
+ ],
+ [
+ 21.289,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "82cd71f8fa939ad69f9efd6f1dd9c15825cb6403",
+ "dur": 3.6,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.429708,
+ "practice"
+ ],
+ [
+ 1.523458,
+ "Evaluate"
+ ],
+ [
+ 2.434916,
+ "each"
+ ],
+ [
+ 2.64325,
+ "function"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.523,
+ "Evaluate each function."
+ ]
+ ]
+ },
+ "final2": {
+ "key": "6d2492bc84346826f20d30048f753d1f0571fc47",
+ "dur": 2.52,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.794291,
+ "find"
+ ],
+ [
+ 1.289083,
+ "each"
+ ],
+ [
+ 1.601583,
+ "input"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, find each input."
+ ]
+ ]
+ },
+ "final3": {
+ "key": "45a9682b3171bb87e761be8e6e35a8bf3a13d53f",
+ "dur": 3.072,
+ "words": [
+ [
+ 0.104166,
+ "Last"
+ ],
+ [
+ 0.377625,
+ "one"
+ ],
+ [
+ 1.119791,
+ "The"
+ ],
+ [
+ 1.197916,
+ "input"
+ ],
+ [
+ 1.835958,
+ "is"
+ ],
+ [
+ 1.940125,
+ "an"
+ ],
+ [
+ 2.005208,
+ "expression"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.12,
+ "The input is an expression."
+ ]
+ ]
+ },
+ "finish": {
+ "key": "1f1e6134e483e4a164517b48a88363adb526ceaf",
+ "dur": 5.016,
+ "words": [
+ [
+ 0.104166,
+ "Well"
+ ],
+ [
+ 0.273458,
+ "done"
+ ],
+ [
+ 1.119791,
+ "That's"
+ ],
+ [
+ 1.289083,
+ "the"
+ ],
+ [
+ 1.419291,
+ "end"
+ ],
+ [
+ 1.731791,
+ "of"
+ ],
+ [
+ 1.796875,
+ "chapter"
+ ],
+ [
+ 2.304708,
+ "forty-six"
+ ],
+ [
+ 3.58075,
+ "function"
+ ],
+ [
+ 4.010416,
+ "notation"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Well done."
+ ],
+ [
+ 1.12,
+ "That's the end of chapter forty-six, function notation."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch47/narration.en.json b/content/ch47/narration.en.json
new file mode 100644
index 0000000..b60cea4
--- /dev/null
+++ b/content/ch47/narration.en.json
@@ -0,0 +1,20 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter forty-seven. [[sub]]Not every function graphs as a straight line. Let's put functions to work.",
+ "kinds": "Compare two functions. [[lin]]y equals two x plus one. [[lsteps]]Each time x goes up by one, y goes up by the same amount, two. [[lline]]Equal steps make a straight line: this is a linear function. [[sq]]Now y equals x squared. [[qsteps]]Going up by one in x, y changes by negative three, then negative one, then one, then three. [[qcurve]]The steps change, so the graph bends: this is a nonlinear function. [[form]]A linear function can be written as y equals m x plus b. A nonlinear one can't.",
+ "table": "To graph a nonlinear function, make a table of values. [[rows]]Pick some inputs, and find each output: negative three squared is nine, negative two squared is four, and so on. [[pts]]Each row is a point. Plot them all. [[curve]]Then connect them with a smooth curve, not with straight segments. [[name]]The graph of y equals x squared is a U-shaped curve called a parabola. You'll study parabolas in unit thirteen.",
+ "q1": "Quick check. Plot a point from the table.",
+ "cubic": "Nonlinear functions come in many shapes. [[cube]]Here's y equals x cubed. [[vals]]Negative two cubed is negative eight, negative one cubed is negative one, zero, one, and eight. [[s]]The points make an S-shaped curve: [[neg]]negative inputs give negative outputs, [[steep]]and the curve grows steeper as x moves away from zero.",
+ "walk": "Graphs of functions also describe real situations. [[story]]Maya walks to a friend's house and back. The graph shows her distance from home over time. [[go]]For the first twenty minutes, the distance grows: she's walking away. [[stay]]From twenty to forty-five minutes the graph is flat. Her distance doesn't change, so she's at her friend's house. [[back]]Then the distance drops to zero in ten minutes: she heads home, faster than she came. [[read]]To read the graph, go up from a time to the line, then across to the distance. At ten minutes, she's one kilometer from home.",
+ "q2": "Quick check. Read the graph.",
+ "ball": "Here's a nonlinear situation. [[toss]]A ball is tossed straight up. Its height in meters after t seconds is twenty t minus five t squared. [[tab]]Make a table: [[curve]]the points rise, peak at twenty meters after two seconds, and fall back to the ground at four seconds. [[twice]]Notice the ball is fifteen meters high twice: once going up, at one second, and once coming down, at three seconds.",
+ "q3": "Quick check. When is the ball at its highest?",
+ "wrap": "To sum up. [[w1]]A linear function has equal steps and a straight-line graph. A nonlinear function doesn't. [[w2]]To graph any function, make a table, plot the points, and connect them smoothly. [[w3]]In a real situation, read a graph by going up from the input and across to the output. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Complete the table.",
+ "final2": "Next, linear or nonlinear?",
+ "final3": "Last one. Read the graph.",
+ "finish": "Great work. That's the end of chapter forty-seven, and of unit eight."
+ }
+}
diff --git a/content/ch47/narration.en.timings.json b/content/ch47/narration.en.timings.json
new file mode 100644
index 0000000..cadd4b0
--- /dev/null
+++ b/content/ch47/narration.en.timings.json
@@ -0,0 +1,2325 @@
+{
+ "intro": {
+ "key": "d0e437890b293eecab89fcd9e73bb69061a5879f",
+ "dur": 6.96,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.703125,
+ "forty-seven"
+ ],
+ [
+ 1.992208,
+ "Not"
+ ],
+ [
+ 2.408875,
+ "every"
+ ],
+ [
+ 2.669291,
+ "function"
+ ],
+ [
+ 3.125,
+ "graphs"
+ ],
+ [
+ 3.841166,
+ "as"
+ ],
+ [
+ 3.971375,
+ "a"
+ ],
+ [
+ 4.010416,
+ "straight"
+ ],
+ [
+ 4.388041,
+ "line"
+ ],
+ [
+ 5.169291,
+ "Let's"
+ ],
+ [
+ 5.273458,
+ "put"
+ ],
+ [
+ 5.442708,
+ "functions"
+ ],
+ [
+ 6.015625,
+ "to"
+ ],
+ [
+ 6.106791,
+ "work"
+ ]
+ ],
+ "marks": {
+ "sub": 1.992
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter forty-seven."
+ ],
+ [
+ 1.992,
+ "Not every function graphs as a straight line."
+ ],
+ [
+ 5.169,
+ "Let's put functions to work."
+ ]
+ ]
+ },
+ "kinds": {
+ "key": "89c7b7e26c47f349484f21c42205c9dbeb0b71c5",
+ "dur": 33.0,
+ "words": [
+ [
+ 0.091166,
+ "Compare"
+ ],
+ [
+ 0.507833,
+ "two"
+ ],
+ [
+ 0.846375,
+ "functions"
+ ],
+ [
+ 2.03125,
+ "y"
+ ],
+ [
+ 2.239583,
+ "equals"
+ ],
+ [
+ 2.64325,
+ "two"
+ ],
+ [
+ 2.929708,
+ "x"
+ ],
+ [
+ 3.138041,
+ "plus"
+ ],
+ [
+ 3.476583,
+ "one"
+ ],
+ [
+ 4.166666,
+ "Each"
+ ],
+ [
+ 4.322916,
+ "time"
+ ],
+ [
+ 4.817708,
+ "x"
+ ],
+ [
+ 4.960958,
+ "goes"
+ ],
+ [
+ 5.182291,
+ "up"
+ ],
+ [
+ 5.273458,
+ "by"
+ ],
+ [
+ 5.429708,
+ "one"
+ ],
+ [
+ 6.315125,
+ "y"
+ ],
+ [
+ 6.484375,
+ "goes"
+ ],
+ [
+ 6.757833,
+ "up"
+ ],
+ [
+ 6.862,
+ "by"
+ ],
+ [
+ 6.953125,
+ "the"
+ ],
+ [
+ 7.03125,
+ "same"
+ ],
+ [
+ 7.304708,
+ "amount"
+ ],
+ [
+ 7.617208,
+ "two"
+ ],
+ [
+ 8.4245,
+ "Equal"
+ ],
+ [
+ 8.658875,
+ "steps"
+ ],
+ [
+ 9.088541,
+ "make"
+ ],
+ [
+ 9.244791,
+ "a"
+ ],
+ [
+ 9.296875,
+ "straight"
+ ],
+ [
+ 9.700541,
+ "line"
+ ],
+ [
+ 10.585958,
+ "this"
+ ],
+ [
+ 10.807291,
+ "is"
+ ],
+ [
+ 10.9245,
+ "a"
+ ],
+ [
+ 10.989583,
+ "linear"
+ ],
+ [
+ 11.432291,
+ "function"
+ ],
+ [
+ 12.369791,
+ "Now"
+ ],
+ [
+ 12.604166,
+ "y"
+ ],
+ [
+ 12.95575,
+ "equals"
+ ],
+ [
+ 13.359375,
+ "x"
+ ],
+ [
+ 13.554708,
+ "squared"
+ ],
+ [
+ 14.505208,
+ "Going"
+ ],
+ [
+ 14.726583,
+ "up"
+ ],
+ [
+ 14.804708,
+ "by"
+ ],
+ [
+ 14.960958,
+ "one"
+ ],
+ [
+ 15.208333,
+ "in"
+ ],
+ [
+ 15.3125,
+ "x"
+ ],
+ [
+ 16.09375,
+ "y"
+ ],
+ [
+ 16.367208,
+ "changes"
+ ],
+ [
+ 16.809916,
+ "by"
+ ],
+ [
+ 16.914083,
+ "negative"
+ ],
+ [
+ 17.382833,
+ "three"
+ ],
+ [
+ 18.28125,
+ "then"
+ ],
+ [
+ 18.450541,
+ "negative"
+ ],
+ [
+ 18.841166,
+ "one"
+ ],
+ [
+ 19.440125,
+ "then"
+ ],
+ [
+ 19.661458,
+ "one"
+ ],
+ [
+ 20.325541,
+ "then"
+ ],
+ [
+ 20.612,
+ "three"
+ ],
+ [
+ 21.640625,
+ "The"
+ ],
+ [
+ 21.692708,
+ "steps"
+ ],
+ [
+ 21.979166,
+ "change"
+ ],
+ [
+ 22.890625,
+ "so"
+ ],
+ [
+ 22.994791,
+ "the"
+ ],
+ [
+ 23.085958,
+ "graph"
+ ],
+ [
+ 23.502625,
+ "bends"
+ ],
+ [
+ 24.453125,
+ "this"
+ ],
+ [
+ 24.726583,
+ "is"
+ ],
+ [
+ 24.84375,
+ "a"
+ ],
+ [
+ 24.882833,
+ "nonlinear"
+ ],
+ [
+ 25.507833,
+ "function"
+ ],
+ [
+ 26.432291,
+ "A"
+ ],
+ [
+ 26.497416,
+ "linear"
+ ],
+ [
+ 26.862,
+ "function"
+ ],
+ [
+ 27.356791,
+ "can"
+ ],
+ [
+ 27.5,
+ "be"
+ ],
+ [
+ 27.682291,
+ "written"
+ ],
+ [
+ 28.177083,
+ "as"
+ ],
+ [
+ 28.333333,
+ "y"
+ ],
+ [
+ 28.737,
+ "equals"
+ ],
+ [
+ 29.427083,
+ "m"
+ ],
+ [
+ 29.84375,
+ "x"
+ ],
+ [
+ 30.052083,
+ "plus"
+ ],
+ [
+ 30.442708,
+ "b"
+ ],
+ [
+ 31.210958,
+ "A"
+ ],
+ [
+ 31.263041,
+ "nonlinear"
+ ],
+ [
+ 31.875,
+ "one"
+ ],
+ [
+ 32.1745,
+ "can't"
+ ]
+ ],
+ "marks": {
+ "lin": 2.031,
+ "lsteps": 4.167,
+ "lline": 8.425,
+ "sq": 12.37,
+ "qsteps": 14.505,
+ "qcurve": 21.641,
+ "form": 26.432
+ },
+ "cues": [
+ [
+ 0.091,
+ "Compare two functions."
+ ],
+ [
+ 2.031,
+ "y equals two x plus one."
+ ],
+ [
+ 4.167,
+ "Each time x goes up by one, y goes up by the same amount, two."
+ ],
+ [
+ 8.425,
+ "Equal steps make a straight line: this is a linear function."
+ ],
+ [
+ 12.37,
+ "Now y equals x squared."
+ ],
+ [
+ 14.505,
+ "Going up by one in x, y changes by negative three, then negative one, then one, then three."
+ ],
+ [
+ 21.641,
+ "The steps change, so the graph bends: this is a nonlinear function."
+ ],
+ [
+ 26.432,
+ "A linear function can be written as y equals m x plus b."
+ ],
+ [
+ 31.211,
+ "A nonlinear one can't."
+ ]
+ ]
+ },
+ "table": {
+ "key": "60f20ea99d3adfcbfc7a13f3c29b90452a59a9d0",
+ "dur": 26.64,
+ "words": [
+ [
+ 0.091166,
+ "To"
+ ],
+ [
+ 0.15625,
+ "graph"
+ ],
+ [
+ 0.585958,
+ "a"
+ ],
+ [
+ 0.625,
+ "nonlinear"
+ ],
+ [
+ 1.315125,
+ "function"
+ ],
+ [
+ 2.304708,
+ "make"
+ ],
+ [
+ 2.434916,
+ "a"
+ ],
+ [
+ 2.5,
+ "table"
+ ],
+ [
+ 2.916666,
+ "of"
+ ],
+ [
+ 2.981791,
+ "values"
+ ],
+ [
+ 4.114583,
+ "Pick"
+ ],
+ [
+ 4.244791,
+ "some"
+ ],
+ [
+ 4.388041,
+ "inputs"
+ ],
+ [
+ 5.208333,
+ "and"
+ ],
+ [
+ 5.3125,
+ "find"
+ ],
+ [
+ 5.820333,
+ "each"
+ ],
+ [
+ 6.054708,
+ "output"
+ ],
+ [
+ 7.135416,
+ "negative"
+ ],
+ [
+ 7.513041,
+ "three"
+ ],
+ [
+ 7.7995,
+ "squared"
+ ],
+ [
+ 8.229166,
+ "is"
+ ],
+ [
+ 8.346375,
+ "nine"
+ ],
+ [
+ 9.322916,
+ "negative"
+ ],
+ [
+ 9.700541,
+ "two"
+ ],
+ [
+ 9.934916,
+ "squared"
+ ],
+ [
+ 10.429708,
+ "is"
+ ],
+ [
+ 10.559916,
+ "four"
+ ],
+ [
+ 11.432291,
+ "and"
+ ],
+ [
+ 11.523458,
+ "so"
+ ],
+ [
+ 11.835958,
+ "on"
+ ],
+ [
+ 12.539083,
+ "Each"
+ ],
+ [
+ 12.695333,
+ "row"
+ ],
+ [
+ 12.890625,
+ "is"
+ ],
+ [
+ 12.981791,
+ "a"
+ ],
+ [
+ 13.020833,
+ "point"
+ ],
+ [
+ 13.828125,
+ "Plot"
+ ],
+ [
+ 14.010416,
+ "them"
+ ],
+ [
+ 14.114583,
+ "all"
+ ],
+ [
+ 14.804708,
+ "Then"
+ ],
+ [
+ 15.026041,
+ "connect"
+ ],
+ [
+ 15.442708,
+ "them"
+ ],
+ [
+ 15.78125,
+ "with"
+ ],
+ [
+ 15.911458,
+ "a"
+ ],
+ [
+ 15.950541,
+ "smooth"
+ ],
+ [
+ 16.523458,
+ "curve"
+ ],
+ [
+ 17.513041,
+ "not"
+ ],
+ [
+ 17.734375,
+ "with"
+ ],
+ [
+ 17.864583,
+ "straight"
+ ],
+ [
+ 18.177083,
+ "segments"
+ ],
+ [
+ 19.257833,
+ "The"
+ ],
+ [
+ 19.322916,
+ "graph"
+ ],
+ [
+ 19.726583,
+ "of"
+ ],
+ [
+ 19.856791,
+ "y"
+ ],
+ [
+ 20.117208,
+ "equals"
+ ],
+ [
+ 20.572916,
+ "x"
+ ],
+ [
+ 20.794291,
+ "squared"
+ ],
+ [
+ 21.39325,
+ "is"
+ ],
+ [
+ 21.497416,
+ "a"
+ ],
+ [
+ 21.523458,
+ "U-shaped"
+ ],
+ [
+ 22.148458,
+ "curve"
+ ],
+ [
+ 22.539083,
+ "called"
+ ],
+ [
+ 22.721375,
+ "a"
+ ],
+ [
+ 22.773458,
+ "parabola"
+ ],
+ [
+ 23.880208,
+ "You'll"
+ ],
+ [
+ 24.010416,
+ "study"
+ ],
+ [
+ 24.322916,
+ "parabolas"
+ ],
+ [
+ 25.026041,
+ "in"
+ ],
+ [
+ 25.182291,
+ "unit"
+ ],
+ [
+ 25.559916,
+ "thirteen"
+ ]
+ ],
+ "marks": {
+ "rows": 4.115,
+ "pts": 12.539,
+ "curve": 14.805,
+ "name": 19.258
+ },
+ "cues": [
+ [
+ 0.091,
+ "To graph a nonlinear function, make a table of values."
+ ],
+ [
+ 4.115,
+ "Pick some inputs, and find each output: negative three squared is nine, negative two squared is four, and so on."
+ ],
+ [
+ 12.539,
+ "Each row is a point."
+ ],
+ [
+ 13.828,
+ "Plot them all."
+ ],
+ [
+ 14.805,
+ "Then connect them with a smooth curve, not with straight segments."
+ ],
+ [
+ 19.258,
+ "The graph of y equals x squared is a U-shaped curve called a parabola."
+ ],
+ [
+ 23.88,
+ "You'll study parabolas in unit thirteen."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "f7c613d6a07950cda26b8fb4fd64ac5c9eb70ea3",
+ "dur": 2.664,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.260416,
+ "check"
+ ],
+ [
+ 1.119791,
+ "Plot"
+ ],
+ [
+ 1.263041,
+ "a"
+ ],
+ [
+ 1.315125,
+ "point"
+ ],
+ [
+ 1.679708,
+ "from"
+ ],
+ [
+ 1.796875,
+ "the"
+ ],
+ [
+ 1.862,
+ "table"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "Plot a point from the table."
+ ]
+ ]
+ },
+ "cubic": {
+ "key": "dacfc887c8e493fe7a8b0a3e4e42d587069ffa29",
+ "dur": 21.984,
+ "words": [
+ [
+ 0.104166,
+ "Nonlinear"
+ ],
+ [
+ 0.638041,
+ "functions"
+ ],
+ [
+ 1.171875,
+ "come"
+ ],
+ [
+ 1.354166,
+ "in"
+ ],
+ [
+ 1.458333,
+ "many"
+ ],
+ [
+ 1.666666,
+ "shapes"
+ ],
+ [
+ 2.773458,
+ "Here's"
+ ],
+ [
+ 2.981791,
+ "y"
+ ],
+ [
+ 3.177083,
+ "equals"
+ ],
+ [
+ 3.697916,
+ "x"
+ ],
+ [
+ 3.919291,
+ "cubed"
+ ],
+ [
+ 4.83075,
+ "Negative"
+ ],
+ [
+ 5.221375,
+ "two"
+ ],
+ [
+ 5.520833,
+ "cubed"
+ ],
+ [
+ 6.132833,
+ "is"
+ ],
+ [
+ 6.263041,
+ "negative"
+ ],
+ [
+ 6.914083,
+ "eight"
+ ],
+ [
+ 7.773458,
+ "negative"
+ ],
+ [
+ 8.216166,
+ "one"
+ ],
+ [
+ 8.476583,
+ "cubed"
+ ],
+ [
+ 9.036458,
+ "is"
+ ],
+ [
+ 9.140625,
+ "negative"
+ ],
+ [
+ 9.557291,
+ "one"
+ ],
+ [
+ 10.169291,
+ "zero"
+ ],
+ [
+ 11.09375,
+ "one"
+ ],
+ [
+ 11.445333,
+ "and"
+ ],
+ [
+ 11.757833,
+ "eight"
+ ],
+ [
+ 12.552083,
+ "The"
+ ],
+ [
+ 12.617208,
+ "points"
+ ],
+ [
+ 12.95575,
+ "make"
+ ],
+ [
+ 13.151041,
+ "an"
+ ],
+ [
+ 13.333333,
+ "S-shaped"
+ ],
+ [
+ 14.036458,
+ "curve"
+ ],
+ [
+ 14.973958,
+ "negative"
+ ],
+ [
+ 15.364583,
+ "inputs"
+ ],
+ [
+ 16.041666,
+ "give"
+ ],
+ [
+ 16.276041,
+ "negative"
+ ],
+ [
+ 16.71875,
+ "outputs"
+ ],
+ [
+ 17.838541,
+ "and"
+ ],
+ [
+ 17.929708,
+ "the"
+ ],
+ [
+ 18.033875,
+ "curve"
+ ],
+ [
+ 18.385416,
+ "grows"
+ ],
+ [
+ 18.723958,
+ "steeper"
+ ],
+ [
+ 19.661458,
+ "as"
+ ],
+ [
+ 19.987,
+ "x"
+ ],
+ [
+ 20.260416,
+ "moves"
+ ],
+ [
+ 20.520833,
+ "away"
+ ],
+ [
+ 20.898458,
+ "from"
+ ],
+ [
+ 21.08075,
+ "zero"
+ ]
+ ],
+ "marks": {
+ "cube": 2.773,
+ "vals": 4.831,
+ "s": 12.552,
+ "neg": 14.974,
+ "steep": 17.839
+ },
+ "cues": [
+ [
+ 0.104,
+ "Nonlinear functions come in many shapes."
+ ],
+ [
+ 2.773,
+ "Here's y equals x cubed."
+ ],
+ [
+ 4.831,
+ "Negative two cubed is negative eight, negative one cubed is negative one, zero, one, and eight."
+ ],
+ [
+ 12.552,
+ "The points make an S-shaped curve: negative inputs give negative outputs, and the curve grows steeper as x moves away from zero."
+ ]
+ ]
+ },
+ "walk": {
+ "key": "4e046bb76100482f71878db46f4dc306d1cd3244",
+ "dur": 36.648,
+ "words": [
+ [
+ 0.104166,
+ "Graphs"
+ ],
+ [
+ 0.481791,
+ "of"
+ ],
+ [
+ 0.559916,
+ "functions"
+ ],
+ [
+ 1.276041,
+ "also"
+ ],
+ [
+ 1.653666,
+ "describe"
+ ],
+ [
+ 2.265625,
+ "real"
+ ],
+ [
+ 2.591166,
+ "situations"
+ ],
+ [
+ 3.997416,
+ "Maya"
+ ],
+ [
+ 4.296875,
+ "walks"
+ ],
+ [
+ 4.583333,
+ "to"
+ ],
+ [
+ 4.713541,
+ "a"
+ ],
+ [
+ 4.778666,
+ "friend's"
+ ],
+ [
+ 5.15625,
+ "house"
+ ],
+ [
+ 5.481791,
+ "and"
+ ],
+ [
+ 5.572916,
+ "back"
+ ],
+ [
+ 6.471375,
+ "The"
+ ],
+ [
+ 6.536458,
+ "graph"
+ ],
+ [
+ 6.888041,
+ "shows"
+ ],
+ [
+ 7.226583,
+ "her"
+ ],
+ [
+ 7.304708,
+ "distance"
+ ],
+ [
+ 7.747416,
+ "from"
+ ],
+ [
+ 7.916666,
+ "home"
+ ],
+ [
+ 8.489583,
+ "over"
+ ],
+ [
+ 8.658875,
+ "time"
+ ],
+ [
+ 9.453125,
+ "For"
+ ],
+ [
+ 9.51825,
+ "the"
+ ],
+ [
+ 9.583333,
+ "first"
+ ],
+ [
+ 9.921875,
+ "twenty"
+ ],
+ [
+ 10.221375,
+ "minutes"
+ ],
+ [
+ 10.950541,
+ "the"
+ ],
+ [
+ 11.09375,
+ "distance"
+ ],
+ [
+ 11.588541,
+ "grows"
+ ],
+ [
+ 12.682291,
+ "she's"
+ ],
+ [
+ 13.020833,
+ "walking"
+ ],
+ [
+ 13.476583,
+ "away"
+ ],
+ [
+ 14.375,
+ "From"
+ ],
+ [
+ 14.51825,
+ "twenty"
+ ],
+ [
+ 14.83075,
+ "to"
+ ],
+ [
+ 14.921875,
+ "forty-five"
+ ],
+ [
+ 15.820333,
+ "minutes"
+ ],
+ [
+ 16.25,
+ "the"
+ ],
+ [
+ 16.354166,
+ "graph"
+ ],
+ [
+ 17.252625,
+ "is"
+ ],
+ [
+ 17.356791,
+ "flat"
+ ],
+ [
+ 18.307291,
+ "Her"
+ ],
+ [
+ 18.411458,
+ "distance"
+ ],
+ [
+ 19.179708,
+ "doesn't"
+ ],
+ [
+ 19.479166,
+ "change"
+ ],
+ [
+ 20.494791,
+ "so"
+ ],
+ [
+ 20.846375,
+ "she's"
+ ],
+ [
+ 21.145833,
+ "at"
+ ],
+ [
+ 21.197916,
+ "her"
+ ],
+ [
+ 21.315125,
+ "friend's"
+ ],
+ [
+ 21.614583,
+ "house"
+ ],
+ [
+ 22.565125,
+ "Then"
+ ],
+ [
+ 22.64325,
+ "the"
+ ],
+ [
+ 22.747416,
+ "distance"
+ ],
+ [
+ 23.112,
+ "drops"
+ ],
+ [
+ 23.59375,
+ "to"
+ ],
+ [
+ 23.710958,
+ "zero"
+ ],
+ [
+ 24.270833,
+ "in"
+ ],
+ [
+ 24.453125,
+ "ten"
+ ],
+ [
+ 24.739583,
+ "minutes"
+ ],
+ [
+ 25.664083,
+ "she"
+ ],
+ [
+ 25.833333,
+ "heads"
+ ],
+ [
+ 26.08075,
+ "home"
+ ],
+ [
+ 26.862,
+ "faster"
+ ],
+ [
+ 27.291666,
+ "than"
+ ],
+ [
+ 27.382833,
+ "she"
+ ],
+ [
+ 27.552083,
+ "came"
+ ],
+ [
+ 28.307291,
+ "To"
+ ],
+ [
+ 28.398458,
+ "read"
+ ],
+ [
+ 28.632833,
+ "the"
+ ],
+ [
+ 28.684916,
+ "graph"
+ ],
+ [
+ 29.570333,
+ "go"
+ ],
+ [
+ 29.791666,
+ "up"
+ ],
+ [
+ 29.895833,
+ "from"
+ ],
+ [
+ 30.013041,
+ "a"
+ ],
+ [
+ 30.065125,
+ "time"
+ ],
+ [
+ 30.416666,
+ "to"
+ ],
+ [
+ 30.494791,
+ "the"
+ ],
+ [
+ 30.612,
+ "line"
+ ],
+ [
+ 31.5495,
+ "then"
+ ],
+ [
+ 31.692708,
+ "across"
+ ],
+ [
+ 32.1875,
+ "to"
+ ],
+ [
+ 32.278666,
+ "the"
+ ],
+ [
+ 32.369791,
+ "distance"
+ ],
+ [
+ 33.515625,
+ "At"
+ ],
+ [
+ 33.632833,
+ "ten"
+ ],
+ [
+ 33.90625,
+ "minutes"
+ ],
+ [
+ 34.661458,
+ "she's"
+ ],
+ [
+ 34.960958,
+ "one"
+ ],
+ [
+ 35.325541,
+ "kilometer"
+ ],
+ [
+ 35.833333,
+ "from"
+ ],
+ [
+ 35.989583,
+ "home"
+ ]
+ ],
+ "marks": {
+ "story": 3.997,
+ "go": 9.453,
+ "stay": 14.375,
+ "back": 22.565,
+ "read": 28.307
+ },
+ "cues": [
+ [
+ 0.104,
+ "Graphs of functions also describe real situations."
+ ],
+ [
+ 3.997,
+ "Maya walks to a friend's house and back."
+ ],
+ [
+ 6.471,
+ "The graph shows her distance from home over time."
+ ],
+ [
+ 9.453,
+ "For the first twenty minutes, the distance grows: she's walking away."
+ ],
+ [
+ 14.375,
+ "From twenty to forty-five minutes the graph is flat."
+ ],
+ [
+ 18.307,
+ "Her distance doesn't change, so she's at her friend's house."
+ ],
+ [
+ 22.565,
+ "Then the distance drops to zero in ten minutes: she heads home, faster than she came."
+ ],
+ [
+ 28.307,
+ "To read the graph, go up from a time to the line, then across to the distance."
+ ],
+ [
+ 33.516,
+ "At ten minutes, she's one kilometer from home."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "c609d7541b0c5677d0b3449d02f452b7059ab3a2",
+ "dur": 2.28,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.260416,
+ "check"
+ ],
+ [
+ 1.119791,
+ "Read"
+ ],
+ [
+ 1.315125,
+ "the"
+ ],
+ [
+ 1.367208,
+ "graph"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "Read the graph."
+ ]
+ ]
+ },
+ "ball": {
+ "key": "71ca0dbe9748271e48c010d1b0e2c5d080acb19f",
+ "dur": 24.84,
+ "words": [
+ [
+ 0.130208,
+ "Here's"
+ ],
+ [
+ 0.3125,
+ "a"
+ ],
+ [
+ 0.351583,
+ "nonlinear"
+ ],
+ [
+ 1.028666,
+ "situation"
+ ],
+ [
+ 2.1875,
+ "A"
+ ],
+ [
+ 2.252625,
+ "ball"
+ ],
+ [
+ 2.539083,
+ "is"
+ ],
+ [
+ 2.630208,
+ "tossed"
+ ],
+ [
+ 2.95575,
+ "straight"
+ ],
+ [
+ 3.203125,
+ "up"
+ ],
+ [
+ 3.841166,
+ "Its"
+ ],
+ [
+ 3.958333,
+ "height"
+ ],
+ [
+ 4.296875,
+ "in"
+ ],
+ [
+ 4.466166,
+ "meters"
+ ],
+ [
+ 4.856791,
+ "after"
+ ],
+ [
+ 5.117208,
+ "t"
+ ],
+ [
+ 5.390625,
+ "seconds"
+ ],
+ [
+ 6.315125,
+ "is"
+ ],
+ [
+ 6.471375,
+ "twenty"
+ ],
+ [
+ 6.927083,
+ "t"
+ ],
+ [
+ 7.473958,
+ "minus"
+ ],
+ [
+ 7.95575,
+ "five"
+ ],
+ [
+ 8.4245,
+ "t"
+ ],
+ [
+ 8.671875,
+ "squared"
+ ],
+ [
+ 9.635416,
+ "Make"
+ ],
+ [
+ 9.804708,
+ "a"
+ ],
+ [
+ 9.856791,
+ "table"
+ ],
+ [
+ 10.507833,
+ "the"
+ ],
+ [
+ 10.612,
+ "points"
+ ],
+ [
+ 10.976583,
+ "rise"
+ ],
+ [
+ 11.679708,
+ "peak"
+ ],
+ [
+ 11.927083,
+ "at"
+ ],
+ [
+ 12.01825,
+ "twenty"
+ ],
+ [
+ 12.34375,
+ "meters"
+ ],
+ [
+ 12.786458,
+ "after"
+ ],
+ [
+ 13.072916,
+ "two"
+ ],
+ [
+ 13.320333,
+ "seconds"
+ ],
+ [
+ 14.153666,
+ "and"
+ ],
+ [
+ 14.270833,
+ "fall"
+ ],
+ [
+ 14.6745,
+ "back"
+ ],
+ [
+ 15.078125,
+ "to"
+ ],
+ [
+ 15.15625,
+ "the"
+ ],
+ [
+ 15.234375,
+ "ground"
+ ],
+ [
+ 15.638041,
+ "at"
+ ],
+ [
+ 15.716166,
+ "four"
+ ],
+ [
+ 16.002625,
+ "seconds"
+ ],
+ [
+ 17.03125,
+ "Notice"
+ ],
+ [
+ 17.265625,
+ "the"
+ ],
+ [
+ 17.356791,
+ "ball"
+ ],
+ [
+ 17.695333,
+ "is"
+ ],
+ [
+ 17.851583,
+ "fifteen"
+ ],
+ [
+ 18.502625,
+ "meters"
+ ],
+ [
+ 18.880208,
+ "high"
+ ],
+ [
+ 19.153666,
+ "twice"
+ ],
+ [
+ 20.364583,
+ "once"
+ ],
+ [
+ 20.572916,
+ "going"
+ ],
+ [
+ 20.885416,
+ "up"
+ ],
+ [
+ 21.354166,
+ "at"
+ ],
+ [
+ 21.445333,
+ "one"
+ ],
+ [
+ 21.692708,
+ "second"
+ ],
+ [
+ 22.487,
+ "and"
+ ],
+ [
+ 22.565125,
+ "once"
+ ],
+ [
+ 22.7995,
+ "coming"
+ ],
+ [
+ 23.007833,
+ "down"
+ ],
+ [
+ 23.359375,
+ "at"
+ ],
+ [
+ 23.4375,
+ "three"
+ ],
+ [
+ 23.802083,
+ "seconds"
+ ]
+ ],
+ "marks": {
+ "toss": 2.188,
+ "tab": 9.635,
+ "curve": 10.508,
+ "twice": 17.031
+ },
+ "cues": [
+ [
+ 0.13,
+ "Here's a nonlinear situation."
+ ],
+ [
+ 2.188,
+ "A ball is tossed straight up."
+ ],
+ [
+ 3.841,
+ "Its height in meters after t seconds is twenty t minus five t squared."
+ ],
+ [
+ 9.635,
+ "Make a table: the points rise, peak at twenty meters after two seconds, and fall back to the ground at four seconds."
+ ],
+ [
+ 17.031,
+ "Notice the ball is fifteen meters high twice: once going up, at one second, and once coming down, at three seconds."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "c7a3d1f7a3b34afc45be359d054d96a47b1f768c",
+ "dur": 2.88,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.260416,
+ "check"
+ ],
+ [
+ 1.119791,
+ "When"
+ ],
+ [
+ 1.184916,
+ "is"
+ ],
+ [
+ 1.276041,
+ "the"
+ ],
+ [
+ 1.39325,
+ "ball"
+ ],
+ [
+ 1.679708,
+ "at"
+ ],
+ [
+ 1.731791,
+ "its"
+ ],
+ [
+ 1.848958,
+ "highest"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "When is the ball at its highest?"
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "80c4cc6cfc015631facb84fdeda30e6e7bffdadf",
+ "dur": 20.472,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "sum"
+ ],
+ [
+ 0.351583,
+ "up"
+ ],
+ [
+ 0.989583,
+ "A"
+ ],
+ [
+ 1.041666,
+ "linear"
+ ],
+ [
+ 1.380208,
+ "function"
+ ],
+ [
+ 1.848958,
+ "has"
+ ],
+ [
+ 2.1745,
+ "equal"
+ ],
+ [
+ 2.434916,
+ "steps"
+ ],
+ [
+ 3.229166,
+ "and"
+ ],
+ [
+ 3.359375,
+ "a"
+ ],
+ [
+ 3.411458,
+ "straight-line"
+ ],
+ [
+ 3.997416,
+ "graph"
+ ],
+ [
+ 4.921875,
+ "A"
+ ],
+ [
+ 4.960958,
+ "nonlinear"
+ ],
+ [
+ 5.612,
+ "function"
+ ],
+ [
+ 6.028666,
+ "doesn't"
+ ],
+ [
+ 6.888041,
+ "To"
+ ],
+ [
+ 6.966166,
+ "graph"
+ ],
+ [
+ 7.591166,
+ "any"
+ ],
+ [
+ 7.760416,
+ "function"
+ ],
+ [
+ 8.737,
+ "make"
+ ],
+ [
+ 8.880208,
+ "a"
+ ],
+ [
+ 8.945333,
+ "table"
+ ],
+ [
+ 9.6745,
+ "plot"
+ ],
+ [
+ 9.934916,
+ "the"
+ ],
+ [
+ 10.026041,
+ "points"
+ ],
+ [
+ 10.846375,
+ "and"
+ ],
+ [
+ 11.184916,
+ "connect"
+ ],
+ [
+ 11.5495,
+ "them"
+ ],
+ [
+ 11.653666,
+ "smoothly"
+ ],
+ [
+ 12.682291,
+ "In"
+ ],
+ [
+ 12.760416,
+ "a"
+ ],
+ [
+ 12.851583,
+ "real"
+ ],
+ [
+ 13.177083,
+ "situation"
+ ],
+ [
+ 14.362,
+ "read"
+ ],
+ [
+ 14.492208,
+ "a"
+ ],
+ [
+ 14.544291,
+ "graph"
+ ],
+ [
+ 15.078125,
+ "by"
+ ],
+ [
+ 15.260416,
+ "going"
+ ],
+ [
+ 15.546875,
+ "up"
+ ],
+ [
+ 15.664083,
+ "from"
+ ],
+ [
+ 15.794291,
+ "the"
+ ],
+ [
+ 15.859375,
+ "input"
+ ],
+ [
+ 16.510416,
+ "and"
+ ],
+ [
+ 16.614583,
+ "across"
+ ],
+ [
+ 17.135416,
+ "to"
+ ],
+ [
+ 17.239583,
+ "the"
+ ],
+ [
+ 17.369791,
+ "output"
+ ],
+ [
+ 18.4245,
+ "Now"
+ ],
+ [
+ 18.776041,
+ "try"
+ ],
+ [
+ 18.971375,
+ "the"
+ ],
+ [
+ 19.036458,
+ "chapter"
+ ],
+ [
+ 19.414083,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 0.99,
+ "w2": 6.888,
+ "w3": 12.682,
+ "end": 18.424
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.99,
+ "A linear function has equal steps and a straight-line graph."
+ ],
+ [
+ 4.922,
+ "A nonlinear function doesn't."
+ ],
+ [
+ 6.888,
+ "To graph any function, make a table, plot the points, and connect them smoothly."
+ ],
+ [
+ 12.682,
+ "In a real situation, read a graph by going up from the input and across to the output."
+ ],
+ [
+ 18.424,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "4292480e3c55cabb575af09a1a8155b06ee13c32",
+ "dur": 3.0,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.403666,
+ "practice"
+ ],
+ [
+ 1.523458,
+ "Complete"
+ ],
+ [
+ 2.044291,
+ "the"
+ ],
+ [
+ 2.148458,
+ "table"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.523,
+ "Complete the table."
+ ]
+ ]
+ },
+ "final2": {
+ "key": "66f22734f293edb0efdd4973d3b3a7dd32fda23a",
+ "dur": 2.544,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.794291,
+ "linear"
+ ],
+ [
+ 1.341166,
+ "or"
+ ],
+ [
+ 1.471375,
+ "nonlinear"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, linear or nonlinear?"
+ ]
+ ]
+ },
+ "final3": {
+ "key": "63051e53f5588ffbeb84cb7b7b300650b7e9b53c",
+ "dur": 2.328,
+ "words": [
+ [
+ 0.104166,
+ "Last"
+ ],
+ [
+ 0.390625,
+ "one"
+ ],
+ [
+ 1.132833,
+ "Read"
+ ],
+ [
+ 1.328125,
+ "the"
+ ],
+ [
+ 1.40625,
+ "graph"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.133,
+ "Read the graph."
+ ]
+ ]
+ },
+ "finish": {
+ "key": "24016fbab4d28b58fc7aa78c8a79250d14b3e5b1",
+ "dur": 5.04,
+ "words": [
+ [
+ 0.104166,
+ "Great"
+ ],
+ [
+ 0.416666,
+ "work"
+ ],
+ [
+ 1.25,
+ "That's"
+ ],
+ [
+ 1.40625,
+ "the"
+ ],
+ [
+ 1.601583,
+ "end"
+ ],
+ [
+ 1.888041,
+ "of"
+ ],
+ [
+ 1.979166,
+ "chapter"
+ ],
+ [
+ 2.487,
+ "forty-seven"
+ ],
+ [
+ 3.763041,
+ "and"
+ ],
+ [
+ 3.867208,
+ "of"
+ ],
+ [
+ 3.945333,
+ "unit"
+ ],
+ [
+ 4.296875,
+ "eight"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Great work."
+ ],
+ [
+ 1.25,
+ "That's the end of chapter forty-seven, and of unit eight."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch48/narration.en.json b/content/ch48/narration.en.json
new file mode 100644
index 0000000..0e8c5c7
--- /dev/null
+++ b/content/ch48/narration.en.json
@@ -0,0 +1,20 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Unit nine, chapter forty-eight. [[sub]]Polynomials are built from terms, and adding them comes down to combining like terms.",
+ "names": "A monomial is a single term: a number, a variable, or a product of them, like thirty-eight m. [[poly]]A polynomial is one monomial or a sum of several. [[bi]]With two terms it's a binomial, [[tri]]and with three terms, a trinomial. [[sub]]Subtracting a term counts as adding a negative one, so three x squared minus two x is still a sum of two terms. [[order]]We usually write a polynomial in descending order: the highest power of x first, [[sort]]down to the number with no x.",
+ "like": "Like terms have the same variables raised to the same powers. [[tiles]]With algebra tiles, each kind of term has its own shape: big squares for x squared, long strips for x, small squares for ones. [[same]]Only tiles of the same shape can be counted together. [[not]]Three x squared and three x look alike, but the tiles show they are different sizes: they're not like terms.",
+ "add": "To add polynomials, combine like terms. [[p1]]Here's two x squared plus three x plus one, [[p2]]plus x squared minus x plus two. [[group]]Slide the tiles together by kind. [[cancel]]A positive x and a negative x make zero, so that pair cancels. [[count]]Count what's left: three x squared, plus two x, plus three. [[cols]]Lining the polynomials up in columns, like terms over like terms, does the same job without tiles.",
+ "q1": "Quick check. Add the polynomials.",
+ "subtract": "Subtracting a polynomial means subtracting every one of its terms. [[q]]Take three x squared plus two x minus one, minus the quantity x squared plus four x minus three. [[flip]]The minus sign in front of the parentheses flips the sign of every term inside: [[opp]]x squared becomes negative, four x becomes negative, and minus three becomes plus three. [[add]]Now add, as before. [[cancel]]Opposite tiles cancel in pairs. [[ans]]What's left is two x squared minus two x plus two.",
+ "q2": "Quick check. Subtract.",
+ "perim": "Polynomials can describe measurements. [[rect]]A rectangle is three x plus two units long and x minus one units wide. [[walk]]Its perimeter is the distance around: length plus width plus length plus width. [[sum]]Add all four sides and combine like terms: the x terms make eight x, [[nums]]and the numbers make two. [[ans]]The perimeter is eight x plus two.",
+ "q3": "Quick check. Find the perimeter.",
+ "wrap": "To sum up. [[w1]]A polynomial is a monomial or a sum of monomials, written in descending order. [[w2]]To add, combine like terms: same variables, same powers. [[w3]]To subtract, change the sign of every term being subtracted, then add. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Monomial, binomial, or trinomial?",
+ "final2": "Next, add the polynomials.",
+ "final3": "Last one. Subtract.",
+ "finish": "Well done. That's the end of chapter forty-eight, adding and subtracting polynomials."
+ }
+}
diff --git a/content/ch48/narration.en.timings.json b/content/ch48/narration.en.timings.json
new file mode 100644
index 0000000..bf3b3b7
--- /dev/null
+++ b/content/ch48/narration.en.timings.json
@@ -0,0 +1,2162 @@
+{
+ "intro": {
+ "key": "af6f0a4633d3a159e4a7587cd3c6fac21957ba41",
+ "dur": 8.568,
+ "words": [
+ [
+ 0.104166,
+ "Unit"
+ ],
+ [
+ 0.351583,
+ "nine"
+ ],
+ [
+ 1.054708,
+ "chapter"
+ ],
+ [
+ 1.471375,
+ "forty-eight"
+ ],
+ [
+ 2.604166,
+ "Polynomials"
+ ],
+ [
+ 3.333333,
+ "are"
+ ],
+ [
+ 3.75,
+ "built"
+ ],
+ [
+ 4.075541,
+ "from"
+ ],
+ [
+ 4.283875,
+ "terms"
+ ],
+ [
+ 5.325541,
+ "and"
+ ],
+ [
+ 5.625,
+ "adding"
+ ],
+ [
+ 5.9375,
+ "them"
+ ],
+ [
+ 6.145833,
+ "comes"
+ ],
+ [
+ 6.445333,
+ "down"
+ ],
+ [
+ 6.783875,
+ "to"
+ ],
+ [
+ 6.875,
+ "combining"
+ ],
+ [
+ 7.408875,
+ "like"
+ ],
+ [
+ 7.578125,
+ "terms"
+ ]
+ ],
+ "marks": {
+ "sub": 2.604
+ },
+ "cues": [
+ [
+ 0.104,
+ "Unit nine, chapter forty-eight."
+ ],
+ [
+ 2.604,
+ "Polynomials are built from terms, and adding them comes down to combining like terms."
+ ]
+ ]
+ },
+ "names": {
+ "key": "617344e4af928a67089f7a4b495c439c98bdec23",
+ "dur": 31.632,
+ "words": [
+ [
+ 0.091166,
+ "A"
+ ],
+ [
+ 0.14325,
+ "monomial"
+ ],
+ [
+ 0.833333,
+ "is"
+ ],
+ [
+ 0.9245,
+ "a"
+ ],
+ [
+ 0.976583,
+ "single"
+ ],
+ [
+ 1.367208,
+ "term"
+ ],
+ [
+ 2.252625,
+ "a"
+ ],
+ [
+ 2.291666,
+ "number"
+ ],
+ [
+ 3.294291,
+ "a"
+ ],
+ [
+ 3.333333,
+ "variable"
+ ],
+ [
+ 4.53125,
+ "or"
+ ],
+ [
+ 4.596375,
+ "a"
+ ],
+ [
+ 4.648458,
+ "product"
+ ],
+ [
+ 5.104166,
+ "of"
+ ],
+ [
+ 5.169291,
+ "them"
+ ],
+ [
+ 6.015625,
+ "like"
+ ],
+ [
+ 6.171875,
+ "thirty-eight"
+ ],
+ [
+ 6.692708,
+ "m"
+ ],
+ [
+ 7.356791,
+ "A"
+ ],
+ [
+ 7.395833,
+ "polynomial"
+ ],
+ [
+ 8.26825,
+ "is"
+ ],
+ [
+ 8.411458,
+ "one"
+ ],
+ [
+ 8.723958,
+ "monomial"
+ ],
+ [
+ 9.635416,
+ "or"
+ ],
+ [
+ 9.700541,
+ "a"
+ ],
+ [
+ 9.752625,
+ "sum"
+ ],
+ [
+ 9.934916,
+ "of"
+ ],
+ [
+ 10.0,
+ "several"
+ ],
+ [
+ 10.885416,
+ "With"
+ ],
+ [
+ 11.028666,
+ "two"
+ ],
+ [
+ 11.276041,
+ "terms"
+ ],
+ [
+ 11.796875,
+ "it's"
+ ],
+ [
+ 11.901041,
+ "a"
+ ],
+ [
+ 11.953125,
+ "binomial"
+ ],
+ [
+ 13.112,
+ "and"
+ ],
+ [
+ 13.216166,
+ "with"
+ ],
+ [
+ 13.398458,
+ "three"
+ ],
+ [
+ 13.789083,
+ "terms"
+ ],
+ [
+ 14.804708,
+ "a"
+ ],
+ [
+ 14.856791,
+ "trinomial"
+ ],
+ [
+ 16.054708,
+ "Subtracting"
+ ],
+ [
+ 16.614583,
+ "a"
+ ],
+ [
+ 16.679708,
+ "term"
+ ],
+ [
+ 16.992208,
+ "counts"
+ ],
+ [
+ 17.669291,
+ "as"
+ ],
+ [
+ 17.890625,
+ "adding"
+ ],
+ [
+ 18.294291,
+ "a"
+ ],
+ [
+ 18.320333,
+ "negative"
+ ],
+ [
+ 18.841166,
+ "one"
+ ],
+ [
+ 19.609375,
+ "so"
+ ],
+ [
+ 19.960958,
+ "three"
+ ],
+ [
+ 20.325541,
+ "x"
+ ],
+ [
+ 20.794291,
+ "squared"
+ ],
+ [
+ 21.276041,
+ "minus"
+ ],
+ [
+ 21.640625,
+ "two"
+ ],
+ [
+ 21.888041,
+ "x"
+ ],
+ [
+ 22.591166,
+ "is"
+ ],
+ [
+ 22.695333,
+ "still"
+ ],
+ [
+ 22.942708,
+ "a"
+ ],
+ [
+ 22.994791,
+ "sum"
+ ],
+ [
+ 23.242208,
+ "of"
+ ],
+ [
+ 23.333333,
+ "two"
+ ],
+ [
+ 23.554708,
+ "terms"
+ ],
+ [
+ 24.544291,
+ "We"
+ ],
+ [
+ 24.609375,
+ "usually"
+ ],
+ [
+ 25.026041,
+ "write"
+ ],
+ [
+ 25.182291,
+ "a"
+ ],
+ [
+ 25.234375,
+ "polynomial"
+ ],
+ [
+ 26.067708,
+ "in"
+ ],
+ [
+ 26.171875,
+ "descending"
+ ],
+ [
+ 26.71875,
+ "order"
+ ],
+ [
+ 27.460958,
+ "the"
+ ],
+ [
+ 27.539083,
+ "highest"
+ ],
+ [
+ 27.929708,
+ "power"
+ ],
+ [
+ 28.398458,
+ "of"
+ ],
+ [
+ 28.515625,
+ "x"
+ ],
+ [
+ 28.697916,
+ "first"
+ ],
+ [
+ 29.557291,
+ "down"
+ ],
+ [
+ 29.84375,
+ "to"
+ ],
+ [
+ 29.934916,
+ "the"
+ ],
+ [
+ 30.0,
+ "number"
+ ],
+ [
+ 30.2995,
+ "with"
+ ],
+ [
+ 30.429708,
+ "no"
+ ],
+ [
+ 30.729166,
+ "x"
+ ]
+ ],
+ "marks": {
+ "poly": 7.357,
+ "bi": 10.885,
+ "tri": 13.112,
+ "sub": 16.055,
+ "order": 24.544,
+ "sort": 29.557
+ },
+ "cues": [
+ [
+ 0.091,
+ "A monomial is a single term: a number, a variable, or a product of them, like thirty-eight m."
+ ],
+ [
+ 7.357,
+ "A polynomial is one monomial or a sum of several."
+ ],
+ [
+ 10.885,
+ "With two terms it's a binomial, and with three terms, a trinomial."
+ ],
+ [
+ 16.055,
+ "Subtracting a term counts as adding a negative one, so three x squared minus two x is still a sum of two terms."
+ ],
+ [
+ 24.544,
+ "We usually write a polynomial in descending order: the highest power of x first, down to the number with no x."
+ ]
+ ]
+ },
+ "like": {
+ "key": "8dc84068948f6cdbac50b0fce5a8aebe2a4851b4",
+ "dur": 23.136,
+ "words": [
+ [
+ 0.091166,
+ "Like"
+ ],
+ [
+ 0.221375,
+ "terms"
+ ],
+ [
+ 0.494791,
+ "have"
+ ],
+ [
+ 0.651041,
+ "the"
+ ],
+ [
+ 0.742208,
+ "same"
+ ],
+ [
+ 1.145833,
+ "variables"
+ ],
+ [
+ 1.757833,
+ "raised"
+ ],
+ [
+ 2.317708,
+ "to"
+ ],
+ [
+ 2.408875,
+ "the"
+ ],
+ [
+ 2.513041,
+ "same"
+ ],
+ [
+ 2.877625,
+ "powers"
+ ],
+ [
+ 3.984375,
+ "With"
+ ],
+ [
+ 4.114583,
+ "algebra"
+ ],
+ [
+ 4.544291,
+ "tiles"
+ ],
+ [
+ 5.403666,
+ "each"
+ ],
+ [
+ 5.546875,
+ "kind"
+ ],
+ [
+ 5.716166,
+ "of"
+ ],
+ [
+ 5.78125,
+ "term"
+ ],
+ [
+ 6.067708,
+ "has"
+ ],
+ [
+ 6.223958,
+ "its"
+ ],
+ [
+ 6.341166,
+ "own"
+ ],
+ [
+ 6.523458,
+ "shape"
+ ],
+ [
+ 7.473958,
+ "big"
+ ],
+ [
+ 7.669291,
+ "squares"
+ ],
+ [
+ 8.112,
+ "for"
+ ],
+ [
+ 8.411458,
+ "x"
+ ],
+ [
+ 8.59375,
+ "squared"
+ ],
+ [
+ 9.466166,
+ "long"
+ ],
+ [
+ 9.804708,
+ "strips"
+ ],
+ [
+ 10.130208,
+ "for"
+ ],
+ [
+ 10.351583,
+ "x"
+ ],
+ [
+ 11.067708,
+ "small"
+ ],
+ [
+ 11.39325,
+ "squares"
+ ],
+ [
+ 11.809916,
+ "for"
+ ],
+ [
+ 11.940125,
+ "ones"
+ ],
+ [
+ 12.864583,
+ "Only"
+ ],
+ [
+ 13.098958,
+ "tiles"
+ ],
+ [
+ 13.58075,
+ "of"
+ ],
+ [
+ 13.632833,
+ "the"
+ ],
+ [
+ 13.697916,
+ "same"
+ ],
+ [
+ 13.997416,
+ "shape"
+ ],
+ [
+ 14.609375,
+ "can"
+ ],
+ [
+ 14.713541,
+ "be"
+ ],
+ [
+ 14.84375,
+ "counted"
+ ],
+ [
+ 15.195333,
+ "together"
+ ],
+ [
+ 16.171875,
+ "Three"
+ ],
+ [
+ 16.40625,
+ "x"
+ ],
+ [
+ 16.614583,
+ "squared"
+ ],
+ [
+ 17.226583,
+ "and"
+ ],
+ [
+ 17.395833,
+ "three"
+ ],
+ [
+ 17.903666,
+ "x"
+ ],
+ [
+ 18.229166,
+ "look"
+ ],
+ [
+ 18.385416,
+ "alike"
+ ],
+ [
+ 19.127625,
+ "but"
+ ],
+ [
+ 19.257833,
+ "the"
+ ],
+ [
+ 19.335958,
+ "tiles"
+ ],
+ [
+ 19.6745,
+ "show"
+ ],
+ [
+ 19.960958,
+ "they"
+ ],
+ [
+ 20.052083,
+ "are"
+ ],
+ [
+ 20.169291,
+ "different"
+ ],
+ [
+ 20.572916,
+ "sizes"
+ ],
+ [
+ 21.497416,
+ "they're"
+ ],
+ [
+ 21.614583,
+ "not"
+ ],
+ [
+ 21.914083,
+ "like"
+ ],
+ [
+ 22.135416,
+ "terms"
+ ]
+ ],
+ "marks": {
+ "tiles": 3.984,
+ "same": 12.865,
+ "not": 16.172
+ },
+ "cues": [
+ [
+ 0.091,
+ "Like terms have the same variables raised to the same powers."
+ ],
+ [
+ 3.984,
+ "With algebra tiles, each kind of term has its own shape: big squares for x squared, long strips for x, small squares for ones."
+ ],
+ [
+ 12.865,
+ "Only tiles of the same shape can be counted together."
+ ],
+ [
+ 16.172,
+ "Three x squared and three x look alike, but the tiles show they are different sizes: they're not like terms."
+ ]
+ ]
+ },
+ "add": {
+ "key": "4370059e03f936e60bc1e01a786f78466f84a74f",
+ "dur": 28.56,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.208333,
+ "add"
+ ],
+ [
+ 0.520833,
+ "polynomials"
+ ],
+ [
+ 1.601583,
+ "combine"
+ ],
+ [
+ 2.083333,
+ "like"
+ ],
+ [
+ 2.291666,
+ "terms"
+ ],
+ [
+ 3.372416,
+ "Here's"
+ ],
+ [
+ 3.606791,
+ "two"
+ ],
+ [
+ 3.841166,
+ "x"
+ ],
+ [
+ 4.036458,
+ "squared"
+ ],
+ [
+ 4.427083,
+ "plus"
+ ],
+ [
+ 4.817708,
+ "three"
+ ],
+ [
+ 5.286458,
+ "x"
+ ],
+ [
+ 5.598958,
+ "plus"
+ ],
+ [
+ 5.9375,
+ "one"
+ ],
+ [
+ 6.653666,
+ "plus"
+ ],
+ [
+ 7.096375,
+ "x"
+ ],
+ [
+ 7.487,
+ "squared"
+ ],
+ [
+ 7.95575,
+ "minus"
+ ],
+ [
+ 8.359375,
+ "x"
+ ],
+ [
+ 8.515625,
+ "plus"
+ ],
+ [
+ 8.828125,
+ "two"
+ ],
+ [
+ 9.609375,
+ "Slide"
+ ],
+ [
+ 9.973958,
+ "the"
+ ],
+ [
+ 10.052083,
+ "tiles"
+ ],
+ [
+ 10.429708,
+ "together"
+ ],
+ [
+ 10.820333,
+ "by"
+ ],
+ [
+ 10.989583,
+ "kind"
+ ],
+ [
+ 11.914083,
+ "A"
+ ],
+ [
+ 11.966166,
+ "positive"
+ ],
+ [
+ 12.460958,
+ "x"
+ ],
+ [
+ 12.95575,
+ "and"
+ ],
+ [
+ 13.125,
+ "a"
+ ],
+ [
+ 13.151041,
+ "negative"
+ ],
+ [
+ 13.671875,
+ "x"
+ ],
+ [
+ 13.958333,
+ "make"
+ ],
+ [
+ 14.20575,
+ "zero"
+ ],
+ [
+ 15.182291,
+ "so"
+ ],
+ [
+ 15.286458,
+ "that"
+ ],
+ [
+ 15.45575,
+ "pair"
+ ],
+ [
+ 15.716166,
+ "cancels"
+ ],
+ [
+ 16.822916,
+ "Count"
+ ],
+ [
+ 16.979166,
+ "what's"
+ ],
+ [
+ 17.135416,
+ "left"
+ ],
+ [
+ 18.007833,
+ "three"
+ ],
+ [
+ 18.294291,
+ "x"
+ ],
+ [
+ 18.502625,
+ "squared"
+ ],
+ [
+ 19.21875,
+ "plus"
+ ],
+ [
+ 19.583333,
+ "two"
+ ],
+ [
+ 19.895833,
+ "x"
+ ],
+ [
+ 20.585958,
+ "plus"
+ ],
+ [
+ 20.9245,
+ "three"
+ ],
+ [
+ 21.757833,
+ "Lining"
+ ],
+ [
+ 22.070333,
+ "the"
+ ],
+ [
+ 22.161458,
+ "polynomials"
+ ],
+ [
+ 22.929708,
+ "up"
+ ],
+ [
+ 23.098958,
+ "in"
+ ],
+ [
+ 23.203125,
+ "columns"
+ ],
+ [
+ 24.127625,
+ "like"
+ ],
+ [
+ 24.322916,
+ "terms"
+ ],
+ [
+ 24.726583,
+ "over"
+ ],
+ [
+ 24.895833,
+ "like"
+ ],
+ [
+ 25.091166,
+ "terms"
+ ],
+ [
+ 25.9375,
+ "does"
+ ],
+ [
+ 26.106791,
+ "the"
+ ],
+ [
+ 26.210958,
+ "same"
+ ],
+ [
+ 26.640625,
+ "job"
+ ],
+ [
+ 27.070333,
+ "without"
+ ],
+ [
+ 27.473958,
+ "tiles"
+ ]
+ ],
+ "marks": {
+ "p1": 3.372,
+ "p2": 6.654,
+ "group": 9.609,
+ "cancel": 11.914,
+ "count": 16.823,
+ "cols": 21.758
+ },
+ "cues": [
+ [
+ 0.104,
+ "To add polynomials, combine like terms."
+ ],
+ [
+ 3.372,
+ "Here's two x squared plus three x plus one, plus x squared minus x plus two."
+ ],
+ [
+ 9.609,
+ "Slide the tiles together by kind."
+ ],
+ [
+ 11.914,
+ "A positive x and a negative x make zero, so that pair cancels."
+ ],
+ [
+ 16.823,
+ "Count what's left: three x squared, plus two x, plus three."
+ ],
+ [
+ 21.758,
+ "Lining the polynomials up in columns, like terms over like terms, does the same job without tiles."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "fb4a9624a202d46c07f8e60662c7842f8efde2da",
+ "dur": 2.664,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.2995,
+ "check"
+ ],
+ [
+ 1.171875,
+ "Add"
+ ],
+ [
+ 1.289083,
+ "the"
+ ],
+ [
+ 1.367208,
+ "polynomials"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.172,
+ "Add the polynomials."
+ ]
+ ]
+ },
+ "subtract": {
+ "key": "7973593003e2636488a5f0315c62f3312784196f",
+ "dur": 32.904,
+ "words": [
+ [
+ 0.104166,
+ "Subtracting"
+ ],
+ [
+ 0.651041,
+ "a"
+ ],
+ [
+ 0.703125,
+ "polynomial"
+ ],
+ [
+ 1.445333,
+ "means"
+ ],
+ [
+ 2.070333,
+ "subtracting"
+ ],
+ [
+ 3.046875,
+ "every"
+ ],
+ [
+ 3.307291,
+ "one"
+ ],
+ [
+ 3.515625,
+ "of"
+ ],
+ [
+ 3.58075,
+ "its"
+ ],
+ [
+ 3.723958,
+ "terms"
+ ],
+ [
+ 4.778666,
+ "Take"
+ ],
+ [
+ 4.987,
+ "three"
+ ],
+ [
+ 5.2995,
+ "x"
+ ],
+ [
+ 5.742208,
+ "squared"
+ ],
+ [
+ 6.210958,
+ "plus"
+ ],
+ [
+ 6.783875,
+ "two"
+ ],
+ [
+ 7.291666,
+ "x"
+ ],
+ [
+ 7.669291,
+ "minus"
+ ],
+ [
+ 8.072916,
+ "one"
+ ],
+ [
+ 8.945333,
+ "minus"
+ ],
+ [
+ 9.257833,
+ "the"
+ ],
+ [
+ 9.362,
+ "quantity"
+ ],
+ [
+ 9.804708,
+ "x"
+ ],
+ [
+ 9.947916,
+ "squared"
+ ],
+ [
+ 10.351583,
+ "plus"
+ ],
+ [
+ 10.664083,
+ "four"
+ ],
+ [
+ 11.223958,
+ "x"
+ ],
+ [
+ 11.484375,
+ "minus"
+ ],
+ [
+ 11.875,
+ "three"
+ ],
+ [
+ 12.708333,
+ "The"
+ ],
+ [
+ 12.773458,
+ "minus"
+ ],
+ [
+ 13.164083,
+ "sign"
+ ],
+ [
+ 13.463541,
+ "in"
+ ],
+ [
+ 13.567708,
+ "front"
+ ],
+ [
+ 13.945333,
+ "of"
+ ],
+ [
+ 14.010416,
+ "the"
+ ],
+ [
+ 14.101583,
+ "parentheses"
+ ],
+ [
+ 15.0,
+ "flips"
+ ],
+ [
+ 15.481791,
+ "the"
+ ],
+ [
+ 15.598958,
+ "sign"
+ ],
+ [
+ 16.25,
+ "of"
+ ],
+ [
+ 16.536458,
+ "every"
+ ],
+ [
+ 16.835958,
+ "term"
+ ],
+ [
+ 17.135416,
+ "inside"
+ ],
+ [
+ 17.8125,
+ ": x"
+ ],
+ [
+ 18.046875,
+ "squared"
+ ],
+ [
+ 18.489583,
+ "becomes"
+ ],
+ [
+ 18.841166,
+ "negative"
+ ],
+ [
+ 19.83075,
+ "four"
+ ],
+ [
+ 20.260416,
+ "x"
+ ],
+ [
+ 20.46875,
+ "becomes"
+ ],
+ [
+ 20.885416,
+ "negative"
+ ],
+ [
+ 21.862,
+ "and"
+ ],
+ [
+ 21.953125,
+ "minus"
+ ],
+ [
+ 22.395833,
+ "three"
+ ],
+ [
+ 22.773458,
+ "becomes"
+ ],
+ [
+ 23.177083,
+ "plus"
+ ],
+ [
+ 23.541666,
+ "three"
+ ],
+ [
+ 24.427083,
+ "Now"
+ ],
+ [
+ 24.6745,
+ "add"
+ ],
+ [
+ 24.973958,
+ "as"
+ ],
+ [
+ 25.091166,
+ "before"
+ ],
+ [
+ 26.08075,
+ "Opposite"
+ ],
+ [
+ 26.445333,
+ "tiles"
+ ],
+ [
+ 26.783875,
+ "cancel"
+ ],
+ [
+ 27.265625,
+ "in"
+ ],
+ [
+ 27.356791,
+ "pairs"
+ ],
+ [
+ 28.450541,
+ "What's"
+ ],
+ [
+ 28.59375,
+ "left"
+ ],
+ [
+ 28.841166,
+ "is"
+ ],
+ [
+ 28.958333,
+ "two"
+ ],
+ [
+ 29.244791,
+ "x"
+ ],
+ [
+ 29.869791,
+ "squared"
+ ],
+ [
+ 30.416666,
+ "minus"
+ ],
+ [
+ 31.171875,
+ "two"
+ ],
+ [
+ 31.588541,
+ "x"
+ ],
+ [
+ 31.835958,
+ "plus"
+ ],
+ [
+ 32.1745,
+ "two"
+ ]
+ ],
+ "marks": {
+ "q": 4.779,
+ "flip": 12.708,
+ "opp": 18.047,
+ "add": 24.427,
+ "cancel": 26.081,
+ "ans": 28.451
+ },
+ "cues": [
+ [
+ 0.104,
+ "Subtracting a polynomial means subtracting every one of its terms."
+ ],
+ [
+ 4.779,
+ "Take three x squared plus two x minus one, minus the quantity x squared plus four x minus three."
+ ],
+ [
+ 12.708,
+ "The minus sign in front of the parentheses flips the sign of every term inside: x squared becomes negative, four x becomes negative, and minus three becomes plus three."
+ ],
+ [
+ 24.427,
+ "Now add, as before."
+ ],
+ [
+ 26.081,
+ "Opposite tiles cancel in pairs."
+ ],
+ [
+ 28.451,
+ "What's left is two x squared minus two x plus two."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "97c243236902912a4a3d753022c71881967bfc11",
+ "dur": 2.208,
+ "words": [
+ [
+ 0.091166,
+ "Quick"
+ ],
+ [
+ 0.260416,
+ "check"
+ ],
+ [
+ 1.145833,
+ "Subtract"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.146,
+ "Subtract."
+ ]
+ ]
+ },
+ "perim": {
+ "key": "acc812bc7cc27d1369cc67744135318f0527f814",
+ "dur": 23.712,
+ "words": [
+ [
+ 0.104166,
+ "Polynomials"
+ ],
+ [
+ 1.028666,
+ "can"
+ ],
+ [
+ 1.158875,
+ "describe"
+ ],
+ [
+ 1.653666,
+ "measurements"
+ ],
+ [
+ 2.8125,
+ "A"
+ ],
+ [
+ 2.877625,
+ "rectangle"
+ ],
+ [
+ 3.515625,
+ "is"
+ ],
+ [
+ 3.671875,
+ "three"
+ ],
+ [
+ 4.21875,
+ "x"
+ ],
+ [
+ 4.53125,
+ "plus"
+ ],
+ [
+ 4.895833,
+ "two"
+ ],
+ [
+ 5.15625,
+ "units"
+ ],
+ [
+ 5.546875,
+ "long"
+ ],
+ [
+ 6.289083,
+ "and"
+ ],
+ [
+ 6.653666,
+ "x"
+ ],
+ [
+ 6.901041,
+ "minus"
+ ],
+ [
+ 7.278666,
+ "one"
+ ],
+ [
+ 7.552083,
+ "units"
+ ],
+ [
+ 7.8125,
+ "wide"
+ ],
+ [
+ 8.632833,
+ "Its"
+ ],
+ [
+ 8.723958,
+ "perimeter"
+ ],
+ [
+ 9.348958,
+ "is"
+ ],
+ [
+ 9.479166,
+ "the"
+ ],
+ [
+ 9.622416,
+ "distance"
+ ],
+ [
+ 10.026041,
+ "around"
+ ],
+ [
+ 11.041666,
+ "length"
+ ],
+ [
+ 11.263041,
+ "plus"
+ ],
+ [
+ 11.614583,
+ "width"
+ ],
+ [
+ 11.966166,
+ "plus"
+ ],
+ [
+ 12.395833,
+ "length"
+ ],
+ [
+ 12.825541,
+ "plus"
+ ],
+ [
+ 13.177083,
+ "width"
+ ],
+ [
+ 14.101583,
+ "Add"
+ ],
+ [
+ 14.270833,
+ "all"
+ ],
+ [
+ 14.492208,
+ "four"
+ ],
+ [
+ 14.791666,
+ "sides"
+ ],
+ [
+ 15.520833,
+ "and"
+ ],
+ [
+ 15.638041,
+ "combine"
+ ],
+ [
+ 16.106791,
+ "like"
+ ],
+ [
+ 16.302083,
+ "terms"
+ ],
+ [
+ 17.265625,
+ "the"
+ ],
+ [
+ 17.421875,
+ "x"
+ ],
+ [
+ 17.617208,
+ "terms"
+ ],
+ [
+ 17.929708,
+ "make"
+ ],
+ [
+ 18.346375,
+ "eight"
+ ],
+ [
+ 18.541666,
+ "x"
+ ],
+ [
+ 19.283875,
+ "and"
+ ],
+ [
+ 19.375,
+ "the"
+ ],
+ [
+ 19.453125,
+ "numbers"
+ ],
+ [
+ 19.778666,
+ "make"
+ ],
+ [
+ 20.013041,
+ "two"
+ ],
+ [
+ 20.833333,
+ "The"
+ ],
+ [
+ 20.898458,
+ "perimeter"
+ ],
+ [
+ 21.5495,
+ "is"
+ ],
+ [
+ 21.940125,
+ "eight"
+ ],
+ [
+ 22.317708,
+ "x"
+ ],
+ [
+ 22.552083,
+ "plus"
+ ],
+ [
+ 22.903666,
+ "two"
+ ]
+ ],
+ "marks": {
+ "rect": 2.812,
+ "walk": 8.633,
+ "sum": 14.102,
+ "nums": 19.284,
+ "ans": 20.833
+ },
+ "cues": [
+ [
+ 0.104,
+ "Polynomials can describe measurements."
+ ],
+ [
+ 2.812,
+ "A rectangle is three x plus two units long and x minus one units wide."
+ ],
+ [
+ 8.633,
+ "Its perimeter is the distance around: length plus width plus length plus width."
+ ],
+ [
+ 14.102,
+ "Add all four sides and combine like terms: the x terms make eight x, and the numbers make two."
+ ],
+ [
+ 20.833,
+ "The perimeter is eight x plus two."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "e6cd27c84c78441281af7814a67f2c2cc2b893a5",
+ "dur": 2.4,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.247416,
+ "check"
+ ],
+ [
+ 1.158875,
+ "Find"
+ ],
+ [
+ 1.354166,
+ "the"
+ ],
+ [
+ 1.419291,
+ "perimeter"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.159,
+ "Find the perimeter."
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "5112392f8dceb4d8f6a7904cd155a314ac20c6ef",
+ "dur": 18.672,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.15625,
+ "sum"
+ ],
+ [
+ 0.364583,
+ "up"
+ ],
+ [
+ 0.989583,
+ "A"
+ ],
+ [
+ 1.041666,
+ "polynomial"
+ ],
+ [
+ 1.848958,
+ "is"
+ ],
+ [
+ 1.966166,
+ "a"
+ ],
+ [
+ 2.005208,
+ "monomial"
+ ],
+ [
+ 2.838541,
+ "or"
+ ],
+ [
+ 2.929708,
+ "a"
+ ],
+ [
+ 2.981791,
+ "sum"
+ ],
+ [
+ 3.216166,
+ "of"
+ ],
+ [
+ 3.26825,
+ "monomials"
+ ],
+ [
+ 4.596375,
+ "written"
+ ],
+ [
+ 4.973958,
+ "in"
+ ],
+ [
+ 5.052083,
+ "descending"
+ ],
+ [
+ 5.546875,
+ "order"
+ ],
+ [
+ 6.328125,
+ "To"
+ ],
+ [
+ 6.445333,
+ "add"
+ ],
+ [
+ 7.044291,
+ "combine"
+ ],
+ [
+ 7.460958,
+ "like"
+ ],
+ [
+ 7.64325,
+ "terms"
+ ],
+ [
+ 8.567708,
+ "same"
+ ],
+ [
+ 8.880208,
+ "variables"
+ ],
+ [
+ 9.83075,
+ "same"
+ ],
+ [
+ 10.14325,
+ "powers"
+ ],
+ [
+ 11.210958,
+ "To"
+ ],
+ [
+ 11.276041,
+ "subtract"
+ ],
+ [
+ 12.317708,
+ "change"
+ ],
+ [
+ 12.695333,
+ "the"
+ ],
+ [
+ 12.7995,
+ "sign"
+ ],
+ [
+ 13.229166,
+ "of"
+ ],
+ [
+ 13.515625,
+ "every"
+ ],
+ [
+ 13.802083,
+ "term"
+ ],
+ [
+ 14.153666,
+ "being"
+ ],
+ [
+ 14.479166,
+ "subtracted"
+ ],
+ [
+ 15.481791,
+ "then"
+ ],
+ [
+ 15.677083,
+ "add"
+ ],
+ [
+ 16.497416,
+ "Now"
+ ],
+ [
+ 16.875,
+ "try"
+ ],
+ [
+ 17.070333,
+ "the"
+ ],
+ [
+ 17.161458,
+ "chapter"
+ ],
+ [
+ 17.565125,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 0.99,
+ "w2": 6.328,
+ "w3": 11.211,
+ "end": 16.497
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.99,
+ "A polynomial is a monomial or a sum of monomials, written in descending order."
+ ],
+ [
+ 6.328,
+ "To add, combine like terms: same variables, same powers."
+ ],
+ [
+ 11.211,
+ "To subtract, change the sign of every term being subtracted, then add."
+ ],
+ [
+ 16.497,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "1327f9e9eea65485cb73993b98322f337bb5be0f",
+ "dur": 4.824,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.416666,
+ "practice"
+ ],
+ [
+ 1.536458,
+ "Monomial"
+ ],
+ [
+ 2.447916,
+ "binomial"
+ ],
+ [
+ 3.4245,
+ "or"
+ ],
+ [
+ 3.645833,
+ "trinomial"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.536,
+ "Monomial, binomial, or trinomial?"
+ ]
+ ]
+ },
+ "final2": {
+ "key": "e116e84f83a8d4cf2ce15f312fb5d30b58f13c0e",
+ "dur": 2.136,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.585958,
+ "add"
+ ],
+ [
+ 0.703125,
+ "the"
+ ],
+ [
+ 0.76825,
+ "polynomials"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, add the polynomials."
+ ]
+ ]
+ },
+ "final3": {
+ "key": "c0a90edcd04837ee243cab4959a9aafa9300d776",
+ "dur": 2.184,
+ "words": [
+ [
+ 0.104166,
+ "Last"
+ ],
+ [
+ 0.416666,
+ "one"
+ ],
+ [
+ 1.132833,
+ "Subtract"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.133,
+ "Subtract."
+ ]
+ ]
+ },
+ "finish": {
+ "key": "bf943979e58bac88841611b476895203233b5eb9",
+ "dur": 6.24,
+ "words": [
+ [
+ 0.104166,
+ "Well"
+ ],
+ [
+ 0.247416,
+ "done"
+ ],
+ [
+ 1.08075,
+ "That's"
+ ],
+ [
+ 1.263041,
+ "the"
+ ],
+ [
+ 1.380208,
+ "end"
+ ],
+ [
+ 1.692708,
+ "of"
+ ],
+ [
+ 1.822916,
+ "chapter"
+ ],
+ [
+ 2.369791,
+ "forty-eight"
+ ],
+ [
+ 3.606791,
+ "adding"
+ ],
+ [
+ 4.140625,
+ "and"
+ ],
+ [
+ 4.231791,
+ "subtracting"
+ ],
+ [
+ 4.921875,
+ "polynomials"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Well done."
+ ],
+ [
+ 1.081,
+ "That's the end of chapter forty-eight, adding and subtracting polynomials."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch49/narration.en.json b/content/ch49/narration.en.json
new file mode 100644
index 0000000..1695239
--- /dev/null
+++ b/content/ch49/narration.en.json
@@ -0,0 +1,21 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter forty-nine. [[sub]]When powers share a base, multiplying and dividing them comes down to adding and subtracting exponents.",
+ "mult": "Multiply five squared by five to the fourth. [[expand]]Write out every factor. Five squared is two fives, [[expand2]]and five to the fourth is four more fives. [[join]]Multiplying puts them all in one row. [[count]]Count the fives: two plus four makes six. [[ans]]So the product is five to the sixth. [[rule]]Multiplying powers with the same base: keep the base, add the exponents.",
+ "same": "The base must be the same. [[ok]]Three squared times three to the ninth simplifies to three to the eleventh. [[no]]Eight to the fifth times seven to the fourth can't be combined: the factors are eights and sevens, so there's nothing to count together. [[warn]]And keep the base as it is. Three to the fifth times three to the seventh is three to the twelfth, not nine to the twelfth and not three to the thirty-fifth.",
+ "q1": "Quick check. Multiply the powers.",
+ "div": "Now divide eight to the seventh by eight cubed. [[frac]]Write it as a fraction, with every factor showing. [[cancel]]Each eight on the bottom cancels one eight on the top, [[left]]three pairs in all. [[ans]]Seven eights minus three eights leaves four: eight to the fourth. [[rule]]Dividing powers with the same base: keep the base, subtract the exponents.",
+ "one": "When an exponent isn't written, it's one. [[ex]]Negative two to the ninth, divided by negative two, [[one]]is negative two to the ninth divided by negative two to the first. [[ans]]Nine minus one: negative two to the eighth.",
+ "neg": "The difference can be negative. [[ex]]Six to the fifth divided by six to the seventh. [[sub]]Five minus seven is negative two. [[why]]In the fraction, five sixes cancel, and two are left on the bottom. [[ans]]So six to the negative two is one over six squared, one thirty-sixth.",
+ "q2": "Quick check. Divide the powers.",
+ "chain": "For a longer chain, work left to right, just like the order of operations. [[ex]]Nine to the seventh, times nine cubed, divided by nine squared. [[step1]]Multiply first: add seven and three to get ten. [[step2]]Then divide: ten minus two is eight. [[ans]]The result is nine to the eighth. [[quick]]In one line: add the exponents you multiply by, subtract the ones you divide by.",
+ "q3": "Quick check. Who simplified correctly?",
+ "wrap": "To sum up, for powers with the same base: [[w1]]to multiply, add the exponents. [[w2]]To divide, subtract the exponents. [[w3]]The base doesn't change, and different bases don't combine. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Find the exponent.",
+ "final2": "Next, longer chains.",
+ "final3": "Last one. Can it be combined into one power?",
+ "finish": "Nice work. That's the end of chapter forty-nine, multiplying and dividing powers."
+ }
+}
diff --git a/content/ch49/narration.en.timings.json b/content/ch49/narration.en.timings.json
new file mode 100644
index 0000000..7e36176
--- /dev/null
+++ b/content/ch49/narration.en.timings.json
@@ -0,0 +1,2112 @@
+{
+ "intro": {
+ "key": "07015e1dd3a21d252768c7b34575c8021a6d43e9",
+ "dur": 8.88,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.494791,
+ "forty-nine"
+ ],
+ [
+ 1.588541,
+ "When"
+ ],
+ [
+ 1.809916,
+ "powers"
+ ],
+ [
+ 2.33075,
+ "share"
+ ],
+ [
+ 2.64325,
+ "a"
+ ],
+ [
+ 2.708333,
+ "base"
+ ],
+ [
+ 3.737,
+ "multiplying"
+ ],
+ [
+ 4.661458,
+ "and"
+ ],
+ [
+ 4.739583,
+ "dividing"
+ ],
+ [
+ 5.247416,
+ "them"
+ ],
+ [
+ 5.45575,
+ "comes"
+ ],
+ [
+ 5.820333,
+ "down"
+ ],
+ [
+ 6.132833,
+ "to"
+ ],
+ [
+ 6.276041,
+ "adding"
+ ],
+ [
+ 6.979166,
+ "and"
+ ],
+ [
+ 7.083333,
+ "subtracting"
+ ],
+ [
+ 7.721375,
+ "exponents"
+ ]
+ ],
+ "marks": {
+ "sub": 1.589
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter forty-nine."
+ ],
+ [
+ 1.589,
+ "When powers share a base, multiplying and dividing them comes down to adding and subtracting exponents."
+ ]
+ ]
+ },
+ "mult": {
+ "key": "b7c6ed9b618a9a5b2b08bac8a49bfbcf9132cbcf",
+ "dur": 24.792,
+ "words": [
+ [
+ 0.091166,
+ "Multiply"
+ ],
+ [
+ 0.598958,
+ "five"
+ ],
+ [
+ 1.028666,
+ "squared"
+ ],
+ [
+ 1.536458,
+ "by"
+ ],
+ [
+ 1.796875,
+ "five"
+ ],
+ [
+ 2.395833,
+ "to"
+ ],
+ [
+ 2.487,
+ "the"
+ ],
+ [
+ 2.591166,
+ "fourth"
+ ],
+ [
+ 3.567708,
+ "Write"
+ ],
+ [
+ 3.737,
+ "out"
+ ],
+ [
+ 4.114583,
+ "every"
+ ],
+ [
+ 4.388041,
+ "factor"
+ ],
+ [
+ 5.585958,
+ "Five"
+ ],
+ [
+ 5.833333,
+ "squared"
+ ],
+ [
+ 6.380208,
+ "is"
+ ],
+ [
+ 6.523458,
+ "two"
+ ],
+ [
+ 6.809916,
+ "fives"
+ ],
+ [
+ 7.708333,
+ "and"
+ ],
+ [
+ 7.825541,
+ "five"
+ ],
+ [
+ 8.112,
+ "to"
+ ],
+ [
+ 8.177083,
+ "the"
+ ],
+ [
+ 8.255208,
+ "fourth"
+ ],
+ [
+ 8.737,
+ "is"
+ ],
+ [
+ 8.854166,
+ "four"
+ ],
+ [
+ 9.127625,
+ "more"
+ ],
+ [
+ 9.335958,
+ "fives"
+ ],
+ [
+ 10.351583,
+ "Multiplying"
+ ],
+ [
+ 11.054708,
+ "puts"
+ ],
+ [
+ 11.289083,
+ "them"
+ ],
+ [
+ 11.536458,
+ "all"
+ ],
+ [
+ 11.914083,
+ "in"
+ ],
+ [
+ 12.03125,
+ "one"
+ ],
+ [
+ 12.291666,
+ "row"
+ ],
+ [
+ 13.098958,
+ "Count"
+ ],
+ [
+ 13.294291,
+ "the"
+ ],
+ [
+ 13.372416,
+ "fives"
+ ],
+ [
+ 14.309916,
+ "two"
+ ],
+ [
+ 14.492208,
+ "plus"
+ ],
+ [
+ 14.804708,
+ "four"
+ ],
+ [
+ 15.195333,
+ "makes"
+ ],
+ [
+ 15.494791,
+ "six"
+ ],
+ [
+ 16.523458,
+ "So"
+ ],
+ [
+ 16.653666,
+ "the"
+ ],
+ [
+ 16.731791,
+ "product"
+ ],
+ [
+ 17.369791,
+ "is"
+ ],
+ [
+ 17.526041,
+ "five"
+ ],
+ [
+ 18.203125,
+ "to"
+ ],
+ [
+ 18.294291,
+ "the"
+ ],
+ [
+ 18.398458,
+ "sixth"
+ ],
+ [
+ 19.492208,
+ "Multiplying"
+ ],
+ [
+ 20.130208,
+ "powers"
+ ],
+ [
+ 20.612,
+ "with"
+ ],
+ [
+ 20.703125,
+ "the"
+ ],
+ [
+ 20.76825,
+ "same"
+ ],
+ [
+ 21.158875,
+ "base"
+ ],
+ [
+ 22.01825,
+ "keep"
+ ],
+ [
+ 22.265625,
+ "the"
+ ],
+ [
+ 22.369791,
+ "base"
+ ],
+ [
+ 23.177083,
+ "add"
+ ],
+ [
+ 23.476583,
+ "the"
+ ],
+ [
+ 23.528666,
+ "exponents"
+ ]
+ ],
+ "marks": {
+ "expand": 3.568,
+ "expand2": 7.708,
+ "join": 10.352,
+ "count": 13.099,
+ "ans": 16.523,
+ "rule": 19.492
+ },
+ "cues": [
+ [
+ 0.091,
+ "Multiply five squared by five to the fourth."
+ ],
+ [
+ 3.568,
+ "Write out every factor."
+ ],
+ [
+ 5.586,
+ "Five squared is two fives, and five to the fourth is four more fives."
+ ],
+ [
+ 10.352,
+ "Multiplying puts them all in one row."
+ ],
+ [
+ 13.099,
+ "Count the fives: two plus four makes six."
+ ],
+ [
+ 16.523,
+ "So the product is five to the sixth."
+ ],
+ [
+ 19.492,
+ "Multiplying powers with the same base: keep the base, add the exponents."
+ ]
+ ]
+ },
+ "same": {
+ "key": "53c23e0fba88270f451111185fccea62342f77c4",
+ "dur": 26.592,
+ "words": [
+ [
+ 0.117208,
+ "The"
+ ],
+ [
+ 0.182291,
+ "base"
+ ],
+ [
+ 0.520833,
+ "must"
+ ],
+ [
+ 0.729166,
+ "be"
+ ],
+ [
+ 0.833333,
+ "the"
+ ],
+ [
+ 0.911458,
+ "same"
+ ],
+ [
+ 1.796875,
+ "Three"
+ ],
+ [
+ 2.005208,
+ "squared"
+ ],
+ [
+ 2.369791,
+ "times"
+ ],
+ [
+ 2.981791,
+ "three"
+ ],
+ [
+ 3.411458,
+ "to"
+ ],
+ [
+ 3.528666,
+ "the"
+ ],
+ [
+ 3.59375,
+ "ninth"
+ ],
+ [
+ 4.231791,
+ "simplifies"
+ ],
+ [
+ 5.338541,
+ "to"
+ ],
+ [
+ 5.442708,
+ "three"
+ ],
+ [
+ 6.302083,
+ "to"
+ ],
+ [
+ 6.419291,
+ "the"
+ ],
+ [
+ 6.510416,
+ "eleventh"
+ ],
+ [
+ 7.5,
+ "Eight"
+ ],
+ [
+ 7.617208,
+ "to"
+ ],
+ [
+ 7.708333,
+ "the"
+ ],
+ [
+ 7.8125,
+ "fifth"
+ ],
+ [
+ 8.216166,
+ "times"
+ ],
+ [
+ 8.841166,
+ "seven"
+ ],
+ [
+ 9.21875,
+ "to"
+ ],
+ [
+ 9.309916,
+ "the"
+ ],
+ [
+ 9.401041,
+ "fourth"
+ ],
+ [
+ 9.869791,
+ "can't"
+ ],
+ [
+ 10.182291,
+ "be"
+ ],
+ [
+ 10.2995,
+ "combined"
+ ],
+ [
+ 11.302083,
+ "the"
+ ],
+ [
+ 11.40625,
+ "factors"
+ ],
+ [
+ 11.901041,
+ "are"
+ ],
+ [
+ 12.1745,
+ "eights"
+ ],
+ [
+ 12.539083,
+ "and"
+ ],
+ [
+ 12.630208,
+ "sevens"
+ ],
+ [
+ 13.515625,
+ "so"
+ ],
+ [
+ 14.101583,
+ "there's"
+ ],
+ [
+ 14.296875,
+ "nothing"
+ ],
+ [
+ 14.713541,
+ "to"
+ ],
+ [
+ 14.778666,
+ "count"
+ ],
+ [
+ 15.078125,
+ "together"
+ ],
+ [
+ 16.002625,
+ "And"
+ ],
+ [
+ 16.106791,
+ "keep"
+ ],
+ [
+ 16.289083,
+ "the"
+ ],
+ [
+ 16.380208,
+ "base"
+ ],
+ [
+ 16.70575,
+ "as"
+ ],
+ [
+ 16.848958,
+ "it"
+ ],
+ [
+ 16.927083,
+ "is"
+ ],
+ [
+ 17.786458,
+ "Three"
+ ],
+ [
+ 18.007833,
+ "to"
+ ],
+ [
+ 18.098958,
+ "the"
+ ],
+ [
+ 18.203125,
+ "fifth"
+ ],
+ [
+ 18.567708,
+ "times"
+ ],
+ [
+ 19.127625,
+ "three"
+ ],
+ [
+ 19.51825,
+ "to"
+ ],
+ [
+ 19.648458,
+ "the"
+ ],
+ [
+ 19.752625,
+ "seventh"
+ ],
+ [
+ 20.598958,
+ "is"
+ ],
+ [
+ 20.846375,
+ "three"
+ ],
+ [
+ 21.614583,
+ "to"
+ ],
+ [
+ 21.731791,
+ "the"
+ ],
+ [
+ 21.822916,
+ "twelfth"
+ ],
+ [
+ 22.64325,
+ "not"
+ ],
+ [
+ 22.96875,
+ "nine"
+ ],
+ [
+ 23.294291,
+ "to"
+ ],
+ [
+ 23.372416,
+ "the"
+ ],
+ [
+ 23.463541,
+ "twelfth"
+ ],
+ [
+ 24.20575,
+ "and"
+ ],
+ [
+ 24.348958,
+ "not"
+ ],
+ [
+ 24.622416,
+ "three"
+ ],
+ [
+ 25.260416,
+ "to"
+ ],
+ [
+ 25.377625,
+ "the"
+ ],
+ [
+ 25.46875,
+ "thirty-fifth"
+ ]
+ ],
+ "marks": {
+ "ok": 1.797,
+ "no": 7.5,
+ "warn": 16.003
+ },
+ "cues": [
+ [
+ 0.117,
+ "The base must be the same."
+ ],
+ [
+ 1.797,
+ "Three squared times three to the ninth simplifies to three to the eleventh."
+ ],
+ [
+ 7.5,
+ "Eight to the fifth times seven to the fourth can't be combined: the factors are eights and sevens, so there's nothing to count together."
+ ],
+ [
+ 16.003,
+ "And keep the base as it is."
+ ],
+ [
+ 17.786,
+ "Three to the fifth times three to the seventh is three to the twelfth, not nine to the twelfth and not three to the thirty-fifth."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "1de0df4811e9fd344e8ea7a1ed292604d131088f",
+ "dur": 2.736,
+ "words": [
+ [
+ 0.091166,
+ "Quick"
+ ],
+ [
+ 0.247416,
+ "check"
+ ],
+ [
+ 1.119791,
+ "Multiply"
+ ],
+ [
+ 1.601583,
+ "the"
+ ],
+ [
+ 1.692708,
+ "powers"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "Multiply the powers."
+ ]
+ ]
+ },
+ "div": {
+ "key": "1b764bb6aabfe6d52c6db276c04801d4973263a0",
+ "dur": 21.84,
+ "words": [
+ [
+ 0.104166,
+ "Now"
+ ],
+ [
+ 0.286458,
+ "divide"
+ ],
+ [
+ 0.9375,
+ "eight"
+ ],
+ [
+ 1.158875,
+ "to"
+ ],
+ [
+ 1.276041,
+ "the"
+ ],
+ [
+ 1.380208,
+ "seventh"
+ ],
+ [
+ 2.03125,
+ "by"
+ ],
+ [
+ 2.395833,
+ "eight"
+ ],
+ [
+ 2.669291,
+ "cubed"
+ ],
+ [
+ 3.554708,
+ "Write"
+ ],
+ [
+ 3.737,
+ "it"
+ ],
+ [
+ 3.802083,
+ "as"
+ ],
+ [
+ 3.919291,
+ "a"
+ ],
+ [
+ 3.958333,
+ "fraction"
+ ],
+ [
+ 4.895833,
+ "with"
+ ],
+ [
+ 5.208333,
+ "every"
+ ],
+ [
+ 5.494791,
+ "factor"
+ ],
+ [
+ 5.976583,
+ "showing"
+ ],
+ [
+ 6.862,
+ "Each"
+ ],
+ [
+ 7.070333,
+ "eight"
+ ],
+ [
+ 7.239583,
+ "on"
+ ],
+ [
+ 7.33075,
+ "the"
+ ],
+ [
+ 7.408875,
+ "bottom"
+ ],
+ [
+ 7.7995,
+ "cancels"
+ ],
+ [
+ 8.307291,
+ "one"
+ ],
+ [
+ 8.658875,
+ "eight"
+ ],
+ [
+ 8.867208,
+ "on"
+ ],
+ [
+ 8.984375,
+ "the"
+ ],
+ [
+ 9.0495,
+ "top"
+ ],
+ [
+ 9.713541,
+ "three"
+ ],
+ [
+ 10.117208,
+ "pairs"
+ ],
+ [
+ 10.45575,
+ "in"
+ ],
+ [
+ 10.546875,
+ "all"
+ ],
+ [
+ 11.341166,
+ "Seven"
+ ],
+ [
+ 11.679708,
+ "eights"
+ ],
+ [
+ 11.940125,
+ "minus"
+ ],
+ [
+ 12.369791,
+ "three"
+ ],
+ [
+ 12.864583,
+ "eights"
+ ],
+ [
+ 13.177083,
+ "leaves"
+ ],
+ [
+ 13.723958,
+ "four"
+ ],
+ [
+ 14.752625,
+ "eight"
+ ],
+ [
+ 14.960958,
+ "to"
+ ],
+ [
+ 15.078125,
+ "the"
+ ],
+ [
+ 15.169291,
+ "fourth"
+ ],
+ [
+ 16.132833,
+ "Dividing"
+ ],
+ [
+ 16.640625,
+ "powers"
+ ],
+ [
+ 17.278666,
+ "with"
+ ],
+ [
+ 17.369791,
+ "the"
+ ],
+ [
+ 17.447916,
+ "same"
+ ],
+ [
+ 17.825541,
+ "base"
+ ],
+ [
+ 18.841166,
+ "keep"
+ ],
+ [
+ 19.0495,
+ "the"
+ ],
+ [
+ 19.153666,
+ "base"
+ ],
+ [
+ 19.895833,
+ "subtract"
+ ],
+ [
+ 20.507833,
+ "the"
+ ],
+ [
+ 20.572916,
+ "exponents"
+ ]
+ ],
+ "marks": {
+ "frac": 3.555,
+ "cancel": 6.862,
+ "left": 9.714,
+ "ans": 11.341,
+ "rule": 16.133
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now divide eight to the seventh by eight cubed."
+ ],
+ [
+ 3.555,
+ "Write it as a fraction, with every factor showing."
+ ],
+ [
+ 6.862,
+ "Each eight on the bottom cancels one eight on the top, three pairs in all."
+ ],
+ [
+ 11.341,
+ "Seven eights minus three eights leaves four: eight to the fourth."
+ ],
+ [
+ 16.133,
+ "Dividing powers with the same base: keep the base, subtract the exponents."
+ ]
+ ]
+ },
+ "one": {
+ "key": "2f2749ca6adaeb0194d475599d601eb42590060e",
+ "dur": 15.768,
+ "words": [
+ [
+ 0.104166,
+ "When"
+ ],
+ [
+ 0.182291,
+ "an"
+ ],
+ [
+ 0.260416,
+ "exponent"
+ ],
+ [
+ 1.041666,
+ "isn't"
+ ],
+ [
+ 1.354166,
+ "written"
+ ],
+ [
+ 2.135416,
+ "it's"
+ ],
+ [
+ 2.291666,
+ "one"
+ ],
+ [
+ 3.112,
+ "Negative"
+ ],
+ [
+ 3.502625,
+ "two"
+ ],
+ [
+ 3.90625,
+ "to"
+ ],
+ [
+ 4.0625,
+ "the"
+ ],
+ [
+ 4.140625,
+ "ninth"
+ ],
+ [
+ 4.921875,
+ "divided"
+ ],
+ [
+ 5.377625,
+ "by"
+ ],
+ [
+ 5.481791,
+ "negative"
+ ],
+ [
+ 6.028666,
+ "two"
+ ],
+ [
+ 7.083333,
+ "is"
+ ],
+ [
+ 7.265625,
+ "negative"
+ ],
+ [
+ 7.8125,
+ "two"
+ ],
+ [
+ 8.4245,
+ "to"
+ ],
+ [
+ 8.567708,
+ "the"
+ ],
+ [
+ 8.658875,
+ "ninth"
+ ],
+ [
+ 9.075541,
+ "divided"
+ ],
+ [
+ 9.583333,
+ "by"
+ ],
+ [
+ 9.6875,
+ "negative"
+ ],
+ [
+ 10.247416,
+ "two"
+ ],
+ [
+ 10.846375,
+ "to"
+ ],
+ [
+ 10.976583,
+ "the"
+ ],
+ [
+ 11.054708,
+ "first"
+ ],
+ [
+ 12.096375,
+ "Nine"
+ ],
+ [
+ 12.356791,
+ "minus"
+ ],
+ [
+ 12.747416,
+ "one"
+ ],
+ [
+ 13.606791,
+ "negative"
+ ],
+ [
+ 14.023458,
+ "two"
+ ],
+ [
+ 14.583333,
+ "to"
+ ],
+ [
+ 14.726583,
+ "the"
+ ],
+ [
+ 14.869791,
+ "eighth"
+ ]
+ ],
+ "marks": {
+ "ex": 3.112,
+ "one": 7.083,
+ "ans": 12.096
+ },
+ "cues": [
+ [
+ 0.104,
+ "When an exponent isn't written, it's one."
+ ],
+ [
+ 3.112,
+ "Negative two to the ninth, divided by negative two, is negative two to the ninth divided by negative two to the first."
+ ],
+ [
+ 12.096,
+ "Nine minus one: negative two to the eighth."
+ ]
+ ]
+ },
+ "neg": {
+ "key": "bb45cfaf4b2777ef46490416945dee1b6ddac576",
+ "dur": 18.312,
+ "words": [
+ [
+ 0.104166,
+ "The"
+ ],
+ [
+ 0.195333,
+ "difference"
+ ],
+ [
+ 0.533875,
+ "can"
+ ],
+ [
+ 0.651041,
+ "be"
+ ],
+ [
+ 0.742208,
+ "negative"
+ ],
+ [
+ 1.848958,
+ "Six"
+ ],
+ [
+ 2.083333,
+ "to"
+ ],
+ [
+ 2.1745,
+ "the"
+ ],
+ [
+ 2.265625,
+ "fifth"
+ ],
+ [
+ 2.747416,
+ "divided"
+ ],
+ [
+ 3.255208,
+ "by"
+ ],
+ [
+ 3.411458,
+ "six"
+ ],
+ [
+ 4.0625,
+ "to"
+ ],
+ [
+ 4.179708,
+ "the"
+ ],
+ [
+ 4.257833,
+ "seventh"
+ ],
+ [
+ 5.286458,
+ "Five"
+ ],
+ [
+ 5.507833,
+ "minus"
+ ],
+ [
+ 5.846375,
+ "seven"
+ ],
+ [
+ 6.471375,
+ "is"
+ ],
+ [
+ 6.601583,
+ "negative"
+ ],
+ [
+ 7.135416,
+ "two"
+ ],
+ [
+ 7.96875,
+ "In"
+ ],
+ [
+ 8.046875,
+ "the"
+ ],
+ [
+ 8.125,
+ "fraction"
+ ],
+ [
+ 9.101583,
+ "five"
+ ],
+ [
+ 9.596375,
+ "sixes"
+ ],
+ [
+ 10.039083,
+ "cancel"
+ ],
+ [
+ 11.041666,
+ "and"
+ ],
+ [
+ 11.145833,
+ "two"
+ ],
+ [
+ 11.484375,
+ "are"
+ ],
+ [
+ 11.640625,
+ "left"
+ ],
+ [
+ 12.01825,
+ "on"
+ ],
+ [
+ 12.109375,
+ "the"
+ ],
+ [
+ 12.1745,
+ "bottom"
+ ],
+ [
+ 12.994791,
+ "So"
+ ],
+ [
+ 13.190125,
+ "six"
+ ],
+ [
+ 13.606791,
+ "to"
+ ],
+ [
+ 13.723958,
+ "the"
+ ],
+ [
+ 13.802083,
+ "negative"
+ ],
+ [
+ 14.166666,
+ "two"
+ ],
+ [
+ 14.726583,
+ "is"
+ ],
+ [
+ 14.908875,
+ "one"
+ ],
+ [
+ 15.208333,
+ "over"
+ ],
+ [
+ 15.416666,
+ "six"
+ ],
+ [
+ 15.78125,
+ "squared"
+ ],
+ [
+ 16.588541,
+ "one"
+ ],
+ [
+ 17.044291,
+ "thirty-sixth"
+ ]
+ ],
+ "marks": {
+ "ex": 1.849,
+ "sub": 5.286,
+ "why": 7.969,
+ "ans": 12.995
+ },
+ "cues": [
+ [
+ 0.104,
+ "The difference can be negative."
+ ],
+ [
+ 1.849,
+ "Six to the fifth divided by six to the seventh."
+ ],
+ [
+ 5.286,
+ "Five minus seven is negative two."
+ ],
+ [
+ 7.969,
+ "In the fraction, five sixes cancel, and two are left on the bottom."
+ ],
+ [
+ 12.995,
+ "So six to the negative two is one over six squared, one thirty-sixth."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "598b728a62b555d14f76c0d6649de417e3ecdc2d",
+ "dur": 2.568,
+ "words": [
+ [
+ 0.091166,
+ "Quick"
+ ],
+ [
+ 0.260416,
+ "check"
+ ],
+ [
+ 1.145833,
+ "Divide"
+ ],
+ [
+ 1.458333,
+ "the"
+ ],
+ [
+ 1.523458,
+ "powers"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.146,
+ "Divide the powers."
+ ]
+ ]
+ },
+ "chain": {
+ "key": "55b5038111852cb17191f1cabd1f142373fa17a9",
+ "dur": 25.824,
+ "words": [
+ [
+ 0.130208,
+ "For"
+ ],
+ [
+ 0.208333,
+ "a"
+ ],
+ [
+ 0.260416,
+ "longer"
+ ],
+ [
+ 0.664083,
+ "chain"
+ ],
+ [
+ 1.588541,
+ "work"
+ ],
+ [
+ 1.848958,
+ "left"
+ ],
+ [
+ 2.109375,
+ "to"
+ ],
+ [
+ 2.213541,
+ "right"
+ ],
+ [
+ 3.007833,
+ "just"
+ ],
+ [
+ 3.190125,
+ "like"
+ ],
+ [
+ 3.307291,
+ "the"
+ ],
+ [
+ 3.359375,
+ "order"
+ ],
+ [
+ 3.697916,
+ "of"
+ ],
+ [
+ 3.776041,
+ "operations"
+ ],
+ [
+ 5.052083,
+ "Nine"
+ ],
+ [
+ 5.338541,
+ "to"
+ ],
+ [
+ 5.442708,
+ "the"
+ ],
+ [
+ 5.533875,
+ "seventh"
+ ],
+ [
+ 6.419291,
+ "times"
+ ],
+ [
+ 6.796875,
+ "nine"
+ ],
+ [
+ 7.213541,
+ "cubed"
+ ],
+ [
+ 7.95575,
+ "divided"
+ ],
+ [
+ 8.385416,
+ "by"
+ ],
+ [
+ 8.502625,
+ "nine"
+ ],
+ [
+ 8.919291,
+ "squared"
+ ],
+ [
+ 9.869791,
+ "Multiply"
+ ],
+ [
+ 10.442708,
+ "first"
+ ],
+ [
+ 11.614583,
+ "add"
+ ],
+ [
+ 11.809916,
+ "seven"
+ ],
+ [
+ 12.239583,
+ "and"
+ ],
+ [
+ 12.34375,
+ "three"
+ ],
+ [
+ 13.033875,
+ "to"
+ ],
+ [
+ 13.151041,
+ "get"
+ ],
+ [
+ 13.346375,
+ "ten"
+ ],
+ [
+ 14.140625,
+ "Then"
+ ],
+ [
+ 14.322916,
+ "divide"
+ ],
+ [
+ 15.195333,
+ "ten"
+ ],
+ [
+ 15.442708,
+ "minus"
+ ],
+ [
+ 15.78125,
+ "two"
+ ],
+ [
+ 16.210958,
+ "is"
+ ],
+ [
+ 16.471375,
+ "eight"
+ ],
+ [
+ 17.200541,
+ "The"
+ ],
+ [
+ 17.252625,
+ "result"
+ ],
+ [
+ 17.994791,
+ "is"
+ ],
+ [
+ 18.138041,
+ "nine"
+ ],
+ [
+ 18.632833,
+ "to"
+ ],
+ [
+ 18.75,
+ "the"
+ ],
+ [
+ 18.880208,
+ "eighth"
+ ],
+ [
+ 19.713541,
+ "In"
+ ],
+ [
+ 19.84375,
+ "one"
+ ],
+ [
+ 20.091166,
+ "line"
+ ],
+ [
+ 20.989583,
+ "add"
+ ],
+ [
+ 21.171875,
+ "the"
+ ],
+ [
+ 21.237,
+ "exponents"
+ ],
+ [
+ 21.862,
+ "you"
+ ],
+ [
+ 21.966166,
+ "multiply"
+ ],
+ [
+ 22.721375,
+ "by"
+ ],
+ [
+ 23.632833,
+ "subtract"
+ ],
+ [
+ 24.21875,
+ "the"
+ ],
+ [
+ 24.309916,
+ "ones"
+ ],
+ [
+ 24.596375,
+ "you"
+ ],
+ [
+ 24.661458,
+ "divide"
+ ],
+ [
+ 25.065125,
+ "by"
+ ]
+ ],
+ "marks": {
+ "ex": 5.052,
+ "step1": 9.87,
+ "step2": 14.141,
+ "ans": 17.201,
+ "quick": 19.714
+ },
+ "cues": [
+ [
+ 0.13,
+ "For a longer chain, work left to right, just like the order of operations."
+ ],
+ [
+ 5.052,
+ "Nine to the seventh, times nine cubed, divided by nine squared."
+ ],
+ [
+ 9.87,
+ "Multiply first: add seven and three to get ten."
+ ],
+ [
+ 14.141,
+ "Then divide: ten minus two is eight."
+ ],
+ [
+ 17.201,
+ "The result is nine to the eighth."
+ ],
+ [
+ 19.714,
+ "In one line: add the exponents you multiply by, subtract the ones you divide by."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "28db8c4d41707fb6db2fd4933ebe273c66ff16ac",
+ "dur": 2.808,
+ "words": [
+ [
+ 0.091166,
+ "Quick"
+ ],
+ [
+ 0.260416,
+ "check"
+ ],
+ [
+ 1.158875,
+ "Who"
+ ],
+ [
+ 1.237,
+ "simplified"
+ ],
+ [
+ 1.875,
+ "correctly"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.159,
+ "Who simplified correctly?"
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "0e66ad205862ce51d67c60e20c99e44469007444",
+ "dur": 15.216,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "sum"
+ ],
+ [
+ 0.390625,
+ "up"
+ ],
+ [
+ 0.9375,
+ "for"
+ ],
+ [
+ 1.106791,
+ "powers"
+ ],
+ [
+ 1.614583,
+ "with"
+ ],
+ [
+ 1.731791,
+ "the"
+ ],
+ [
+ 1.822916,
+ "same"
+ ],
+ [
+ 2.226583,
+ "base"
+ ],
+ [
+ 3.203125,
+ "to"
+ ],
+ [
+ 3.307291,
+ "multiply"
+ ],
+ [
+ 4.609375,
+ "add"
+ ],
+ [
+ 4.882833,
+ "the"
+ ],
+ [
+ 4.934916,
+ "exponents"
+ ],
+ [
+ 6.210958,
+ "To"
+ ],
+ [
+ 6.263041,
+ "divide"
+ ],
+ [
+ 7.239583,
+ "subtract"
+ ],
+ [
+ 7.877625,
+ "the"
+ ],
+ [
+ 7.96875,
+ "exponents"
+ ],
+ [
+ 9.244791,
+ "The"
+ ],
+ [
+ 9.335958,
+ "base"
+ ],
+ [
+ 9.661458,
+ "doesn't"
+ ],
+ [
+ 9.973958,
+ "change"
+ ],
+ [
+ 10.807291,
+ "and"
+ ],
+ [
+ 11.09375,
+ "different"
+ ],
+ [
+ 11.445333,
+ "bases"
+ ],
+ [
+ 11.875,
+ "don't"
+ ],
+ [
+ 12.135416,
+ "combine"
+ ],
+ [
+ 13.033875,
+ "Now"
+ ],
+ [
+ 13.476583,
+ "try"
+ ],
+ [
+ 13.645833,
+ "the"
+ ],
+ [
+ 13.723958,
+ "chapter"
+ ],
+ [
+ 14.127625,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 3.203,
+ "w2": 6.211,
+ "w3": 9.245,
+ "end": 13.034
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up, for powers with the same base: to multiply, add the exponents."
+ ],
+ [
+ 6.211,
+ "To divide, subtract the exponents."
+ ],
+ [
+ 9.245,
+ "The base doesn't change, and different bases don't combine."
+ ],
+ [
+ 13.034,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "4c4ff4d84bd9d185c985dcfbae867417c0dcbd10",
+ "dur": 2.88,
+ "words": [
+ [
+ 0.117208,
+ "Chapter"
+ ],
+ [
+ 0.416666,
+ "practice"
+ ],
+ [
+ 1.5625,
+ "Find"
+ ],
+ [
+ 1.744791,
+ "the"
+ ],
+ [
+ 1.783875,
+ "exponent"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.117,
+ "Chapter practice."
+ ],
+ [
+ 1.562,
+ "Find the exponent."
+ ]
+ ]
+ },
+ "final2": {
+ "key": "b5a0d4db331737b17eb1f0b60540c34dabced78d",
+ "dur": 1.872,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.46875,
+ "longer"
+ ],
+ [
+ 0.78125,
+ "chains"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, longer chains."
+ ]
+ ]
+ },
+ "final3": {
+ "key": "f97bbe06dc7d750b80262ebd40fe33f325b77f46",
+ "dur": 3.432,
+ "words": [
+ [
+ 0.104166,
+ "Last"
+ ],
+ [
+ 0.403666,
+ "one"
+ ],
+ [
+ 1.132833,
+ "Can"
+ ],
+ [
+ 1.223958,
+ "it"
+ ],
+ [
+ 1.289083,
+ "be"
+ ],
+ [
+ 1.40625,
+ "combined"
+ ],
+ [
+ 1.940125,
+ "into"
+ ],
+ [
+ 2.135416,
+ "one"
+ ],
+ [
+ 2.526041,
+ "power"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.133,
+ "Can it be combined into one power?"
+ ]
+ ]
+ },
+ "finish": {
+ "key": "c2fa4eb62fa19e1837b8abeba1a220a2468c962b",
+ "dur": 6.072,
+ "words": [
+ [
+ 0.091166,
+ "Nice"
+ ],
+ [
+ 0.377625,
+ "work"
+ ],
+ [
+ 1.184916,
+ "That's"
+ ],
+ [
+ 1.367208,
+ "the"
+ ],
+ [
+ 1.484375,
+ "end"
+ ],
+ [
+ 1.822916,
+ "of"
+ ],
+ [
+ 1.901041,
+ "chapter"
+ ],
+ [
+ 2.421875,
+ "forty-nine"
+ ],
+ [
+ 3.671875,
+ "multiplying"
+ ],
+ [
+ 4.51825,
+ "and"
+ ],
+ [
+ 4.596375,
+ "dividing"
+ ],
+ [
+ 5.065125,
+ "powers"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Nice work."
+ ],
+ [
+ 1.185,
+ "That's the end of chapter forty-nine, multiplying and dividing powers."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch50/narration.en.json b/content/ch50/narration.en.json
new file mode 100644
index 0000000..6bc60ef
--- /dev/null
+++ b/content/ch50/narration.en.json
@@ -0,0 +1,22 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter fifty. [[sub]]Multiplying and dividing monomials uses the power rules you just learned, one base at a time.",
+ "parts": "A monomial is a number times some powers of variables. [[ex]]Three x squared y [[expand]]means three, times x times x, times y. [[coef]]The number in front is the coefficient. [[bases]]Each variable is its own base.",
+ "mult": "Multiply four x cubed y by five x squared y to the fourth. [[sort]]Since you can multiply in any order, sort the factors by kind: [[lanes]]numbers together, x's together, y's together. [[nums]]Multiply the numbers: four times five is twenty. [[xs]]For x, add the exponents: three plus two is five. [[ys]]For y, one plus four is five. [[ans]]The product is twenty x to the fifth y to the fifth.",
+ "q1": "Quick check. Multiply the monomials.",
+ "div": "Dividing works the same way. [[ex]]Twenty-one x to the sixth y to the tenth, divided by seven x to the fourth y cubed. [[frac]]Write it as a fraction, and split it by kind. [[nums]]Twenty-one divided by seven is three. [[xs]]For x, subtract: six minus four is two. [[ys]]For y, ten minus three is seven. [[ans]]The quotient is three x squared y to the seventh.",
+ "negdiv": "Sometimes the bottom has the bigger exponent. [[ex]]Three a to the fifth divided by ten a to the ninth. [[nums]]Three tenths can't be simplified. [[xs]]For a, five minus nine is negative four. [[pos]]To write it with a positive exponent, a to the negative four moves to the bottom as a to the fourth. [[ans]]So the result is three over ten a to the fourth.",
+ "q2": "Quick check. Divide the monomials.",
+ "power": "Now a power raised to a power. [[ex]]x cubed, squared, [[copies]]means two copies of x cubed multiplied together. [[expand]]Each copy is three x's, so there are two times three, six x's. [[ans]]x cubed, squared, is x to the sixth. [[rule]]To raise a power to a power, multiply the exponents.",
+ "powmono": "When a whole monomial is raised to a power, the power goes to every factor inside. [[ex]]Three a to the seventh b to the fourth, all squared. [[arrows]]The outside two reaches the three, the a to the seventh, and the b to the fourth. [[each]]Three squared is nine, a to the seven times two is a to the fourteenth, and b to the four times two is b to the eighth. [[ans]]The result is nine a to the fourteenth b to the eighth. [[warn]]A common slip is to forget the coefficient and write three a to the fourteenth b to the eighth.",
+ "q3": "Quick check. Who is correct?",
+ "combo": "Put it all together. [[ex]]Five a cubed b to the fourth, squared, times two a to the fifth b, cubed. [[pow]]First, raise each monomial to its power: twenty-five a to the sixth b to the eighth, and eight a to the fifteenth b cubed. [[mult]]Then multiply: twenty-five times eight is two hundred, a to the six plus fifteen, and b to the eight plus three. [[ans]]Two hundred a to the twenty-first b to the eleventh.",
+ "wrap": "To sum up. [[w1]]To multiply monomials, multiply the coefficients and add the exponents of each base. [[w2]]To divide, divide the coefficients and subtract the exponents. [[w3]]To raise a power to a power, multiply the exponents, and apply the power to every factor, coefficient included. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Multiply and divide.",
+ "final2": "Next, powers of monomials.",
+ "final3": "Last one. True or false?",
+ "finish": "Well done. That's the end of chapter fifty, multiplying and dividing monomials."
+ }
+}
diff --git a/content/ch50/narration.en.timings.json b/content/ch50/narration.en.timings.json
new file mode 100644
index 0000000..7bc89f3
--- /dev/null
+++ b/content/ch50/narration.en.timings.json
@@ -0,0 +1,2691 @@
+{
+ "intro": {
+ "key": "4f8c3d52a803a568295a2f303be8e093eb873c26",
+ "dur": 7.536,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.429708,
+ "fifty"
+ ],
+ [
+ 1.354166,
+ "Multiplying"
+ ],
+ [
+ 2.265625,
+ "and"
+ ],
+ [
+ 2.34375,
+ "dividing"
+ ],
+ [
+ 2.851583,
+ "monomials"
+ ],
+ [
+ 3.776041,
+ "uses"
+ ],
+ [
+ 4.153666,
+ "the"
+ ],
+ [
+ 4.270833,
+ "power"
+ ],
+ [
+ 4.6875,
+ "rules"
+ ],
+ [
+ 4.947916,
+ "you"
+ ],
+ [
+ 5.052083,
+ "just"
+ ],
+ [
+ 5.338541,
+ "learned"
+ ],
+ [
+ 6.223958,
+ "one"
+ ],
+ [
+ 6.432291,
+ "base"
+ ],
+ [
+ 6.679708,
+ "at"
+ ],
+ [
+ 6.744791,
+ "a"
+ ],
+ [
+ 6.770833,
+ "time"
+ ]
+ ],
+ "marks": {
+ "sub": 1.354
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter fifty."
+ ],
+ [
+ 1.354,
+ "Multiplying and dividing monomials uses the power rules you just learned, one base at a time."
+ ]
+ ]
+ },
+ "parts": {
+ "key": "9bb3dd43d098f615886188d985bef794fc82fa32",
+ "dur": 14.304,
+ "words": [
+ [
+ 0.078125,
+ "A"
+ ],
+ [
+ 0.130208,
+ "monomial"
+ ],
+ [
+ 0.807291,
+ "is"
+ ],
+ [
+ 0.911458,
+ "a"
+ ],
+ [
+ 0.9375,
+ "number"
+ ],
+ [
+ 1.315125,
+ "times"
+ ],
+ [
+ 2.109375,
+ "some"
+ ],
+ [
+ 2.408875,
+ "powers"
+ ],
+ [
+ 2.942708,
+ "of"
+ ],
+ [
+ 3.007833,
+ "variables"
+ ],
+ [
+ 4.20575,
+ "Three"
+ ],
+ [
+ 4.401041,
+ "x"
+ ],
+ [
+ 4.596375,
+ "squared"
+ ],
+ [
+ 5.026041,
+ "y"
+ ],
+ [
+ 5.221375,
+ "means"
+ ],
+ [
+ 5.533875,
+ "three"
+ ],
+ [
+ 6.458333,
+ "times"
+ ],
+ [
+ 6.822916,
+ "x"
+ ],
+ [
+ 7.005208,
+ "times"
+ ],
+ [
+ 7.408875,
+ "x"
+ ],
+ [
+ 8.085958,
+ "times"
+ ],
+ [
+ 8.411458,
+ "y"
+ ],
+ [
+ 9.192708,
+ "The"
+ ],
+ [
+ 9.270833,
+ "number"
+ ],
+ [
+ 9.53125,
+ "in"
+ ],
+ [
+ 9.622416,
+ "front"
+ ],
+ [
+ 10.507833,
+ "is"
+ ],
+ [
+ 10.638041,
+ "the"
+ ],
+ [
+ 10.716166,
+ "coefficient"
+ ],
+ [
+ 11.914083,
+ "Each"
+ ],
+ [
+ 12.083333,
+ "variable"
+ ],
+ [
+ 12.708333,
+ "is"
+ ],
+ [
+ 12.8125,
+ "its"
+ ],
+ [
+ 13.059916,
+ "own"
+ ],
+ [
+ 13.26825,
+ "base"
+ ]
+ ],
+ "marks": {
+ "ex": 4.206,
+ "expand": 5.221,
+ "coef": 9.193,
+ "bases": 11.914
+ },
+ "cues": [
+ [
+ 0.078,
+ "A monomial is a number times some powers of variables."
+ ],
+ [
+ 4.206,
+ "Three x squared y means three, times x times x, times y."
+ ],
+ [
+ 9.193,
+ "The number in front is the coefficient."
+ ],
+ [
+ 11.914,
+ "Each variable is its own base."
+ ]
+ ]
+ },
+ "mult": {
+ "key": "cb7ba30ccf521a30bc9ea478ac3a044ca96687f3",
+ "dur": 29.232,
+ "words": [
+ [
+ 0.091166,
+ "Multiply"
+ ],
+ [
+ 0.950541,
+ "four"
+ ],
+ [
+ 1.471375,
+ "x"
+ ],
+ [
+ 1.692708,
+ "cubed"
+ ],
+ [
+ 2.487,
+ "y"
+ ],
+ [
+ 2.890625,
+ "by"
+ ],
+ [
+ 3.359375,
+ "five"
+ ],
+ [
+ 3.776041,
+ "x"
+ ],
+ [
+ 4.348958,
+ "squared"
+ ],
+ [
+ 5.039083,
+ "y"
+ ],
+ [
+ 5.221375,
+ "to"
+ ],
+ [
+ 5.2995,
+ "the"
+ ],
+ [
+ 5.377625,
+ "fourth"
+ ],
+ [
+ 6.341166,
+ "Since"
+ ],
+ [
+ 6.5495,
+ "you"
+ ],
+ [
+ 6.640625,
+ "can"
+ ],
+ [
+ 6.770833,
+ "multiply"
+ ],
+ [
+ 7.473958,
+ "in"
+ ],
+ [
+ 7.708333,
+ "any"
+ ],
+ [
+ 7.981791,
+ "order"
+ ],
+ [
+ 8.697916,
+ "sort"
+ ],
+ [
+ 8.919291,
+ "the"
+ ],
+ [
+ 8.997416,
+ "factors"
+ ],
+ [
+ 9.51825,
+ "by"
+ ],
+ [
+ 9.6875,
+ "kind"
+ ],
+ [
+ 10.729166,
+ "numbers"
+ ],
+ [
+ 11.067708,
+ "together"
+ ],
+ [
+ 12.070333,
+ "x's"
+ ],
+ [
+ 12.382833,
+ "together"
+ ],
+ [
+ 13.346375,
+ "y's"
+ ],
+ [
+ 13.684916,
+ "together"
+ ],
+ [
+ 14.6745,
+ "Multiply"
+ ],
+ [
+ 15.14325,
+ "the"
+ ],
+ [
+ 15.221375,
+ "numbers"
+ ],
+ [
+ 16.171875,
+ "four"
+ ],
+ [
+ 16.380208,
+ "times"
+ ],
+ [
+ 16.71875,
+ "five"
+ ],
+ [
+ 17.526041,
+ "is"
+ ],
+ [
+ 17.64325,
+ "twenty"
+ ],
+ [
+ 18.606791,
+ "For"
+ ],
+ [
+ 18.854166,
+ "x"
+ ],
+ [
+ 19.726583,
+ "add"
+ ],
+ [
+ 19.934916,
+ "the"
+ ],
+ [
+ 20.0,
+ "exponents"
+ ],
+ [
+ 21.054708,
+ "three"
+ ],
+ [
+ 21.328125,
+ "plus"
+ ],
+ [
+ 21.653666,
+ "two"
+ ],
+ [
+ 22.278666,
+ "is"
+ ],
+ [
+ 22.434916,
+ "five"
+ ],
+ [
+ 23.489583,
+ "For"
+ ],
+ [
+ 23.58075,
+ "y"
+ ],
+ [
+ 24.20575,
+ "one"
+ ],
+ [
+ 24.440125,
+ "plus"
+ ],
+ [
+ 24.713541,
+ "four"
+ ],
+ [
+ 24.973958,
+ "is"
+ ],
+ [
+ 25.065125,
+ "five"
+ ],
+ [
+ 25.989583,
+ "The"
+ ],
+ [
+ 26.067708,
+ "product"
+ ],
+ [
+ 26.484375,
+ "is"
+ ],
+ [
+ 26.601583,
+ "twenty"
+ ],
+ [
+ 27.01825,
+ "x"
+ ],
+ [
+ 27.252625,
+ "to"
+ ],
+ [
+ 27.34375,
+ "the"
+ ],
+ [
+ 27.434916,
+ "fifth"
+ ],
+ [
+ 27.877625,
+ "y"
+ ],
+ [
+ 28.098958,
+ "to"
+ ],
+ [
+ 28.216166,
+ "the"
+ ],
+ [
+ 28.28125,
+ "fifth"
+ ]
+ ],
+ "marks": {
+ "sort": 6.341,
+ "lanes": 10.729,
+ "nums": 14.675,
+ "xs": 18.607,
+ "ys": 23.49,
+ "ans": 25.99
+ },
+ "cues": [
+ [
+ 0.091,
+ "Multiply four x cubed y by five x squared y to the fourth."
+ ],
+ [
+ 6.341,
+ "Since you can multiply in any order, sort the factors by kind: numbers together, x's together, y's together."
+ ],
+ [
+ 14.675,
+ "Multiply the numbers: four times five is twenty."
+ ],
+ [
+ 18.607,
+ "For x, add the exponents: three plus two is five."
+ ],
+ [
+ 23.49,
+ "For y, one plus four is five."
+ ],
+ [
+ 25.99,
+ "The product is twenty x to the fifth y to the fifth."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "bb6608a7070e1a7dd0b6c2db47e64eece1c06224",
+ "dur": 3.072,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.106791,
+ "Multiply"
+ ],
+ [
+ 1.71875,
+ "the"
+ ],
+ [
+ 1.809916,
+ "monomials"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.107,
+ "Multiply the monomials."
+ ]
+ ]
+ },
+ "div": {
+ "key": "1836cfbdc5feea933744d93c368cb03f9ad913a1",
+ "dur": 25.224,
+ "words": [
+ [
+ 0.117208,
+ "Dividing"
+ ],
+ [
+ 0.507833,
+ "works"
+ ],
+ [
+ 0.755208,
+ "the"
+ ],
+ [
+ 0.833333,
+ "same"
+ ],
+ [
+ 1.171875,
+ "way"
+ ],
+ [
+ 1.927083,
+ "Twenty-one"
+ ],
+ [
+ 2.395833,
+ "x"
+ ],
+ [
+ 2.838541,
+ "to"
+ ],
+ [
+ 2.95575,
+ "the"
+ ],
+ [
+ 3.046875,
+ "sixth"
+ ],
+ [
+ 3.606791,
+ "y"
+ ],
+ [
+ 3.984375,
+ "to"
+ ],
+ [
+ 4.114583,
+ "the"
+ ],
+ [
+ 4.231791,
+ "tenth"
+ ],
+ [
+ 4.987,
+ "divided"
+ ],
+ [
+ 5.442708,
+ "by"
+ ],
+ [
+ 5.572916,
+ "seven"
+ ],
+ [
+ 5.989583,
+ "x"
+ ],
+ [
+ 6.289083,
+ "to"
+ ],
+ [
+ 6.380208,
+ "the"
+ ],
+ [
+ 6.471375,
+ "fourth"
+ ],
+ [
+ 6.927083,
+ "y"
+ ],
+ [
+ 7.161458,
+ "cubed"
+ ],
+ [
+ 8.112,
+ "Write"
+ ],
+ [
+ 8.26825,
+ "it"
+ ],
+ [
+ 8.320333,
+ "as"
+ ],
+ [
+ 8.4375,
+ "a"
+ ],
+ [
+ 8.476583,
+ "fraction"
+ ],
+ [
+ 9.544291,
+ "and"
+ ],
+ [
+ 9.635416,
+ "split"
+ ],
+ [
+ 10.026041,
+ "it"
+ ],
+ [
+ 10.117208,
+ "by"
+ ],
+ [
+ 10.286458,
+ "kind"
+ ],
+ [
+ 11.289083,
+ "Twenty-one"
+ ],
+ [
+ 11.666666,
+ "divided"
+ ],
+ [
+ 12.057291,
+ "by"
+ ],
+ [
+ 12.213541,
+ "seven"
+ ],
+ [
+ 12.96875,
+ "is"
+ ],
+ [
+ 13.138041,
+ "three"
+ ],
+ [
+ 14.231791,
+ "For"
+ ],
+ [
+ 14.440125,
+ "x"
+ ],
+ [
+ 15.052083,
+ "subtract"
+ ],
+ [
+ 16.08075,
+ "six"
+ ],
+ [
+ 16.315125,
+ "minus"
+ ],
+ [
+ 16.653666,
+ "four"
+ ],
+ [
+ 17.01825,
+ "is"
+ ],
+ [
+ 17.1745,
+ "two"
+ ],
+ [
+ 18.020833,
+ "For"
+ ],
+ [
+ 18.203125,
+ "y"
+ ],
+ [
+ 19.114583,
+ "ten"
+ ],
+ [
+ 19.322916,
+ "minus"
+ ],
+ [
+ 19.726583,
+ "three"
+ ],
+ [
+ 20.325541,
+ "is"
+ ],
+ [
+ 20.442708,
+ "seven"
+ ],
+ [
+ 21.263041,
+ "The"
+ ],
+ [
+ 21.315125,
+ "quotient"
+ ],
+ [
+ 21.796875,
+ "is"
+ ],
+ [
+ 21.966166,
+ "three"
+ ],
+ [
+ 22.382833,
+ "x"
+ ],
+ [
+ 22.981791,
+ "squared"
+ ],
+ [
+ 23.841166,
+ "y"
+ ],
+ [
+ 24.114583,
+ "to"
+ ],
+ [
+ 24.192708,
+ "the"
+ ],
+ [
+ 24.283875,
+ "seventh"
+ ]
+ ],
+ "marks": {
+ "ex": 1.927,
+ "frac": 8.112,
+ "nums": 11.289,
+ "xs": 14.232,
+ "ys": 18.021,
+ "ans": 21.263
+ },
+ "cues": [
+ [
+ 0.117,
+ "Dividing works the same way."
+ ],
+ [
+ 1.927,
+ "Twenty-one x to the sixth y to the tenth, divided by seven x to the fourth y cubed."
+ ],
+ [
+ 8.112,
+ "Write it as a fraction, and split it by kind."
+ ],
+ [
+ 11.289,
+ "Twenty-one divided by seven is three."
+ ],
+ [
+ 14.232,
+ "For x, subtract: six minus four is two."
+ ],
+ [
+ 18.021,
+ "For y, ten minus three is seven."
+ ],
+ [
+ 21.263,
+ "The quotient is three x squared y to the seventh."
+ ]
+ ]
+ },
+ "negdiv": {
+ "key": "70d4aacfa91b683ad8d12eda01c3c2f00a36bb03",
+ "dur": 23.88,
+ "words": [
+ [
+ 0.117208,
+ "Sometimes"
+ ],
+ [
+ 0.559916,
+ "the"
+ ],
+ [
+ 0.638041,
+ "bottom"
+ ],
+ [
+ 1.25,
+ "has"
+ ],
+ [
+ 1.536458,
+ "the"
+ ],
+ [
+ 1.731791,
+ "bigger"
+ ],
+ [
+ 2.03125,
+ "exponent"
+ ],
+ [
+ 3.151041,
+ "Three"
+ ],
+ [
+ 3.554708,
+ "a"
+ ],
+ [
+ 3.658875,
+ "to"
+ ],
+ [
+ 3.776041,
+ "the"
+ ],
+ [
+ 3.867208,
+ "fifth"
+ ],
+ [
+ 4.283875,
+ "divided"
+ ],
+ [
+ 4.765625,
+ "by"
+ ],
+ [
+ 4.895833,
+ "ten"
+ ],
+ [
+ 5.638041,
+ "a"
+ ],
+ [
+ 5.755208,
+ "to"
+ ],
+ [
+ 5.885416,
+ "the"
+ ],
+ [
+ 5.963541,
+ "ninth"
+ ],
+ [
+ 6.953125,
+ "Three"
+ ],
+ [
+ 7.1745,
+ "tenths"
+ ],
+ [
+ 7.617208,
+ "can't"
+ ],
+ [
+ 7.929708,
+ "be"
+ ],
+ [
+ 8.046875,
+ "simplified"
+ ],
+ [
+ 9.296875,
+ "For"
+ ],
+ [
+ 9.570333,
+ "a"
+ ],
+ [
+ 10.182291,
+ "five"
+ ],
+ [
+ 10.546875,
+ "minus"
+ ],
+ [
+ 10.872416,
+ "nine"
+ ],
+ [
+ 11.588541,
+ "is"
+ ],
+ [
+ 11.70575,
+ "negative"
+ ],
+ [
+ 12.1745,
+ "four"
+ ],
+ [
+ 13.020833,
+ "To"
+ ],
+ [
+ 13.112,
+ "write"
+ ],
+ [
+ 13.333333,
+ "it"
+ ],
+ [
+ 13.411458,
+ "with"
+ ],
+ [
+ 13.554708,
+ "a"
+ ],
+ [
+ 13.619791,
+ "positive"
+ ],
+ [
+ 14.166666,
+ "exponent"
+ ],
+ [
+ 15.351583,
+ "a"
+ ],
+ [
+ 15.416666,
+ "to"
+ ],
+ [
+ 15.546875,
+ "the"
+ ],
+ [
+ 15.625,
+ "negative"
+ ],
+ [
+ 16.263041,
+ "four"
+ ],
+ [
+ 16.666666,
+ "moves"
+ ],
+ [
+ 17.109375,
+ "to"
+ ],
+ [
+ 17.213541,
+ "the"
+ ],
+ [
+ 17.317708,
+ "bottom"
+ ],
+ [
+ 18.125,
+ "as"
+ ],
+ [
+ 18.359375,
+ "a"
+ ],
+ [
+ 18.541666,
+ "to"
+ ],
+ [
+ 18.697916,
+ "the"
+ ],
+ [
+ 18.789083,
+ "fourth"
+ ],
+ [
+ 19.817708,
+ "So"
+ ],
+ [
+ 19.934916,
+ "the"
+ ],
+ [
+ 20.013041,
+ "result"
+ ],
+ [
+ 20.585958,
+ "is"
+ ],
+ [
+ 20.76825,
+ "three"
+ ],
+ [
+ 21.39325,
+ "over"
+ ],
+ [
+ 21.653666,
+ "ten"
+ ],
+ [
+ 22.33075,
+ "a"
+ ],
+ [
+ 22.708333,
+ "to"
+ ],
+ [
+ 22.851583,
+ "the"
+ ],
+ [
+ 22.942708,
+ "fourth"
+ ]
+ ],
+ "marks": {
+ "ex": 3.151,
+ "nums": 6.953,
+ "xs": 9.297,
+ "pos": 13.021,
+ "ans": 19.818
+ },
+ "cues": [
+ [
+ 0.117,
+ "Sometimes the bottom has the bigger exponent."
+ ],
+ [
+ 3.151,
+ "Three a to the fifth divided by ten a to the ninth."
+ ],
+ [
+ 6.953,
+ "Three tenths can't be simplified."
+ ],
+ [
+ 9.297,
+ "For a, five minus nine is negative four."
+ ],
+ [
+ 13.021,
+ "To write it with a positive exponent, a to the negative four moves to the bottom as a to the fourth."
+ ],
+ [
+ 19.818,
+ "So the result is three over ten a to the fourth."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "2314a61c8341add6d91656359f0154a5ca58bd92",
+ "dur": 2.928,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.2995,
+ "check"
+ ],
+ [
+ 1.158875,
+ "Divide"
+ ],
+ [
+ 1.5625,
+ "the"
+ ],
+ [
+ 1.614583,
+ "monomials"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.159,
+ "Divide the monomials."
+ ]
+ ]
+ },
+ "power": {
+ "key": "c4c57171b2a8af996a69ac646134fa1bc386d08c",
+ "dur": 20.856,
+ "words": [
+ [
+ 0.104166,
+ "Now"
+ ],
+ [
+ 0.260416,
+ "a"
+ ],
+ [
+ 0.338541,
+ "power"
+ ],
+ [
+ 0.885416,
+ "raised"
+ ],
+ [
+ 1.25,
+ "to"
+ ],
+ [
+ 1.341166,
+ "a"
+ ],
+ [
+ 1.40625,
+ "power"
+ ],
+ [
+ 2.291666,
+ "x"
+ ],
+ [
+ 2.473958,
+ "cubed"
+ ],
+ [
+ 3.177083,
+ "squared"
+ ],
+ [
+ 4.231791,
+ "means"
+ ],
+ [
+ 4.505208,
+ "two"
+ ],
+ [
+ 4.752625,
+ "copies"
+ ],
+ [
+ 5.260416,
+ "of"
+ ],
+ [
+ 5.338541,
+ "x"
+ ],
+ [
+ 5.585958,
+ "cubed"
+ ],
+ [
+ 6.09375,
+ "multiplied"
+ ],
+ [
+ 6.731791,
+ "together"
+ ],
+ [
+ 7.669291,
+ "Each"
+ ],
+ [
+ 7.838541,
+ "copy"
+ ],
+ [
+ 8.476583,
+ "is"
+ ],
+ [
+ 8.684916,
+ "three"
+ ],
+ [
+ 9.114583,
+ "x's"
+ ],
+ [
+ 10.078125,
+ "so"
+ ],
+ [
+ 10.169291,
+ "there"
+ ],
+ [
+ 10.286458,
+ "are"
+ ],
+ [
+ 10.377625,
+ "two"
+ ],
+ [
+ 10.612,
+ "times"
+ ],
+ [
+ 11.028666,
+ "three"
+ ],
+ [
+ 11.979166,
+ "six"
+ ],
+ [
+ 12.291666,
+ "x's"
+ ],
+ [
+ 13.242208,
+ "x"
+ ],
+ [
+ 13.411458,
+ "cubed"
+ ],
+ [
+ 14.127625,
+ "squared"
+ ],
+ [
+ 14.947916,
+ "is"
+ ],
+ [
+ 15.195333,
+ "x"
+ ],
+ [
+ 15.377625,
+ "to"
+ ],
+ [
+ 15.45575,
+ "the"
+ ],
+ [
+ 15.533875,
+ "sixth"
+ ],
+ [
+ 16.5625,
+ "To"
+ ],
+ [
+ 16.679708,
+ "raise"
+ ],
+ [
+ 17.005208,
+ "a"
+ ],
+ [
+ 17.070333,
+ "power"
+ ],
+ [
+ 17.695333,
+ "to"
+ ],
+ [
+ 17.877625,
+ "a"
+ ],
+ [
+ 17.96875,
+ "power"
+ ],
+ [
+ 18.828125,
+ "multiply"
+ ],
+ [
+ 19.51825,
+ "the"
+ ],
+ [
+ 19.609375,
+ "exponents"
+ ]
+ ],
+ "marks": {
+ "ex": 2.292,
+ "copies": 4.232,
+ "expand": 7.669,
+ "ans": 13.242,
+ "rule": 16.562
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now a power raised to a power."
+ ],
+ [
+ 2.292,
+ "x cubed, squared, means two copies of x cubed multiplied together."
+ ],
+ [
+ 7.669,
+ "Each copy is three x's, so there are two times three, six x's."
+ ],
+ [
+ 13.242,
+ "x cubed, squared, is x to the sixth."
+ ],
+ [
+ 16.562,
+ "To raise a power to a power, multiply the exponents."
+ ]
+ ]
+ },
+ "powmono": {
+ "key": "02a4fe78830da658ff7f8ae5c48daada4fb1cc10",
+ "dur": 36.216,
+ "words": [
+ [
+ 0.104166,
+ "When"
+ ],
+ [
+ 0.182291,
+ "a"
+ ],
+ [
+ 0.221375,
+ "whole"
+ ],
+ [
+ 0.559916,
+ "monomial"
+ ],
+ [
+ 1.197916,
+ "is"
+ ],
+ [
+ 1.39325,
+ "raised"
+ ],
+ [
+ 1.848958,
+ "to"
+ ],
+ [
+ 1.966166,
+ "a"
+ ],
+ [
+ 2.044291,
+ "power"
+ ],
+ [
+ 2.981791,
+ "the"
+ ],
+ [
+ 3.085958,
+ "power"
+ ],
+ [
+ 3.489583,
+ "goes"
+ ],
+ [
+ 3.841166,
+ "to"
+ ],
+ [
+ 4.127625,
+ "every"
+ ],
+ [
+ 4.466166,
+ "factor"
+ ],
+ [
+ 4.960958,
+ "inside"
+ ],
+ [
+ 6.09375,
+ "Three"
+ ],
+ [
+ 6.458333,
+ "a"
+ ],
+ [
+ 6.692708,
+ "to"
+ ],
+ [
+ 6.822916,
+ "the"
+ ],
+ [
+ 6.927083,
+ "seventh"
+ ],
+ [
+ 7.5,
+ "b"
+ ],
+ [
+ 7.695333,
+ "to"
+ ],
+ [
+ 7.786458,
+ "the"
+ ],
+ [
+ 7.890625,
+ "fourth"
+ ],
+ [
+ 8.867208,
+ "all"
+ ],
+ [
+ 9.075541,
+ "squared"
+ ],
+ [
+ 10.039083,
+ "The"
+ ],
+ [
+ 10.130208,
+ "outside"
+ ],
+ [
+ 11.015625,
+ "two"
+ ],
+ [
+ 11.302083,
+ "reaches"
+ ],
+ [
+ 11.70575,
+ "the"
+ ],
+ [
+ 11.796875,
+ "three"
+ ],
+ [
+ 12.8125,
+ "the"
+ ],
+ [
+ 13.059916,
+ "a"
+ ],
+ [
+ 13.333333,
+ "to"
+ ],
+ [
+ 13.476583,
+ "the"
+ ],
+ [
+ 13.567708,
+ "seventh"
+ ],
+ [
+ 14.583333,
+ "and"
+ ],
+ [
+ 14.648458,
+ "the"
+ ],
+ [
+ 14.739583,
+ "b"
+ ],
+ [
+ 15.130208,
+ "to"
+ ],
+ [
+ 15.247416,
+ "the"
+ ],
+ [
+ 15.351583,
+ "fourth"
+ ],
+ [
+ 16.39325,
+ "Three"
+ ],
+ [
+ 16.601583,
+ "squared"
+ ],
+ [
+ 17.278666,
+ "is"
+ ],
+ [
+ 17.447916,
+ "nine"
+ ],
+ [
+ 18.541666,
+ "a"
+ ],
+ [
+ 18.567708,
+ "to"
+ ],
+ [
+ 18.684916,
+ "the"
+ ],
+ [
+ 18.789083,
+ "seven"
+ ],
+ [
+ 19.166666,
+ "times"
+ ],
+ [
+ 19.544291,
+ "two"
+ ],
+ [
+ 20.390625,
+ "is"
+ ],
+ [
+ 20.846375,
+ "a"
+ ],
+ [
+ 21.028666,
+ "to"
+ ],
+ [
+ 21.158875,
+ "the"
+ ],
+ [
+ 21.25,
+ "fourteenth"
+ ],
+ [
+ 22.5,
+ "and"
+ ],
+ [
+ 22.578125,
+ "b"
+ ],
+ [
+ 22.695333,
+ "to"
+ ],
+ [
+ 22.773458,
+ "the"
+ ],
+ [
+ 22.864583,
+ "four"
+ ],
+ [
+ 23.125,
+ "times"
+ ],
+ [
+ 23.463541,
+ "two"
+ ],
+ [
+ 24.088541,
+ "is"
+ ],
+ [
+ 24.231791,
+ "b"
+ ],
+ [
+ 24.388041,
+ "to"
+ ],
+ [
+ 24.479166,
+ "the"
+ ],
+ [
+ 24.583333,
+ "eighth"
+ ],
+ [
+ 25.520833,
+ "The"
+ ],
+ [
+ 25.572916,
+ "result"
+ ],
+ [
+ 26.132833,
+ "is"
+ ],
+ [
+ 26.276041,
+ "nine"
+ ],
+ [
+ 26.979166,
+ "a"
+ ],
+ [
+ 27.304708,
+ "to"
+ ],
+ [
+ 27.434916,
+ "the"
+ ],
+ [
+ 27.539083,
+ "fourteenth"
+ ],
+ [
+ 28.372416,
+ "b"
+ ],
+ [
+ 28.59375,
+ "to"
+ ],
+ [
+ 28.697916,
+ "the"
+ ],
+ [
+ 28.815125,
+ "eighth"
+ ],
+ [
+ 29.661458,
+ "A"
+ ],
+ [
+ 29.726583,
+ "common"
+ ],
+ [
+ 30.078125,
+ "slip"
+ ],
+ [
+ 30.729166,
+ "is"
+ ],
+ [
+ 30.820333,
+ "to"
+ ],
+ [
+ 30.911458,
+ "forget"
+ ],
+ [
+ 31.289083,
+ "the"
+ ],
+ [
+ 31.367208,
+ "coefficient"
+ ],
+ [
+ 32.356791,
+ "and"
+ ],
+ [
+ 32.552083,
+ "write"
+ ],
+ [
+ 32.851583,
+ "three"
+ ],
+ [
+ 33.567708,
+ "a"
+ ],
+ [
+ 33.89325,
+ "to"
+ ],
+ [
+ 34.023458,
+ "the"
+ ],
+ [
+ 34.127625,
+ "fourteenth"
+ ],
+ [
+ 34.908875,
+ "b"
+ ],
+ [
+ 35.104166,
+ "to"
+ ],
+ [
+ 35.195333,
+ "the"
+ ],
+ [
+ 35.286458,
+ "eighth"
+ ]
+ ],
+ "marks": {
+ "ex": 6.094,
+ "arrows": 10.039,
+ "each": 16.393,
+ "ans": 25.521,
+ "warn": 29.661
+ },
+ "cues": [
+ [
+ 0.104,
+ "When a whole monomial is raised to a power, the power goes to every factor inside."
+ ],
+ [
+ 6.094,
+ "Three a to the seventh b to the fourth, all squared."
+ ],
+ [
+ 10.039,
+ "The outside two reaches the three, the a to the seventh, and the b to the fourth."
+ ],
+ [
+ 16.393,
+ "Three squared is nine, a to the seven times two is a to the fourteenth, and b to the four times two is b to the eighth."
+ ],
+ [
+ 25.521,
+ "The result is nine a to the fourteenth b to the eighth."
+ ],
+ [
+ 29.661,
+ "A common slip is to forget the coefficient and write three a to the fourteenth b to the eighth."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "d4c26d4d7770a751beeba811cbccf96a8aec2245",
+ "dur": 2.208,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.234375,
+ "check"
+ ],
+ [
+ 1.132833,
+ "Who"
+ ],
+ [
+ 1.237,
+ "is"
+ ],
+ [
+ 1.354166,
+ "correct"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Who is correct?"
+ ]
+ ]
+ },
+ "combo": {
+ "key": "f4076790b7e679df1044c5734c13ebac68e1dcf5",
+ "dur": 29.16,
+ "words": [
+ [
+ 0.104166,
+ "Put"
+ ],
+ [
+ 0.195333,
+ "it"
+ ],
+ [
+ 0.260416,
+ "all"
+ ],
+ [
+ 0.45575,
+ "together"
+ ],
+ [
+ 1.484375,
+ "Five"
+ ],
+ [
+ 1.70575,
+ "a"
+ ],
+ [
+ 1.783875,
+ "cubed"
+ ],
+ [
+ 2.109375,
+ "b"
+ ],
+ [
+ 2.252625,
+ "to"
+ ],
+ [
+ 2.317708,
+ "the"
+ ],
+ [
+ 2.421875,
+ "fourth"
+ ],
+ [
+ 2.877625,
+ "squared"
+ ],
+ [
+ 3.854166,
+ "times"
+ ],
+ [
+ 4.21875,
+ "two"
+ ],
+ [
+ 4.804708,
+ "a"
+ ],
+ [
+ 4.960958,
+ "to"
+ ],
+ [
+ 5.104166,
+ "the"
+ ],
+ [
+ 5.195333,
+ "fifth"
+ ],
+ [
+ 5.677083,
+ "b"
+ ],
+ [
+ 6.263041,
+ "cubed"
+ ],
+ [
+ 7.252625,
+ "First"
+ ],
+ [
+ 8.164083,
+ "raise"
+ ],
+ [
+ 8.658875,
+ "each"
+ ],
+ [
+ 8.867208,
+ "monomial"
+ ],
+ [
+ 9.492208,
+ "to"
+ ],
+ [
+ 9.648458,
+ "its"
+ ],
+ [
+ 9.765625,
+ "power"
+ ],
+ [
+ 10.664083,
+ "twenty-five"
+ ],
+ [
+ 11.354166,
+ "a"
+ ],
+ [
+ 11.640625,
+ "to"
+ ],
+ [
+ 11.757833,
+ "the"
+ ],
+ [
+ 11.848958,
+ "sixth"
+ ],
+ [
+ 12.33075,
+ "b"
+ ],
+ [
+ 12.539083,
+ "to"
+ ],
+ [
+ 12.64325,
+ "the"
+ ],
+ [
+ 12.760416,
+ "eighth"
+ ],
+ [
+ 13.658875,
+ "and"
+ ],
+ [
+ 14.0625,
+ "eight"
+ ],
+ [
+ 14.388041,
+ "a"
+ ],
+ [
+ 14.713541,
+ "to"
+ ],
+ [
+ 14.83075,
+ "the"
+ ],
+ [
+ 14.921875,
+ "fifteenth"
+ ],
+ [
+ 15.664083,
+ "b"
+ ],
+ [
+ 15.846375,
+ "cubed"
+ ],
+ [
+ 16.744791,
+ "Then"
+ ],
+ [
+ 17.408875,
+ "multiply"
+ ],
+ [
+ 18.671875,
+ "twenty-five"
+ ],
+ [
+ 19.192708,
+ "times"
+ ],
+ [
+ 19.583333,
+ "eight"
+ ],
+ [
+ 20.130208,
+ "is"
+ ],
+ [
+ 20.338541,
+ "two"
+ ],
+ [
+ 20.625,
+ "hundred"
+ ],
+ [
+ 21.588541,
+ "a"
+ ],
+ [
+ 21.627625,
+ "to"
+ ],
+ [
+ 21.757833,
+ "the"
+ ],
+ [
+ 21.875,
+ "six"
+ ],
+ [
+ 22.148458,
+ "plus"
+ ],
+ [
+ 22.473958,
+ "fifteen"
+ ],
+ [
+ 23.567708,
+ "and"
+ ],
+ [
+ 23.619791,
+ "b"
+ ],
+ [
+ 23.815125,
+ "to"
+ ],
+ [
+ 23.919291,
+ "the"
+ ],
+ [
+ 24.140625,
+ "eight"
+ ],
+ [
+ 24.348958,
+ "plus"
+ ],
+ [
+ 24.713541,
+ "three"
+ ],
+ [
+ 25.598958,
+ "Two"
+ ],
+ [
+ 25.794291,
+ "hundred"
+ ],
+ [
+ 26.067708,
+ "a"
+ ],
+ [
+ 26.40625,
+ "to"
+ ],
+ [
+ 26.536458,
+ "the"
+ ],
+ [
+ 26.627625,
+ "twenty-first"
+ ],
+ [
+ 27.33075,
+ "b"
+ ],
+ [
+ 27.994791,
+ "to"
+ ],
+ [
+ 28.112,
+ "the"
+ ],
+ [
+ 28.203125,
+ "eleventh"
+ ]
+ ],
+ "marks": {
+ "ex": 1.484,
+ "pow": 7.253,
+ "mult": 16.745,
+ "ans": 25.599
+ },
+ "cues": [
+ [
+ 0.104,
+ "Put it all together."
+ ],
+ [
+ 1.484,
+ "Five a cubed b to the fourth, squared, times two a to the fifth b, cubed."
+ ],
+ [
+ 7.253,
+ "First, raise each monomial to its power: twenty-five a to the sixth b to the eighth, and eight a to the fifteenth b cubed."
+ ],
+ [
+ 16.745,
+ "Then multiply: twenty-five times eight is two hundred, a to the six plus fifteen, and b to the eight plus three."
+ ],
+ [
+ 25.599,
+ "Two hundred a to the twenty-first b to the eleventh."
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "e1a183519800924004cecc47048f15df816aba7f",
+ "dur": 23.544,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "sum"
+ ],
+ [
+ 0.364583,
+ "up"
+ ],
+ [
+ 1.002625,
+ "To"
+ ],
+ [
+ 1.08075,
+ "multiply"
+ ],
+ [
+ 1.783875,
+ "monomials"
+ ],
+ [
+ 3.046875,
+ "multiply"
+ ],
+ [
+ 3.697916,
+ "the"
+ ],
+ [
+ 3.802083,
+ "coefficients"
+ ],
+ [
+ 4.960958,
+ "and"
+ ],
+ [
+ 5.221375,
+ "add"
+ ],
+ [
+ 5.520833,
+ "the"
+ ],
+ [
+ 5.572916,
+ "exponents"
+ ],
+ [
+ 6.315125,
+ "of"
+ ],
+ [
+ 6.5495,
+ "each"
+ ],
+ [
+ 6.783875,
+ "base"
+ ],
+ [
+ 7.773458,
+ "To"
+ ],
+ [
+ 7.851583,
+ "divide"
+ ],
+ [
+ 8.723958,
+ "divide"
+ ],
+ [
+ 9.153666,
+ "the"
+ ],
+ [
+ 9.21875,
+ "coefficients"
+ ],
+ [
+ 10.559916,
+ "and"
+ ],
+ [
+ 10.755208,
+ "subtract"
+ ],
+ [
+ 11.432291,
+ "the"
+ ],
+ [
+ 11.497416,
+ "exponents"
+ ],
+ [
+ 12.7995,
+ "To"
+ ],
+ [
+ 12.903666,
+ "raise"
+ ],
+ [
+ 13.164083,
+ "a"
+ ],
+ [
+ 13.229166,
+ "power"
+ ],
+ [
+ 13.789083,
+ "to"
+ ],
+ [
+ 13.945333,
+ "a"
+ ],
+ [
+ 14.036458,
+ "power"
+ ],
+ [
+ 15.117208,
+ "multiply"
+ ],
+ [
+ 15.742208,
+ "the"
+ ],
+ [
+ 15.820333,
+ "exponents"
+ ],
+ [
+ 16.927083,
+ "and"
+ ],
+ [
+ 17.057291,
+ "apply"
+ ],
+ [
+ 17.434916,
+ "the"
+ ],
+ [
+ 17.552083,
+ "power"
+ ],
+ [
+ 18.203125,
+ "to"
+ ],
+ [
+ 18.476583,
+ "every"
+ ],
+ [
+ 18.815125,
+ "factor"
+ ],
+ [
+ 19.739583,
+ "coefficient"
+ ],
+ [
+ 20.377625,
+ "included"
+ ],
+ [
+ 21.367208,
+ "Now"
+ ],
+ [
+ 21.796875,
+ "try"
+ ],
+ [
+ 21.979166,
+ "the"
+ ],
+ [
+ 22.057291,
+ "chapter"
+ ],
+ [
+ 22.473958,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 1.003,
+ "w2": 7.773,
+ "w3": 12.8,
+ "end": 21.367
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.003,
+ "To multiply monomials, multiply the coefficients and add the exponents of each base."
+ ],
+ [
+ 7.773,
+ "To divide, divide the coefficients and subtract the exponents."
+ ],
+ [
+ 12.8,
+ "To raise a power to a power, multiply the exponents, and apply the power to every factor, coefficient included."
+ ],
+ [
+ 21.367,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "be4389897e193dfad91e4a5dfe93b314aaf6909a",
+ "dur": 3.168,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.416666,
+ "practice"
+ ],
+ [
+ 1.510416,
+ "Multiply"
+ ],
+ [
+ 2.213541,
+ "and"
+ ],
+ [
+ 2.304708,
+ "divide"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.51,
+ "Multiply and divide."
+ ]
+ ]
+ },
+ "final2": {
+ "key": "f01099640391e8cbf1855ca61d1c7a7c1edae7da",
+ "dur": 2.568,
+ "words": [
+ [
+ 0.091166,
+ "Next"
+ ],
+ [
+ 0.833333,
+ "powers"
+ ],
+ [
+ 1.276041,
+ "of"
+ ],
+ [
+ 1.341166,
+ "monomials"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Next, powers of monomials."
+ ]
+ ]
+ },
+ "final3": {
+ "key": "9bca771bba9b960b34441b0ed5e6db0ce53f9444",
+ "dur": 2.616,
+ "words": [
+ [
+ 0.104166,
+ "Last"
+ ],
+ [
+ 0.403666,
+ "one"
+ ],
+ [
+ 1.158875,
+ "True"
+ ],
+ [
+ 1.5495,
+ "or"
+ ],
+ [
+ 1.666666,
+ "false"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.159,
+ "True or false?"
+ ]
+ ]
+ },
+ "finish": {
+ "key": "17472b8620d595bc71584f4fb7c0ff1ff0a5bdc9",
+ "dur": 5.976,
+ "words": [
+ [
+ 0.104166,
+ "Well"
+ ],
+ [
+ 0.234375,
+ "done"
+ ],
+ [
+ 1.067708,
+ "That's"
+ ],
+ [
+ 1.276041,
+ "the"
+ ],
+ [
+ 1.380208,
+ "end"
+ ],
+ [
+ 1.70575,
+ "of"
+ ],
+ [
+ 1.770833,
+ "chapter"
+ ],
+ [
+ 2.252625,
+ "fifty"
+ ],
+ [
+ 3.26825,
+ "multiplying"
+ ],
+ [
+ 4.101583,
+ "and"
+ ],
+ [
+ 4.192708,
+ "dividing"
+ ],
+ [
+ 4.700541,
+ "monomials"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Well done."
+ ],
+ [
+ 1.068,
+ "That's the end of chapter fifty, multiplying and dividing monomials."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch51/narration.en.json b/content/ch51/narration.en.json
new file mode 100644
index 0000000..845ad72
--- /dev/null
+++ b/content/ch51/narration.en.json
@@ -0,0 +1,22 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter fifty-one. [[sub]]To multiply polynomials, every term in one must multiply every term in the other.",
+ "mono": "Start with a monomial times a binomial: x squared, times x cubed plus seven y. [[dist]]The distributive property sends x squared to each term inside. [[box]]An area model shows the same thing: a rectangle x squared tall, split into two parts across. [[c1]]x squared times x cubed is x to the fifth. [[c2]]x squared times seven y is seven x squared y. [[ans]]Add the parts: x to the fifth plus seven x squared y. They aren't like terms, so that's the final answer.",
+ "q1": "Quick check. Distribute the monomial.",
+ "binom": "Now two binomials: x plus nine, times x plus seven. [[rect]]Picture a rectangle x plus nine wide and x plus seven tall. [[split]]Split each side into its two terms, and the rectangle splits into four parts. [[c1]]x times x is x squared. [[c2]]x times nine is nine x. [[c3]]Seven times x is seven x. [[c4]]Seven times nine is sixty-three. [[like]]The two x strips are like terms: seven x plus nine x is sixteen x. [[ans]]So the product is x squared plus sixteen x plus sixty-three.",
+ "foil": "For two binomials, the four products have names. [[f]]First: the first terms, a times c. [[o]]Outer: the outside terms, a times d. [[i]]Inner: the inside terms, b times c. [[l]]Last: b times d. [[word]]That's the FOIL method, first, outer, inner, last. [[same]]It finds exactly the four cells of the area model, so it's the distributive property in a fixed order.",
+ "q2": "Quick check. Multiply the binomials.",
+ "neg": "Watch the signs. [[q]]Multiply two x minus three, times x plus five. [[cells]]Treat minus three as negative three in its own column. [[c1]]Two x times x is two x squared, [[c2]]two x times five is ten x, [[c3]]negative three times x is negative three x, [[c4]]and negative three times five is negative fifteen. [[like]]Combine the like terms: ten x minus three x is seven x. [[ans]]The product is two x squared plus seven x minus fifteen.",
+ "big": "Longer polynomials work the same way, with a bigger grid. [[q]]x plus two, times x squared plus three x minus one: [[grid]]two rows and three columns make six products. [[fill]]Fill every cell. [[diag]]Like terms line up along the diagonals: three x squared and two x squared, then negative x and six x. [[ans]]The product is x cubed plus five x squared plus five x minus two.",
+ "q3": "Quick check. Fill in the grid.",
+ "div": "To divide a polynomial by a monomial, divide every term by the monomial. [[q]]Take a to the tenth b to the fourth, minus a to the eighth b to the fifth, divided by a squared b cubed. [[split]]Split it into two fractions, one for each term. [[t1]]a to the ten minus two, b to the four minus three: a to the eighth b. [[t2]]a to the eight minus two, b to the five minus three: a to the sixth b squared. [[ans]]The quotient is a to the eighth b, minus a to the sixth b squared.",
+ "q4": "Quick check. Divide by the monomial.",
+ "wrap": "To sum up. [[w1]]To multiply polynomials, multiply every term of one by every term of the other. An area grid keeps track. [[w2]]For two binomials, FOIL lists the four products: first, outer, inner, last. [[w3]]Then combine like terms. [[w4]]To divide by a monomial, divide each term separately. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Multiply.",
+ "final2": "Next, multiply the binomials.",
+ "final3": "Last one. Divide by the monomial.",
+ "finish": "Great job. That's the end of chapter fifty-one, and of unit nine."
+ }
+}
diff --git a/content/ch51/narration.en.timings.json b/content/ch51/narration.en.timings.json
new file mode 100644
index 0000000..ef6b040
--- /dev/null
+++ b/content/ch51/narration.en.timings.json
@@ -0,0 +1,2777 @@
+{
+ "intro": {
+ "key": "425896d2553498eef261d6da319441d9d0be1f78",
+ "dur": 7.944,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.559916,
+ "fifty-one"
+ ],
+ [
+ 1.731791,
+ "To"
+ ],
+ [
+ 1.796875,
+ "multiply"
+ ],
+ [
+ 2.617208,
+ "polynomials"
+ ],
+ [
+ 3.919291,
+ "every"
+ ],
+ [
+ 4.179708,
+ "term"
+ ],
+ [
+ 4.466166,
+ "in"
+ ],
+ [
+ 4.596375,
+ "one"
+ ],
+ [
+ 5.195333,
+ "must"
+ ],
+ [
+ 5.533875,
+ "multiply"
+ ],
+ [
+ 6.432291,
+ "every"
+ ],
+ [
+ 6.744791,
+ "term"
+ ],
+ [
+ 7.005208,
+ "in"
+ ],
+ [
+ 7.070333,
+ "the"
+ ],
+ [
+ 7.161458,
+ "other"
+ ]
+ ],
+ "marks": {
+ "sub": 1.732
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter fifty-one."
+ ],
+ [
+ 1.732,
+ "To multiply polynomials, every term in one must multiply every term in the other."
+ ]
+ ]
+ },
+ "mono": {
+ "key": "c00ae280a93120a3c6de28ce817176819aade0bc",
+ "dur": 33.624,
+ "words": [
+ [
+ 0.104166,
+ "Start"
+ ],
+ [
+ 0.338541,
+ "with"
+ ],
+ [
+ 0.45575,
+ "a"
+ ],
+ [
+ 0.481791,
+ "monomial"
+ ],
+ [
+ 1.028666,
+ "times"
+ ],
+ [
+ 1.70575,
+ "a"
+ ],
+ [
+ 1.770833,
+ "binomial"
+ ],
+ [
+ 2.33075,
+ ": x"
+ ],
+ [
+ 2.513041,
+ "squared"
+ ],
+ [
+ 3.411458,
+ "times"
+ ],
+ [
+ 3.828125,
+ "x"
+ ],
+ [
+ 4.023458,
+ "cubed"
+ ],
+ [
+ 4.596375,
+ "plus"
+ ],
+ [
+ 5.286458,
+ "seven"
+ ],
+ [
+ 5.690125,
+ "y"
+ ],
+ [
+ 6.484375,
+ "The"
+ ],
+ [
+ 6.536458,
+ "distributive"
+ ],
+ [
+ 7.044291,
+ "property"
+ ],
+ [
+ 7.760416,
+ "sends"
+ ],
+ [
+ 8.4375,
+ "x"
+ ],
+ [
+ 8.880208,
+ "squared"
+ ],
+ [
+ 9.492208,
+ "to"
+ ],
+ [
+ 9.661458,
+ "each"
+ ],
+ [
+ 9.908875,
+ "term"
+ ],
+ [
+ 10.15625,
+ "inside"
+ ],
+ [
+ 11.106791,
+ "An"
+ ],
+ [
+ 11.210958,
+ "area"
+ ],
+ [
+ 11.536458,
+ "model"
+ ],
+ [
+ 12.239583,
+ "shows"
+ ],
+ [
+ 12.65625,
+ "the"
+ ],
+ [
+ 12.760416,
+ "same"
+ ],
+ [
+ 13.125,
+ "thing"
+ ],
+ [
+ 14.023458,
+ "a"
+ ],
+ [
+ 14.0495,
+ "rectangle"
+ ],
+ [
+ 14.6875,
+ "x"
+ ],
+ [
+ 14.869791,
+ "squared"
+ ],
+ [
+ 15.234375,
+ "tall"
+ ],
+ [
+ 16.041666,
+ "split"
+ ],
+ [
+ 16.484375,
+ "into"
+ ],
+ [
+ 16.731791,
+ "two"
+ ],
+ [
+ 17.005208,
+ "parts"
+ ],
+ [
+ 17.265625,
+ "across"
+ ],
+ [
+ 18.346375,
+ "x"
+ ],
+ [
+ 18.541666,
+ "squared"
+ ],
+ [
+ 18.919291,
+ "times"
+ ],
+ [
+ 19.283875,
+ "x"
+ ],
+ [
+ 19.453125,
+ "cubed"
+ ],
+ [
+ 20.234375,
+ "is"
+ ],
+ [
+ 20.572916,
+ "x"
+ ],
+ [
+ 20.78125,
+ "to"
+ ],
+ [
+ 20.885416,
+ "the"
+ ],
+ [
+ 20.963541,
+ "fifth"
+ ],
+ [
+ 21.888041,
+ "x"
+ ],
+ [
+ 22.083333,
+ "squared"
+ ],
+ [
+ 22.473958,
+ "times"
+ ],
+ [
+ 23.059916,
+ "seven"
+ ],
+ [
+ 23.697916,
+ "y"
+ ],
+ [
+ 24.153666,
+ "is"
+ ],
+ [
+ 24.270833,
+ "seven"
+ ],
+ [
+ 24.700541,
+ "x"
+ ],
+ [
+ 25.208333,
+ "squared"
+ ],
+ [
+ 25.585958,
+ "y"
+ ],
+ [
+ 26.341166,
+ "Add"
+ ],
+ [
+ 26.471375,
+ "the"
+ ],
+ [
+ 26.536458,
+ "parts"
+ ],
+ [
+ 27.057291,
+ ": x"
+ ],
+ [
+ 27.226583,
+ "to"
+ ],
+ [
+ 27.317708,
+ "the"
+ ],
+ [
+ 27.408875,
+ "fifth"
+ ],
+ [
+ 27.877625,
+ "plus"
+ ],
+ [
+ 28.463541,
+ "seven"
+ ],
+ [
+ 29.127625,
+ "x"
+ ],
+ [
+ 29.661458,
+ "squared"
+ ],
+ [
+ 30.065125,
+ "y"
+ ],
+ [
+ 30.846375,
+ "They"
+ ],
+ [
+ 30.9245,
+ "aren't"
+ ],
+ [
+ 31.067708,
+ "like"
+ ],
+ [
+ 31.276041,
+ "terms"
+ ],
+ [
+ 32.057291,
+ "so"
+ ],
+ [
+ 32.1875,
+ "that's"
+ ],
+ [
+ 32.356791,
+ "the"
+ ],
+ [
+ 32.460958,
+ "final"
+ ],
+ [
+ 32.786458,
+ "answer"
+ ]
+ ],
+ "marks": {
+ "dist": 6.484,
+ "box": 11.107,
+ "c1": 18.346,
+ "c2": 21.888,
+ "ans": 26.341
+ },
+ "cues": [
+ [
+ 0.104,
+ "Start with a monomial times a binomial: x squared, times x cubed plus seven y."
+ ],
+ [
+ 6.484,
+ "The distributive property sends x squared to each term inside."
+ ],
+ [
+ 11.107,
+ "An area model shows the same thing: a rectangle x squared tall, split into two parts across."
+ ],
+ [
+ 18.346,
+ "x squared times x cubed is x to the fifth."
+ ],
+ [
+ 21.888,
+ "x squared times seven y is seven x squared y."
+ ],
+ [
+ 26.341,
+ "Add the parts: x to the fifth plus seven x squared y."
+ ],
+ [
+ 30.846,
+ "They aren't like terms, so that's the final answer."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "55b478947d49e61fea85d341221a3469a02f2b73",
+ "dur": 3.192,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.184916,
+ "Distribute"
+ ],
+ [
+ 2.005208,
+ "the"
+ ],
+ [
+ 2.083333,
+ "monomial"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.185,
+ "Distribute the monomial."
+ ]
+ ]
+ },
+ "binom": {
+ "key": "09f47189fc125b56ca5ae17577a6e1ca25828407",
+ "dur": 36.072,
+ "words": [
+ [
+ 0.104166,
+ "Now"
+ ],
+ [
+ 0.364583,
+ "two"
+ ],
+ [
+ 0.585958,
+ "binomials"
+ ],
+ [
+ 1.263041,
+ ": x"
+ ],
+ [
+ 1.419291,
+ "plus"
+ ],
+ [
+ 1.731791,
+ "nine"
+ ],
+ [
+ 2.434916,
+ "times"
+ ],
+ [
+ 2.7995,
+ "x"
+ ],
+ [
+ 2.929708,
+ "plus"
+ ],
+ [
+ 3.242208,
+ "seven"
+ ],
+ [
+ 4.166666,
+ "Picture"
+ ],
+ [
+ 4.609375,
+ "a"
+ ],
+ [
+ 4.6745,
+ "rectangle"
+ ],
+ [
+ 5.612,
+ "x"
+ ],
+ [
+ 6.145833,
+ "plus"
+ ],
+ [
+ 6.5625,
+ "nine"
+ ],
+ [
+ 6.914083,
+ "wide"
+ ],
+ [
+ 7.721375,
+ "and"
+ ],
+ [
+ 8.072916,
+ "x"
+ ],
+ [
+ 8.320333,
+ "plus"
+ ],
+ [
+ 8.854166,
+ "seven"
+ ],
+ [
+ 9.179708,
+ "tall"
+ ],
+ [
+ 9.947916,
+ "Split"
+ ],
+ [
+ 10.481791,
+ "each"
+ ],
+ [
+ 10.677083,
+ "side"
+ ],
+ [
+ 11.184916,
+ "into"
+ ],
+ [
+ 11.458333,
+ "its"
+ ],
+ [
+ 11.588541,
+ "two"
+ ],
+ [
+ 11.888041,
+ "terms"
+ ],
+ [
+ 12.7995,
+ "and"
+ ],
+ [
+ 12.903666,
+ "the"
+ ],
+ [
+ 12.981791,
+ "rectangle"
+ ],
+ [
+ 13.541666,
+ "splits"
+ ],
+ [
+ 14.127625,
+ "into"
+ ],
+ [
+ 14.296875,
+ "four"
+ ],
+ [
+ 14.6745,
+ "parts"
+ ],
+ [
+ 15.677083,
+ "x"
+ ],
+ [
+ 15.794291,
+ "times"
+ ],
+ [
+ 16.184916,
+ "x"
+ ],
+ [
+ 16.71875,
+ "is"
+ ],
+ [
+ 16.927083,
+ "x"
+ ],
+ [
+ 17.161458,
+ "squared"
+ ],
+ [
+ 18.046875,
+ "x"
+ ],
+ [
+ 18.190125,
+ "times"
+ ],
+ [
+ 18.528666,
+ "nine"
+ ],
+ [
+ 19.127625,
+ "is"
+ ],
+ [
+ 19.270833,
+ "nine"
+ ],
+ [
+ 19.739583,
+ "x"
+ ],
+ [
+ 20.45575,
+ "Seven"
+ ],
+ [
+ 20.78125,
+ "times"
+ ],
+ [
+ 21.276041,
+ "x"
+ ],
+ [
+ 21.744791,
+ "is"
+ ],
+ [
+ 21.914083,
+ "seven"
+ ],
+ [
+ 22.291666,
+ "x"
+ ],
+ [
+ 22.981791,
+ "Seven"
+ ],
+ [
+ 23.26825,
+ "times"
+ ],
+ [
+ 23.658875,
+ "nine"
+ ],
+ [
+ 24.466166,
+ "is"
+ ],
+ [
+ 24.596375,
+ "sixty-three"
+ ],
+ [
+ 25.794291,
+ "The"
+ ],
+ [
+ 25.859375,
+ "two"
+ ],
+ [
+ 26.067708,
+ "x"
+ ],
+ [
+ 26.223958,
+ "strips"
+ ],
+ [
+ 26.601583,
+ "are"
+ ],
+ [
+ 26.744791,
+ "like"
+ ],
+ [
+ 27.005208,
+ "terms"
+ ],
+ [
+ 27.981791,
+ "seven"
+ ],
+ [
+ 28.26825,
+ "x"
+ ],
+ [
+ 28.411458,
+ "plus"
+ ],
+ [
+ 28.697916,
+ "nine"
+ ],
+ [
+ 29.023458,
+ "x"
+ ],
+ [
+ 29.557291,
+ "is"
+ ],
+ [
+ 29.700541,
+ "sixteen"
+ ],
+ [
+ 30.195333,
+ "x"
+ ],
+ [
+ 31.067708,
+ "So"
+ ],
+ [
+ 31.171875,
+ "the"
+ ],
+ [
+ 31.25,
+ "product"
+ ],
+ [
+ 31.653666,
+ "is"
+ ],
+ [
+ 31.862,
+ "x"
+ ],
+ [
+ 32.135416,
+ "squared"
+ ],
+ [
+ 32.682291,
+ "plus"
+ ],
+ [
+ 33.229166,
+ "sixteen"
+ ],
+ [
+ 33.919291,
+ "x"
+ ],
+ [
+ 34.296875,
+ "plus"
+ ],
+ [
+ 34.895833,
+ "sixty-three"
+ ]
+ ],
+ "marks": {
+ "rect": 4.167,
+ "split": 9.948,
+ "c1": 15.677,
+ "c2": 18.047,
+ "c3": 20.456,
+ "c4": 22.982,
+ "like": 25.794,
+ "ans": 31.068
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now two binomials: x plus nine, times x plus seven."
+ ],
+ [
+ 4.167,
+ "Picture a rectangle x plus nine wide and x plus seven tall."
+ ],
+ [
+ 9.948,
+ "Split each side into its two terms, and the rectangle splits into four parts."
+ ],
+ [
+ 15.677,
+ "x times x is x squared."
+ ],
+ [
+ 18.047,
+ "x times nine is nine x."
+ ],
+ [
+ 20.456,
+ "Seven times x is seven x."
+ ],
+ [
+ 22.982,
+ "Seven times nine is sixty-three."
+ ],
+ [
+ 25.794,
+ "The two x strips are like terms: seven x plus nine x is sixteen x."
+ ],
+ [
+ 31.068,
+ "So the product is x squared plus sixteen x plus sixty-three."
+ ]
+ ]
+ },
+ "foil": {
+ "key": "56f81356b86850408abc9df49699e06bad0cb4c3",
+ "dur": 26.496,
+ "words": [
+ [
+ 0.14325,
+ "For"
+ ],
+ [
+ 0.416666,
+ "two"
+ ],
+ [
+ 0.690125,
+ "binomials"
+ ],
+ [
+ 1.809916,
+ "the"
+ ],
+ [
+ 1.927083,
+ "four"
+ ],
+ [
+ 2.252625,
+ "products"
+ ],
+ [
+ 2.682291,
+ "have"
+ ],
+ [
+ 2.864583,
+ "names"
+ ],
+ [
+ 4.010416,
+ "First"
+ ],
+ [
+ 4.544291,
+ "the"
+ ],
+ [
+ 4.635416,
+ "first"
+ ],
+ [
+ 4.921875,
+ "terms"
+ ],
+ [
+ 5.638041,
+ "a"
+ ],
+ [
+ 5.716166,
+ "times"
+ ],
+ [
+ 6.158875,
+ "c"
+ ],
+ [
+ 7.408875,
+ "Outer"
+ ],
+ [
+ 8.242208,
+ "the"
+ ],
+ [
+ 8.333333,
+ "outside"
+ ],
+ [
+ 8.919291,
+ "terms"
+ ],
+ [
+ 9.440125,
+ "a"
+ ],
+ [
+ 9.492208,
+ "times"
+ ],
+ [
+ 9.934916,
+ "d"
+ ],
+ [
+ 10.664083,
+ "Inner"
+ ],
+ [
+ 11.40625,
+ "the"
+ ],
+ [
+ 11.471375,
+ "inside"
+ ],
+ [
+ 12.057291,
+ "terms"
+ ],
+ [
+ 12.526041,
+ "b"
+ ],
+ [
+ 12.65625,
+ "times"
+ ],
+ [
+ 13.033875,
+ "c"
+ ],
+ [
+ 13.841166,
+ "Last"
+ ],
+ [
+ 14.53125,
+ "b"
+ ],
+ [
+ 14.661458,
+ "times"
+ ],
+ [
+ 15.052083,
+ "d"
+ ],
+ [
+ 15.794291,
+ "That's"
+ ],
+ [
+ 15.911458,
+ "the"
+ ],
+ [
+ 16.002625,
+ "FOIL"
+ ],
+ [
+ 16.341166,
+ "method"
+ ],
+ [
+ 17.01825,
+ "first"
+ ],
+ [
+ 17.916666,
+ "outer"
+ ],
+ [
+ 18.658875,
+ "inner"
+ ],
+ [
+ 18.958333,
+ "last"
+ ],
+ [
+ 19.973958,
+ "It"
+ ],
+ [
+ 20.065125,
+ "finds"
+ ],
+ [
+ 20.416666,
+ "exactly"
+ ],
+ [
+ 21.09375,
+ "the"
+ ],
+ [
+ 21.210958,
+ "four"
+ ],
+ [
+ 21.640625,
+ "cells"
+ ],
+ [
+ 22.057291,
+ "of"
+ ],
+ [
+ 22.122416,
+ "the"
+ ],
+ [
+ 22.200541,
+ "area"
+ ],
+ [
+ 22.578125,
+ "model"
+ ],
+ [
+ 23.333333,
+ "so"
+ ],
+ [
+ 23.515625,
+ "it's"
+ ],
+ [
+ 23.632833,
+ "the"
+ ],
+ [
+ 23.737,
+ "distributive"
+ ],
+ [
+ 24.283875,
+ "property"
+ ],
+ [
+ 25.065125,
+ "in"
+ ],
+ [
+ 25.15625,
+ "a"
+ ],
+ [
+ 25.208333,
+ "fixed"
+ ],
+ [
+ 25.690125,
+ "order"
+ ]
+ ],
+ "marks": {
+ "f": 4.01,
+ "o": 7.409,
+ "i": 10.664,
+ "l": 13.841,
+ "word": 15.794,
+ "same": 19.974
+ },
+ "cues": [
+ [
+ 0.143,
+ "For two binomials, the four products have names."
+ ],
+ [
+ 4.01,
+ "First: the first terms, a times c."
+ ],
+ [
+ 7.409,
+ "Outer: the outside terms, a times d."
+ ],
+ [
+ 10.664,
+ "Inner: the inside terms, b times c."
+ ],
+ [
+ 13.841,
+ "Last: b times d."
+ ],
+ [
+ 15.794,
+ "That's the FOIL method, first, outer, inner, last."
+ ],
+ [
+ 19.974,
+ "It finds exactly the four cells of the area model, so it's the distributive property in a fixed order."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "ad680a77e1bee99a197726b7aaa9f53821cb4054",
+ "dur": 3.144,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.2995,
+ "check"
+ ],
+ [
+ 1.171875,
+ "Multiply"
+ ],
+ [
+ 1.744791,
+ "the"
+ ],
+ [
+ 1.835958,
+ "binomials"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.172,
+ "Multiply the binomials."
+ ]
+ ]
+ },
+ "neg": {
+ "key": "b484da253f91cf744bfe6ec87b223cb99ff14a03",
+ "dur": 31.656,
+ "words": [
+ [
+ 0.104166,
+ "Watch"
+ ],
+ [
+ 0.338541,
+ "the"
+ ],
+ [
+ 0.429708,
+ "signs"
+ ],
+ [
+ 1.510416,
+ "Multiply"
+ ],
+ [
+ 2.226583,
+ "two"
+ ],
+ [
+ 2.708333,
+ "x"
+ ],
+ [
+ 2.981791,
+ "minus"
+ ],
+ [
+ 3.385416,
+ "three"
+ ],
+ [
+ 4.231791,
+ "times"
+ ],
+ [
+ 4.661458,
+ "x"
+ ],
+ [
+ 4.791666,
+ "plus"
+ ],
+ [
+ 5.065125,
+ "five"
+ ],
+ [
+ 5.963541,
+ "Treat"
+ ],
+ [
+ 6.223958,
+ "minus"
+ ],
+ [
+ 6.627625,
+ "three"
+ ],
+ [
+ 7.278666,
+ "as"
+ ],
+ [
+ 7.473958,
+ "negative"
+ ],
+ [
+ 7.981791,
+ "three"
+ ],
+ [
+ 8.567708,
+ "in"
+ ],
+ [
+ 8.671875,
+ "its"
+ ],
+ [
+ 8.815125,
+ "own"
+ ],
+ [
+ 8.971375,
+ "column"
+ ],
+ [
+ 9.791666,
+ "Two"
+ ],
+ [
+ 9.973958,
+ "x"
+ ],
+ [
+ 10.14325,
+ "times"
+ ],
+ [
+ 10.625,
+ "x"
+ ],
+ [
+ 11.145833,
+ "is"
+ ],
+ [
+ 11.354166,
+ "two"
+ ],
+ [
+ 11.731791,
+ "x"
+ ],
+ [
+ 11.992208,
+ "squared"
+ ],
+ [
+ 12.942708,
+ "two"
+ ],
+ [
+ 13.164083,
+ "x"
+ ],
+ [
+ 13.307291,
+ "times"
+ ],
+ [
+ 13.645833,
+ "five"
+ ],
+ [
+ 14.283875,
+ "is"
+ ],
+ [
+ 14.401041,
+ "ten"
+ ],
+ [
+ 14.752625,
+ "x"
+ ],
+ [
+ 15.507833,
+ "negative"
+ ],
+ [
+ 15.898458,
+ "three"
+ ],
+ [
+ 16.184916,
+ "times"
+ ],
+ [
+ 16.627625,
+ "x"
+ ],
+ [
+ 17.239583,
+ "is"
+ ],
+ [
+ 17.369791,
+ "negative"
+ ],
+ [
+ 17.7995,
+ "three"
+ ],
+ [
+ 18.125,
+ "x"
+ ],
+ [
+ 18.867208,
+ "and"
+ ],
+ [
+ 19.010416,
+ "negative"
+ ],
+ [
+ 19.362,
+ "three"
+ ],
+ [
+ 19.622416,
+ "times"
+ ],
+ [
+ 19.987,
+ "five"
+ ],
+ [
+ 20.794291,
+ "is"
+ ],
+ [
+ 20.898458,
+ "negative"
+ ],
+ [
+ 21.315125,
+ "fifteen"
+ ],
+ [
+ 22.239583,
+ "Combine"
+ ],
+ [
+ 22.578125,
+ "the"
+ ],
+ [
+ 22.65625,
+ "like"
+ ],
+ [
+ 22.903666,
+ "terms"
+ ],
+ [
+ 23.697916,
+ "ten"
+ ],
+ [
+ 24.179708,
+ "x"
+ ],
+ [
+ 24.362,
+ "minus"
+ ],
+ [
+ 24.778666,
+ "three"
+ ],
+ [
+ 25.104166,
+ "x"
+ ],
+ [
+ 25.690125,
+ "is"
+ ],
+ [
+ 25.820333,
+ "seven"
+ ],
+ [
+ 26.158875,
+ "x"
+ ],
+ [
+ 27.03125,
+ "The"
+ ],
+ [
+ 27.083333,
+ "product"
+ ],
+ [
+ 27.539083,
+ "is"
+ ],
+ [
+ 27.65625,
+ "two"
+ ],
+ [
+ 27.942708,
+ "x"
+ ],
+ [
+ 28.151041,
+ "squared"
+ ],
+ [
+ 28.671875,
+ "plus"
+ ],
+ [
+ 29.140625,
+ "seven"
+ ],
+ [
+ 29.83075,
+ "x"
+ ],
+ [
+ 30.377625,
+ "minus"
+ ],
+ [
+ 30.742208,
+ "fifteen"
+ ]
+ ],
+ "marks": {
+ "q": 1.51,
+ "cells": 5.964,
+ "c1": 9.792,
+ "c2": 12.943,
+ "c3": 15.508,
+ "c4": 18.867,
+ "like": 22.24,
+ "ans": 27.031
+ },
+ "cues": [
+ [
+ 0.104,
+ "Watch the signs."
+ ],
+ [
+ 1.51,
+ "Multiply two x minus three, times x plus five."
+ ],
+ [
+ 5.964,
+ "Treat minus three as negative three in its own column."
+ ],
+ [
+ 9.792,
+ "Two x times x is two x squared, two x times five is ten x, negative three times x is negative three x, and negative three times five is negative fifteen."
+ ],
+ [
+ 22.24,
+ "Combine the like terms: ten x minus three x is seven x."
+ ],
+ [
+ 27.031,
+ "The product is two x squared plus seven x minus fifteen."
+ ]
+ ]
+ },
+ "big": {
+ "key": "ffec48c78953a09a84cc0279f543f1816f401bab",
+ "dur": 27.888,
+ "words": [
+ [
+ 0.104166,
+ "Longer"
+ ],
+ [
+ 0.364583,
+ "polynomials"
+ ],
+ [
+ 1.054708,
+ "work"
+ ],
+ [
+ 1.302083,
+ "the"
+ ],
+ [
+ 1.39325,
+ "same"
+ ],
+ [
+ 1.744791,
+ "way"
+ ],
+ [
+ 2.565125,
+ "with"
+ ],
+ [
+ 2.695333,
+ "a"
+ ],
+ [
+ 2.786458,
+ "bigger"
+ ],
+ [
+ 3.098958,
+ "grid"
+ ],
+ [
+ 3.841166,
+ "x"
+ ],
+ [
+ 3.997416,
+ "plus"
+ ],
+ [
+ 4.257833,
+ "two"
+ ],
+ [
+ 4.973958,
+ "times"
+ ],
+ [
+ 5.45575,
+ "x"
+ ],
+ [
+ 5.651041,
+ "squared"
+ ],
+ [
+ 6.054708,
+ "plus"
+ ],
+ [
+ 6.614583,
+ "three"
+ ],
+ [
+ 7.122416,
+ "x"
+ ],
+ [
+ 7.473958,
+ "minus"
+ ],
+ [
+ 7.916666,
+ "one"
+ ],
+ [
+ 8.75,
+ "two"
+ ],
+ [
+ 8.984375,
+ "rows"
+ ],
+ [
+ 9.51825,
+ "and"
+ ],
+ [
+ 9.804708,
+ "three"
+ ],
+ [
+ 10.234375,
+ "columns"
+ ],
+ [
+ 10.703125,
+ "make"
+ ],
+ [
+ 10.9245,
+ "six"
+ ],
+ [
+ 11.197916,
+ "products"
+ ],
+ [
+ 12.356791,
+ "Fill"
+ ],
+ [
+ 12.890625,
+ "every"
+ ],
+ [
+ 13.138041,
+ "cell"
+ ],
+ [
+ 13.997416,
+ "Like"
+ ],
+ [
+ 14.153666,
+ "terms"
+ ],
+ [
+ 14.51825,
+ "line"
+ ],
+ [
+ 14.869791,
+ "up"
+ ],
+ [
+ 15.039083,
+ "along"
+ ],
+ [
+ 15.351583,
+ "the"
+ ],
+ [
+ 15.416666,
+ "diagonals"
+ ],
+ [
+ 16.666666,
+ "three"
+ ],
+ [
+ 17.01825,
+ "x"
+ ],
+ [
+ 17.278666,
+ "squared"
+ ],
+ [
+ 18.007833,
+ "and"
+ ],
+ [
+ 18.151041,
+ "two"
+ ],
+ [
+ 18.450541,
+ "x"
+ ],
+ [
+ 18.684916,
+ "squared"
+ ],
+ [
+ 19.6745,
+ "then"
+ ],
+ [
+ 19.869791,
+ "negative"
+ ],
+ [
+ 20.2995,
+ "x"
+ ],
+ [
+ 20.911458,
+ "and"
+ ],
+ [
+ 21.119791,
+ "six"
+ ],
+ [
+ 21.510416,
+ "x"
+ ],
+ [
+ 22.369791,
+ "The"
+ ],
+ [
+ 22.447916,
+ "product"
+ ],
+ [
+ 22.864583,
+ "is"
+ ],
+ [
+ 23.151041,
+ "x"
+ ],
+ [
+ 23.346375,
+ "cubed"
+ ],
+ [
+ 23.671875,
+ "plus"
+ ],
+ [
+ 24.21875,
+ "five"
+ ],
+ [
+ 24.583333,
+ "x"
+ ],
+ [
+ 24.83075,
+ "squared"
+ ],
+ [
+ 25.3125,
+ "plus"
+ ],
+ [
+ 25.820333,
+ "five"
+ ],
+ [
+ 26.5495,
+ "x"
+ ],
+ [
+ 26.783875,
+ "minus"
+ ],
+ [
+ 27.161458,
+ "two"
+ ]
+ ],
+ "marks": {
+ "q": 3.841,
+ "grid": 8.75,
+ "fill": 12.357,
+ "diag": 13.997,
+ "ans": 22.37
+ },
+ "cues": [
+ [
+ 0.104,
+ "Longer polynomials work the same way, with a bigger grid."
+ ],
+ [
+ 3.841,
+ "x plus two, times x squared plus three x minus one: two rows and three columns make six products."
+ ],
+ [
+ 12.357,
+ "Fill every cell."
+ ],
+ [
+ 13.997,
+ "Like terms line up along the diagonals: three x squared and two x squared, then negative x and six x."
+ ],
+ [
+ 22.37,
+ "The product is x cubed plus five x squared plus five x minus two."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "01426f889bd8eef2e6f19072ec7ec73d7587b53d",
+ "dur": 2.376,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.260416,
+ "check"
+ ],
+ [
+ 1.237,
+ "Fill"
+ ],
+ [
+ 1.471375,
+ "in"
+ ],
+ [
+ 1.536458,
+ "the"
+ ],
+ [
+ 1.601583,
+ "grid"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.237,
+ "Fill in the grid."
+ ]
+ ]
+ },
+ "div": {
+ "key": "29789b6c33fa2ae70887b00474072c3b6d04520e",
+ "dur": 33.72,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.15625,
+ "divide"
+ ],
+ [
+ 0.45575,
+ "a"
+ ],
+ [
+ 0.507833,
+ "polynomial"
+ ],
+ [
+ 1.210958,
+ "by"
+ ],
+ [
+ 1.367208,
+ "a"
+ ],
+ [
+ 1.40625,
+ "monomial"
+ ],
+ [
+ 2.408875,
+ "divide"
+ ],
+ [
+ 3.020833,
+ "every"
+ ],
+ [
+ 3.359375,
+ "term"
+ ],
+ [
+ 3.802083,
+ "by"
+ ],
+ [
+ 3.932291,
+ "the"
+ ],
+ [
+ 4.010416,
+ "monomial"
+ ],
+ [
+ 5.065125,
+ "Take"
+ ],
+ [
+ 5.286458,
+ "a"
+ ],
+ [
+ 5.377625,
+ "to"
+ ],
+ [
+ 5.494791,
+ "the"
+ ],
+ [
+ 5.612,
+ "tenth"
+ ],
+ [
+ 5.989583,
+ "b"
+ ],
+ [
+ 6.197916,
+ "to"
+ ],
+ [
+ 6.315125,
+ "the"
+ ],
+ [
+ 6.419291,
+ "fourth"
+ ],
+ [
+ 7.434916,
+ "minus"
+ ],
+ [
+ 8.072916,
+ "a"
+ ],
+ [
+ 8.294291,
+ "to"
+ ],
+ [
+ 8.4245,
+ "the"
+ ],
+ [
+ 8.658875,
+ "eighth"
+ ],
+ [
+ 9.20575,
+ "b"
+ ],
+ [
+ 9.570333,
+ "to"
+ ],
+ [
+ 9.6745,
+ "the"
+ ],
+ [
+ 9.765625,
+ "fifth"
+ ],
+ [
+ 10.664083,
+ "divided"
+ ],
+ [
+ 11.067708,
+ "by"
+ ],
+ [
+ 11.223958,
+ "a"
+ ],
+ [
+ 11.289083,
+ "squared"
+ ],
+ [
+ 11.770833,
+ "b"
+ ],
+ [
+ 11.888041,
+ "cubed"
+ ],
+ [
+ 12.825541,
+ "Split"
+ ],
+ [
+ 13.112,
+ "it"
+ ],
+ [
+ 13.177083,
+ "into"
+ ],
+ [
+ 13.450541,
+ "two"
+ ],
+ [
+ 13.776041,
+ "fractions"
+ ],
+ [
+ 15.013041,
+ "one"
+ ],
+ [
+ 15.45575,
+ "for"
+ ],
+ [
+ 15.625,
+ "each"
+ ],
+ [
+ 15.872416,
+ "term"
+ ],
+ [
+ 16.640625,
+ "a"
+ ],
+ [
+ 16.692708,
+ "to"
+ ],
+ [
+ 16.796875,
+ "the"
+ ],
+ [
+ 16.901041,
+ "ten"
+ ],
+ [
+ 17.161458,
+ "minus"
+ ],
+ [
+ 17.539083,
+ "two"
+ ],
+ [
+ 18.26825,
+ "b"
+ ],
+ [
+ 18.411458,
+ "to"
+ ],
+ [
+ 18.489583,
+ "the"
+ ],
+ [
+ 18.606791,
+ "four"
+ ],
+ [
+ 19.010416,
+ "minus"
+ ],
+ [
+ 19.440125,
+ "three"
+ ],
+ [
+ 20.45575,
+ "a"
+ ],
+ [
+ 20.520833,
+ "to"
+ ],
+ [
+ 20.651041,
+ "the"
+ ],
+ [
+ 20.807291,
+ "eighth"
+ ],
+ [
+ 21.132833,
+ "b"
+ ],
+ [
+ 22.096375,
+ "a"
+ ],
+ [
+ 22.395833,
+ "to"
+ ],
+ [
+ 22.5,
+ "the"
+ ],
+ [
+ 22.682291,
+ "eight"
+ ],
+ [
+ 22.916666,
+ "minus"
+ ],
+ [
+ 23.294291,
+ "two"
+ ],
+ [
+ 24.010416,
+ "b"
+ ],
+ [
+ 24.140625,
+ "to"
+ ],
+ [
+ 24.21875,
+ "the"
+ ],
+ [
+ 24.335958,
+ "five"
+ ],
+ [
+ 24.804708,
+ "minus"
+ ],
+ [
+ 25.182291,
+ "three"
+ ],
+ [
+ 26.158875,
+ "a"
+ ],
+ [
+ 26.197916,
+ "to"
+ ],
+ [
+ 26.289083,
+ "the"
+ ],
+ [
+ 26.39325,
+ "sixth"
+ ],
+ [
+ 26.770833,
+ "b"
+ ],
+ [
+ 26.914083,
+ "squared"
+ ],
+ [
+ 27.903666,
+ "The"
+ ],
+ [
+ 27.96875,
+ "quotient"
+ ],
+ [
+ 28.619791,
+ "is"
+ ],
+ [
+ 28.945333,
+ "a"
+ ],
+ [
+ 29.166666,
+ "to"
+ ],
+ [
+ 29.322916,
+ "the"
+ ],
+ [
+ 29.544291,
+ "eighth"
+ ],
+ [
+ 29.987,
+ "b"
+ ],
+ [
+ 30.9245,
+ "minus"
+ ],
+ [
+ 31.5625,
+ "a"
+ ],
+ [
+ 31.875,
+ "to"
+ ],
+ [
+ 32.01825,
+ "the"
+ ],
+ [
+ 32.135416,
+ "sixth"
+ ],
+ [
+ 32.65625,
+ "b"
+ ],
+ [
+ 32.8125,
+ "squared"
+ ]
+ ],
+ "marks": {
+ "q": 5.065,
+ "split": 12.826,
+ "t1": 16.641,
+ "t2": 22.096,
+ "ans": 27.904
+ },
+ "cues": [
+ [
+ 0.104,
+ "To divide a polynomial by a monomial, divide every term by the monomial."
+ ],
+ [
+ 5.065,
+ "Take a to the tenth b to the fourth, minus a to the eighth b to the fifth, divided by a squared b cubed."
+ ],
+ [
+ 12.826,
+ "Split it into two fractions, one for each term."
+ ],
+ [
+ 16.641,
+ "a to the ten minus two, b to the four minus three: a to the eighth b."
+ ],
+ [
+ 22.096,
+ "a to the eight minus two, b to the five minus three: a to the sixth b squared."
+ ],
+ [
+ 27.904,
+ "The quotient is a to the eighth b, minus a to the sixth b squared."
+ ]
+ ]
+ },
+ "q4": {
+ "key": "a541a25f1ed360d1c15096b69bd7561cc64f1d33",
+ "dur": 2.76,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.286458,
+ "check"
+ ],
+ [
+ 1.145833,
+ "Divide"
+ ],
+ [
+ 1.575541,
+ "by"
+ ],
+ [
+ 1.692708,
+ "the"
+ ],
+ [
+ 1.757833,
+ "monomial"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.146,
+ "Divide by the monomial."
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "4e58c264def3e6df720e37c942cede49cb5314fc",
+ "dur": 23.712,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "sum"
+ ],
+ [
+ 0.377625,
+ "up"
+ ],
+ [
+ 1.041666,
+ "To"
+ ],
+ [
+ 1.119791,
+ "multiply"
+ ],
+ [
+ 1.888041,
+ "polynomials"
+ ],
+ [
+ 3.046875,
+ "multiply"
+ ],
+ [
+ 3.945333,
+ "every"
+ ],
+ [
+ 4.257833,
+ "term"
+ ],
+ [
+ 4.53125,
+ "of"
+ ],
+ [
+ 4.635416,
+ "one"
+ ],
+ [
+ 4.934916,
+ "by"
+ ],
+ [
+ 5.3125,
+ "every"
+ ],
+ [
+ 5.638041,
+ "term"
+ ],
+ [
+ 5.885416,
+ "of"
+ ],
+ [
+ 5.963541,
+ "the"
+ ],
+ [
+ 6.067708,
+ "other"
+ ],
+ [
+ 6.835958,
+ "An"
+ ],
+ [
+ 6.940125,
+ "area"
+ ],
+ [
+ 7.356791,
+ "grid"
+ ],
+ [
+ 8.007833,
+ "keeps"
+ ],
+ [
+ 8.294291,
+ "track"
+ ],
+ [
+ 9.322916,
+ "For"
+ ],
+ [
+ 9.596375,
+ "two"
+ ],
+ [
+ 9.817708,
+ "binomials"
+ ],
+ [
+ 10.989583,
+ "FOIL"
+ ],
+ [
+ 11.432291,
+ "lists"
+ ],
+ [
+ 11.679708,
+ "the"
+ ],
+ [
+ 11.783875,
+ "four"
+ ],
+ [
+ 12.161458,
+ "products"
+ ],
+ [
+ 13.072916,
+ "first"
+ ],
+ [
+ 13.919291,
+ "outer"
+ ],
+ [
+ 14.648458,
+ "inner"
+ ],
+ [
+ 14.882833,
+ "last"
+ ],
+ [
+ 15.898458,
+ "Then"
+ ],
+ [
+ 16.015625,
+ "combine"
+ ],
+ [
+ 16.432291,
+ "like"
+ ],
+ [
+ 16.627625,
+ "terms"
+ ],
+ [
+ 17.630208,
+ "To"
+ ],
+ [
+ 17.682291,
+ "divide"
+ ],
+ [
+ 18.125,
+ "by"
+ ],
+ [
+ 18.26825,
+ "a"
+ ],
+ [
+ 18.294291,
+ "monomial"
+ ],
+ [
+ 19.270833,
+ "divide"
+ ],
+ [
+ 19.908875,
+ "each"
+ ],
+ [
+ 20.117208,
+ "term"
+ ],
+ [
+ 20.416666,
+ "separately"
+ ],
+ [
+ 21.497416,
+ "Now"
+ ],
+ [
+ 21.940125,
+ "try"
+ ],
+ [
+ 22.122416,
+ "the"
+ ],
+ [
+ 22.226583,
+ "chapter"
+ ],
+ [
+ 22.64325,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 1.042,
+ "w2": 9.323,
+ "w3": 15.898,
+ "w4": 17.63,
+ "end": 21.497
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.042,
+ "To multiply polynomials, multiply every term of one by every term of the other."
+ ],
+ [
+ 6.836,
+ "An area grid keeps track."
+ ],
+ [
+ 9.323,
+ "For two binomials, FOIL lists the four products: first, outer, inner, last."
+ ],
+ [
+ 15.898,
+ "Then combine like terms."
+ ],
+ [
+ 17.63,
+ "To divide by a monomial, divide each term separately."
+ ],
+ [
+ 21.497,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "2deac1500122428763aa7b80f7b77e6f6a57d57d",
+ "dur": 2.496,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.416666,
+ "practice"
+ ],
+ [
+ 1.497416,
+ "Multiply"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.497,
+ "Multiply."
+ ]
+ ]
+ },
+ "final2": {
+ "key": "0bf23525d8e3e1fce32c58b6916a55a5dae98668",
+ "dur": 2.904,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.976583,
+ "multiply"
+ ],
+ [
+ 1.627625,
+ "the"
+ ],
+ [
+ 1.70575,
+ "binomials"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, multiply the binomials."
+ ]
+ ]
+ },
+ "final3": {
+ "key": "5e167cdf809e107a9da0daaad7dda381e202cecc",
+ "dur": 2.76,
+ "words": [
+ [
+ 0.104166,
+ "Last"
+ ],
+ [
+ 0.390625,
+ "one"
+ ],
+ [
+ 1.145833,
+ "Divide"
+ ],
+ [
+ 1.5625,
+ "by"
+ ],
+ [
+ 1.666666,
+ "the"
+ ],
+ [
+ 1.757833,
+ "monomial"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.146,
+ "Divide by the monomial."
+ ]
+ ]
+ },
+ "finish": {
+ "key": "a030b1643436d7ac01915a9e6ff5c48379d6dfdb",
+ "dur": 4.944,
+ "words": [
+ [
+ 0.104166,
+ "Great"
+ ],
+ [
+ 0.416666,
+ "job"
+ ],
+ [
+ 1.197916,
+ "That's"
+ ],
+ [
+ 1.354166,
+ "the"
+ ],
+ [
+ 1.458333,
+ "end"
+ ],
+ [
+ 1.70575,
+ "of"
+ ],
+ [
+ 1.796875,
+ "chapter"
+ ],
+ [
+ 2.513041,
+ "fifty-one"
+ ],
+ [
+ 3.697916,
+ "and"
+ ],
+ [
+ 3.828125,
+ "of"
+ ],
+ [
+ 3.919291,
+ "unit"
+ ],
+ [
+ 4.21875,
+ "nine"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Great job."
+ ],
+ [
+ 1.198,
+ "That's the end of chapter fifty-one, and of unit nine."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch52/narration.en.json b/content/ch52/narration.en.json
new file mode 100644
index 0000000..41eb04c
--- /dev/null
+++ b/content/ch52/narration.en.json
@@ -0,0 +1,22 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Unit ten, chapter fifty-two. [[sub]]Factoring runs multiplication backward: you start with the product and find what was multiplied.",
+ "factors": "Factors are numbers you multiply to get a given number. [[dots]]Twelve dots can be arranged into rectangles. [[r1]]One row of twelve, [[r2]]two rows of six, [[r3]]or three rows of four. [[list]]The side lengths are the factors of twelve: one, two, three, four, six, and twelve. [[mono]]Monomials have factors too. Six x is two times three x, or three times two x, or six times x.",
+ "gcf": "The greatest common factor, or GCF, is the largest factor two numbers share. [[ex]]Take twelve and twenty. [[primes]]Break each into prime factors: twelve is two times two times three, and twenty is two times two times five. [[match]]Match the primes they share: a two, and another two. [[gcf]]Multiply the shared primes: the GCF is four.",
+ "mono": "The same idea finds the GCF of monomials. [[ex]]Take twelve x cubed y squared and eighteen x squared y to the fourth. [[expand]]Write out every factor. [[match]]Match what they share: [[nums]]a two and a three, [[xs]]two x's, [[ys]]and two y's. [[gcf]]So the GCF is six x squared y squared. [[rule]]In short: the GCF of the coefficients, times each shared variable to its smallest exponent.",
+ "q1": "Quick check. Find the GCF.",
+ "factor": "To factor a polynomial, pull its GCF out of every term. [[ex]]Factor six x squared plus nine x. [[area]]Think of it as the area of a rectangle made of two parts. [[gcf]]The GCF, three x, is the height they share. [[w1]]Six x squared divided by three x is two x, [[w2]]and nine x divided by three x is three. [[ans]]So six x squared plus nine x equals three x times the quantity two x plus three. [[chk]]Check by multiplying back: three x times two x is six x squared, and three x times three is nine x.",
+ "big": "The steps don't change for bigger exponents. [[ex]]Factor six x to the ninth y to the seventh minus ten x to the fourth y to the fifteenth. [[gcf]]The GCF is two, times x to the fourth, times y to the seventh. [[d1]]Divide the first term by the GCF: three x to the fifth. [[d2]]Divide the second: five y to the eighth. [[ans]]The factored form is two x to the fourth y to the seventh, times three x to the fifth minus five y to the eighth.",
+ "q2": "Quick check. Factor out the GCF.",
+ "one": "Watch out when the GCF is a whole term. [[ex]]Factor five a plus five. [[div]]Five a divided by five is a, and five divided by five is one. [[ans]]So the answer is five times a plus one. [[warn]]The one must stay. Without it, five times a is only five a, and the plus five is lost.",
+ "full": "Use the greatest common factor, not just any common factor. [[ex]]Someone factors twelve x to the seventh y to the ninth minus sixteen x to the tenth y to the fourth as two x to the seventh y squared, times six y to the seventh minus eight x cubed y squared. [[chk]]It multiplies back correctly, [[left]]but the terms inside still share a factor, two y squared. [[ans]]Factoring completely gives four x to the seventh y to the fourth, times three y to the fifth minus four x cubed. [[test]]A quick test: if the terms inside the parentheses still have a common factor, keep going.",
+ "q3": "Quick check. Is it fully factored?",
+ "wrap": "To sum up. [[w1]]The GCF is the product of the shared factors: the GCF of the coefficients, and each shared variable to its smallest exponent. [[w2]]To factor, divide every term by the GCF and write the GCF times what's left. [[w3]]Check by multiplying back, and make sure nothing common is left inside. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Find each GCF.",
+ "final2": "Next, factor each polynomial.",
+ "final3": "Last one. Fully factored, or not yet?",
+ "finish": "Well done. That's the end of chapter fifty-two, factoring with the GCF."
+ }
+}
diff --git a/content/ch52/narration.en.timings.json b/content/ch52/narration.en.timings.json
new file mode 100644
index 0000000..cd97342
--- /dev/null
+++ b/content/ch52/narration.en.timings.json
@@ -0,0 +1,3031 @@
+{
+ "intro": {
+ "key": "1a08ad7f5f4f33be75c33f400e75305868e0a7de",
+ "dur": 8.952,
+ "words": [
+ [
+ 0.104166,
+ "Unit"
+ ],
+ [
+ 0.390625,
+ "ten"
+ ],
+ [
+ 1.002625,
+ "chapter"
+ ],
+ [
+ 1.484375,
+ "fifty-two"
+ ],
+ [
+ 2.786458,
+ "Factoring"
+ ],
+ [
+ 3.294291,
+ "runs"
+ ],
+ [
+ 3.854166,
+ "multiplication"
+ ],
+ [
+ 4.778666,
+ "backward"
+ ],
+ [
+ 5.742208,
+ "you"
+ ],
+ [
+ 5.833333,
+ "start"
+ ],
+ [
+ 6.09375,
+ "with"
+ ],
+ [
+ 6.197916,
+ "the"
+ ],
+ [
+ 6.276041,
+ "product"
+ ],
+ [
+ 6.992208,
+ "and"
+ ],
+ [
+ 7.070333,
+ "find"
+ ],
+ [
+ 7.513041,
+ "what"
+ ],
+ [
+ 7.591166,
+ "was"
+ ],
+ [
+ 7.721375,
+ "multiplied"
+ ]
+ ],
+ "marks": {
+ "sub": 2.786
+ },
+ "cues": [
+ [
+ 0.104,
+ "Unit ten, chapter fifty-two."
+ ],
+ [
+ 2.786,
+ "Factoring runs multiplication backward: you start with the product and find what was multiplied."
+ ]
+ ]
+ },
+ "factors": {
+ "key": "77b49ba740671365f941207639f74170d5585f17",
+ "dur": 26.928,
+ "words": [
+ [
+ 0.15625,
+ "Factors"
+ ],
+ [
+ 0.612,
+ "are"
+ ],
+ [
+ 0.729166,
+ "numbers"
+ ],
+ [
+ 1.119791,
+ "you"
+ ],
+ [
+ 1.223958,
+ "multiply"
+ ],
+ [
+ 2.33075,
+ "to"
+ ],
+ [
+ 2.447916,
+ "get"
+ ],
+ [
+ 2.591166,
+ "a"
+ ],
+ [
+ 2.64325,
+ "given"
+ ],
+ [
+ 2.916666,
+ "number"
+ ],
+ [
+ 3.776041,
+ "Twelve"
+ ],
+ [
+ 4.127625,
+ "dots"
+ ],
+ [
+ 4.778666,
+ "can"
+ ],
+ [
+ 4.908875,
+ "be"
+ ],
+ [
+ 5.039083,
+ "arranged"
+ ],
+ [
+ 5.638041,
+ "into"
+ ],
+ [
+ 5.820333,
+ "rectangles"
+ ],
+ [
+ 7.148458,
+ "One"
+ ],
+ [
+ 7.447916,
+ "row"
+ ],
+ [
+ 7.64325,
+ "of"
+ ],
+ [
+ 7.734375,
+ "twelve"
+ ],
+ [
+ 8.632833,
+ "two"
+ ],
+ [
+ 8.880208,
+ "rows"
+ ],
+ [
+ 9.153666,
+ "of"
+ ],
+ [
+ 9.244791,
+ "six"
+ ],
+ [
+ 10.078125,
+ "or"
+ ],
+ [
+ 10.247416,
+ "three"
+ ],
+ [
+ 10.625,
+ "rows"
+ ],
+ [
+ 10.872416,
+ "of"
+ ],
+ [
+ 10.9375,
+ "four"
+ ],
+ [
+ 11.757833,
+ "The"
+ ],
+ [
+ 11.822916,
+ "side"
+ ],
+ [
+ 12.135416,
+ "lengths"
+ ],
+ [
+ 12.421875,
+ "are"
+ ],
+ [
+ 12.473958,
+ "the"
+ ],
+ [
+ 12.552083,
+ "factors"
+ ],
+ [
+ 13.112,
+ "of"
+ ],
+ [
+ 13.190125,
+ "twelve"
+ ],
+ [
+ 14.244791,
+ "one"
+ ],
+ [
+ 14.856791,
+ "two"
+ ],
+ [
+ 15.507833,
+ "three"
+ ],
+ [
+ 16.40625,
+ "four"
+ ],
+ [
+ 17.057291,
+ "six"
+ ],
+ [
+ 17.838541,
+ "and"
+ ],
+ [
+ 17.942708,
+ "twelve"
+ ],
+ [
+ 18.854166,
+ "Monomials"
+ ],
+ [
+ 19.348958,
+ "have"
+ ],
+ [
+ 19.544291,
+ "factors"
+ ],
+ [
+ 20.078125,
+ "too"
+ ],
+ [
+ 20.846375,
+ "Six"
+ ],
+ [
+ 21.132833,
+ "x"
+ ],
+ [
+ 21.380208,
+ "is"
+ ],
+ [
+ 21.497416,
+ "two"
+ ],
+ [
+ 21.770833,
+ "times"
+ ],
+ [
+ 22.200541,
+ "three"
+ ],
+ [
+ 22.526041,
+ "x"
+ ],
+ [
+ 23.307291,
+ "or"
+ ],
+ [
+ 23.789083,
+ "three"
+ ],
+ [
+ 24.036458,
+ "times"
+ ],
+ [
+ 24.414083,
+ "two"
+ ],
+ [
+ 24.6875,
+ "x"
+ ],
+ [
+ 25.403666,
+ "or"
+ ],
+ [
+ 25.520833,
+ "six"
+ ],
+ [
+ 25.742208,
+ "times"
+ ],
+ [
+ 26.106791,
+ "x"
+ ]
+ ],
+ "marks": {
+ "dots": 3.776,
+ "r1": 7.148,
+ "r2": 8.633,
+ "r3": 10.078,
+ "list": 11.758,
+ "mono": 18.854
+ },
+ "cues": [
+ [
+ 0.156,
+ "Factors are numbers you multiply to get a given number."
+ ],
+ [
+ 3.776,
+ "Twelve dots can be arranged into rectangles."
+ ],
+ [
+ 7.148,
+ "One row of twelve, two rows of six, or three rows of four."
+ ],
+ [
+ 11.758,
+ "The side lengths are the factors of twelve: one, two, three, four, six, and twelve."
+ ],
+ [
+ 18.854,
+ "Monomials have factors too."
+ ],
+ [
+ 20.846,
+ "Six x is two times three x, or three times two x, or six times x."
+ ]
+ ]
+ },
+ "gcf": {
+ "key": "808c2b75b05787592d542690555883aa33ed343f",
+ "dur": 24.912,
+ "words": [
+ [
+ 0.104166,
+ "The"
+ ],
+ [
+ 0.182291,
+ "greatest"
+ ],
+ [
+ 0.625,
+ "common"
+ ],
+ [
+ 0.898458,
+ "factor"
+ ],
+ [
+ 1.927083,
+ "or"
+ ],
+ [
+ 2.096375,
+ "GCF"
+ ],
+ [
+ 3.411458,
+ "is"
+ ],
+ [
+ 3.515625,
+ "the"
+ ],
+ [
+ 3.619791,
+ "largest"
+ ],
+ [
+ 4.166666,
+ "factor"
+ ],
+ [
+ 4.804708,
+ "two"
+ ],
+ [
+ 5.026041,
+ "numbers"
+ ],
+ [
+ 5.325541,
+ "share"
+ ],
+ [
+ 6.210958,
+ "Take"
+ ],
+ [
+ 6.445333,
+ "twelve"
+ ],
+ [
+ 6.809916,
+ "and"
+ ],
+ [
+ 6.901041,
+ "twenty"
+ ],
+ [
+ 7.773458,
+ "Break"
+ ],
+ [
+ 8.138041,
+ "each"
+ ],
+ [
+ 8.476583,
+ "into"
+ ],
+ [
+ 8.632833,
+ "prime"
+ ],
+ [
+ 9.023458,
+ "factors"
+ ],
+ [
+ 10.169291,
+ "twelve"
+ ],
+ [
+ 10.859375,
+ "is"
+ ],
+ [
+ 10.963541,
+ "two"
+ ],
+ [
+ 11.223958,
+ "times"
+ ],
+ [
+ 11.601583,
+ "two"
+ ],
+ [
+ 11.848958,
+ "times"
+ ],
+ [
+ 12.291666,
+ "three"
+ ],
+ [
+ 13.242208,
+ "and"
+ ],
+ [
+ 13.385416,
+ "twenty"
+ ],
+ [
+ 14.257833,
+ "is"
+ ],
+ [
+ 14.414083,
+ "two"
+ ],
+ [
+ 14.6875,
+ "times"
+ ],
+ [
+ 15.572916,
+ "two"
+ ],
+ [
+ 15.78125,
+ "times"
+ ],
+ [
+ 16.145833,
+ "five"
+ ],
+ [
+ 17.03125,
+ "Match"
+ ],
+ [
+ 17.304708,
+ "the"
+ ],
+ [
+ 17.395833,
+ "primes"
+ ],
+ [
+ 17.708333,
+ "they"
+ ],
+ [
+ 17.838541,
+ "share"
+ ],
+ [
+ 18.828125,
+ "a"
+ ],
+ [
+ 18.867208,
+ "two"
+ ],
+ [
+ 19.648458,
+ "and"
+ ],
+ [
+ 19.765625,
+ "another"
+ ],
+ [
+ 20.091166,
+ "two"
+ ],
+ [
+ 20.911458,
+ "Multiply"
+ ],
+ [
+ 21.471375,
+ "the"
+ ],
+ [
+ 21.575541,
+ "shared"
+ ],
+ [
+ 21.927083,
+ "primes"
+ ],
+ [
+ 22.981791,
+ "the"
+ ],
+ [
+ 23.085958,
+ "GCF"
+ ],
+ [
+ 23.89325,
+ "is"
+ ],
+ [
+ 24.023458,
+ "four"
+ ]
+ ],
+ "marks": {
+ "ex": 6.211,
+ "primes": 7.773,
+ "match": 17.031,
+ "gcf": 20.911
+ },
+ "cues": [
+ [
+ 0.104,
+ "The greatest common factor, or GCF, is the largest factor two numbers share."
+ ],
+ [
+ 6.211,
+ "Take twelve and twenty."
+ ],
+ [
+ 7.773,
+ "Break each into prime factors: twelve is two times two times three, and twenty is two times two times five."
+ ],
+ [
+ 17.031,
+ "Match the primes they share: a two, and another two."
+ ],
+ [
+ 20.911,
+ "Multiply the shared primes: the GCF is four."
+ ]
+ ]
+ },
+ "mono": {
+ "key": "69448e5682818af1d34f468bac77ebe7f1125771",
+ "dur": 28.44,
+ "words": [
+ [
+ 0.117208,
+ "The"
+ ],
+ [
+ 0.182291,
+ "same"
+ ],
+ [
+ 0.403666,
+ "idea"
+ ],
+ [
+ 1.09375,
+ "finds"
+ ],
+ [
+ 1.484375,
+ "the"
+ ],
+ [
+ 1.588541,
+ "GCF"
+ ],
+ [
+ 2.721375,
+ "of"
+ ],
+ [
+ 2.786458,
+ "monomials"
+ ],
+ [
+ 4.075541,
+ "Take"
+ ],
+ [
+ 4.257833,
+ "twelve"
+ ],
+ [
+ 4.622416,
+ "x"
+ ],
+ [
+ 4.83075,
+ "cubed"
+ ],
+ [
+ 5.442708,
+ "y"
+ ],
+ [
+ 5.664083,
+ "squared"
+ ],
+ [
+ 6.484375,
+ "and"
+ ],
+ [
+ 6.862,
+ "eighteen"
+ ],
+ [
+ 7.33075,
+ "x"
+ ],
+ [
+ 8.007833,
+ "squared"
+ ],
+ [
+ 8.684916,
+ "y"
+ ],
+ [
+ 8.854166,
+ "to"
+ ],
+ [
+ 8.958333,
+ "the"
+ ],
+ [
+ 9.036458,
+ "fourth"
+ ],
+ [
+ 9.987,
+ "Write"
+ ],
+ [
+ 10.169291,
+ "out"
+ ],
+ [
+ 10.533875,
+ "every"
+ ],
+ [
+ 10.78125,
+ "factor"
+ ],
+ [
+ 11.875,
+ "Match"
+ ],
+ [
+ 12.109375,
+ "what"
+ ],
+ [
+ 12.239583,
+ "they"
+ ],
+ [
+ 12.356791,
+ "share"
+ ],
+ [
+ 13.320333,
+ "a"
+ ],
+ [
+ 13.359375,
+ "two"
+ ],
+ [
+ 13.763041,
+ "and"
+ ],
+ [
+ 13.841166,
+ "a"
+ ],
+ [
+ 13.880208,
+ "three"
+ ],
+ [
+ 14.856791,
+ "two"
+ ],
+ [
+ 15.117208,
+ "x's"
+ ],
+ [
+ 15.885416,
+ "and"
+ ],
+ [
+ 16.041666,
+ "two"
+ ],
+ [
+ 16.276041,
+ "y's"
+ ],
+ [
+ 17.356791,
+ "So"
+ ],
+ [
+ 17.473958,
+ "the"
+ ],
+ [
+ 17.565125,
+ "GCF"
+ ],
+ [
+ 18.333333,
+ "is"
+ ],
+ [
+ 18.4375,
+ "six"
+ ],
+ [
+ 18.997416,
+ "x"
+ ],
+ [
+ 19.53125,
+ "squared"
+ ],
+ [
+ 20.15625,
+ "y"
+ ],
+ [
+ 20.429708,
+ "squared"
+ ],
+ [
+ 21.380208,
+ "In"
+ ],
+ [
+ 21.471375,
+ "short"
+ ],
+ [
+ 22.460958,
+ "the"
+ ],
+ [
+ 22.539083,
+ "GCF"
+ ],
+ [
+ 23.294291,
+ "of"
+ ],
+ [
+ 23.346375,
+ "the"
+ ],
+ [
+ 23.4245,
+ "coefficients"
+ ],
+ [
+ 24.583333,
+ "times"
+ ],
+ [
+ 25.14325,
+ "each"
+ ],
+ [
+ 25.338541,
+ "shared"
+ ],
+ [
+ 25.76825,
+ "variable"
+ ],
+ [
+ 26.497416,
+ "to"
+ ],
+ [
+ 26.666666,
+ "its"
+ ],
+ [
+ 26.848958,
+ "smallest"
+ ],
+ [
+ 27.460958,
+ "exponent"
+ ]
+ ],
+ "marks": {
+ "ex": 4.076,
+ "expand": 9.987,
+ "match": 11.875,
+ "nums": 13.32,
+ "xs": 14.857,
+ "ys": 15.885,
+ "gcf": 17.357,
+ "rule": 21.38
+ },
+ "cues": [
+ [
+ 0.117,
+ "The same idea finds the GCF of monomials."
+ ],
+ [
+ 4.076,
+ "Take twelve x cubed y squared and eighteen x squared y to the fourth."
+ ],
+ [
+ 9.987,
+ "Write out every factor."
+ ],
+ [
+ 11.875,
+ "Match what they share: a two and a three, two x's, and two y's."
+ ],
+ [
+ 17.357,
+ "So the GCF is six x squared y squared."
+ ],
+ [
+ 21.38,
+ "In short: the GCF of the coefficients, times each shared variable to its smallest exponent."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "40997da8587b7d34fecc1830d252f48bcf57b99c",
+ "dur": 2.736,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.286458,
+ "check"
+ ],
+ [
+ 1.197916,
+ "Find"
+ ],
+ [
+ 1.432291,
+ "the"
+ ],
+ [
+ 1.510416,
+ "GCF"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.198,
+ "Find the GCF."
+ ]
+ ]
+ },
+ "factor": {
+ "key": "3fd704c401263acbbb88749ff6857122e92cd0b0",
+ "dur": 39.744,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "factor"
+ ],
+ [
+ 0.9375,
+ "a"
+ ],
+ [
+ 0.976583,
+ "polynomial"
+ ],
+ [
+ 2.070333,
+ "pull"
+ ],
+ [
+ 2.304708,
+ "its"
+ ],
+ [
+ 2.513041,
+ "GCF"
+ ],
+ [
+ 3.671875,
+ "out"
+ ],
+ [
+ 3.802083,
+ "of"
+ ],
+ [
+ 4.023458,
+ "every"
+ ],
+ [
+ 4.283875,
+ "term"
+ ],
+ [
+ 5.117208,
+ "Factor"
+ ],
+ [
+ 5.507833,
+ "six"
+ ],
+ [
+ 6.067708,
+ "x"
+ ],
+ [
+ 6.692708,
+ "squared"
+ ],
+ [
+ 7.382833,
+ "plus"
+ ],
+ [
+ 7.8125,
+ "nine"
+ ],
+ [
+ 8.203125,
+ "x"
+ ],
+ [
+ 9.192708,
+ "Think"
+ ],
+ [
+ 9.440125,
+ "of"
+ ],
+ [
+ 9.557291,
+ "it"
+ ],
+ [
+ 9.804708,
+ "as"
+ ],
+ [
+ 9.934916,
+ "the"
+ ],
+ [
+ 10.169291,
+ "area"
+ ],
+ [
+ 10.651041,
+ "of"
+ ],
+ [
+ 10.755208,
+ "a"
+ ],
+ [
+ 10.794291,
+ "rectangle"
+ ],
+ [
+ 11.471375,
+ "made"
+ ],
+ [
+ 11.757833,
+ "of"
+ ],
+ [
+ 11.835958,
+ "two"
+ ],
+ [
+ 12.057291,
+ "parts"
+ ],
+ [
+ 13.059916,
+ "The"
+ ],
+ [
+ 13.151041,
+ "GCF"
+ ],
+ [
+ 14.309916,
+ "three"
+ ],
+ [
+ 14.713541,
+ "x"
+ ],
+ [
+ 15.481791,
+ "is"
+ ],
+ [
+ 15.585958,
+ "the"
+ ],
+ [
+ 15.651041,
+ "height"
+ ],
+ [
+ 16.119791,
+ "they"
+ ],
+ [
+ 16.263041,
+ "share"
+ ],
+ [
+ 17.213541,
+ "Six"
+ ],
+ [
+ 17.617208,
+ "x"
+ ],
+ [
+ 18.020833,
+ "squared"
+ ],
+ [
+ 18.554708,
+ "divided"
+ ],
+ [
+ 18.958333,
+ "by"
+ ],
+ [
+ 19.114583,
+ "three"
+ ],
+ [
+ 19.544291,
+ "x"
+ ],
+ [
+ 20.15625,
+ "is"
+ ],
+ [
+ 20.325541,
+ "two"
+ ],
+ [
+ 20.664083,
+ "x"
+ ],
+ [
+ 21.419291,
+ "and"
+ ],
+ [
+ 21.614583,
+ "nine"
+ ],
+ [
+ 21.992208,
+ "x"
+ ],
+ [
+ 22.1875,
+ "divided"
+ ],
+ [
+ 22.565125,
+ "by"
+ ],
+ [
+ 22.721375,
+ "three"
+ ],
+ [
+ 23.151041,
+ "x"
+ ],
+ [
+ 23.567708,
+ "is"
+ ],
+ [
+ 23.671875,
+ "three"
+ ],
+ [
+ 24.570333,
+ "So"
+ ],
+ [
+ 24.778666,
+ "six"
+ ],
+ [
+ 25.195333,
+ "x"
+ ],
+ [
+ 25.481791,
+ "squared"
+ ],
+ [
+ 26.028666,
+ "plus"
+ ],
+ [
+ 26.39325,
+ "nine"
+ ],
+ [
+ 26.835958,
+ "x"
+ ],
+ [
+ 27.070333,
+ "equals"
+ ],
+ [
+ 27.591166,
+ "three"
+ ],
+ [
+ 28.007833,
+ "x"
+ ],
+ [
+ 28.359375,
+ "times"
+ ],
+ [
+ 28.710958,
+ "the"
+ ],
+ [
+ 28.789083,
+ "quantity"
+ ],
+ [
+ 29.557291,
+ "two"
+ ],
+ [
+ 29.869791,
+ "x"
+ ],
+ [
+ 30.169291,
+ "plus"
+ ],
+ [
+ 30.520833,
+ "three"
+ ],
+ [
+ 31.39325,
+ "Check"
+ ],
+ [
+ 31.614583,
+ "by"
+ ],
+ [
+ 31.731791,
+ "multiplying"
+ ],
+ [
+ 32.460958,
+ "back"
+ ],
+ [
+ 33.359375,
+ "three"
+ ],
+ [
+ 33.619791,
+ "x"
+ ],
+ [
+ 33.776041,
+ "times"
+ ],
+ [
+ 34.114583,
+ "two"
+ ],
+ [
+ 34.348958,
+ "x"
+ ],
+ [
+ 34.778666,
+ "is"
+ ],
+ [
+ 34.908875,
+ "six"
+ ],
+ [
+ 35.377625,
+ "x"
+ ],
+ [
+ 35.546875,
+ "squared"
+ ],
+ [
+ 36.484375,
+ "and"
+ ],
+ [
+ 36.640625,
+ "three"
+ ],
+ [
+ 36.953125,
+ "x"
+ ],
+ [
+ 37.161458,
+ "times"
+ ],
+ [
+ 37.747416,
+ "three"
+ ],
+ [
+ 38.307291,
+ "is"
+ ],
+ [
+ 38.4375,
+ "nine"
+ ],
+ [
+ 38.854166,
+ "x"
+ ]
+ ],
+ "marks": {
+ "ex": 5.117,
+ "area": 9.193,
+ "gcf": 13.06,
+ "w1": 17.214,
+ "w2": 21.419,
+ "ans": 24.57,
+ "chk": 31.393
+ },
+ "cues": [
+ [
+ 0.104,
+ "To factor a polynomial, pull its GCF out of every term."
+ ],
+ [
+ 5.117,
+ "Factor six x squared plus nine x."
+ ],
+ [
+ 9.193,
+ "Think of it as the area of a rectangle made of two parts."
+ ],
+ [
+ 13.06,
+ "The GCF, three x, is the height they share."
+ ],
+ [
+ 17.214,
+ "Six x squared divided by three x is two x, and nine x divided by three x is three."
+ ],
+ [
+ 24.57,
+ "So six x squared plus nine x equals three x times the quantity two x plus three."
+ ],
+ [
+ 31.393,
+ "Check by multiplying back: three x times two x is six x squared, and three x times three is nine x."
+ ]
+ ]
+ },
+ "big": {
+ "key": "9238ed20bce6b7d3c1f24e3b6ce8d7d7b5195fec",
+ "dur": 31.92,
+ "words": [
+ [
+ 0.104166,
+ "The"
+ ],
+ [
+ 0.15625,
+ "steps"
+ ],
+ [
+ 0.416666,
+ "don't"
+ ],
+ [
+ 0.651041,
+ "change"
+ ],
+ [
+ 1.171875,
+ "for"
+ ],
+ [
+ 1.367208,
+ "bigger"
+ ],
+ [
+ 1.666666,
+ "exponents"
+ ],
+ [
+ 2.942708,
+ "Factor"
+ ],
+ [
+ 3.307291,
+ "six"
+ ],
+ [
+ 3.854166,
+ "x"
+ ],
+ [
+ 4.101583,
+ "to"
+ ],
+ [
+ 4.20575,
+ "the"
+ ],
+ [
+ 4.283875,
+ "ninth"
+ ],
+ [
+ 4.934916,
+ "y"
+ ],
+ [
+ 5.234375,
+ "to"
+ ],
+ [
+ 5.351583,
+ "the"
+ ],
+ [
+ 5.45575,
+ "seventh"
+ ],
+ [
+ 6.028666,
+ "minus"
+ ],
+ [
+ 6.484375,
+ "ten"
+ ],
+ [
+ 7.408875,
+ "x"
+ ],
+ [
+ 7.851583,
+ "to"
+ ],
+ [
+ 7.95575,
+ "the"
+ ],
+ [
+ 8.046875,
+ "fourth"
+ ],
+ [
+ 8.489583,
+ "y"
+ ],
+ [
+ 8.984375,
+ "to"
+ ],
+ [
+ 9.101583,
+ "the"
+ ],
+ [
+ 9.20575,
+ "fifteenth"
+ ],
+ [
+ 10.390625,
+ "The"
+ ],
+ [
+ 10.46875,
+ "GCF"
+ ],
+ [
+ 11.315125,
+ "is"
+ ],
+ [
+ 11.458333,
+ "two"
+ ],
+ [
+ 12.460958,
+ "times"
+ ],
+ [
+ 13.007833,
+ "x"
+ ],
+ [
+ 13.216166,
+ "to"
+ ],
+ [
+ 13.320333,
+ "the"
+ ],
+ [
+ 13.411458,
+ "fourth"
+ ],
+ [
+ 14.296875,
+ "times"
+ ],
+ [
+ 14.739583,
+ "y"
+ ],
+ [
+ 14.960958,
+ "to"
+ ],
+ [
+ 15.052083,
+ "the"
+ ],
+ [
+ 15.14325,
+ "seventh"
+ ],
+ [
+ 16.119791,
+ "Divide"
+ ],
+ [
+ 16.432291,
+ "the"
+ ],
+ [
+ 16.510416,
+ "first"
+ ],
+ [
+ 16.875,
+ "term"
+ ],
+ [
+ 17.395833,
+ "by"
+ ],
+ [
+ 17.578125,
+ "the"
+ ],
+ [
+ 17.669291,
+ "GCF"
+ ],
+ [
+ 18.945333,
+ "three"
+ ],
+ [
+ 19.388041,
+ "x"
+ ],
+ [
+ 19.726583,
+ "to"
+ ],
+ [
+ 19.83075,
+ "the"
+ ],
+ [
+ 19.921875,
+ "fifth"
+ ],
+ [
+ 20.885416,
+ "Divide"
+ ],
+ [
+ 21.223958,
+ "the"
+ ],
+ [
+ 21.289083,
+ "second"
+ ],
+ [
+ 22.200541,
+ "five"
+ ],
+ [
+ 22.65625,
+ "y"
+ ],
+ [
+ 22.851583,
+ "to"
+ ],
+ [
+ 22.994791,
+ "the"
+ ],
+ [
+ 23.098958,
+ "eighth"
+ ],
+ [
+ 24.010416,
+ "The"
+ ],
+ [
+ 24.0625,
+ "factored"
+ ],
+ [
+ 24.440125,
+ "form"
+ ],
+ [
+ 24.921875,
+ "is"
+ ],
+ [
+ 25.117208,
+ "two"
+ ],
+ [
+ 25.559916,
+ "x"
+ ],
+ [
+ 25.807291,
+ "to"
+ ],
+ [
+ 25.911458,
+ "the"
+ ],
+ [
+ 25.989583,
+ "fourth"
+ ],
+ [
+ 26.471375,
+ "y"
+ ],
+ [
+ 27.01825,
+ "to"
+ ],
+ [
+ 27.148458,
+ "the"
+ ],
+ [
+ 27.252625,
+ "seventh"
+ ],
+ [
+ 28.098958,
+ "times"
+ ],
+ [
+ 28.463541,
+ "three"
+ ],
+ [
+ 28.802083,
+ "x"
+ ],
+ [
+ 29.114583,
+ "to"
+ ],
+ [
+ 29.20575,
+ "the"
+ ],
+ [
+ 29.309916,
+ "fifth"
+ ],
+ [
+ 29.726583,
+ "minus"
+ ],
+ [
+ 30.117208,
+ "five"
+ ],
+ [
+ 30.598958,
+ "y"
+ ],
+ [
+ 30.820333,
+ "to"
+ ],
+ [
+ 30.9245,
+ "the"
+ ],
+ [
+ 31.041666,
+ "eighth"
+ ]
+ ],
+ "marks": {
+ "ex": 2.943,
+ "gcf": 10.391,
+ "d1": 16.12,
+ "d2": 20.885,
+ "ans": 24.01
+ },
+ "cues": [
+ [
+ 0.104,
+ "The steps don't change for bigger exponents."
+ ],
+ [
+ 2.943,
+ "Factor six x to the ninth y to the seventh minus ten x to the fourth y to the fifteenth."
+ ],
+ [
+ 10.391,
+ "The GCF is two, times x to the fourth, times y to the seventh."
+ ],
+ [
+ 16.12,
+ "Divide the first term by the GCF: three x to the fifth."
+ ],
+ [
+ 20.885,
+ "Divide the second: five y to the eighth."
+ ],
+ [
+ 24.01,
+ "The factored form is two x to the fourth y to the seventh, times three x to the fifth minus five y to the eighth."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "5d9d691cd3fc6d0cb402434b2dc35ec590300239",
+ "dur": 3.264,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.260416,
+ "check"
+ ],
+ [
+ 1.184916,
+ "Factor"
+ ],
+ [
+ 1.510416,
+ "out"
+ ],
+ [
+ 1.901041,
+ "the"
+ ],
+ [
+ 1.992208,
+ "GCF"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.185,
+ "Factor out the GCF."
+ ]
+ ]
+ },
+ "one": {
+ "key": "09fb618d0a340ad97505c5c9ca5717bd2110518b",
+ "dur": 19.848,
+ "words": [
+ [
+ 0.091166,
+ "Watch"
+ ],
+ [
+ 0.364583,
+ "out"
+ ],
+ [
+ 0.546875,
+ "when"
+ ],
+ [
+ 0.651041,
+ "the"
+ ],
+ [
+ 0.729166,
+ "GCF"
+ ],
+ [
+ 1.588541,
+ "is"
+ ],
+ [
+ 1.679708,
+ "a"
+ ],
+ [
+ 1.71875,
+ "whole"
+ ],
+ [
+ 1.992208,
+ "term"
+ ],
+ [
+ 2.838541,
+ "Factor"
+ ],
+ [
+ 3.385416,
+ "five"
+ ],
+ [
+ 3.763041,
+ "a"
+ ],
+ [
+ 3.841166,
+ "plus"
+ ],
+ [
+ 4.20575,
+ "five"
+ ],
+ [
+ 5.15625,
+ "Five"
+ ],
+ [
+ 5.416666,
+ "a"
+ ],
+ [
+ 5.481791,
+ "divided"
+ ],
+ [
+ 5.885416,
+ "by"
+ ],
+ [
+ 6.041666,
+ "five"
+ ],
+ [
+ 6.653666,
+ "is"
+ ],
+ [
+ 6.809916,
+ "a"
+ ],
+ [
+ 7.526041,
+ "and"
+ ],
+ [
+ 7.65625,
+ "five"
+ ],
+ [
+ 7.95575,
+ "divided"
+ ],
+ [
+ 8.346375,
+ "by"
+ ],
+ [
+ 8.502625,
+ "five"
+ ],
+ [
+ 9.492208,
+ "is"
+ ],
+ [
+ 9.609375,
+ "one"
+ ],
+ [
+ 10.46875,
+ "So"
+ ],
+ [
+ 10.546875,
+ "the"
+ ],
+ [
+ 10.664083,
+ "answer"
+ ],
+ [
+ 11.054708,
+ "is"
+ ],
+ [
+ 11.197916,
+ "five"
+ ],
+ [
+ 11.653666,
+ "times"
+ ],
+ [
+ 12.226583,
+ "a"
+ ],
+ [
+ 12.291666,
+ "plus"
+ ],
+ [
+ 12.682291,
+ "one"
+ ],
+ [
+ 13.398458,
+ "The"
+ ],
+ [
+ 13.463541,
+ "one"
+ ],
+ [
+ 13.671875,
+ "must"
+ ],
+ [
+ 13.90625,
+ "stay"
+ ],
+ [
+ 14.700541,
+ "Without"
+ ],
+ [
+ 15.026041,
+ "it"
+ ],
+ [
+ 15.45575,
+ "five"
+ ],
+ [
+ 15.742208,
+ "times"
+ ],
+ [
+ 16.08075,
+ "a"
+ ],
+ [
+ 16.106791,
+ "is"
+ ],
+ [
+ 16.40625,
+ "only"
+ ],
+ [
+ 16.71875,
+ "five"
+ ],
+ [
+ 17.161458,
+ "a"
+ ],
+ [
+ 17.838541,
+ "and"
+ ],
+ [
+ 17.95575,
+ "the"
+ ],
+ [
+ 18.046875,
+ "plus"
+ ],
+ [
+ 18.385416,
+ "five"
+ ],
+ [
+ 18.789083,
+ "is"
+ ],
+ [
+ 18.880208,
+ "lost"
+ ]
+ ],
+ "marks": {
+ "ex": 2.839,
+ "div": 5.156,
+ "ans": 10.469,
+ "warn": 13.398
+ },
+ "cues": [
+ [
+ 0.091,
+ "Watch out when the GCF is a whole term."
+ ],
+ [
+ 2.839,
+ "Factor five a plus five."
+ ],
+ [
+ 5.156,
+ "Five a divided by five is a, and five divided by five is one."
+ ],
+ [
+ 10.469,
+ "So the answer is five times a plus one."
+ ],
+ [
+ 13.398,
+ "The one must stay."
+ ],
+ [
+ 14.701,
+ "Without it, five times a is only five a, and the plus five is lost."
+ ]
+ ]
+ },
+ "full": {
+ "key": "9291e8fea12e3620b4fa7baa63b0c15ef6980226",
+ "dur": 39.792,
+ "words": [
+ [
+ 0.091166,
+ "Use"
+ ],
+ [
+ 0.3125,
+ "the"
+ ],
+ [
+ 0.45575,
+ "greatest"
+ ],
+ [
+ 1.054708,
+ "common"
+ ],
+ [
+ 1.341166,
+ "factor"
+ ],
+ [
+ 2.34375,
+ "not"
+ ],
+ [
+ 2.565125,
+ "just"
+ ],
+ [
+ 3.020833,
+ "any"
+ ],
+ [
+ 3.190125,
+ "common"
+ ],
+ [
+ 3.541666,
+ "factor"
+ ],
+ [
+ 4.596375,
+ "Someone"
+ ],
+ [
+ 4.921875,
+ "factors"
+ ],
+ [
+ 5.494791,
+ "twelve"
+ ],
+ [
+ 5.963541,
+ "x"
+ ],
+ [
+ 6.315125,
+ "to"
+ ],
+ [
+ 6.419291,
+ "the"
+ ],
+ [
+ 6.510416,
+ "seventh"
+ ],
+ [
+ 7.356791,
+ "y"
+ ],
+ [
+ 7.552083,
+ "to"
+ ],
+ [
+ 7.669291,
+ "the"
+ ],
+ [
+ 7.747416,
+ "ninth"
+ ],
+ [
+ 8.203125,
+ "minus"
+ ],
+ [
+ 8.645833,
+ "sixteen"
+ ],
+ [
+ 9.20575,
+ "x"
+ ],
+ [
+ 9.700541,
+ "to"
+ ],
+ [
+ 9.791666,
+ "the"
+ ],
+ [
+ 9.895833,
+ "tenth"
+ ],
+ [
+ 10.45575,
+ "y"
+ ],
+ [
+ 10.963541,
+ "to"
+ ],
+ [
+ 11.09375,
+ "the"
+ ],
+ [
+ 11.197916,
+ "fourth"
+ ],
+ [
+ 12.122416,
+ "as"
+ ],
+ [
+ 12.317708,
+ "two"
+ ],
+ [
+ 12.682291,
+ "x"
+ ],
+ [
+ 12.929708,
+ "to"
+ ],
+ [
+ 13.020833,
+ "the"
+ ],
+ [
+ 13.112,
+ "seventh"
+ ],
+ [
+ 13.567708,
+ "y"
+ ],
+ [
+ 13.763041,
+ "squared"
+ ],
+ [
+ 14.726583,
+ "times"
+ ],
+ [
+ 15.117208,
+ "six"
+ ],
+ [
+ 15.585958,
+ "y"
+ ],
+ [
+ 15.742208,
+ "to"
+ ],
+ [
+ 15.820333,
+ "the"
+ ],
+ [
+ 15.911458,
+ "seventh"
+ ],
+ [
+ 16.367208,
+ "minus"
+ ],
+ [
+ 16.966166,
+ "eight"
+ ],
+ [
+ 17.291666,
+ "x"
+ ],
+ [
+ 17.565125,
+ "cubed"
+ ],
+ [
+ 18.085958,
+ "y"
+ ],
+ [
+ 18.307291,
+ "squared"
+ ],
+ [
+ 19.231791,
+ "It"
+ ],
+ [
+ 19.335958,
+ "multiplies"
+ ],
+ [
+ 20.169291,
+ "back"
+ ],
+ [
+ 20.46875,
+ "correctly"
+ ],
+ [
+ 21.367208,
+ "but"
+ ],
+ [
+ 21.471375,
+ "the"
+ ],
+ [
+ 21.5625,
+ "terms"
+ ],
+ [
+ 21.914083,
+ "inside"
+ ],
+ [
+ 22.591166,
+ "still"
+ ],
+ [
+ 22.942708,
+ "share"
+ ],
+ [
+ 23.190125,
+ "a"
+ ],
+ [
+ 23.255208,
+ "factor"
+ ],
+ [
+ 24.166666,
+ "two"
+ ],
+ [
+ 24.440125,
+ "y"
+ ],
+ [
+ 24.726583,
+ "squared"
+ ],
+ [
+ 25.716166,
+ "Factoring"
+ ],
+ [
+ 26.158875,
+ "completely"
+ ],
+ [
+ 26.731791,
+ "gives"
+ ],
+ [
+ 27.070333,
+ "four"
+ ],
+ [
+ 27.578125,
+ "x"
+ ],
+ [
+ 28.151041,
+ "to"
+ ],
+ [
+ 28.26825,
+ "the"
+ ],
+ [
+ 28.346375,
+ "seventh"
+ ],
+ [
+ 28.90625,
+ "y"
+ ],
+ [
+ 29.075541,
+ "to"
+ ],
+ [
+ 29.153666,
+ "the"
+ ],
+ [
+ 29.244791,
+ "fourth"
+ ],
+ [
+ 30.208333,
+ "times"
+ ],
+ [
+ 30.598958,
+ "three"
+ ],
+ [
+ 30.976583,
+ "y"
+ ],
+ [
+ 31.341166,
+ "to"
+ ],
+ [
+ 31.445333,
+ "the"
+ ],
+ [
+ 31.536458,
+ "fifth"
+ ],
+ [
+ 31.966166,
+ "minus"
+ ],
+ [
+ 32.356791,
+ "four"
+ ],
+ [
+ 32.747416,
+ "x"
+ ],
+ [
+ 32.96875,
+ "cubed"
+ ],
+ [
+ 33.841166,
+ "A"
+ ],
+ [
+ 33.89325,
+ "quick"
+ ],
+ [
+ 34.140625,
+ "test"
+ ],
+ [
+ 35.169291,
+ "if"
+ ],
+ [
+ 35.247416,
+ "the"
+ ],
+ [
+ 35.325541,
+ "terms"
+ ],
+ [
+ 35.651041,
+ "inside"
+ ],
+ [
+ 36.197916,
+ "the"
+ ],
+ [
+ 36.276041,
+ "parentheses"
+ ],
+ [
+ 37.200541,
+ "still"
+ ],
+ [
+ 37.526041,
+ "have"
+ ],
+ [
+ 37.65625,
+ "a"
+ ],
+ [
+ 37.708333,
+ "common"
+ ],
+ [
+ 38.046875,
+ "factor"
+ ],
+ [
+ 38.802083,
+ "keep"
+ ],
+ [
+ 39.0495,
+ "going"
+ ]
+ ],
+ "marks": {
+ "ex": 4.596,
+ "chk": 19.232,
+ "left": 21.367,
+ "ans": 25.716,
+ "test": 33.841
+ },
+ "cues": [
+ [
+ 0.091,
+ "Use the greatest common factor, not just any common factor."
+ ],
+ [
+ 4.596,
+ "Someone factors twelve x to the seventh y to the ninth minus sixteen x to the tenth y to the fourth as two x to the seventh y squared, times six y to the seventh minus eight x cubed y squared."
+ ],
+ [
+ 19.232,
+ "It multiplies back correctly, but the terms inside still share a factor, two y squared."
+ ],
+ [
+ 25.716,
+ "Factoring completely gives four x to the seventh y to the fourth, times three y to the fifth minus four x cubed."
+ ],
+ [
+ 33.841,
+ "A quick test: if the terms inside the parentheses still have a common factor, keep going."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "0d243262ee7846417529b2612db29f223d9b62e9",
+ "dur": 2.664,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.132833,
+ "Is"
+ ],
+ [
+ 1.237,
+ "it"
+ ],
+ [
+ 1.328125,
+ "fully"
+ ],
+ [
+ 1.666666,
+ "factored"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Is it fully factored?"
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "579435ca7d7a36c190777262a8c80b807871d18f",
+ "dur": 23.232,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.15625,
+ "sum"
+ ],
+ [
+ 0.351583,
+ "up"
+ ],
+ [
+ 0.989583,
+ "The"
+ ],
+ [
+ 1.08075,
+ "GCF"
+ ],
+ [
+ 2.070333,
+ "is"
+ ],
+ [
+ 2.1875,
+ "the"
+ ],
+ [
+ 2.291666,
+ "product"
+ ],
+ [
+ 2.838541,
+ "of"
+ ],
+ [
+ 2.903666,
+ "the"
+ ],
+ [
+ 2.96875,
+ "shared"
+ ],
+ [
+ 3.359375,
+ "factors"
+ ],
+ [
+ 4.570333,
+ "the"
+ ],
+ [
+ 4.661458,
+ "GCF"
+ ],
+ [
+ 5.3125,
+ "of"
+ ],
+ [
+ 5.377625,
+ "the"
+ ],
+ [
+ 5.45575,
+ "coefficients"
+ ],
+ [
+ 6.536458,
+ "and"
+ ],
+ [
+ 6.875,
+ "each"
+ ],
+ [
+ 7.005208,
+ "shared"
+ ],
+ [
+ 7.434916,
+ "variable"
+ ],
+ [
+ 8.203125,
+ "to"
+ ],
+ [
+ 8.346375,
+ "its"
+ ],
+ [
+ 8.528666,
+ "smallest"
+ ],
+ [
+ 9.153666,
+ "exponent"
+ ],
+ [
+ 10.182291,
+ "To"
+ ],
+ [
+ 10.247416,
+ "factor"
+ ],
+ [
+ 11.09375,
+ "divide"
+ ],
+ [
+ 11.679708,
+ "every"
+ ],
+ [
+ 11.953125,
+ "term"
+ ],
+ [
+ 12.317708,
+ "by"
+ ],
+ [
+ 12.434916,
+ "the"
+ ],
+ [
+ 12.526041,
+ "GCF"
+ ],
+ [
+ 13.697916,
+ "and"
+ ],
+ [
+ 13.828125,
+ "write"
+ ],
+ [
+ 14.036458,
+ "the"
+ ],
+ [
+ 14.114583,
+ "GCF"
+ ],
+ [
+ 14.713541,
+ "times"
+ ],
+ [
+ 15.195333,
+ "what's"
+ ],
+ [
+ 15.429708,
+ "left"
+ ],
+ [
+ 16.328125,
+ "Check"
+ ],
+ [
+ 16.588541,
+ "by"
+ ],
+ [
+ 16.70575,
+ "multiplying"
+ ],
+ [
+ 17.434916,
+ "back"
+ ],
+ [
+ 18.294291,
+ "and"
+ ],
+ [
+ 18.346375,
+ "make"
+ ],
+ [
+ 18.489583,
+ "sure"
+ ],
+ [
+ 18.671875,
+ "nothing"
+ ],
+ [
+ 19.023458,
+ "common"
+ ],
+ [
+ 19.596375,
+ "is"
+ ],
+ [
+ 19.752625,
+ "left"
+ ],
+ [
+ 20.078125,
+ "inside"
+ ],
+ [
+ 21.067708,
+ "Now"
+ ],
+ [
+ 21.484375,
+ "try"
+ ],
+ [
+ 21.653666,
+ "the"
+ ],
+ [
+ 21.744791,
+ "chapter"
+ ],
+ [
+ 22.122416,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 0.99,
+ "w2": 10.182,
+ "w3": 16.328,
+ "end": 21.068
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.99,
+ "The GCF is the product of the shared factors: the GCF of the coefficients, and each shared variable to its smallest exponent."
+ ],
+ [
+ 10.182,
+ "To factor, divide every term by the GCF and write the GCF times what's left."
+ ],
+ [
+ 16.328,
+ "Check by multiplying back, and make sure nothing common is left inside."
+ ],
+ [
+ 21.068,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "ad216fdda81446142c8ef000d4ad6fda09862c2e",
+ "dur": 3.6,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.403666,
+ "practice"
+ ],
+ [
+ 1.536458,
+ "Find"
+ ],
+ [
+ 2.096375,
+ "each"
+ ],
+ [
+ 2.421875,
+ "GCF"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.536,
+ "Find each GCF."
+ ]
+ ]
+ },
+ "final2": {
+ "key": "97e5f01a72d79afca6fd78fc7b046608091b8dcd",
+ "dur": 2.616,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.76825,
+ "factor"
+ ],
+ [
+ 1.341166,
+ "each"
+ ],
+ [
+ 1.510416,
+ "polynomial"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, factor each polynomial."
+ ]
+ ]
+ },
+ "final3": {
+ "key": "27ea209a3f0382709fdecc04267fcdd934503f59",
+ "dur": 3.384,
+ "words": [
+ [
+ 0.104166,
+ "Last"
+ ],
+ [
+ 0.390625,
+ "one"
+ ],
+ [
+ 1.184916,
+ "Fully"
+ ],
+ [
+ 1.419291,
+ "factored"
+ ],
+ [
+ 2.317708,
+ "or"
+ ],
+ [
+ 2.421875,
+ "not"
+ ],
+ [
+ 2.669291,
+ "yet"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.185,
+ "Fully factored, or not yet?"
+ ]
+ ]
+ },
+ "finish": {
+ "key": "9858b35f3a8c8f7887c1cfd96d76bdd420811315",
+ "dur": 5.256,
+ "words": [
+ [
+ 0.104166,
+ "Well"
+ ],
+ [
+ 0.260416,
+ "done"
+ ],
+ [
+ 1.08075,
+ "That's"
+ ],
+ [
+ 1.237,
+ "the"
+ ],
+ [
+ 1.315125,
+ "end"
+ ],
+ [
+ 1.536458,
+ "of"
+ ],
+ [
+ 1.627625,
+ "chapter"
+ ],
+ [
+ 2.109375,
+ "fifty-two"
+ ],
+ [
+ 3.294291,
+ "factoring"
+ ],
+ [
+ 3.841166,
+ "with"
+ ],
+ [
+ 3.958333,
+ "the"
+ ],
+ [
+ 4.036458,
+ "GCF"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Well done."
+ ],
+ [
+ 1.081,
+ "That's the end of chapter fifty-two, factoring with the GCF."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch53/narration.en.json b/content/ch53/narration.en.json
new file mode 100644
index 0000000..ffe01b2
--- /dev/null
+++ b/content/ch53/narration.en.json
@@ -0,0 +1,20 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter fifty-three. [[sub]]When four terms share no common factor, try factoring them in pairs.",
+ "idea": "Take a x plus a y plus b x plus b y. [[none]]No factor is shared by all four terms. [[group]]So group them in pairs: the first two, and the last two. [[f1]]Factor a out of the first pair: a times x plus y. [[f2]]Factor b out of the second: b times x plus y. [[same]]Now both parts share the same factor, x plus y. [[pull]]Pull it out, just like a GCF: [[ans]]x plus y, times a plus b.",
+ "area": "An area model shows why. [[tiles]]Arrange the four terms as the parts of one rectangle: [[rows]]a x and a y share the height a, [[rows2]]and b x and b y share the height b. [[cols]]The columns share the widths x and y. [[sides]]So the whole rectangle is a plus b tall and x plus y wide: [[ans]]its area is the product of those two factors.",
+ "q1": "Quick check. Factor by grouping.",
+ "ex": "Try p q minus three q plus four p minus twelve. [[group]]Group the first two terms and the last two. [[f1]]The first pair has a common q: q times p minus three. [[f2]]The second pair has a common four: four times p minus three. [[same]]Both share p minus three, [[ans]]so the factored form is p minus three, times q plus four. [[chk]]Multiply back to check: you get all four terms again.",
+ "neg": "Watch the signs when the third term is negative. [[q]]Factor m x minus m y minus n x plus n y. [[f1]]The first pair gives m times x minus y. [[f2]]For the second pair, factor out negative n, [[flip]]and the signs inside both flip: negative n times x minus y. [[same]]Now both parts share x minus y, [[ans]]so the answer is x minus y, times m minus n. [[warn]]If the parentheses don't match, check the signs before giving up.",
+ "q2": "Quick check. Mind the signs.",
+ "gcf": "Always look for a GCF of all the terms first. [[q]]Here, every term has m squared n squared. [[out]]Factor it out first. [[left]]Inside, twelve m cubed minus eight m squared plus nine m n cubed minus six n cubed. [[pairs]]Now group: four m squared times three m minus two, plus three n cubed times three m minus two. [[ans]]The result is m squared n squared, times three m minus two, times four m squared plus three n cubed.",
+ "q3": "Quick check. Find the mistake.",
+ "wrap": "To sum up. [[w1]]Factor out any GCF of all the terms first. [[w2]]Group the four terms in pairs, and factor each pair. [[w3]]If the two parts share a binomial, factor it out. [[w4]]Watch the signs when you factor out a negative. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Factor by grouping.",
+ "final2": "Next, is each factorization correct?",
+ "final3": "Last one. Factor out the GCF first.",
+ "finish": "Nice work. That's the end of chapter fifty-three, factoring by grouping."
+ }
+}
diff --git a/content/ch53/narration.en.timings.json b/content/ch53/narration.en.timings.json
new file mode 100644
index 0000000..f6f1ea6
--- /dev/null
+++ b/content/ch53/narration.en.timings.json
@@ -0,0 +1,2272 @@
+{
+ "intro": {
+ "key": "d6ceeb014e3164fb49a11b81c0dd8373fab18492",
+ "dur": 6.888,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.494791,
+ "fifty-three"
+ ],
+ [
+ 1.71875,
+ "When"
+ ],
+ [
+ 1.953125,
+ "four"
+ ],
+ [
+ 2.252625,
+ "terms"
+ ],
+ [
+ 2.890625,
+ "share"
+ ],
+ [
+ 3.307291,
+ "no"
+ ],
+ [
+ 3.684916,
+ "common"
+ ],
+ [
+ 4.0495,
+ "factor"
+ ],
+ [
+ 4.882833,
+ "try"
+ ],
+ [
+ 5.14325,
+ "factoring"
+ ],
+ [
+ 5.651041,
+ "them"
+ ],
+ [
+ 5.755208,
+ "in"
+ ],
+ [
+ 5.846375,
+ "pairs"
+ ]
+ ],
+ "marks": {
+ "sub": 1.719
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter fifty-three."
+ ],
+ [
+ 1.719,
+ "When four terms share no common factor, try factoring them in pairs."
+ ]
+ ]
+ },
+ "idea": {
+ "key": "550edd1269ce447c9b87b88c623f5175419c0cf3",
+ "dur": 26.352,
+ "words": [
+ [
+ 0.117208,
+ "Take"
+ ],
+ [
+ 0.273458,
+ "a"
+ ],
+ [
+ 0.403666,
+ "x"
+ ],
+ [
+ 0.677083,
+ "plus"
+ ],
+ [
+ 1.054708,
+ "a"
+ ],
+ [
+ 1.210958,
+ "y"
+ ],
+ [
+ 1.328125,
+ "plus"
+ ],
+ [
+ 1.666666,
+ "b"
+ ],
+ [
+ 1.848958,
+ "x"
+ ],
+ [
+ 2.096375,
+ "plus"
+ ],
+ [
+ 2.382833,
+ "b"
+ ],
+ [
+ 2.578125,
+ "y"
+ ],
+ [
+ 3.294291,
+ "No"
+ ],
+ [
+ 3.489583,
+ "factor"
+ ],
+ [
+ 3.997416,
+ "is"
+ ],
+ [
+ 4.075541,
+ "shared"
+ ],
+ [
+ 4.440125,
+ "by"
+ ],
+ [
+ 4.661458,
+ "all"
+ ],
+ [
+ 4.921875,
+ "four"
+ ],
+ [
+ 5.195333,
+ "terms"
+ ],
+ [
+ 6.237,
+ "So"
+ ],
+ [
+ 6.39325,
+ "group"
+ ],
+ [
+ 6.640625,
+ "them"
+ ],
+ [
+ 6.796875,
+ "in"
+ ],
+ [
+ 6.888041,
+ "pairs"
+ ],
+ [
+ 7.747416,
+ "the"
+ ],
+ [
+ 7.851583,
+ "first"
+ ],
+ [
+ 8.177083,
+ "two"
+ ],
+ [
+ 8.776041,
+ "and"
+ ],
+ [
+ 8.867208,
+ "the"
+ ],
+ [
+ 8.932291,
+ "last"
+ ],
+ [
+ 9.257833,
+ "two"
+ ],
+ [
+ 10.052083,
+ "Factor"
+ ],
+ [
+ 10.442708,
+ "a"
+ ],
+ [
+ 10.520833,
+ "out"
+ ],
+ [
+ 10.716166,
+ "of"
+ ],
+ [
+ 10.76825,
+ "the"
+ ],
+ [
+ 10.833333,
+ "first"
+ ],
+ [
+ 11.184916,
+ "pair"
+ ],
+ [
+ 12.070333,
+ "a"
+ ],
+ [
+ 12.122416,
+ "times"
+ ],
+ [
+ 12.565125,
+ "x"
+ ],
+ [
+ 12.734375,
+ "plus"
+ ],
+ [
+ 13.072916,
+ "y"
+ ],
+ [
+ 14.088541,
+ "Factor"
+ ],
+ [
+ 14.479166,
+ "b"
+ ],
+ [
+ 14.6875,
+ "out"
+ ],
+ [
+ 14.804708,
+ "of"
+ ],
+ [
+ 14.84375,
+ "the"
+ ],
+ [
+ 14.921875,
+ "second"
+ ],
+ [
+ 15.859375,
+ "b"
+ ],
+ [
+ 16.002625,
+ "times"
+ ],
+ [
+ 16.432291,
+ "x"
+ ],
+ [
+ 16.588541,
+ "plus"
+ ],
+ [
+ 16.888041,
+ "y"
+ ],
+ [
+ 17.708333,
+ "Now"
+ ],
+ [
+ 18.020833,
+ "both"
+ ],
+ [
+ 18.320333,
+ "parts"
+ ],
+ [
+ 18.684916,
+ "share"
+ ],
+ [
+ 18.932291,
+ "the"
+ ],
+ [
+ 19.010416,
+ "same"
+ ],
+ [
+ 19.309916,
+ "factor"
+ ],
+ [
+ 20.338541,
+ "x"
+ ],
+ [
+ 20.46875,
+ "plus"
+ ],
+ [
+ 20.820333,
+ "y"
+ ],
+ [
+ 21.848958,
+ "Pull"
+ ],
+ [
+ 22.083333,
+ "it"
+ ],
+ [
+ 22.122416,
+ "out"
+ ],
+ [
+ 22.708333,
+ "just"
+ ],
+ [
+ 22.890625,
+ "like"
+ ],
+ [
+ 22.994791,
+ "a"
+ ],
+ [
+ 23.046875,
+ "GCF"
+ ],
+ [
+ 23.645833,
+ ": x"
+ ],
+ [
+ 23.789083,
+ "plus"
+ ],
+ [
+ 24.088541,
+ "y"
+ ],
+ [
+ 24.960958,
+ "times"
+ ],
+ [
+ 25.247416,
+ "a"
+ ],
+ [
+ 25.2995,
+ "plus"
+ ],
+ [
+ 25.651041,
+ "b"
+ ]
+ ],
+ "marks": {
+ "none": 3.294,
+ "group": 6.237,
+ "f1": 10.052,
+ "f2": 14.089,
+ "same": 17.708,
+ "pull": 21.849,
+ "ans": 23.789
+ },
+ "cues": [
+ [
+ 0.117,
+ "Take a x plus a y plus b x plus b y."
+ ],
+ [
+ 3.294,
+ "No factor is shared by all four terms."
+ ],
+ [
+ 6.237,
+ "So group them in pairs: the first two, and the last two."
+ ],
+ [
+ 10.052,
+ "Factor a out of the first pair: a times x plus y."
+ ],
+ [
+ 14.089,
+ "Factor b out of the second: b times x plus y."
+ ],
+ [
+ 17.708,
+ "Now both parts share the same factor, x plus y."
+ ],
+ [
+ 21.849,
+ "Pull it out, just like a GCF: x plus y, times a plus b."
+ ]
+ ]
+ },
+ "area": {
+ "key": "9d54845f2b6c5eec061412745383093e3bd0c675",
+ "dur": 22.584,
+ "words": [
+ [
+ 0.078125,
+ "An"
+ ],
+ [
+ 0.182291,
+ "area"
+ ],
+ [
+ 0.481791,
+ "model"
+ ],
+ [
+ 0.807291,
+ "shows"
+ ],
+ [
+ 1.158875,
+ "why"
+ ],
+ [
+ 1.979166,
+ "Arrange"
+ ],
+ [
+ 2.317708,
+ "the"
+ ],
+ [
+ 2.421875,
+ "four"
+ ],
+ [
+ 2.760416,
+ "terms"
+ ],
+ [
+ 3.385416,
+ "as"
+ ],
+ [
+ 3.528666,
+ "the"
+ ],
+ [
+ 3.619791,
+ "parts"
+ ],
+ [
+ 3.984375,
+ "of"
+ ],
+ [
+ 4.088541,
+ "one"
+ ],
+ [
+ 4.362,
+ "rectangle"
+ ],
+ [
+ 5.585958,
+ "a"
+ ],
+ [
+ 5.742208,
+ "x"
+ ],
+ [
+ 6.171875,
+ "and"
+ ],
+ [
+ 6.588541,
+ "a"
+ ],
+ [
+ 6.783875,
+ "y"
+ ],
+ [
+ 7.200541,
+ "share"
+ ],
+ [
+ 7.565125,
+ "the"
+ ],
+ [
+ 7.64325,
+ "height"
+ ],
+ [
+ 7.994791,
+ "a"
+ ],
+ [
+ 8.671875,
+ "and"
+ ],
+ [
+ 8.789083,
+ "b"
+ ],
+ [
+ 9.075541,
+ "x"
+ ],
+ [
+ 9.791666,
+ "and"
+ ],
+ [
+ 9.960958,
+ "b"
+ ],
+ [
+ 10.45575,
+ "y"
+ ],
+ [
+ 10.742208,
+ "share"
+ ],
+ [
+ 11.067708,
+ "the"
+ ],
+ [
+ 11.145833,
+ "height"
+ ],
+ [
+ 11.458333,
+ "b"
+ ],
+ [
+ 12.1745,
+ "The"
+ ],
+ [
+ 12.239583,
+ "columns"
+ ],
+ [
+ 12.630208,
+ "share"
+ ],
+ [
+ 12.942708,
+ "the"
+ ],
+ [
+ 13.020833,
+ "widths"
+ ],
+ [
+ 13.606791,
+ "x"
+ ],
+ [
+ 13.958333,
+ "and"
+ ],
+ [
+ 14.0625,
+ "y"
+ ],
+ [
+ 14.869791,
+ "So"
+ ],
+ [
+ 14.973958,
+ "the"
+ ],
+ [
+ 15.052083,
+ "whole"
+ ],
+ [
+ 15.273458,
+ "rectangle"
+ ],
+ [
+ 15.846375,
+ "is"
+ ],
+ [
+ 15.950541,
+ "a"
+ ],
+ [
+ 16.015625,
+ "plus"
+ ],
+ [
+ 16.328125,
+ "b"
+ ],
+ [
+ 16.445333,
+ "tall"
+ ],
+ [
+ 17.161458,
+ "and"
+ ],
+ [
+ 17.487,
+ "x"
+ ],
+ [
+ 17.64325,
+ "plus"
+ ],
+ [
+ 17.942708,
+ "y"
+ ],
+ [
+ 18.164083,
+ "wide"
+ ],
+ [
+ 19.140625,
+ "its"
+ ],
+ [
+ 19.375,
+ "area"
+ ],
+ [
+ 20.0,
+ "is"
+ ],
+ [
+ 20.130208,
+ "the"
+ ],
+ [
+ 20.234375,
+ "product"
+ ],
+ [
+ 20.76825,
+ "of"
+ ],
+ [
+ 20.872416,
+ "those"
+ ],
+ [
+ 21.145833,
+ "two"
+ ],
+ [
+ 21.380208,
+ "factors"
+ ]
+ ],
+ "marks": {
+ "tiles": 1.979,
+ "rows": 5.586,
+ "rows2": 8.672,
+ "cols": 12.175,
+ "sides": 14.87,
+ "ans": 19.141
+ },
+ "cues": [
+ [
+ 0.078,
+ "An area model shows why."
+ ],
+ [
+ 1.979,
+ "Arrange the four terms as the parts of one rectangle: a x and a y share the height a, and b x and b y share the height b."
+ ],
+ [
+ 12.175,
+ "The columns share the widths x and y."
+ ],
+ [
+ 14.87,
+ "So the whole rectangle is a plus b tall and x plus y wide: its area is the product of those two factors."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "7c47ca76dc82caf750ff20704aa138929b05a2bb",
+ "dur": 2.472,
+ "words": [
+ [
+ 0.091166,
+ "Quick"
+ ],
+ [
+ 0.286458,
+ "check"
+ ],
+ [
+ 1.237,
+ "Factor"
+ ],
+ [
+ 1.497416,
+ "by"
+ ],
+ [
+ 1.653666,
+ "grouping"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.237,
+ "Factor by grouping."
+ ]
+ ]
+ },
+ "ex": {
+ "key": "a8df0f4a76b433e8d9527334352aa86847e15275",
+ "dur": 27.144,
+ "words": [
+ [
+ 0.104166,
+ "Try"
+ ],
+ [
+ 0.3125,
+ "p"
+ ],
+ [
+ 0.546875,
+ "q"
+ ],
+ [
+ 0.76825,
+ "minus"
+ ],
+ [
+ 1.25,
+ "three"
+ ],
+ [
+ 1.71875,
+ "q"
+ ],
+ [
+ 2.044291,
+ "plus"
+ ],
+ [
+ 2.734375,
+ "four"
+ ],
+ [
+ 3.125,
+ "p"
+ ],
+ [
+ 3.4245,
+ "minus"
+ ],
+ [
+ 3.828125,
+ "twelve"
+ ],
+ [
+ 4.778666,
+ "Group"
+ ],
+ [
+ 5.052083,
+ "the"
+ ],
+ [
+ 5.15625,
+ "first"
+ ],
+ [
+ 5.481791,
+ "two"
+ ],
+ [
+ 5.703125,
+ "terms"
+ ],
+ [
+ 6.458333,
+ "and"
+ ],
+ [
+ 6.5495,
+ "the"
+ ],
+ [
+ 6.614583,
+ "last"
+ ],
+ [
+ 6.979166,
+ "two"
+ ],
+ [
+ 7.734375,
+ "The"
+ ],
+ [
+ 7.7995,
+ "first"
+ ],
+ [
+ 8.085958,
+ "pair"
+ ],
+ [
+ 8.398458,
+ "has"
+ ],
+ [
+ 8.554708,
+ "a"
+ ],
+ [
+ 8.619791,
+ "common"
+ ],
+ [
+ 9.010416,
+ "q"
+ ],
+ [
+ 9.765625,
+ "q"
+ ],
+ [
+ 10.0,
+ "times"
+ ],
+ [
+ 10.46875,
+ "p"
+ ],
+ [
+ 10.820333,
+ "minus"
+ ],
+ [
+ 11.25,
+ "three"
+ ],
+ [
+ 12.109375,
+ "The"
+ ],
+ [
+ 12.1745,
+ "second"
+ ],
+ [
+ 12.578125,
+ "pair"
+ ],
+ [
+ 13.046875,
+ "has"
+ ],
+ [
+ 13.28125,
+ "a"
+ ],
+ [
+ 13.346375,
+ "common"
+ ],
+ [
+ 13.684916,
+ "four"
+ ],
+ [
+ 14.51825,
+ "four"
+ ],
+ [
+ 14.778666,
+ "times"
+ ],
+ [
+ 15.195333,
+ "p"
+ ],
+ [
+ 15.690125,
+ "minus"
+ ],
+ [
+ 16.145833,
+ "three"
+ ],
+ [
+ 16.992208,
+ "Both"
+ ],
+ [
+ 17.1875,
+ "share"
+ ],
+ [
+ 17.64325,
+ "p"
+ ],
+ [
+ 17.890625,
+ "minus"
+ ],
+ [
+ 18.359375,
+ "three"
+ ],
+ [
+ 19.192708,
+ "so"
+ ],
+ [
+ 19.309916,
+ "the"
+ ],
+ [
+ 19.388041,
+ "factored"
+ ],
+ [
+ 19.791666,
+ "form"
+ ],
+ [
+ 20.273458,
+ "is"
+ ],
+ [
+ 20.377625,
+ "p"
+ ],
+ [
+ 20.612,
+ "minus"
+ ],
+ [
+ 21.002625,
+ "three"
+ ],
+ [
+ 21.70575,
+ "times"
+ ],
+ [
+ 22.01825,
+ "q"
+ ],
+ [
+ 22.200541,
+ "plus"
+ ],
+ [
+ 22.487,
+ "four"
+ ],
+ [
+ 23.320333,
+ "Multiply"
+ ],
+ [
+ 23.828125,
+ "back"
+ ],
+ [
+ 24.20575,
+ "to"
+ ],
+ [
+ 24.309916,
+ "check"
+ ],
+ [
+ 25.182291,
+ "you"
+ ],
+ [
+ 25.273458,
+ "get"
+ ],
+ [
+ 25.403666,
+ "all"
+ ],
+ [
+ 25.664083,
+ "four"
+ ],
+ [
+ 26.119791,
+ "terms"
+ ],
+ [
+ 26.419291,
+ "again"
+ ]
+ ],
+ "marks": {
+ "group": 4.779,
+ "f1": 7.734,
+ "f2": 12.109,
+ "same": 16.992,
+ "ans": 19.193,
+ "chk": 23.32
+ },
+ "cues": [
+ [
+ 0.104,
+ "Try p q minus three q plus four p minus twelve."
+ ],
+ [
+ 4.779,
+ "Group the first two terms and the last two."
+ ],
+ [
+ 7.734,
+ "The first pair has a common q: q times p minus three."
+ ],
+ [
+ 12.109,
+ "The second pair has a common four: four times p minus three."
+ ],
+ [
+ 16.992,
+ "Both share p minus three, so the factored form is p minus three, times q plus four."
+ ],
+ [
+ 23.32,
+ "Multiply back to check: you get all four terms again."
+ ]
+ ]
+ },
+ "neg": {
+ "key": "1830bd003b11669d7a3c09f2ebc14ba06a04efdf",
+ "dur": 30.264,
+ "words": [
+ [
+ 0.104166,
+ "Watch"
+ ],
+ [
+ 0.351583,
+ "the"
+ ],
+ [
+ 0.442708,
+ "signs"
+ ],
+ [
+ 0.898458,
+ "when"
+ ],
+ [
+ 0.976583,
+ "the"
+ ],
+ [
+ 1.054708,
+ "third"
+ ],
+ [
+ 1.497416,
+ "term"
+ ],
+ [
+ 2.044291,
+ "is"
+ ],
+ [
+ 2.135416,
+ "negative"
+ ],
+ [
+ 3.229166,
+ "Factor"
+ ],
+ [
+ 3.737,
+ "m"
+ ],
+ [
+ 3.958333,
+ "x"
+ ],
+ [
+ 4.114583,
+ "minus"
+ ],
+ [
+ 4.648458,
+ "m"
+ ],
+ [
+ 4.908875,
+ "y"
+ ],
+ [
+ 4.960958,
+ "minus"
+ ],
+ [
+ 5.612,
+ "n"
+ ],
+ [
+ 5.9245,
+ "x"
+ ],
+ [
+ 6.09375,
+ "plus"
+ ],
+ [
+ 6.315125,
+ "n"
+ ],
+ [
+ 6.575541,
+ "y"
+ ],
+ [
+ 7.278666,
+ "The"
+ ],
+ [
+ 7.356791,
+ "first"
+ ],
+ [
+ 7.630208,
+ "pair"
+ ],
+ [
+ 8.085958,
+ "gives"
+ ],
+ [
+ 8.554708,
+ "m"
+ ],
+ [
+ 8.789083,
+ "times"
+ ],
+ [
+ 9.453125,
+ "x"
+ ],
+ [
+ 9.6745,
+ "minus"
+ ],
+ [
+ 10.013041,
+ "y"
+ ],
+ [
+ 10.859375,
+ "For"
+ ],
+ [
+ 10.898458,
+ "the"
+ ],
+ [
+ 10.989583,
+ "second"
+ ],
+ [
+ 11.39325,
+ "pair"
+ ],
+ [
+ 12.057291,
+ "factor"
+ ],
+ [
+ 12.473958,
+ "out"
+ ],
+ [
+ 12.682291,
+ "negative"
+ ],
+ [
+ 13.151041,
+ "n"
+ ],
+ [
+ 13.932291,
+ "and"
+ ],
+ [
+ 13.997416,
+ "the"
+ ],
+ [
+ 14.075541,
+ "signs"
+ ],
+ [
+ 14.51825,
+ "inside"
+ ],
+ [
+ 15.351583,
+ "both"
+ ],
+ [
+ 15.664083,
+ "flip"
+ ],
+ [
+ 16.601583,
+ "negative"
+ ],
+ [
+ 17.34375,
+ "n"
+ ],
+ [
+ 17.5,
+ "times"
+ ],
+ [
+ 18.26825,
+ "x"
+ ],
+ [
+ 18.476583,
+ "minus"
+ ],
+ [
+ 18.867208,
+ "y"
+ ],
+ [
+ 19.700541,
+ "Now"
+ ],
+ [
+ 19.908875,
+ "both"
+ ],
+ [
+ 20.169291,
+ "parts"
+ ],
+ [
+ 20.651041,
+ "share"
+ ],
+ [
+ 21.171875,
+ "x"
+ ],
+ [
+ 21.367208,
+ "minus"
+ ],
+ [
+ 21.744791,
+ "y"
+ ],
+ [
+ 22.565125,
+ "so"
+ ],
+ [
+ 22.682291,
+ "the"
+ ],
+ [
+ 22.8125,
+ "answer"
+ ],
+ [
+ 23.190125,
+ "is"
+ ],
+ [
+ 23.4245,
+ "x"
+ ],
+ [
+ 23.606791,
+ "minus"
+ ],
+ [
+ 23.984375,
+ "y"
+ ],
+ [
+ 24.804708,
+ "times"
+ ],
+ [
+ 25.260416,
+ "m"
+ ],
+ [
+ 25.338541,
+ "minus"
+ ],
+ [
+ 25.755208,
+ "n"
+ ],
+ [
+ 26.419291,
+ "If"
+ ],
+ [
+ 26.510416,
+ "the"
+ ],
+ [
+ 26.588541,
+ "parentheses"
+ ],
+ [
+ 27.265625,
+ "don't"
+ ],
+ [
+ 27.539083,
+ "match"
+ ],
+ [
+ 28.333333,
+ "check"
+ ],
+ [
+ 28.528666,
+ "the"
+ ],
+ [
+ 28.619791,
+ "signs"
+ ],
+ [
+ 29.010416,
+ "before"
+ ],
+ [
+ 29.401041,
+ "giving"
+ ],
+ [
+ 29.648458,
+ "up"
+ ]
+ ],
+ "marks": {
+ "q": 3.229,
+ "f1": 7.279,
+ "f2": 10.859,
+ "flip": 13.932,
+ "same": 19.701,
+ "ans": 22.565,
+ "warn": 26.419
+ },
+ "cues": [
+ [
+ 0.104,
+ "Watch the signs when the third term is negative."
+ ],
+ [
+ 3.229,
+ "Factor m x minus m y minus n x plus n y."
+ ],
+ [
+ 7.279,
+ "The first pair gives m times x minus y."
+ ],
+ [
+ 10.859,
+ "For the second pair, factor out negative n, and the signs inside both flip: negative n times x minus y."
+ ],
+ [
+ 19.701,
+ "Now both parts share x minus y, so the answer is x minus y, times m minus n."
+ ],
+ [
+ 26.419,
+ "If the parentheses don't match, check the signs before giving up."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "dc020fbde59e93ce741d17ac3210be03d59a73ae",
+ "dur": 2.424,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.119791,
+ "Mind"
+ ],
+ [
+ 1.328125,
+ "the"
+ ],
+ [
+ 1.39325,
+ "signs"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "Mind the signs."
+ ]
+ ]
+ },
+ "gcf": {
+ "key": "becf953fd43eb1942462a79703b5c1e374504b2e",
+ "dur": 32.928,
+ "words": [
+ [
+ 0.104166,
+ "Always"
+ ],
+ [
+ 0.377625,
+ "look"
+ ],
+ [
+ 0.507833,
+ "for"
+ ],
+ [
+ 0.677083,
+ "a"
+ ],
+ [
+ 0.742208,
+ "GCF"
+ ],
+ [
+ 1.71875,
+ "of"
+ ],
+ [
+ 2.057291,
+ "all"
+ ],
+ [
+ 2.265625,
+ "the"
+ ],
+ [
+ 2.34375,
+ "terms"
+ ],
+ [
+ 2.64325,
+ "first"
+ ],
+ [
+ 3.697916,
+ "Here"
+ ],
+ [
+ 4.362,
+ "every"
+ ],
+ [
+ 4.583333,
+ "term"
+ ],
+ [
+ 4.908875,
+ "has"
+ ],
+ [
+ 5.104166,
+ "m"
+ ],
+ [
+ 5.3125,
+ "squared"
+ ],
+ [
+ 6.145833,
+ "n"
+ ],
+ [
+ 6.315125,
+ "squared"
+ ],
+ [
+ 7.34375,
+ "Factor"
+ ],
+ [
+ 7.64325,
+ "it"
+ ],
+ [
+ 7.682291,
+ "out"
+ ],
+ [
+ 7.851583,
+ "first"
+ ],
+ [
+ 8.841166,
+ "Inside"
+ ],
+ [
+ 9.700541,
+ "twelve"
+ ],
+ [
+ 10.039083,
+ "m"
+ ],
+ [
+ 10.3125,
+ "cubed"
+ ],
+ [
+ 10.664083,
+ "minus"
+ ],
+ [
+ 11.302083,
+ "eight"
+ ],
+ [
+ 11.796875,
+ "m"
+ ],
+ [
+ 11.927083,
+ "squared"
+ ],
+ [
+ 12.356791,
+ "plus"
+ ],
+ [
+ 12.786458,
+ "nine"
+ ],
+ [
+ 13.398458,
+ "m"
+ ],
+ [
+ 14.0495,
+ "n"
+ ],
+ [
+ 14.492208,
+ "cubed"
+ ],
+ [
+ 14.791666,
+ "minus"
+ ],
+ [
+ 15.208333,
+ "six"
+ ],
+ [
+ 15.859375,
+ "n"
+ ],
+ [
+ 16.028666,
+ "cubed"
+ ],
+ [
+ 16.979166,
+ "Now"
+ ],
+ [
+ 17.1875,
+ "group"
+ ],
+ [
+ 18.033875,
+ "four"
+ ],
+ [
+ 18.255208,
+ "m"
+ ],
+ [
+ 18.385416,
+ "squared"
+ ],
+ [
+ 18.737,
+ "times"
+ ],
+ [
+ 19.283875,
+ "three"
+ ],
+ [
+ 19.6745,
+ "m"
+ ],
+ [
+ 19.869791,
+ "minus"
+ ],
+ [
+ 20.247416,
+ "two"
+ ],
+ [
+ 21.184916,
+ "plus"
+ ],
+ [
+ 21.510416,
+ "three"
+ ],
+ [
+ 21.875,
+ "n"
+ ],
+ [
+ 22.304708,
+ "cubed"
+ ],
+ [
+ 22.591166,
+ "times"
+ ],
+ [
+ 23.046875,
+ "three"
+ ],
+ [
+ 23.372416,
+ "m"
+ ],
+ [
+ 23.515625,
+ "minus"
+ ],
+ [
+ 23.854166,
+ "two"
+ ],
+ [
+ 24.661458,
+ "The"
+ ],
+ [
+ 24.713541,
+ "result"
+ ],
+ [
+ 25.45575,
+ "is"
+ ],
+ [
+ 25.651041,
+ "m"
+ ],
+ [
+ 25.885416,
+ "squared"
+ ],
+ [
+ 26.588541,
+ "n"
+ ],
+ [
+ 26.796875,
+ "squared"
+ ],
+ [
+ 27.838541,
+ "times"
+ ],
+ [
+ 28.255208,
+ "three"
+ ],
+ [
+ 28.619791,
+ "m"
+ ],
+ [
+ 28.789083,
+ "minus"
+ ],
+ [
+ 29.179708,
+ "two"
+ ],
+ [
+ 30.078125,
+ "times"
+ ],
+ [
+ 30.377625,
+ "four"
+ ],
+ [
+ 30.612,
+ "m"
+ ],
+ [
+ 30.716166,
+ "squared"
+ ],
+ [
+ 31.132833,
+ "plus"
+ ],
+ [
+ 31.523458,
+ "three"
+ ],
+ [
+ 31.875,
+ "n"
+ ],
+ [
+ 32.044291,
+ "cubed"
+ ]
+ ],
+ "marks": {
+ "q": 3.698,
+ "out": 7.344,
+ "left": 8.841,
+ "pairs": 16.979,
+ "ans": 24.661
+ },
+ "cues": [
+ [
+ 0.104,
+ "Always look for a GCF of all the terms first."
+ ],
+ [
+ 3.698,
+ "Here, every term has m squared n squared."
+ ],
+ [
+ 7.344,
+ "Factor it out first."
+ ],
+ [
+ 8.841,
+ "Inside, twelve m cubed minus eight m squared plus nine m n cubed minus six n cubed."
+ ],
+ [
+ 16.979,
+ "Now group: four m squared times three m minus two, plus three n cubed times three m minus two."
+ ],
+ [
+ 24.661,
+ "The result is m squared n squared, times three m minus two, times four m squared plus three n cubed."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "2a57b26aa9882e4841152644cc4f79758c5dfd87",
+ "dur": 2.376,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.197916,
+ "Find"
+ ],
+ [
+ 1.39325,
+ "the"
+ ],
+ [
+ 1.432291,
+ "mistake"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.198,
+ "Find the mistake."
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "25794a6b831a837c758f6370680525edb4c453d2",
+ "dur": 16.896,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "sum"
+ ],
+ [
+ 0.364583,
+ "up"
+ ],
+ [
+ 1.041666,
+ "Factor"
+ ],
+ [
+ 1.39325,
+ "out"
+ ],
+ [
+ 1.875,
+ "any"
+ ],
+ [
+ 2.083333,
+ "GCF"
+ ],
+ [
+ 3.138041,
+ "of"
+ ],
+ [
+ 3.4245,
+ "all"
+ ],
+ [
+ 3.632833,
+ "the"
+ ],
+ [
+ 3.697916,
+ "terms"
+ ],
+ [
+ 3.984375,
+ "first"
+ ],
+ [
+ 4.973958,
+ "Group"
+ ],
+ [
+ 5.260416,
+ "the"
+ ],
+ [
+ 5.377625,
+ "four"
+ ],
+ [
+ 5.742208,
+ "terms"
+ ],
+ [
+ 6.119791,
+ "in"
+ ],
+ [
+ 6.223958,
+ "pairs"
+ ],
+ [
+ 7.122416,
+ "and"
+ ],
+ [
+ 7.239583,
+ "factor"
+ ],
+ [
+ 7.708333,
+ "each"
+ ],
+ [
+ 7.903666,
+ "pair"
+ ],
+ [
+ 8.763041,
+ "If"
+ ],
+ [
+ 8.854166,
+ "the"
+ ],
+ [
+ 8.945333,
+ "two"
+ ],
+ [
+ 9.153666,
+ "parts"
+ ],
+ [
+ 9.53125,
+ "share"
+ ],
+ [
+ 9.84375,
+ "a"
+ ],
+ [
+ 9.882833,
+ "binomial"
+ ],
+ [
+ 10.846375,
+ "factor"
+ ],
+ [
+ 11.302083,
+ "it"
+ ],
+ [
+ 11.367208,
+ "out"
+ ],
+ [
+ 12.083333,
+ "Watch"
+ ],
+ [
+ 12.34375,
+ "the"
+ ],
+ [
+ 12.447916,
+ "signs"
+ ],
+ [
+ 12.890625,
+ "when"
+ ],
+ [
+ 13.007833,
+ "you"
+ ],
+ [
+ 13.125,
+ "factor"
+ ],
+ [
+ 13.58075,
+ "out"
+ ],
+ [
+ 13.671875,
+ "a"
+ ],
+ [
+ 13.697916,
+ "negative"
+ ],
+ [
+ 14.726583,
+ "Now"
+ ],
+ [
+ 15.15625,
+ "try"
+ ],
+ [
+ 15.351583,
+ "the"
+ ],
+ [
+ 15.429708,
+ "chapter"
+ ],
+ [
+ 15.820333,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 1.042,
+ "w2": 4.974,
+ "w3": 8.763,
+ "w4": 12.083,
+ "end": 14.727
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.042,
+ "Factor out any GCF of all the terms first."
+ ],
+ [
+ 4.974,
+ "Group the four terms in pairs, and factor each pair."
+ ],
+ [
+ 8.763,
+ "If the two parts share a binomial, factor it out."
+ ],
+ [
+ 12.083,
+ "Watch the signs when you factor out a negative."
+ ],
+ [
+ 14.727,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "95063e4f24ff9093252346ce7e522e96721eabe0",
+ "dur": 2.904,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.416666,
+ "practice"
+ ],
+ [
+ 1.614583,
+ "Factor"
+ ],
+ [
+ 1.888041,
+ "by"
+ ],
+ [
+ 2.057291,
+ "grouping"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.615,
+ "Factor by grouping."
+ ]
+ ]
+ },
+ "final2": {
+ "key": "653848b00e373d95fd13e3dc4ef70cecf20570bf",
+ "dur": 3.336,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.9245,
+ "is"
+ ],
+ [
+ 1.458333,
+ "each"
+ ],
+ [
+ 1.627625,
+ "factorization"
+ ],
+ [
+ 2.487,
+ "correct"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, is each factorization correct?"
+ ]
+ ]
+ },
+ "final3": {
+ "key": "e81a382eb8bc41b61d70aa496948ab6130b4058b",
+ "dur": 3.696,
+ "words": [
+ [
+ 0.104166,
+ "Last"
+ ],
+ [
+ 0.429708,
+ "one"
+ ],
+ [
+ 1.237,
+ "Factor"
+ ],
+ [
+ 1.5625,
+ "out"
+ ],
+ [
+ 1.953125,
+ "the"
+ ],
+ [
+ 2.070333,
+ "GCF"
+ ],
+ [
+ 2.734375,
+ "first"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.237,
+ "Factor out the GCF first."
+ ]
+ ]
+ },
+ "finish": {
+ "key": "5454fb984da2b9ae37fbec1bcd4694b1c503b79a",
+ "dur": 5.112,
+ "words": [
+ [
+ 0.078125,
+ "Nice"
+ ],
+ [
+ 0.364583,
+ "work"
+ ],
+ [
+ 1.184916,
+ "That's"
+ ],
+ [
+ 1.341166,
+ "the"
+ ],
+ [
+ 1.445333,
+ "end"
+ ],
+ [
+ 1.70575,
+ "of"
+ ],
+ [
+ 1.796875,
+ "chapter"
+ ],
+ [
+ 2.304708,
+ "fifty-three"
+ ],
+ [
+ 3.606791,
+ "factoring"
+ ],
+ [
+ 4.114583,
+ "by"
+ ],
+ [
+ 4.270833,
+ "grouping"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.078,
+ "Nice work."
+ ],
+ [
+ 1.185,
+ "That's the end of chapter fifty-three, factoring by grouping."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch54/narration.en.json b/content/ch54/narration.en.json
new file mode 100644
index 0000000..ba29493
--- /dev/null
+++ b/content/ch54/narration.en.json
@@ -0,0 +1,21 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter fifty-four. [[sub]]Some trinomials, like x squared plus five x plus six, are the product of two binomials. Here's how to find them.",
+ "tiles": "Build x squared plus five x plus six with algebra tiles: [[sq]]one x squared, [[xs]]five x strips, [[ones]]and six unit squares. [[try]]Factoring means arranging all of them into one rectangle. [[corner]]Put the big square in the corner, [[side]]the x strips along two sides, [[fill]]and the ones fill the corner that's left. [[dims]]The rectangle is x plus two tall and x plus three wide. [[ans]]So x squared plus five x plus six equals x plus two, times x plus three.",
+ "why": "Why those numbers? [[foil]]Multiply x plus d by x plus e with FOIL: [[mid]]the outer and inner terms give d x plus e x, so d plus e must equal b. [[last]]The last terms give d times e, so d times e must equal c. [[rule]]To factor x squared plus b x plus c, look for two numbers that multiply to c and add to b.",
+ "table": "Factor x squared plus eight x plus fifteen. [[list]]List the factor pairs of fifteen: one and fifteen, three and five. [[sums]]Check each sum: one plus fifteen is sixteen, [[hit]]three plus five is eight. That's b. [[ans]]So the answer is x plus three, times x plus five. [[order]]The order of the two factors doesn't matter.",
+ "q1": "Quick check. Pick the pair.",
+ "signs": "Signs tell you where to look. [[pp]]If c is positive and b is positive, both numbers are positive. [[nn]]If c is positive but b is negative, both numbers are negative: x squared minus ten x plus twenty-one is x minus three, times x minus seven. [[mix]]If c is negative, the numbers have opposite signs. [[ex]]For x squared plus two x minus thirty-five, the pair is negative five and seven: [[ans]]x minus five, times x plus seven.",
+ "careful": "Be careful which number gets the minus sign. [[a]]x plus seven, times x minus five, gives plus two x. [[b]]x minus seven, times x plus five, gives minus two x. [[diff]]They're different trinomials, so check the middle term every time.",
+ "q2": "Quick check. Factor the trinomial.",
+ "none": "Not every trinomial can be factored this way. [[ex]]Take x squared plus five x plus three. [[pairs]]The only integer pairs that multiply to three are one and three, and negative one and negative three. [[sums]]Their sums are four and negative four, never five. [[nf]]So it doesn't factor into binomials with integers.",
+ "q3": "Quick check. Who is correct?",
+ "wrap": "To sum up. [[w1]]To factor x squared plus b x plus c, find two numbers that multiply to c and add to b. [[w2]]The signs of b and c tell you the signs of the two numbers. [[w3]]Check the middle term by multiplying back. [[w4]]If no pair works, the trinomial can't be factored with integers. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Factor each trinomial.",
+ "final2": "Next, can it be factored?",
+ "final3": "Last one. More practice with signs.",
+ "finish": "Great work. That's the end of chapter fifty-four, factoring trinomials."
+ }
+}
diff --git a/content/ch54/narration.en.timings.json b/content/ch54/narration.en.timings.json
new file mode 100644
index 0000000..984369c
--- /dev/null
+++ b/content/ch54/narration.en.timings.json
@@ -0,0 +1,2345 @@
+{
+ "intro": {
+ "key": "7d7eb106560604fa607e0cc737a84e7931c63b45",
+ "dur": 9.96,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.533875,
+ "fifty-four"
+ ],
+ [
+ 1.809916,
+ "Some"
+ ],
+ [
+ 1.979166,
+ "trinomials"
+ ],
+ [
+ 3.098958,
+ "like"
+ ],
+ [
+ 3.463541,
+ "x"
+ ],
+ [
+ 3.645833,
+ "squared"
+ ],
+ [
+ 4.075541,
+ "plus"
+ ],
+ [
+ 4.388041,
+ "five"
+ ],
+ [
+ 4.726583,
+ "x"
+ ],
+ [
+ 4.895833,
+ "plus"
+ ],
+ [
+ 5.221375,
+ "six"
+ ],
+ [
+ 6.184916,
+ "are"
+ ],
+ [
+ 6.302083,
+ "the"
+ ],
+ [
+ 6.40625,
+ "product"
+ ],
+ [
+ 7.083333,
+ "of"
+ ],
+ [
+ 7.200541,
+ "two"
+ ],
+ [
+ 7.473958,
+ "binomials"
+ ],
+ [
+ 8.854166,
+ "Here's"
+ ],
+ [
+ 8.984375,
+ "how"
+ ],
+ [
+ 9.0495,
+ "to"
+ ],
+ [
+ 9.101583,
+ "find"
+ ],
+ [
+ 9.388041,
+ "them"
+ ]
+ ],
+ "marks": {
+ "sub": 1.81
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter fifty-four."
+ ],
+ [
+ 1.81,
+ "Some trinomials, like x squared plus five x plus six, are the product of two binomials."
+ ],
+ [
+ 8.854,
+ "Here's how to find them."
+ ]
+ ]
+ },
+ "tiles": {
+ "key": "2909f14d1072d4099dabc4bebdf83e0587ad8083",
+ "dur": 31.584,
+ "words": [
+ [
+ 0.117208,
+ "Build"
+ ],
+ [
+ 0.390625,
+ "x"
+ ],
+ [
+ 0.664083,
+ "squared"
+ ],
+ [
+ 1.132833,
+ "plus"
+ ],
+ [
+ 1.666666,
+ "five"
+ ],
+ [
+ 2.161458,
+ "x"
+ ],
+ [
+ 2.382833,
+ "plus"
+ ],
+ [
+ 2.760416,
+ "six"
+ ],
+ [
+ 3.28125,
+ "with"
+ ],
+ [
+ 3.450541,
+ "algebra"
+ ],
+ [
+ 3.880208,
+ "tiles"
+ ],
+ [
+ 4.908875,
+ "one"
+ ],
+ [
+ 5.14325,
+ "x"
+ ],
+ [
+ 5.338541,
+ "squared"
+ ],
+ [
+ 6.145833,
+ "five"
+ ],
+ [
+ 6.458333,
+ "x"
+ ],
+ [
+ 6.627625,
+ "strips"
+ ],
+ [
+ 7.304708,
+ "and"
+ ],
+ [
+ 7.434916,
+ "six"
+ ],
+ [
+ 7.747416,
+ "unit"
+ ],
+ [
+ 7.96875,
+ "squares"
+ ],
+ [
+ 9.0495,
+ "Factoring"
+ ],
+ [
+ 9.804708,
+ "means"
+ ],
+ [
+ 10.039083,
+ "arranging"
+ ],
+ [
+ 10.807291,
+ "all"
+ ],
+ [
+ 11.106791,
+ "of"
+ ],
+ [
+ 11.210958,
+ "them"
+ ],
+ [
+ 11.666666,
+ "into"
+ ],
+ [
+ 11.953125,
+ "one"
+ ],
+ [
+ 12.382833,
+ "rectangle"
+ ],
+ [
+ 13.528666,
+ "Put"
+ ],
+ [
+ 13.671875,
+ "the"
+ ],
+ [
+ 13.776041,
+ "big"
+ ],
+ [
+ 14.075541,
+ "square"
+ ],
+ [
+ 14.544291,
+ "in"
+ ],
+ [
+ 14.609375,
+ "the"
+ ],
+ [
+ 14.6875,
+ "corner"
+ ],
+ [
+ 15.429708,
+ "the"
+ ],
+ [
+ 15.638041,
+ "x"
+ ],
+ [
+ 15.885416,
+ "strips"
+ ],
+ [
+ 16.354166,
+ "along"
+ ],
+ [
+ 16.966166,
+ "two"
+ ],
+ [
+ 17.265625,
+ "sides"
+ ],
+ [
+ 18.190125,
+ "and"
+ ],
+ [
+ 18.320333,
+ "the"
+ ],
+ [
+ 18.398458,
+ "ones"
+ ],
+ [
+ 18.763041,
+ "fill"
+ ],
+ [
+ 18.984375,
+ "the"
+ ],
+ [
+ 19.075541,
+ "corner"
+ ],
+ [
+ 19.388041,
+ "that's"
+ ],
+ [
+ 19.570333,
+ "left"
+ ],
+ [
+ 20.481791,
+ "The"
+ ],
+ [
+ 20.546875,
+ "rectangle"
+ ],
+ [
+ 21.263041,
+ "is"
+ ],
+ [
+ 21.445333,
+ "x"
+ ],
+ [
+ 21.575541,
+ "plus"
+ ],
+ [
+ 21.862,
+ "two"
+ ],
+ [
+ 22.122416,
+ "tall"
+ ],
+ [
+ 22.994791,
+ "and"
+ ],
+ [
+ 23.294291,
+ "x"
+ ],
+ [
+ 23.476583,
+ "plus"
+ ],
+ [
+ 23.802083,
+ "three"
+ ],
+ [
+ 24.075541,
+ "wide"
+ ],
+ [
+ 24.960958,
+ "So"
+ ],
+ [
+ 25.247416,
+ "x"
+ ],
+ [
+ 25.45575,
+ "squared"
+ ],
+ [
+ 25.898458,
+ "plus"
+ ],
+ [
+ 26.223958,
+ "five"
+ ],
+ [
+ 26.588541,
+ "x"
+ ],
+ [
+ 26.783875,
+ "plus"
+ ],
+ [
+ 27.487,
+ "six"
+ ],
+ [
+ 28.085958,
+ "equals"
+ ],
+ [
+ 28.59375,
+ "x"
+ ],
+ [
+ 28.763041,
+ "plus"
+ ],
+ [
+ 29.101583,
+ "two"
+ ],
+ [
+ 29.869791,
+ "times"
+ ],
+ [
+ 30.3125,
+ "x"
+ ],
+ [
+ 30.442708,
+ "plus"
+ ],
+ [
+ 30.742208,
+ "three"
+ ]
+ ],
+ "marks": {
+ "sq": 4.909,
+ "xs": 6.146,
+ "ones": 7.305,
+ "try": 9.05,
+ "corner": 13.529,
+ "side": 15.43,
+ "fill": 18.19,
+ "dims": 20.482,
+ "ans": 24.961
+ },
+ "cues": [
+ [
+ 0.117,
+ "Build x squared plus five x plus six with algebra tiles: one x squared, five x strips, and six unit squares."
+ ],
+ [
+ 9.05,
+ "Factoring means arranging all of them into one rectangle."
+ ],
+ [
+ 13.529,
+ "Put the big square in the corner, the x strips along two sides, and the ones fill the corner that's left."
+ ],
+ [
+ 20.482,
+ "The rectangle is x plus two tall and x plus three wide."
+ ],
+ [
+ 24.961,
+ "So x squared plus five x plus six equals x plus two, times x plus three."
+ ]
+ ]
+ },
+ "why": {
+ "key": "47509a4af0af2d0ce1fe3b030277ff96cad83a59",
+ "dur": 24.264,
+ "words": [
+ [
+ 0.104166,
+ "Why"
+ ],
+ [
+ 0.247416,
+ "those"
+ ],
+ [
+ 0.45575,
+ "numbers"
+ ],
+ [
+ 1.497416,
+ "Multiply"
+ ],
+ [
+ 2.083333,
+ "x"
+ ],
+ [
+ 2.265625,
+ "plus"
+ ],
+ [
+ 2.591166,
+ "d"
+ ],
+ [
+ 2.838541,
+ "by"
+ ],
+ [
+ 3.138041,
+ "x"
+ ],
+ [
+ 3.346375,
+ "plus"
+ ],
+ [
+ 4.010416,
+ "e"
+ ],
+ [
+ 4.127625,
+ "with"
+ ],
+ [
+ 4.296875,
+ "FOIL"
+ ],
+ [
+ 5.208333,
+ "the"
+ ],
+ [
+ 5.325541,
+ "outer"
+ ],
+ [
+ 5.755208,
+ "and"
+ ],
+ [
+ 5.9375,
+ "inner"
+ ],
+ [
+ 6.223958,
+ "terms"
+ ],
+ [
+ 6.653666,
+ "give"
+ ],
+ [
+ 6.875,
+ "d"
+ ],
+ [
+ 7.083333,
+ "x"
+ ],
+ [
+ 7.278666,
+ "plus"
+ ],
+ [
+ 7.604166,
+ "e"
+ ],
+ [
+ 7.734375,
+ "x"
+ ],
+ [
+ 8.645833,
+ "so"
+ ],
+ [
+ 8.815125,
+ "d"
+ ],
+ [
+ 9.036458,
+ "plus"
+ ],
+ [
+ 9.752625,
+ "e"
+ ],
+ [
+ 9.804708,
+ "must"
+ ],
+ [
+ 10.325541,
+ "equal"
+ ],
+ [
+ 10.585958,
+ "b"
+ ],
+ [
+ 11.315125,
+ "The"
+ ],
+ [
+ 11.39325,
+ "last"
+ ],
+ [
+ 11.70575,
+ "terms"
+ ],
+ [
+ 12.109375,
+ "give"
+ ],
+ [
+ 12.34375,
+ "d"
+ ],
+ [
+ 12.552083,
+ "times"
+ ],
+ [
+ 13.398458,
+ "e"
+ ],
+ [
+ 13.997416,
+ "so"
+ ],
+ [
+ 14.153666,
+ "d"
+ ],
+ [
+ 14.375,
+ "times"
+ ],
+ [
+ 15.013041,
+ "e"
+ ],
+ [
+ 15.065125,
+ "must"
+ ],
+ [
+ 15.533875,
+ "equal"
+ ],
+ [
+ 15.820333,
+ "c"
+ ],
+ [
+ 16.731791,
+ "To"
+ ],
+ [
+ 16.809916,
+ "factor"
+ ],
+ [
+ 17.317708,
+ "x"
+ ],
+ [
+ 17.591166,
+ "squared"
+ ],
+ [
+ 18.125,
+ "plus"
+ ],
+ [
+ 18.723958,
+ "b"
+ ],
+ [
+ 18.971375,
+ "x"
+ ],
+ [
+ 19.179708,
+ "plus"
+ ],
+ [
+ 19.557291,
+ "c"
+ ],
+ [
+ 20.507833,
+ "look"
+ ],
+ [
+ 20.638041,
+ "for"
+ ],
+ [
+ 20.76825,
+ "two"
+ ],
+ [
+ 20.976583,
+ "numbers"
+ ],
+ [
+ 21.302083,
+ "that"
+ ],
+ [
+ 21.471375,
+ "multiply"
+ ],
+ [
+ 22.226583,
+ "to"
+ ],
+ [
+ 22.356791,
+ "c"
+ ],
+ [
+ 22.981791,
+ "and"
+ ],
+ [
+ 23.307291,
+ "add"
+ ],
+ [
+ 23.489583,
+ "to"
+ ],
+ [
+ 23.58075,
+ "b"
+ ]
+ ],
+ "marks": {
+ "foil": 1.497,
+ "mid": 5.208,
+ "last": 11.315,
+ "rule": 16.732
+ },
+ "cues": [
+ [
+ 0.104,
+ "Why those numbers?"
+ ],
+ [
+ 1.497,
+ "Multiply x plus d by x plus e with FOIL: the outer and inner terms give d x plus e x, so d plus e must equal b."
+ ],
+ [
+ 11.315,
+ "The last terms give d times e, so d times e must equal c."
+ ],
+ [
+ 16.732,
+ "To factor x squared plus b x plus c, look for two numbers that multiply to c and add to b."
+ ]
+ ]
+ },
+ "table": {
+ "key": "104eec12ebbaefe9728d3ddfcccf24f1fadc7f75",
+ "dur": 22.344,
+ "words": [
+ [
+ 0.14325,
+ "Factor"
+ ],
+ [
+ 0.46875,
+ "x"
+ ],
+ [
+ 0.664083,
+ "squared"
+ ],
+ [
+ 1.132833,
+ "plus"
+ ],
+ [
+ 1.71875,
+ "eight"
+ ],
+ [
+ 2.239583,
+ "x"
+ ],
+ [
+ 2.721375,
+ "plus"
+ ],
+ [
+ 3.046875,
+ "fifteen"
+ ],
+ [
+ 3.984375,
+ "List"
+ ],
+ [
+ 4.192708,
+ "the"
+ ],
+ [
+ 4.270833,
+ "factor"
+ ],
+ [
+ 4.752625,
+ "pairs"
+ ],
+ [
+ 5.104166,
+ "of"
+ ],
+ [
+ 5.169291,
+ "fifteen"
+ ],
+ [
+ 6.315125,
+ "one"
+ ],
+ [
+ 6.5625,
+ "and"
+ ],
+ [
+ 6.692708,
+ "fifteen"
+ ],
+ [
+ 7.682291,
+ "three"
+ ],
+ [
+ 7.981791,
+ "and"
+ ],
+ [
+ 8.046875,
+ "five"
+ ],
+ [
+ 9.023458,
+ "Check"
+ ],
+ [
+ 9.335958,
+ "each"
+ ],
+ [
+ 9.53125,
+ "sum"
+ ],
+ [
+ 10.507833,
+ "one"
+ ],
+ [
+ 10.729166,
+ "plus"
+ ],
+ [
+ 11.002625,
+ "fifteen"
+ ],
+ [
+ 11.588541,
+ "is"
+ ],
+ [
+ 11.731791,
+ "sixteen"
+ ],
+ [
+ 12.695333,
+ "three"
+ ],
+ [
+ 13.059916,
+ "plus"
+ ],
+ [
+ 13.385416,
+ "five"
+ ],
+ [
+ 13.90625,
+ "is"
+ ],
+ [
+ 14.075541,
+ "eight"
+ ],
+ [
+ 14.84375,
+ "That's"
+ ],
+ [
+ 15.052083,
+ "b"
+ ],
+ [
+ 15.820333,
+ "So"
+ ],
+ [
+ 15.911458,
+ "the"
+ ],
+ [
+ 16.015625,
+ "answer"
+ ],
+ [
+ 16.380208,
+ "is"
+ ],
+ [
+ 16.588541,
+ "x"
+ ],
+ [
+ 16.757833,
+ "plus"
+ ],
+ [
+ 17.109375,
+ "three"
+ ],
+ [
+ 17.838541,
+ "times"
+ ],
+ [
+ 18.385416,
+ "x"
+ ],
+ [
+ 18.541666,
+ "plus"
+ ],
+ [
+ 18.841166,
+ "five"
+ ],
+ [
+ 19.765625,
+ "The"
+ ],
+ [
+ 19.83075,
+ "order"
+ ],
+ [
+ 20.091166,
+ "of"
+ ],
+ [
+ 20.182291,
+ "the"
+ ],
+ [
+ 20.286458,
+ "two"
+ ],
+ [
+ 20.572916,
+ "factors"
+ ],
+ [
+ 21.223958,
+ "doesn't"
+ ],
+ [
+ 21.523458,
+ "matter"
+ ]
+ ],
+ "marks": {
+ "list": 3.984,
+ "sums": 9.023,
+ "hit": 12.695,
+ "ans": 15.82,
+ "order": 19.766
+ },
+ "cues": [
+ [
+ 0.143,
+ "Factor x squared plus eight x plus fifteen."
+ ],
+ [
+ 3.984,
+ "List the factor pairs of fifteen: one and fifteen, three and five."
+ ],
+ [
+ 9.023,
+ "Check each sum: one plus fifteen is sixteen, three plus five is eight."
+ ],
+ [
+ 14.844,
+ "That's b."
+ ],
+ [
+ 15.82,
+ "So the answer is x plus three, times x plus five."
+ ],
+ [
+ 19.766,
+ "The order of the two factors doesn't matter."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "7c2c4cfc57f69f8fd6fa64549b430fe231809826",
+ "dur": 2.136,
+ "words": [
+ [
+ 0.091166,
+ "Quick"
+ ],
+ [
+ 0.234375,
+ "check"
+ ],
+ [
+ 1.09375,
+ "Pick"
+ ],
+ [
+ 1.237,
+ "the"
+ ],
+ [
+ 1.328125,
+ "pair"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.094,
+ "Pick the pair."
+ ]
+ ]
+ },
+ "signs": {
+ "key": "841b311523eb944df98afddecff99dc1242e6ef5",
+ "dur": 30.888,
+ "words": [
+ [
+ 0.104166,
+ "Signs"
+ ],
+ [
+ 0.429708,
+ "tell"
+ ],
+ [
+ 0.585958,
+ "you"
+ ],
+ [
+ 0.677083,
+ "where"
+ ],
+ [
+ 0.794291,
+ "to"
+ ],
+ [
+ 0.859375,
+ "look"
+ ],
+ [
+ 1.627625,
+ "If"
+ ],
+ [
+ 1.731791,
+ "c"
+ ],
+ [
+ 1.953125,
+ "is"
+ ],
+ [
+ 2.044291,
+ "positive"
+ ],
+ [
+ 2.929708,
+ "and"
+ ],
+ [
+ 3.072916,
+ "b"
+ ],
+ [
+ 3.4375,
+ "is"
+ ],
+ [
+ 3.541666,
+ "positive"
+ ],
+ [
+ 4.479166,
+ "both"
+ ],
+ [
+ 4.726583,
+ "numbers"
+ ],
+ [
+ 4.973958,
+ "are"
+ ],
+ [
+ 5.065125,
+ "positive"
+ ],
+ [
+ 6.145833,
+ "If"
+ ],
+ [
+ 6.276041,
+ "c"
+ ],
+ [
+ 6.510416,
+ "is"
+ ],
+ [
+ 6.614583,
+ "positive"
+ ],
+ [
+ 7.291666,
+ "but"
+ ],
+ [
+ 7.5,
+ "b"
+ ],
+ [
+ 7.7995,
+ "is"
+ ],
+ [
+ 7.903666,
+ "negative"
+ ],
+ [
+ 8.932291,
+ "both"
+ ],
+ [
+ 9.166666,
+ "numbers"
+ ],
+ [
+ 9.440125,
+ "are"
+ ],
+ [
+ 9.51825,
+ "negative"
+ ],
+ [
+ 10.039083,
+ ": x"
+ ],
+ [
+ 10.612,
+ "squared"
+ ],
+ [
+ 11.067708,
+ "minus"
+ ],
+ [
+ 11.432291,
+ "ten"
+ ],
+ [
+ 11.979166,
+ "x"
+ ],
+ [
+ 12.1745,
+ "plus"
+ ],
+ [
+ 12.434916,
+ "twenty-one"
+ ],
+ [
+ 13.320333,
+ "is"
+ ],
+ [
+ 13.541666,
+ "x"
+ ],
+ [
+ 13.723958,
+ "minus"
+ ],
+ [
+ 14.088541,
+ "three"
+ ],
+ [
+ 15.0,
+ "times"
+ ],
+ [
+ 15.690125,
+ "x"
+ ],
+ [
+ 15.898458,
+ "minus"
+ ],
+ [
+ 16.237,
+ "seven"
+ ],
+ [
+ 17.03125,
+ "If"
+ ],
+ [
+ 17.1745,
+ "c"
+ ],
+ [
+ 17.773458,
+ "is"
+ ],
+ [
+ 17.95575,
+ "negative"
+ ],
+ [
+ 18.984375,
+ "the"
+ ],
+ [
+ 19.0495,
+ "numbers"
+ ],
+ [
+ 19.375,
+ "have"
+ ],
+ [
+ 19.648458,
+ "opposite"
+ ],
+ [
+ 20.104166,
+ "signs"
+ ],
+ [
+ 21.210958,
+ "For"
+ ],
+ [
+ 21.484375,
+ "x"
+ ],
+ [
+ 21.666666,
+ "squared"
+ ],
+ [
+ 22.096375,
+ "plus"
+ ],
+ [
+ 22.578125,
+ "two"
+ ],
+ [
+ 22.981791,
+ "x"
+ ],
+ [
+ 23.528666,
+ "minus"
+ ],
+ [
+ 23.984375,
+ "thirty-five"
+ ],
+ [
+ 25.052083,
+ "the"
+ ],
+ [
+ 25.14325,
+ "pair"
+ ],
+ [
+ 25.46875,
+ "is"
+ ],
+ [
+ 25.572916,
+ "negative"
+ ],
+ [
+ 26.054708,
+ "five"
+ ],
+ [
+ 27.005208,
+ "and"
+ ],
+ [
+ 27.135416,
+ "seven"
+ ],
+ [
+ 27.552083,
+ ": x"
+ ],
+ [
+ 27.7995,
+ "minus"
+ ],
+ [
+ 28.138041,
+ "five"
+ ],
+ [
+ 29.010416,
+ "times"
+ ],
+ [
+ 29.648458,
+ "x"
+ ],
+ [
+ 29.804708,
+ "plus"
+ ],
+ [
+ 30.117208,
+ "seven"
+ ]
+ ],
+ "marks": {
+ "pp": 1.628,
+ "nn": 6.146,
+ "mix": 17.031,
+ "ex": 21.211,
+ "ans": 27.799
+ },
+ "cues": [
+ [
+ 0.104,
+ "Signs tell you where to look."
+ ],
+ [
+ 1.628,
+ "If c is positive and b is positive, both numbers are positive."
+ ],
+ [
+ 6.146,
+ "If c is positive but b is negative, both numbers are negative: x squared minus ten x plus twenty-one is x minus three, times x minus seven."
+ ],
+ [
+ 17.031,
+ "If c is negative, the numbers have opposite signs."
+ ],
+ [
+ 21.211,
+ "For x squared plus two x minus thirty-five, the pair is negative five and seven: x minus five, times x plus seven."
+ ]
+ ]
+ },
+ "careful": {
+ "key": "99ce8e5072196f22c6af481f9f84e4d842de85c8",
+ "dur": 15.624,
+ "words": [
+ [
+ 0.104166,
+ "Be"
+ ],
+ [
+ 0.208333,
+ "careful"
+ ],
+ [
+ 0.598958,
+ "which"
+ ],
+ [
+ 0.78125,
+ "number"
+ ],
+ [
+ 1.054708,
+ "gets"
+ ],
+ [
+ 1.25,
+ "the"
+ ],
+ [
+ 1.341166,
+ "minus"
+ ],
+ [
+ 1.731791,
+ "sign"
+ ],
+ [
+ 2.578125,
+ "x"
+ ],
+ [
+ 2.721375,
+ "plus"
+ ],
+ [
+ 3.020833,
+ "seven"
+ ],
+ [
+ 3.723958,
+ "times"
+ ],
+ [
+ 4.192708,
+ "x"
+ ],
+ [
+ 4.375,
+ "minus"
+ ],
+ [
+ 4.6745,
+ "five"
+ ],
+ [
+ 5.377625,
+ "gives"
+ ],
+ [
+ 5.585958,
+ "plus"
+ ],
+ [
+ 5.911458,
+ "two"
+ ],
+ [
+ 6.197916,
+ "x"
+ ],
+ [
+ 7.1745,
+ "x"
+ ],
+ [
+ 7.34375,
+ "minus"
+ ],
+ [
+ 7.65625,
+ "seven"
+ ],
+ [
+ 8.398458,
+ "times"
+ ],
+ [
+ 8.776041,
+ "x"
+ ],
+ [
+ 8.90625,
+ "plus"
+ ],
+ [
+ 9.192708,
+ "five"
+ ],
+ [
+ 10.052083,
+ "gives"
+ ],
+ [
+ 10.260416,
+ "minus"
+ ],
+ [
+ 10.651041,
+ "two"
+ ],
+ [
+ 10.872416,
+ "x"
+ ],
+ [
+ 11.783875,
+ "They're"
+ ],
+ [
+ 11.888041,
+ "different"
+ ],
+ [
+ 12.1745,
+ "trinomials"
+ ],
+ [
+ 13.242208,
+ "so"
+ ],
+ [
+ 13.450541,
+ "check"
+ ],
+ [
+ 13.697916,
+ "the"
+ ],
+ [
+ 13.776041,
+ "middle"
+ ],
+ [
+ 14.0495,
+ "term"
+ ],
+ [
+ 14.609375,
+ "every"
+ ],
+ [
+ 14.856791,
+ "time"
+ ]
+ ],
+ "marks": {
+ "a": 2.578,
+ "b": 7.175,
+ "diff": 11.784
+ },
+ "cues": [
+ [
+ 0.104,
+ "Be careful which number gets the minus sign."
+ ],
+ [
+ 2.578,
+ "x plus seven, times x minus five, gives plus two x."
+ ],
+ [
+ 7.175,
+ "x minus seven, times x plus five, gives minus two x."
+ ],
+ [
+ 11.784,
+ "They're different trinomials, so check the middle term every time."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "c381e4a42873086444e8f59f7f8f25f624b100ae",
+ "dur": 2.664,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.210958,
+ "Factor"
+ ],
+ [
+ 1.458333,
+ "the"
+ ],
+ [
+ 1.523458,
+ "trinomial"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.211,
+ "Factor the trinomial."
+ ]
+ ]
+ },
+ "none": {
+ "key": "42a53942c074d3c5adc15f383a542b2c37ced8c0",
+ "dur": 19.8,
+ "words": [
+ [
+ 0.104166,
+ "Not"
+ ],
+ [
+ 0.507833,
+ "every"
+ ],
+ [
+ 0.807291,
+ "trinomial"
+ ],
+ [
+ 1.5495,
+ "can"
+ ],
+ [
+ 1.640625,
+ "be"
+ ],
+ [
+ 1.744791,
+ "factored"
+ ],
+ [
+ 2.213541,
+ "this"
+ ],
+ [
+ 2.382833,
+ "way"
+ ],
+ [
+ 3.164083,
+ "Take"
+ ],
+ [
+ 3.359375,
+ "x"
+ ],
+ [
+ 3.541666,
+ "squared"
+ ],
+ [
+ 3.945333,
+ "plus"
+ ],
+ [
+ 4.388041,
+ "five"
+ ],
+ [
+ 4.84375,
+ "x"
+ ],
+ [
+ 5.052083,
+ "plus"
+ ],
+ [
+ 5.416666,
+ "three"
+ ],
+ [
+ 6.263041,
+ "The"
+ ],
+ [
+ 6.419291,
+ "only"
+ ],
+ [
+ 6.770833,
+ "integer"
+ ],
+ [
+ 7.070333,
+ "pairs"
+ ],
+ [
+ 7.434916,
+ "that"
+ ],
+ [
+ 7.604166,
+ "multiply"
+ ],
+ [
+ 8.203125,
+ "to"
+ ],
+ [
+ 8.28125,
+ "three"
+ ],
+ [
+ 8.880208,
+ "are"
+ ],
+ [
+ 9.101583,
+ "one"
+ ],
+ [
+ 9.375,
+ "and"
+ ],
+ [
+ 9.492208,
+ "three"
+ ],
+ [
+ 10.572916,
+ "and"
+ ],
+ [
+ 10.729166,
+ "negative"
+ ],
+ [
+ 11.158875,
+ "one"
+ ],
+ [
+ 11.744791,
+ "and"
+ ],
+ [
+ 11.875,
+ "negative"
+ ],
+ [
+ 12.239583,
+ "three"
+ ],
+ [
+ 13.098958,
+ "Their"
+ ],
+ [
+ 13.229166,
+ "sums"
+ ],
+ [
+ 13.463541,
+ "are"
+ ],
+ [
+ 13.619791,
+ "four"
+ ],
+ [
+ 14.231791,
+ "and"
+ ],
+ [
+ 14.335958,
+ "negative"
+ ],
+ [
+ 14.739583,
+ "four"
+ ],
+ [
+ 15.403666,
+ "never"
+ ],
+ [
+ 15.612,
+ "five"
+ ],
+ [
+ 16.471375,
+ "So"
+ ],
+ [
+ 16.614583,
+ "it"
+ ],
+ [
+ 16.692708,
+ "doesn't"
+ ],
+ [
+ 16.992208,
+ "factor"
+ ],
+ [
+ 17.64325,
+ "into"
+ ],
+ [
+ 17.8125,
+ "binomials"
+ ],
+ [
+ 18.541666,
+ "with"
+ ],
+ [
+ 18.710958,
+ "integers"
+ ]
+ ],
+ "marks": {
+ "ex": 3.164,
+ "pairs": 6.263,
+ "sums": 13.099,
+ "nf": 16.471
+ },
+ "cues": [
+ [
+ 0.104,
+ "Not every trinomial can be factored this way."
+ ],
+ [
+ 3.164,
+ "Take x squared plus five x plus three."
+ ],
+ [
+ 6.263,
+ "The only integer pairs that multiply to three are one and three, and negative one and negative three."
+ ],
+ [
+ 13.099,
+ "Their sums are four and negative four, never five."
+ ],
+ [
+ 16.471,
+ "So it doesn't factor into binomials with integers."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "d4c26d4d7770a751beeba811cbccf96a8aec2245",
+ "dur": 2.208,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.234375,
+ "check"
+ ],
+ [
+ 1.132833,
+ "Who"
+ ],
+ [
+ 1.237,
+ "is"
+ ],
+ [
+ 1.354166,
+ "correct"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Who is correct?"
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "d0464407e796af9bcaca622fdb23910393e84844",
+ "dur": 21.96,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "sum"
+ ],
+ [
+ 0.351583,
+ "up"
+ ],
+ [
+ 0.989583,
+ "To"
+ ],
+ [
+ 1.067708,
+ "factor"
+ ],
+ [
+ 1.536458,
+ "x"
+ ],
+ [
+ 1.809916,
+ "squared"
+ ],
+ [
+ 2.317708,
+ "plus"
+ ],
+ [
+ 2.96875,
+ "b"
+ ],
+ [
+ 3.28125,
+ "x"
+ ],
+ [
+ 3.489583,
+ "plus"
+ ],
+ [
+ 3.880208,
+ "c"
+ ],
+ [
+ 4.817708,
+ "find"
+ ],
+ [
+ 5.130208,
+ "two"
+ ],
+ [
+ 5.3125,
+ "numbers"
+ ],
+ [
+ 5.638041,
+ "that"
+ ],
+ [
+ 5.807291,
+ "multiply"
+ ],
+ [
+ 6.497416,
+ "to"
+ ],
+ [
+ 6.614583,
+ "c"
+ ],
+ [
+ 7.252625,
+ "and"
+ ],
+ [
+ 7.708333,
+ "add"
+ ],
+ [
+ 7.890625,
+ "to"
+ ],
+ [
+ 7.96875,
+ "b"
+ ],
+ [
+ 8.697916,
+ "The"
+ ],
+ [
+ 8.763041,
+ "signs"
+ ],
+ [
+ 9.153666,
+ "of"
+ ],
+ [
+ 9.283875,
+ "b"
+ ],
+ [
+ 9.882833,
+ "and"
+ ],
+ [
+ 10.052083,
+ "c"
+ ],
+ [
+ 10.351583,
+ "tell"
+ ],
+ [
+ 10.585958,
+ "you"
+ ],
+ [
+ 10.690125,
+ "the"
+ ],
+ [
+ 10.794291,
+ "signs"
+ ],
+ [
+ 11.315125,
+ "of"
+ ],
+ [
+ 11.367208,
+ "the"
+ ],
+ [
+ 11.458333,
+ "two"
+ ],
+ [
+ 11.679708,
+ "numbers"
+ ],
+ [
+ 12.708333,
+ "Check"
+ ],
+ [
+ 12.890625,
+ "the"
+ ],
+ [
+ 12.95575,
+ "middle"
+ ],
+ [
+ 13.190125,
+ "term"
+ ],
+ [
+ 13.75,
+ "by"
+ ],
+ [
+ 13.932291,
+ "multiplying"
+ ],
+ [
+ 14.6745,
+ "back"
+ ],
+ [
+ 15.585958,
+ "If"
+ ],
+ [
+ 15.716166,
+ "no"
+ ],
+ [
+ 15.9245,
+ "pair"
+ ],
+ [
+ 16.223958,
+ "works"
+ ],
+ [
+ 16.979166,
+ "the"
+ ],
+ [
+ 17.070333,
+ "trinomial"
+ ],
+ [
+ 17.65625,
+ "can't"
+ ],
+ [
+ 17.916666,
+ "be"
+ ],
+ [
+ 18.033875,
+ "factored"
+ ],
+ [
+ 18.606791,
+ "with"
+ ],
+ [
+ 18.737,
+ "integers"
+ ],
+ [
+ 19.765625,
+ "Now"
+ ],
+ [
+ 20.195333,
+ "try"
+ ],
+ [
+ 20.416666,
+ "the"
+ ],
+ [
+ 20.507833,
+ "chapter"
+ ],
+ [
+ 20.9245,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 0.99,
+ "w2": 8.698,
+ "w3": 12.708,
+ "w4": 15.586,
+ "end": 19.766
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.99,
+ "To factor x squared plus b x plus c, find two numbers that multiply to c and add to b."
+ ],
+ [
+ 8.698,
+ "The signs of b and c tell you the signs of the two numbers."
+ ],
+ [
+ 12.708,
+ "Check the middle term by multiplying back."
+ ],
+ [
+ 15.586,
+ "If no pair works, the trinomial can't be factored with integers."
+ ],
+ [
+ 19.766,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "ae5304332c6f1d0059e38c0d00c7ea81874db50e",
+ "dur": 3.504,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.403666,
+ "practice"
+ ],
+ [
+ 1.5625,
+ "Factor"
+ ],
+ [
+ 2.057291,
+ "each"
+ ],
+ [
+ 2.34375,
+ "trinomial"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.562,
+ "Factor each trinomial."
+ ]
+ ]
+ },
+ "final2": {
+ "key": "78c856ef902ee0ee1ba8fb9b75ed53c1ef60c0cb",
+ "dur": 2.064,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.794291,
+ "can"
+ ],
+ [
+ 0.911458,
+ "it"
+ ],
+ [
+ 0.963541,
+ "be"
+ ],
+ [
+ 1.067708,
+ "factored"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, can it be factored?"
+ ]
+ ]
+ },
+ "final3": {
+ "key": "9d026eb05160730a5221e000227fdf04238e5278",
+ "dur": 2.88,
+ "words": [
+ [
+ 0.091166,
+ "Last"
+ ],
+ [
+ 0.377625,
+ "one"
+ ],
+ [
+ 1.09375,
+ "More"
+ ],
+ [
+ 1.223958,
+ "practice"
+ ],
+ [
+ 1.692708,
+ "with"
+ ],
+ [
+ 1.822916,
+ "signs"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Last one."
+ ],
+ [
+ 1.094,
+ "More practice with signs."
+ ]
+ ]
+ },
+ "finish": {
+ "key": "7f94549418c215dc965d5d709bde929b42195eef",
+ "dur": 5.472,
+ "words": [
+ [
+ 0.104166,
+ "Great"
+ ],
+ [
+ 0.390625,
+ "work"
+ ],
+ [
+ 1.210958,
+ "That's"
+ ],
+ [
+ 1.367208,
+ "the"
+ ],
+ [
+ 1.445333,
+ "end"
+ ],
+ [
+ 1.731791,
+ "of"
+ ],
+ [
+ 1.809916,
+ "chapter"
+ ],
+ [
+ 2.304708,
+ "fifty-four"
+ ],
+ [
+ 3.515625,
+ "factoring"
+ ],
+ [
+ 4.127625,
+ "trinomials"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Great work."
+ ],
+ [
+ 1.211,
+ "That's the end of chapter fifty-four, factoring trinomials."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch55/narration.en.json b/content/ch55/narration.en.json
new file mode 100644
index 0000000..8fa4937
--- /dev/null
+++ b/content/ch55/narration.en.json
@@ -0,0 +1,20 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter fifty-five. [[sub]]When the x squared term has a coefficient other than one, one extra step turns factoring back into a grouping problem.",
+ "form": "Trinomials like two x squared plus seven x plus five have a leading coefficient a that isn't one. [[goal]]We still want two binomials, now in the form d x plus e, times f x plus g. [[foil]]Multiplying them out: [[a]]d times f gives a, [[c]]e times g gives c, [[b]]and the outer and inner products add up to b. [[hard]]Four numbers at once is a lot to guess, so here's a method that finds them step by step.",
+ "ac": "It's called the a c method. [[mult]]First, multiply a by c: two times five is ten. [[pair]]Find two numbers that multiply to ten and add to b, seven. Two and five. [[split]]Split the middle term with them: seven x becomes two x plus five x. [[four]]Now there are four terms, [[group]]so factor by grouping: two x times x plus one, plus five times x plus one. [[ans]]The answer is x plus one, times two x plus five.",
+ "box": "A grid shows the same thing. [[cells]]Put two x squared and five in opposite corners, and the split terms, two x and five x, in the other two. [[rows]]Each row's common factor goes on the left: x for the top row, one for the bottom. [[cols]]Each column's common factor goes on top: two x, and five. [[ans]]The left side and the top are the two factors: x plus one, times two x plus five. [[chk]]Multiply back, and every cell checks out.",
+ "q1": "Quick check. Find the pair for the a c method.",
+ "neg": "Signs work as before. [[q]]Factor three x squared minus ten x plus eight. [[ac]]a times c is twenty-four, and b is negative ten. [[pair]]Both numbers are negative: negative four and negative six. [[split]]Split: three x squared minus four x minus six x plus eight. [[group]]Group: x times three x minus four, minus two times three x minus four. [[ans]]So it's three x minus four, times x minus two.",
+ "negc": "When c is negative, the two numbers have opposite signs. [[q]]Factor five x squared minus twenty-eight x minus twelve. [[ac]]a c is negative sixty, and b is negative twenty-eight. [[pair]]Two and negative thirty work: their product is negative sixty, and their sum is negative twenty-eight. [[split]]Split and group: x times five x plus two, minus six times five x plus two. [[ans]]The answer is five x plus two, times x minus six.",
+ "q2": "Quick check. Factor the trinomial.",
+ "none": "Some trinomials don't factor. [[q]]Try six x squared minus five x plus fourteen. [[ac]]a c is eighty-four, so we need two negative numbers that multiply to eighty-four and add to negative five. [[list]]Check every pair. Their sums run from negative eighty-five up to negative nineteen. [[nf]]None is negative five, so it can't be factored with integers.",
+ "wrap": "To sum up. [[w1]]Multiply a times c. [[w2]]Find two numbers that multiply to a c and add to b. [[w3]]Use them to split the middle term, then factor by grouping. [[w4]]If no pair works, the trinomial doesn't factor with integers. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Factor each trinomial.",
+ "final2": "Next, can it be factored?",
+ "final3": "Last one. Pick the factorization.",
+ "finish": "Well done. That's the end of chapter fifty-five, factoring trinomials when a isn't one."
+ }
+}
\ No newline at end of file
diff --git a/content/ch55/narration.en.timings.json b/content/ch55/narration.en.timings.json
new file mode 100644
index 0000000..650e885
--- /dev/null
+++ b/content/ch55/narration.en.timings.json
@@ -0,0 +1,2570 @@
+{
+ "intro": {
+ "key": "b3bf524505fd69f27a1adcdc3c496a28b06a3565",
+ "dur": 9.264,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.572916,
+ "fifty-five"
+ ],
+ [
+ 1.953125,
+ "When"
+ ],
+ [
+ 2.03125,
+ "the"
+ ],
+ [
+ 2.083333,
+ "x"
+ ],
+ [
+ 2.382833,
+ "squared"
+ ],
+ [
+ 2.747416,
+ "term"
+ ],
+ [
+ 3.216166,
+ "has"
+ ],
+ [
+ 3.398458,
+ "a"
+ ],
+ [
+ 3.450541,
+ "coefficient"
+ ],
+ [
+ 4.21875,
+ "other"
+ ],
+ [
+ 4.440125,
+ "than"
+ ],
+ [
+ 4.609375,
+ "one"
+ ],
+ [
+ 5.377625,
+ "one"
+ ],
+ [
+ 5.651041,
+ "extra"
+ ],
+ [
+ 6.002625,
+ "step"
+ ],
+ [
+ 6.380208,
+ "turns"
+ ],
+ [
+ 6.835958,
+ "factoring"
+ ],
+ [
+ 7.33075,
+ "back"
+ ],
+ [
+ 7.786458,
+ "into"
+ ],
+ [
+ 8.020833,
+ "a"
+ ],
+ [
+ 8.085958,
+ "grouping"
+ ],
+ [
+ 8.4375,
+ "problem"
+ ]
+ ],
+ "marks": {
+ "sub": 1.953
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter fifty-five."
+ ],
+ [
+ 1.953,
+ "When the x squared term has a coefficient other than one, one extra step turns factoring back into a grouping problem."
+ ]
+ ]
+ },
+ "form": {
+ "key": "c2f89280ec8d3a14b1f0cffad48cb4a4625560db",
+ "dur": 28.296,
+ "words": [
+ [
+ 0.104166,
+ "Trinomials"
+ ],
+ [
+ 0.742208,
+ "like"
+ ],
+ [
+ 0.963541,
+ "two"
+ ],
+ [
+ 1.380208,
+ "x"
+ ],
+ [
+ 1.70575,
+ "squared"
+ ],
+ [
+ 2.34375,
+ "plus"
+ ],
+ [
+ 2.682291,
+ "seven"
+ ],
+ [
+ 3.098958,
+ "x"
+ ],
+ [
+ 3.255208,
+ "plus"
+ ],
+ [
+ 3.606791,
+ "five"
+ ],
+ [
+ 4.388041,
+ "have"
+ ],
+ [
+ 4.544291,
+ "a"
+ ],
+ [
+ 4.596375,
+ "leading"
+ ],
+ [
+ 5.0,
+ "coefficient"
+ ],
+ [
+ 5.833333,
+ "a"
+ ],
+ [
+ 5.911458,
+ "that"
+ ],
+ [
+ 6.25,
+ "isn't"
+ ],
+ [
+ 6.471375,
+ "one"
+ ],
+ [
+ 7.1745,
+ "We"
+ ],
+ [
+ 7.265625,
+ "still"
+ ],
+ [
+ 7.617208,
+ "want"
+ ],
+ [
+ 7.877625,
+ "two"
+ ],
+ [
+ 8.151041,
+ "binomials"
+ ],
+ [
+ 9.270833,
+ "now"
+ ],
+ [
+ 9.856791,
+ "in"
+ ],
+ [
+ 9.921875,
+ "the"
+ ],
+ [
+ 10.013041,
+ "form"
+ ],
+ [
+ 10.338541,
+ "d"
+ ],
+ [
+ 10.520833,
+ "x"
+ ],
+ [
+ 10.690125,
+ "plus"
+ ],
+ [
+ 11.067708,
+ "e"
+ ],
+ [
+ 11.888041,
+ "times"
+ ],
+ [
+ 12.591166,
+ "f"
+ ],
+ [
+ 12.903666,
+ "x"
+ ],
+ [
+ 13.085958,
+ "plus"
+ ],
+ [
+ 13.450541,
+ "g"
+ ],
+ [
+ 14.51825,
+ "Multiplying"
+ ],
+ [
+ 15.14325,
+ "them"
+ ],
+ [
+ 15.247416,
+ "out"
+ ],
+ [
+ 16.054708,
+ "d"
+ ],
+ [
+ 16.184916,
+ "times"
+ ],
+ [
+ 16.5625,
+ "f"
+ ],
+ [
+ 16.783875,
+ "gives"
+ ],
+ [
+ 17.122416,
+ "a"
+ ],
+ [
+ 17.591166,
+ "e"
+ ],
+ [
+ 17.682291,
+ "times"
+ ],
+ [
+ 18.085958,
+ "g"
+ ],
+ [
+ 18.398458,
+ "gives"
+ ],
+ [
+ 18.684916,
+ "c"
+ ],
+ [
+ 19.596375,
+ "and"
+ ],
+ [
+ 19.700541,
+ "the"
+ ],
+ [
+ 19.908875,
+ "outer"
+ ],
+ [
+ 20.45575,
+ "and"
+ ],
+ [
+ 20.729166,
+ "inner"
+ ],
+ [
+ 20.963541,
+ "products"
+ ],
+ [
+ 21.39325,
+ "add"
+ ],
+ [
+ 21.588541,
+ "up"
+ ],
+ [
+ 21.692708,
+ "to"
+ ],
+ [
+ 21.757833,
+ "b"
+ ],
+ [
+ 22.539083,
+ "Four"
+ ],
+ [
+ 22.760416,
+ "numbers"
+ ],
+ [
+ 23.098958,
+ "at"
+ ],
+ [
+ 23.203125,
+ "once"
+ ],
+ [
+ 23.697916,
+ "is"
+ ],
+ [
+ 23.802083,
+ "a"
+ ],
+ [
+ 23.841166,
+ "lot"
+ ],
+ [
+ 24.231791,
+ "to"
+ ],
+ [
+ 24.335958,
+ "guess"
+ ],
+ [
+ 25.221375,
+ "so"
+ ],
+ [
+ 25.377625,
+ "here's"
+ ],
+ [
+ 25.625,
+ "a"
+ ],
+ [
+ 25.677083,
+ "method"
+ ],
+ [
+ 26.067708,
+ "that"
+ ],
+ [
+ 26.210958,
+ "finds"
+ ],
+ [
+ 26.653666,
+ "them"
+ ],
+ [
+ 26.796875,
+ "step"
+ ],
+ [
+ 27.278666,
+ "by"
+ ],
+ [
+ 27.434916,
+ "step"
+ ]
+ ],
+ "marks": {
+ "goal": 7.175,
+ "foil": 14.518,
+ "a": 16.055,
+ "c": 17.591,
+ "b": 19.596,
+ "hard": 22.539
+ },
+ "cues": [
+ [
+ 0.104,
+ "Trinomials like two x squared plus seven x plus five have a leading coefficient a that isn't one."
+ ],
+ [
+ 7.175,
+ "We still want two binomials, now in the form d x plus e, times f x plus g."
+ ],
+ [
+ 14.518,
+ "Multiplying them out: d times f gives a, e times g gives c, and the outer and inner products add up to b."
+ ],
+ [
+ 22.539,
+ "Four numbers at once is a lot to guess, so here's a method that finds them step by step."
+ ]
+ ]
+ },
+ "ac": {
+ "key": "46cbb08d5c2cae0a5635ffe89441c7c7b9c5740d",
+ "dur": 29.736,
+ "words": [
+ [
+ 0.104166,
+ "It's"
+ ],
+ [
+ 0.182291,
+ "called"
+ ],
+ [
+ 0.429708,
+ "the"
+ ],
+ [
+ 0.520833,
+ "a"
+ ],
+ [
+ 0.742208,
+ "c"
+ ],
+ [
+ 1.015625,
+ "method"
+ ],
+ [
+ 1.992208,
+ "First"
+ ],
+ [
+ 2.64325,
+ "multiply"
+ ],
+ [
+ 3.216166,
+ "a"
+ ],
+ [
+ 3.28125,
+ "by"
+ ],
+ [
+ 3.450541,
+ "c"
+ ],
+ [
+ 4.440125,
+ "two"
+ ],
+ [
+ 4.635416,
+ "times"
+ ],
+ [
+ 4.987,
+ "five"
+ ],
+ [
+ 5.338541,
+ "is"
+ ],
+ [
+ 5.45575,
+ "ten"
+ ],
+ [
+ 6.289083,
+ "Find"
+ ],
+ [
+ 6.575541,
+ "two"
+ ],
+ [
+ 6.770833,
+ "numbers"
+ ],
+ [
+ 7.122416,
+ "that"
+ ],
+ [
+ 7.291666,
+ "multiply"
+ ],
+ [
+ 8.033875,
+ "to"
+ ],
+ [
+ 8.151041,
+ "ten"
+ ],
+ [
+ 8.971375,
+ "and"
+ ],
+ [
+ 9.140625,
+ "add"
+ ],
+ [
+ 9.427083,
+ "to"
+ ],
+ [
+ 9.53125,
+ "b"
+ ],
+ [
+ 10.325541,
+ "seven"
+ ],
+ [
+ 11.158875,
+ "Two"
+ ],
+ [
+ 11.757833,
+ "and"
+ ],
+ [
+ 11.835958,
+ "five"
+ ],
+ [
+ 12.721375,
+ "Split"
+ ],
+ [
+ 13.046875,
+ "the"
+ ],
+ [
+ 13.138041,
+ "middle"
+ ],
+ [
+ 13.359375,
+ "term"
+ ],
+ [
+ 13.645833,
+ "with"
+ ],
+ [
+ 13.815125,
+ "them"
+ ],
+ [
+ 14.505208,
+ "seven"
+ ],
+ [
+ 14.84375,
+ "x"
+ ],
+ [
+ 15.078125,
+ "becomes"
+ ],
+ [
+ 15.520833,
+ "two"
+ ],
+ [
+ 16.041666,
+ "x"
+ ],
+ [
+ 16.315125,
+ "plus"
+ ],
+ [
+ 16.731791,
+ "five"
+ ],
+ [
+ 17.122416,
+ "x"
+ ],
+ [
+ 18.033875,
+ "Now"
+ ],
+ [
+ 18.177083,
+ "there"
+ ],
+ [
+ 18.307291,
+ "are"
+ ],
+ [
+ 18.450541,
+ "four"
+ ],
+ [
+ 18.815125,
+ "terms"
+ ],
+ [
+ 19.752625,
+ "so"
+ ],
+ [
+ 19.908875,
+ "factor"
+ ],
+ [
+ 20.364583,
+ "by"
+ ],
+ [
+ 20.559916,
+ "grouping"
+ ],
+ [
+ 21.484375,
+ "two"
+ ],
+ [
+ 21.692708,
+ "x"
+ ],
+ [
+ 21.862,
+ "times"
+ ],
+ [
+ 22.239583,
+ "x"
+ ],
+ [
+ 22.369791,
+ "plus"
+ ],
+ [
+ 22.669291,
+ "one"
+ ],
+ [
+ 23.450541,
+ "plus"
+ ],
+ [
+ 23.697916,
+ "five"
+ ],
+ [
+ 24.0495,
+ "times"
+ ],
+ [
+ 24.51825,
+ "x"
+ ],
+ [
+ 24.700541,
+ "plus"
+ ],
+ [
+ 25.0,
+ "one"
+ ],
+ [
+ 25.690125,
+ "The"
+ ],
+ [
+ 25.76825,
+ "answer"
+ ],
+ [
+ 26.119791,
+ "is"
+ ],
+ [
+ 26.341166,
+ "x"
+ ],
+ [
+ 26.5495,
+ "plus"
+ ],
+ [
+ 26.901041,
+ "one"
+ ],
+ [
+ 27.721375,
+ "times"
+ ],
+ [
+ 28.098958,
+ "two"
+ ],
+ [
+ 28.385416,
+ "x"
+ ],
+ [
+ 28.554708,
+ "plus"
+ ],
+ [
+ 28.828125,
+ "five"
+ ]
+ ],
+ "marks": {
+ "mult": 1.992,
+ "pair": 6.289,
+ "split": 12.721,
+ "four": 18.034,
+ "group": 19.753,
+ "ans": 25.69
+ },
+ "cues": [
+ [
+ 0.104,
+ "It's called the a c method."
+ ],
+ [
+ 1.992,
+ "First, multiply a by c: two times five is ten."
+ ],
+ [
+ 6.289,
+ "Find two numbers that multiply to ten and add to b, seven."
+ ],
+ [
+ 11.159,
+ "Two and five."
+ ],
+ [
+ 12.721,
+ "Split the middle term with them: seven x becomes two x plus five x."
+ ],
+ [
+ 18.034,
+ "Now there are four terms, so factor by grouping: two x times x plus one, plus five times x plus one."
+ ],
+ [
+ 25.69,
+ "The answer is x plus one, times two x plus five."
+ ]
+ ]
+ },
+ "box": {
+ "key": "6743d901206d41500d726174184deece8c7031b6",
+ "dur": 28.056,
+ "words": [
+ [
+ 0.091166,
+ "A"
+ ],
+ [
+ 0.169291,
+ "grid"
+ ],
+ [
+ 0.716166,
+ "shows"
+ ],
+ [
+ 1.132833,
+ "the"
+ ],
+ [
+ 1.223958,
+ "same"
+ ],
+ [
+ 1.575541,
+ "thing"
+ ],
+ [
+ 2.395833,
+ "Put"
+ ],
+ [
+ 2.565125,
+ "two"
+ ],
+ [
+ 2.7995,
+ "x"
+ ],
+ [
+ 3.007833,
+ "squared"
+ ],
+ [
+ 3.502625,
+ "and"
+ ],
+ [
+ 3.606791,
+ "five"
+ ],
+ [
+ 4.036458,
+ "in"
+ ],
+ [
+ 4.127625,
+ "opposite"
+ ],
+ [
+ 4.53125,
+ "corners"
+ ],
+ [
+ 5.377625,
+ "and"
+ ],
+ [
+ 5.481791,
+ "the"
+ ],
+ [
+ 5.533875,
+ "split"
+ ],
+ [
+ 5.911458,
+ "terms"
+ ],
+ [
+ 6.71875,
+ "two"
+ ],
+ [
+ 7.057291,
+ "x"
+ ],
+ [
+ 7.408875,
+ "and"
+ ],
+ [
+ 7.526041,
+ "five"
+ ],
+ [
+ 7.903666,
+ "x"
+ ],
+ [
+ 8.58075,
+ "in"
+ ],
+ [
+ 8.658875,
+ "the"
+ ],
+ [
+ 8.723958,
+ "other"
+ ],
+ [
+ 8.945333,
+ "two"
+ ],
+ [
+ 9.726583,
+ "Each"
+ ],
+ [
+ 9.895833,
+ "row's"
+ ],
+ [
+ 10.104166,
+ "common"
+ ],
+ [
+ 10.45575,
+ "factor"
+ ],
+ [
+ 10.885416,
+ "goes"
+ ],
+ [
+ 11.158875,
+ "on"
+ ],
+ [
+ 11.237,
+ "the"
+ ],
+ [
+ 11.328125,
+ "left"
+ ],
+ [
+ 11.70575,
+ ": x"
+ ],
+ [
+ 12.083333,
+ "for"
+ ],
+ [
+ 12.239583,
+ "the"
+ ],
+ [
+ 12.317708,
+ "top"
+ ],
+ [
+ 12.630208,
+ "row"
+ ],
+ [
+ 13.528666,
+ "one"
+ ],
+ [
+ 13.828125,
+ "for"
+ ],
+ [
+ 13.932291,
+ "the"
+ ],
+ [
+ 13.997416,
+ "bottom"
+ ],
+ [
+ 14.791666,
+ "Each"
+ ],
+ [
+ 14.947916,
+ "column's"
+ ],
+ [
+ 15.3125,
+ "common"
+ ],
+ [
+ 15.585958,
+ "factor"
+ ],
+ [
+ 15.963541,
+ "goes"
+ ],
+ [
+ 16.158875,
+ "on"
+ ],
+ [
+ 16.289083,
+ "top"
+ ],
+ [
+ 17.135416,
+ "two"
+ ],
+ [
+ 17.395833,
+ "x"
+ ],
+ [
+ 17.825541,
+ "and"
+ ],
+ [
+ 17.916666,
+ "five"
+ ],
+ [
+ 18.854166,
+ "The"
+ ],
+ [
+ 18.932291,
+ "left"
+ ],
+ [
+ 19.153666,
+ "side"
+ ],
+ [
+ 19.492208,
+ "and"
+ ],
+ [
+ 19.583333,
+ "the"
+ ],
+ [
+ 19.661458,
+ "top"
+ ],
+ [
+ 20.130208,
+ "are"
+ ],
+ [
+ 20.2995,
+ "the"
+ ],
+ [
+ 20.390625,
+ "two"
+ ],
+ [
+ 20.651041,
+ "factors"
+ ],
+ [
+ 21.367208,
+ ": x"
+ ],
+ [
+ 21.5625,
+ "plus"
+ ],
+ [
+ 21.927083,
+ "one"
+ ],
+ [
+ 22.695333,
+ "times"
+ ],
+ [
+ 23.085958,
+ "two"
+ ],
+ [
+ 23.398458,
+ "x"
+ ],
+ [
+ 23.59375,
+ "plus"
+ ],
+ [
+ 23.880208,
+ "five"
+ ],
+ [
+ 24.765625,
+ "Multiply"
+ ],
+ [
+ 25.260416,
+ "back"
+ ],
+ [
+ 26.106791,
+ "and"
+ ],
+ [
+ 26.380208,
+ "every"
+ ],
+ [
+ 26.640625,
+ "cell"
+ ],
+ [
+ 26.992208,
+ "checks"
+ ],
+ [
+ 27.356791,
+ "out"
+ ]
+ ],
+ "marks": {
+ "cells": 2.396,
+ "rows": 9.727,
+ "cols": 14.792,
+ "ans": 18.854,
+ "chk": 24.766
+ },
+ "cues": [
+ [
+ 0.091,
+ "A grid shows the same thing."
+ ],
+ [
+ 2.396,
+ "Put two x squared and five in opposite corners, and the split terms, two x and five x, in the other two."
+ ],
+ [
+ 9.727,
+ "Each row's common factor goes on the left: x for the top row, one for the bottom."
+ ],
+ [
+ 14.792,
+ "Each column's common factor goes on top: two x, and five."
+ ],
+ [
+ 18.854,
+ "The left side and the top are the two factors: x plus one, times two x plus five."
+ ],
+ [
+ 24.766,
+ "Multiply back, and every cell checks out."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "73478b4ccd9b48c807f2f087be4b012e2e914271",
+ "dur": 3.432,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.286458,
+ "check"
+ ],
+ [
+ 1.223958,
+ "Find"
+ ],
+ [
+ 1.40625,
+ "the"
+ ],
+ [
+ 1.471375,
+ "pair"
+ ],
+ [
+ 1.862,
+ "for"
+ ],
+ [
+ 1.953125,
+ "the"
+ ],
+ [
+ 2.1875,
+ "a"
+ ],
+ [
+ 2.34375,
+ "c"
+ ],
+ [
+ 2.591166,
+ "method"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.224,
+ "Find the pair for the a c method."
+ ]
+ ]
+ },
+ "neg": {
+ "key": "76bea54af8ce08afa8977c69cd5019d4b490bc52",
+ "dur": 30.48,
+ "words": [
+ [
+ 0.104166,
+ "Signs"
+ ],
+ [
+ 0.429708,
+ "work"
+ ],
+ [
+ 0.664083,
+ "as"
+ ],
+ [
+ 0.76825,
+ "before"
+ ],
+ [
+ 1.757833,
+ "Factor"
+ ],
+ [
+ 2.161458,
+ "three"
+ ],
+ [
+ 2.552083,
+ "x"
+ ],
+ [
+ 3.164083,
+ "squared"
+ ],
+ [
+ 3.737,
+ "minus"
+ ],
+ [
+ 4.440125,
+ "ten"
+ ],
+ [
+ 5.14325,
+ "x"
+ ],
+ [
+ 5.442708,
+ "plus"
+ ],
+ [
+ 5.859375,
+ "eight"
+ ],
+ [
+ 6.588541,
+ "a"
+ ],
+ [
+ 6.627625,
+ "times"
+ ],
+ [
+ 6.953125,
+ "c"
+ ],
+ [
+ 7.369791,
+ "is"
+ ],
+ [
+ 7.513041,
+ "twenty-four"
+ ],
+ [
+ 8.723958,
+ "and"
+ ],
+ [
+ 8.789083,
+ "b"
+ ],
+ [
+ 9.362,
+ "is"
+ ],
+ [
+ 9.583333,
+ "negative"
+ ],
+ [
+ 10.091166,
+ "ten"
+ ],
+ [
+ 10.872416,
+ "Both"
+ ],
+ [
+ 11.067708,
+ "numbers"
+ ],
+ [
+ 11.39325,
+ "are"
+ ],
+ [
+ 11.445333,
+ "negative"
+ ],
+ [
+ 12.539083,
+ "negative"
+ ],
+ [
+ 13.007833,
+ "four"
+ ],
+ [
+ 13.737,
+ "and"
+ ],
+ [
+ 13.828125,
+ "negative"
+ ],
+ [
+ 14.179708,
+ "six"
+ ],
+ [
+ 15.15625,
+ "Split"
+ ],
+ [
+ 15.963541,
+ "three"
+ ],
+ [
+ 16.237,
+ "x"
+ ],
+ [
+ 16.510416,
+ "squared"
+ ],
+ [
+ 16.953125,
+ "minus"
+ ],
+ [
+ 17.33075,
+ "four"
+ ],
+ [
+ 17.903666,
+ "x"
+ ],
+ [
+ 18.098958,
+ "minus"
+ ],
+ [
+ 18.528666,
+ "six"
+ ],
+ [
+ 19.21875,
+ "x"
+ ],
+ [
+ 19.414083,
+ "plus"
+ ],
+ [
+ 19.778666,
+ "eight"
+ ],
+ [
+ 20.481791,
+ "Group"
+ ],
+ [
+ 20.716166,
+ ": x"
+ ],
+ [
+ 20.911458,
+ "times"
+ ],
+ [
+ 21.588541,
+ "three"
+ ],
+ [
+ 21.992208,
+ "x"
+ ],
+ [
+ 22.239583,
+ "minus"
+ ],
+ [
+ 22.591166,
+ "four"
+ ],
+ [
+ 23.4375,
+ "minus"
+ ],
+ [
+ 23.789083,
+ "two"
+ ],
+ [
+ 24.036458,
+ "times"
+ ],
+ [
+ 24.83075,
+ "three"
+ ],
+ [
+ 25.286458,
+ "x"
+ ],
+ [
+ 25.533875,
+ "minus"
+ ],
+ [
+ 25.859375,
+ "four"
+ ],
+ [
+ 26.692708,
+ "So"
+ ],
+ [
+ 26.848958,
+ "it's"
+ ],
+ [
+ 27.01825,
+ "three"
+ ],
+ [
+ 27.33075,
+ "x"
+ ],
+ [
+ 27.552083,
+ "minus"
+ ],
+ [
+ 27.890625,
+ "four"
+ ],
+ [
+ 28.658875,
+ "times"
+ ],
+ [
+ 29.192708,
+ "x"
+ ],
+ [
+ 29.375,
+ "minus"
+ ],
+ [
+ 29.752625,
+ "two"
+ ]
+ ],
+ "marks": {
+ "q": 1.758,
+ "ac": 6.589,
+ "pair": 10.872,
+ "split": 15.156,
+ "group": 20.482,
+ "ans": 26.693
+ },
+ "cues": [
+ [
+ 0.104,
+ "Signs work as before."
+ ],
+ [
+ 1.758,
+ "Factor three x squared minus ten x plus eight."
+ ],
+ [
+ 6.589,
+ "a times c is twenty-four, and b is negative ten."
+ ],
+ [
+ 10.872,
+ "Both numbers are negative: negative four and negative six."
+ ],
+ [
+ 15.156,
+ "Split: three x squared minus four x minus six x plus eight."
+ ],
+ [
+ 20.482,
+ "Group: x times three x minus four, minus two times three x minus four."
+ ],
+ [
+ 26.693,
+ "So it's three x minus four, times x minus two."
+ ]
+ ]
+ },
+ "negc": {
+ "key": "c38a44394feb473dea2b51565829627fc9d887d2",
+ "dur": 30.84,
+ "words": [
+ [
+ 0.091166,
+ "When"
+ ],
+ [
+ 0.234375,
+ "c"
+ ],
+ [
+ 0.78125,
+ "is"
+ ],
+ [
+ 0.911458,
+ "negative"
+ ],
+ [
+ 1.888041,
+ "the"
+ ],
+ [
+ 2.005208,
+ "two"
+ ],
+ [
+ 2.200541,
+ "numbers"
+ ],
+ [
+ 2.5,
+ "have"
+ ],
+ [
+ 2.838541,
+ "opposite"
+ ],
+ [
+ 3.294291,
+ "signs"
+ ],
+ [
+ 4.427083,
+ "Factor"
+ ],
+ [
+ 4.778666,
+ "five"
+ ],
+ [
+ 5.117208,
+ "x"
+ ],
+ [
+ 5.703125,
+ "squared"
+ ],
+ [
+ 6.184916,
+ "minus"
+ ],
+ [
+ 6.614583,
+ "twenty-eight"
+ ],
+ [
+ 7.239583,
+ "x"
+ ],
+ [
+ 7.695333,
+ "minus"
+ ],
+ [
+ 8.059916,
+ "twelve"
+ ],
+ [
+ 9.023458,
+ "a"
+ ],
+ [
+ 9.127625,
+ "c"
+ ],
+ [
+ 9.479166,
+ "is"
+ ],
+ [
+ 9.635416,
+ "negative"
+ ],
+ [
+ 10.169291,
+ "sixty"
+ ],
+ [
+ 11.25,
+ "and"
+ ],
+ [
+ 11.367208,
+ "b"
+ ],
+ [
+ 11.835958,
+ "is"
+ ],
+ [
+ 11.966166,
+ "negative"
+ ],
+ [
+ 12.5,
+ "twenty-eight"
+ ],
+ [
+ 13.4245,
+ "Two"
+ ],
+ [
+ 13.815125,
+ "and"
+ ],
+ [
+ 13.984375,
+ "negative"
+ ],
+ [
+ 14.492208,
+ "thirty"
+ ],
+ [
+ 14.84375,
+ "work"
+ ],
+ [
+ 15.76825,
+ "their"
+ ],
+ [
+ 15.911458,
+ "product"
+ ],
+ [
+ 16.627625,
+ "is"
+ ],
+ [
+ 16.744791,
+ "negative"
+ ],
+ [
+ 17.33075,
+ "sixty"
+ ],
+ [
+ 18.372416,
+ "and"
+ ],
+ [
+ 18.476583,
+ "their"
+ ],
+ [
+ 18.632833,
+ "sum"
+ ],
+ [
+ 19.322916,
+ "is"
+ ],
+ [
+ 19.440125,
+ "negative"
+ ],
+ [
+ 19.934916,
+ "twenty-eight"
+ ],
+ [
+ 20.859375,
+ "Split"
+ ],
+ [
+ 21.328125,
+ "and"
+ ],
+ [
+ 21.432291,
+ "group"
+ ],
+ [
+ 21.901041,
+ ": x"
+ ],
+ [
+ 22.057291,
+ "times"
+ ],
+ [
+ 22.421875,
+ "five"
+ ],
+ [
+ 22.8125,
+ "x"
+ ],
+ [
+ 22.981791,
+ "plus"
+ ],
+ [
+ 23.333333,
+ "two"
+ ],
+ [
+ 24.166666,
+ "minus"
+ ],
+ [
+ 24.505208,
+ "six"
+ ],
+ [
+ 24.739583,
+ "times"
+ ],
+ [
+ 25.078125,
+ "five"
+ ],
+ [
+ 25.429708,
+ "x"
+ ],
+ [
+ 25.572916,
+ "plus"
+ ],
+ [
+ 25.898458,
+ "two"
+ ],
+ [
+ 26.692708,
+ "The"
+ ],
+ [
+ 26.757833,
+ "answer"
+ ],
+ [
+ 27.070333,
+ "is"
+ ],
+ [
+ 27.1875,
+ "five"
+ ],
+ [
+ 27.526041,
+ "x"
+ ],
+ [
+ 27.695333,
+ "plus"
+ ],
+ [
+ 28.033875,
+ "two"
+ ],
+ [
+ 28.89325,
+ "times"
+ ],
+ [
+ 29.440125,
+ "x"
+ ],
+ [
+ 29.622416,
+ "minus"
+ ],
+ [
+ 29.934916,
+ "six"
+ ]
+ ],
+ "marks": {
+ "q": 4.427,
+ "ac": 9.023,
+ "pair": 13.425,
+ "split": 20.859,
+ "ans": 26.693
+ },
+ "cues": [
+ [
+ 0.091,
+ "When c is negative, the two numbers have opposite signs."
+ ],
+ [
+ 4.427,
+ "Factor five x squared minus twenty-eight x minus twelve."
+ ],
+ [
+ 9.023,
+ "a c is negative sixty, and b is negative twenty-eight."
+ ],
+ [
+ 13.425,
+ "Two and negative thirty work: their product is negative sixty, and their sum is negative twenty-eight."
+ ],
+ [
+ 20.859,
+ "Split and group: x times five x plus two, minus six times five x plus two."
+ ],
+ [
+ 26.693,
+ "The answer is five x plus two, times x minus six."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "c381e4a42873086444e8f59f7f8f25f624b100ae",
+ "dur": 2.664,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.210958,
+ "Factor"
+ ],
+ [
+ 1.458333,
+ "the"
+ ],
+ [
+ 1.523458,
+ "trinomial"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.211,
+ "Factor the trinomial."
+ ]
+ ]
+ },
+ "none": {
+ "key": "2c053cb294ccb128fa805f0945efa1c7135cba09",
+ "dur": 24.648,
+ "words": [
+ [
+ 0.104166,
+ "Some"
+ ],
+ [
+ 0.2995,
+ "trinomials"
+ ],
+ [
+ 1.184916,
+ "don't"
+ ],
+ [
+ 1.432291,
+ "factor"
+ ],
+ [
+ 2.5,
+ "Try"
+ ],
+ [
+ 2.695333,
+ "six"
+ ],
+ [
+ 3.112,
+ "x"
+ ],
+ [
+ 3.75,
+ "squared"
+ ],
+ [
+ 4.296875,
+ "minus"
+ ],
+ [
+ 4.713541,
+ "five"
+ ],
+ [
+ 5.208333,
+ "x"
+ ],
+ [
+ 5.820333,
+ "plus"
+ ],
+ [
+ 6.158875,
+ "fourteen"
+ ],
+ [
+ 7.1745,
+ "a"
+ ],
+ [
+ 7.408875,
+ "c"
+ ],
+ [
+ 8.046875,
+ "is"
+ ],
+ [
+ 8.385416,
+ "eighty-four"
+ ],
+ [
+ 9.427083,
+ "so"
+ ],
+ [
+ 9.51825,
+ "we"
+ ],
+ [
+ 9.609375,
+ "need"
+ ],
+ [
+ 9.869791,
+ "two"
+ ],
+ [
+ 10.091166,
+ "negative"
+ ],
+ [
+ 10.507833,
+ "numbers"
+ ],
+ [
+ 10.872416,
+ "that"
+ ],
+ [
+ 11.054708,
+ "multiply"
+ ],
+ [
+ 11.809916,
+ "to"
+ ],
+ [
+ 12.01825,
+ "eighty-four"
+ ],
+ [
+ 12.773458,
+ "and"
+ ],
+ [
+ 12.916666,
+ "add"
+ ],
+ [
+ 13.26825,
+ "to"
+ ],
+ [
+ 13.346375,
+ "negative"
+ ],
+ [
+ 13.789083,
+ "five"
+ ],
+ [
+ 14.739583,
+ "Check"
+ ],
+ [
+ 15.130208,
+ "every"
+ ],
+ [
+ 15.377625,
+ "pair"
+ ],
+ [
+ 16.276041,
+ "Their"
+ ],
+ [
+ 16.419291,
+ "sums"
+ ],
+ [
+ 16.679708,
+ "run"
+ ],
+ [
+ 17.005208,
+ "from"
+ ],
+ [
+ 17.226583,
+ "negative"
+ ],
+ [
+ 17.65625,
+ "eighty-five"
+ ],
+ [
+ 18.255208,
+ "up"
+ ],
+ [
+ 18.710958,
+ "to"
+ ],
+ [
+ 18.815125,
+ "negative"
+ ],
+ [
+ 19.309916,
+ "nineteen"
+ ],
+ [
+ 20.338541,
+ "None"
+ ],
+ [
+ 20.716166,
+ "is"
+ ],
+ [
+ 20.872416,
+ "negative"
+ ],
+ [
+ 21.40625,
+ "five"
+ ],
+ [
+ 22.34375,
+ "so"
+ ],
+ [
+ 22.487,
+ "it"
+ ],
+ [
+ 22.539083,
+ "can't"
+ ],
+ [
+ 22.8125,
+ "be"
+ ],
+ [
+ 22.929708,
+ "factored"
+ ],
+ [
+ 23.515625,
+ "with"
+ ],
+ [
+ 23.645833,
+ "integers"
+ ]
+ ],
+ "marks": {
+ "q": 2.5,
+ "ac": 7.175,
+ "list": 14.74,
+ "nf": 20.339
+ },
+ "cues": [
+ [
+ 0.104,
+ "Some trinomials don't factor."
+ ],
+ [
+ 2.5,
+ "Try six x squared minus five x plus fourteen."
+ ],
+ [
+ 7.175,
+ "a c is eighty-four, so we need two negative numbers that multiply to eighty-four and add to negative five."
+ ],
+ [
+ 14.74,
+ "Check every pair."
+ ],
+ [
+ 16.276,
+ "Their sums run from negative eighty-five up to negative nineteen."
+ ],
+ [
+ 20.339,
+ "None is negative five, so it can't be factored with integers."
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "55f2df549e3e0555df1c0773cd51ec36aefff148",
+ "dur": 17.544,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "sum"
+ ],
+ [
+ 0.364583,
+ "up"
+ ],
+ [
+ 1.002625,
+ "Multiply"
+ ],
+ [
+ 1.5495,
+ "a"
+ ],
+ [
+ 1.614583,
+ "times"
+ ],
+ [
+ 2.044291,
+ "c"
+ ],
+ [
+ 3.072916,
+ "Find"
+ ],
+ [
+ 3.411458,
+ "two"
+ ],
+ [
+ 3.606791,
+ "numbers"
+ ],
+ [
+ 3.945333,
+ "that"
+ ],
+ [
+ 4.088541,
+ "multiply"
+ ],
+ [
+ 4.739583,
+ "to"
+ ],
+ [
+ 4.947916,
+ "a"
+ ],
+ [
+ 5.14325,
+ "c"
+ ],
+ [
+ 5.664083,
+ "and"
+ ],
+ [
+ 6.106791,
+ "add"
+ ],
+ [
+ 6.302083,
+ "to"
+ ],
+ [
+ 6.380208,
+ "b"
+ ],
+ [
+ 7.252625,
+ "Use"
+ ],
+ [
+ 7.421875,
+ "them"
+ ],
+ [
+ 7.578125,
+ "to"
+ ],
+ [
+ 7.630208,
+ "split"
+ ],
+ [
+ 8.059916,
+ "the"
+ ],
+ [
+ 8.138041,
+ "middle"
+ ],
+ [
+ 8.4245,
+ "term"
+ ],
+ [
+ 9.283875,
+ "then"
+ ],
+ [
+ 9.414083,
+ "factor"
+ ],
+ [
+ 9.895833,
+ "by"
+ ],
+ [
+ 10.039083,
+ "grouping"
+ ],
+ [
+ 10.898458,
+ "If"
+ ],
+ [
+ 11.054708,
+ "no"
+ ],
+ [
+ 11.276041,
+ "pair"
+ ],
+ [
+ 11.627625,
+ "works"
+ ],
+ [
+ 12.395833,
+ "the"
+ ],
+ [
+ 12.473958,
+ "trinomial"
+ ],
+ [
+ 13.307291,
+ "doesn't"
+ ],
+ [
+ 13.684916,
+ "factor"
+ ],
+ [
+ 14.21875,
+ "with"
+ ],
+ [
+ 14.362,
+ "integers"
+ ],
+ [
+ 15.377625,
+ "Now"
+ ],
+ [
+ 15.755208,
+ "try"
+ ],
+ [
+ 15.963541,
+ "the"
+ ],
+ [
+ 16.054708,
+ "chapter"
+ ],
+ [
+ 16.471375,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 1.003,
+ "w2": 3.073,
+ "w3": 7.253,
+ "w4": 10.898,
+ "end": 15.378
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.003,
+ "Multiply a times c."
+ ],
+ [
+ 3.073,
+ "Find two numbers that multiply to a c and add to b."
+ ],
+ [
+ 7.253,
+ "Use them to split the middle term, then factor by grouping."
+ ],
+ [
+ 10.898,
+ "If no pair works, the trinomial doesn't factor with integers."
+ ],
+ [
+ 15.378,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "ae5304332c6f1d0059e38c0d00c7ea81874db50e",
+ "dur": 3.504,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.403666,
+ "practice"
+ ],
+ [
+ 1.5625,
+ "Factor"
+ ],
+ [
+ 2.057291,
+ "each"
+ ],
+ [
+ 2.34375,
+ "trinomial"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.562,
+ "Factor each trinomial."
+ ]
+ ]
+ },
+ "final2": {
+ "key": "78c856ef902ee0ee1ba8fb9b75ed53c1ef60c0cb",
+ "dur": 2.064,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.794291,
+ "can"
+ ],
+ [
+ 0.911458,
+ "it"
+ ],
+ [
+ 0.963541,
+ "be"
+ ],
+ [
+ 1.067708,
+ "factored"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, can it be factored?"
+ ]
+ ]
+ },
+ "final3": {
+ "key": "9d97ce3b07eaa92daa0d2c9fa95a6259e21da7e1",
+ "dur": 2.76,
+ "words": [
+ [
+ 0.091166,
+ "Last"
+ ],
+ [
+ 0.364583,
+ "one"
+ ],
+ [
+ 1.119791,
+ "Pick"
+ ],
+ [
+ 1.289083,
+ "the"
+ ],
+ [
+ 1.380208,
+ "factorization"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Last one."
+ ],
+ [
+ 1.12,
+ "Pick the factorization."
+ ]
+ ]
+ },
+ "finish": {
+ "key": "b8e2b581820e650b7086765ba566056d85e81b6f",
+ "dur": 6.408,
+ "words": [
+ [
+ 0.104166,
+ "Well"
+ ],
+ [
+ 0.273458,
+ "done"
+ ],
+ [
+ 1.119791,
+ "That's"
+ ],
+ [
+ 1.302083,
+ "the"
+ ],
+ [
+ 1.40625,
+ "end"
+ ],
+ [
+ 1.679708,
+ "of"
+ ],
+ [
+ 1.783875,
+ "chapter"
+ ],
+ [
+ 2.382833,
+ "fifty-five"
+ ],
+ [
+ 3.789083,
+ "factoring"
+ ],
+ [
+ 4.296875,
+ "trinomials"
+ ],
+ [
+ 5.286458,
+ "when"
+ ],
+ [
+ 5.416666,
+ "a"
+ ],
+ [
+ 5.481791,
+ "isn't"
+ ],
+ [
+ 5.755208,
+ "one"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Well done."
+ ],
+ [
+ 1.12,
+ "That's the end of chapter fifty-five, factoring trinomials when a isn't one."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/content/ch56/narration.en.json b/content/ch56/narration.en.json
new file mode 100644
index 0000000..2e1a395
--- /dev/null
+++ b/content/ch56/narration.en.json
@@ -0,0 +1,21 @@
+{
+ "voice": "en-US-AndrewMultilingualNeural",
+ "rate": "-4%",
+ "beats": {
+ "intro": "Chapter fifty-six. [[sub]]A few patterns show up so often that it pays to recognize them on sight.",
+ "dos": "The first pattern is a difference of two squares: a squared minus b squared. [[sq]]Start with a big square, a by a. [[cut]]Cut a small b by b square out of its corner. The area left is a squared minus b squared. [[slice]]Slice the leftover shape into two rectangles, [[move]]and swing one of them around to the side. [[rect]]Now it's one rectangle: a plus b long, and a minus b wide. [[ans]]So a squared minus b squared equals a plus b, times a minus b.",
+ "dosex": "To use it, ask: is each term a perfect square? [[ex]]Take a squared minus eighty-one b squared. [[sq]]a squared is a, squared, and eighty-one b squared is nine b, squared. [[ans]]So it factors into a plus nine b, times a minus nine b. [[no]]There's no such pattern for a sum of two squares: a squared plus b squared doesn't factor with real numbers.",
+ "q1": "Quick check. Factor the difference of squares.",
+ "pst": "The second pattern is a perfect square trinomial. [[sq]]Picture a plus b, squared, as a square with side a plus b. [[parts]]It splits into an a squared square, a b squared square, and two a b rectangles. [[sum]]So a plus b, squared, equals a squared plus two a b plus b squared. [[minus]]And a minus b, squared, equals a squared minus two a b plus b squared. [[test]]To spot one, check three things: the first and last terms are perfect squares, and the middle term is twice the product of their square roots.",
+ "pstex": "Try four m squared minus twenty m n plus twenty-five n squared. [[ends]]The ends are two m, squared, and five n, squared. [[mid]]Twice two m times five n is twenty m n: that matches the middle term. [[sign]]The middle sign is minus, [[ans]]so it's two m minus five n, squared.",
+ "q2": "Quick check. Is it a perfect square?",
+ "cubes": "Two more patterns work with cubes. [[sum]]A sum of two cubes: a cubed plus b cubed equals a plus b, times a squared minus a b plus b squared. [[diff]]A difference of two cubes: a cubed minus b cubed equals a minus b, times a squared plus a b plus b squared. [[soap]]Notice the signs. The first sign matches the original, the middle sign is the opposite, and the last sign is always positive. [[ex]]For example, a cubed plus eight b cubed. [[cube]]Eight b cubed is two b, cubed. [[ans]]So it's a plus two b, times a squared minus two a b plus four b squared.",
+ "q3": "Quick check. Factor the sum of cubes.",
+ "combo": "Always look for a GCF first. [[ex]]Factor eighteen a x squared minus thirty-two a. [[gcf]]Both terms share two a. [[left]]What's left is nine x squared minus sixteen, [[dos]]a difference of squares: three x, squared, minus four, squared. [[ans]]So the answer is two a, times three x plus four, times three x minus four.",
+ "wrap": "To sum up. [[w1]]Difference of squares: a squared minus b squared is a plus b, times a minus b. [[w2]]Perfect square trinomial: a squared plus or minus two a b plus b squared is a plus or minus b, squared. [[w3]]Sum and difference of cubes follow their own patterns. [[w4]]Take out a GCF first, then look for a pattern. [[end]]Now try the chapter practice.",
+ "final1": "Chapter practice. Which pattern fits?",
+ "final2": "Next, factor using the patterns.",
+ "final3": "Last one. GCF first, then a pattern.",
+ "finish": "Great work. That's the end of chapter fifty-six, and of unit ten."
+ }
+}
diff --git a/content/ch56/narration.en.timings.json b/content/ch56/narration.en.timings.json
new file mode 100644
index 0000000..299ef7b
--- /dev/null
+++ b/content/ch56/narration.en.timings.json
@@ -0,0 +1,2725 @@
+{
+ "intro": {
+ "key": "9d0844580784c6718a25d3dd1449f2a5399cc76d",
+ "dur": 6.96,
+ "words": [
+ [
+ 0.104166,
+ "Chapter"
+ ],
+ [
+ 0.533875,
+ "fifty-six"
+ ],
+ [
+ 1.940125,
+ "A"
+ ],
+ [
+ 2.005208,
+ "few"
+ ],
+ [
+ 2.265625,
+ "patterns"
+ ],
+ [
+ 2.708333,
+ "show"
+ ],
+ [
+ 2.981791,
+ "up"
+ ],
+ [
+ 3.333333,
+ "so"
+ ],
+ [
+ 3.828125,
+ "often"
+ ],
+ [
+ 4.270833,
+ "that"
+ ],
+ [
+ 4.401041,
+ "it"
+ ],
+ [
+ 4.505208,
+ "pays"
+ ],
+ [
+ 4.973958,
+ "to"
+ ],
+ [
+ 5.091166,
+ "recognize"
+ ],
+ [
+ 5.742208,
+ "them"
+ ],
+ [
+ 5.872416,
+ "on"
+ ],
+ [
+ 6.054708,
+ "sight"
+ ]
+ ],
+ "marks": {
+ "sub": 1.94
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter fifty-six."
+ ],
+ [
+ 1.94,
+ "A few patterns show up so often that it pays to recognize them on sight."
+ ]
+ ]
+ },
+ "dos": {
+ "key": "0fd8d9d4bcbbaf207ca899b29543fc30398722df",
+ "dur": 30.504,
+ "words": [
+ [
+ 0.104166,
+ "The"
+ ],
+ [
+ 0.169291,
+ "first"
+ ],
+ [
+ 0.416666,
+ "pattern"
+ ],
+ [
+ 0.755208,
+ "is"
+ ],
+ [
+ 0.898458,
+ "a"
+ ],
+ [
+ 0.989583,
+ "difference"
+ ],
+ [
+ 1.445333,
+ "of"
+ ],
+ [
+ 1.575541,
+ "two"
+ ],
+ [
+ 1.862,
+ "squares"
+ ],
+ [
+ 2.981791,
+ "a"
+ ],
+ [
+ 3.033875,
+ "squared"
+ ],
+ [
+ 3.502625,
+ "minus"
+ ],
+ [
+ 3.89325,
+ "b"
+ ],
+ [
+ 4.0625,
+ "squared"
+ ],
+ [
+ 5.0,
+ "Start"
+ ],
+ [
+ 5.195333,
+ "with"
+ ],
+ [
+ 5.3125,
+ "a"
+ ],
+ [
+ 5.390625,
+ "big"
+ ],
+ [
+ 5.664083,
+ "square"
+ ],
+ [
+ 6.71875,
+ "a"
+ ],
+ [
+ 6.757833,
+ "by"
+ ],
+ [
+ 7.304708,
+ "a"
+ ],
+ [
+ 8.216166,
+ "Cut"
+ ],
+ [
+ 8.385416,
+ "a"
+ ],
+ [
+ 8.4245,
+ "small"
+ ],
+ [
+ 8.789083,
+ "b"
+ ],
+ [
+ 8.984375,
+ "by"
+ ],
+ [
+ 9.179708,
+ "b"
+ ],
+ [
+ 9.427083,
+ "square"
+ ],
+ [
+ 9.973958,
+ "out"
+ ],
+ [
+ 10.091166,
+ "of"
+ ],
+ [
+ 10.15625,
+ "its"
+ ],
+ [
+ 10.273458,
+ "corner"
+ ],
+ [
+ 11.171875,
+ "The"
+ ],
+ [
+ 11.237,
+ "area"
+ ],
+ [
+ 11.614583,
+ "left"
+ ],
+ [
+ 12.200541,
+ "is"
+ ],
+ [
+ 12.317708,
+ "a"
+ ],
+ [
+ 12.382833,
+ "squared"
+ ],
+ [
+ 12.95575,
+ "minus"
+ ],
+ [
+ 13.359375,
+ "b"
+ ],
+ [
+ 13.515625,
+ "squared"
+ ],
+ [
+ 14.440125,
+ "Slice"
+ ],
+ [
+ 14.84375,
+ "the"
+ ],
+ [
+ 14.960958,
+ "leftover"
+ ],
+ [
+ 15.507833,
+ "shape"
+ ],
+ [
+ 16.054708,
+ "into"
+ ],
+ [
+ 16.289083,
+ "two"
+ ],
+ [
+ 16.614583,
+ "rectangles"
+ ],
+ [
+ 17.838541,
+ "and"
+ ],
+ [
+ 17.994791,
+ "swing"
+ ],
+ [
+ 18.4375,
+ "one"
+ ],
+ [
+ 18.567708,
+ "of"
+ ],
+ [
+ 18.619791,
+ "them"
+ ],
+ [
+ 18.75,
+ "around"
+ ],
+ [
+ 19.153666,
+ "to"
+ ],
+ [
+ 19.20575,
+ "the"
+ ],
+ [
+ 19.296875,
+ "side"
+ ],
+ [
+ 20.208333,
+ "Now"
+ ],
+ [
+ 20.338541,
+ "it's"
+ ],
+ [
+ 20.45575,
+ "one"
+ ],
+ [
+ 20.755208,
+ "rectangle"
+ ],
+ [
+ 21.822916,
+ "a"
+ ],
+ [
+ 21.862,
+ "plus"
+ ],
+ [
+ 22.1875,
+ "b"
+ ],
+ [
+ 22.33075,
+ "long"
+ ],
+ [
+ 23.164083,
+ "and"
+ ],
+ [
+ 23.554708,
+ "a"
+ ],
+ [
+ 23.59375,
+ "minus"
+ ],
+ [
+ 24.140625,
+ "b"
+ ],
+ [
+ 24.296875,
+ "wide"
+ ],
+ [
+ 25.221375,
+ "So"
+ ],
+ [
+ 25.403666,
+ "a"
+ ],
+ [
+ 25.46875,
+ "squared"
+ ],
+ [
+ 25.911458,
+ "minus"
+ ],
+ [
+ 26.380208,
+ "b"
+ ],
+ [
+ 26.601583,
+ "squared"
+ ],
+ [
+ 27.265625,
+ "equals"
+ ],
+ [
+ 27.682291,
+ "a"
+ ],
+ [
+ 27.747416,
+ "plus"
+ ],
+ [
+ 28.125,
+ "b"
+ ],
+ [
+ 28.919291,
+ "times"
+ ],
+ [
+ 29.257833,
+ "a"
+ ],
+ [
+ 29.309916,
+ "minus"
+ ],
+ [
+ 29.778666,
+ "b"
+ ]
+ ],
+ "marks": {
+ "sq": 5.0,
+ "cut": 8.216,
+ "slice": 14.44,
+ "move": 17.839,
+ "rect": 20.208,
+ "ans": 25.221
+ },
+ "cues": [
+ [
+ 0.104,
+ "The first pattern is a difference of two squares: a squared minus b squared."
+ ],
+ [
+ 5.0,
+ "Start with a big square, a by a."
+ ],
+ [
+ 8.216,
+ "Cut a small b by b square out of its corner."
+ ],
+ [
+ 11.172,
+ "The area left is a squared minus b squared."
+ ],
+ [
+ 14.44,
+ "Slice the leftover shape into two rectangles, and swing one of them around to the side."
+ ],
+ [
+ 20.208,
+ "Now it's one rectangle: a plus b long, and a minus b wide."
+ ],
+ [
+ 25.221,
+ "So a squared minus b squared equals a plus b, times a minus b."
+ ]
+ ]
+ },
+ "dosex": {
+ "key": "f2aaa0f6878684f16fb8f98942b1927ec5dd9a84",
+ "dur": 25.128,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "use"
+ ],
+ [
+ 0.45575,
+ "it"
+ ],
+ [
+ 1.132833,
+ "ask"
+ ],
+ [
+ 2.083333,
+ "is"
+ ],
+ [
+ 2.239583,
+ "each"
+ ],
+ [
+ 2.421875,
+ "term"
+ ],
+ [
+ 2.64325,
+ "a"
+ ],
+ [
+ 2.695333,
+ "perfect"
+ ],
+ [
+ 3.125,
+ "square"
+ ],
+ [
+ 4.0495,
+ "Take"
+ ],
+ [
+ 4.20575,
+ "a"
+ ],
+ [
+ 4.257833,
+ "squared"
+ ],
+ [
+ 4.726583,
+ "minus"
+ ],
+ [
+ 5.45575,
+ "eighty-one"
+ ],
+ [
+ 5.9375,
+ "b"
+ ],
+ [
+ 6.09375,
+ "squared"
+ ],
+ [
+ 7.057291,
+ "a"
+ ],
+ [
+ 7.122416,
+ "squared"
+ ],
+ [
+ 7.695333,
+ "is"
+ ],
+ [
+ 8.177083,
+ "a"
+ ],
+ [
+ 8.75,
+ "squared"
+ ],
+ [
+ 9.752625,
+ "and"
+ ],
+ [
+ 10.117208,
+ "eighty-one"
+ ],
+ [
+ 10.507833,
+ "b"
+ ],
+ [
+ 10.651041,
+ "squared"
+ ],
+ [
+ 11.39325,
+ "is"
+ ],
+ [
+ 11.5625,
+ "nine"
+ ],
+ [
+ 11.992208,
+ "b"
+ ],
+ [
+ 12.630208,
+ "squared"
+ ],
+ [
+ 13.606791,
+ "So"
+ ],
+ [
+ 13.737,
+ "it"
+ ],
+ [
+ 13.828125,
+ "factors"
+ ],
+ [
+ 14.414083,
+ "into"
+ ],
+ [
+ 14.635416,
+ "a"
+ ],
+ [
+ 14.726583,
+ "plus"
+ ],
+ [
+ 15.078125,
+ "nine"
+ ],
+ [
+ 15.390625,
+ "b"
+ ],
+ [
+ 16.289083,
+ "times"
+ ],
+ [
+ 16.614583,
+ "a"
+ ],
+ [
+ 16.653666,
+ "minus"
+ ],
+ [
+ 17.200541,
+ "nine"
+ ],
+ [
+ 17.552083,
+ "b"
+ ],
+ [
+ 18.359375,
+ "There's"
+ ],
+ [
+ 18.476583,
+ "no"
+ ],
+ [
+ 18.658875,
+ "such"
+ ],
+ [
+ 18.932291,
+ "pattern"
+ ],
+ [
+ 19.296875,
+ "for"
+ ],
+ [
+ 19.440125,
+ "a"
+ ],
+ [
+ 19.479166,
+ "sum"
+ ],
+ [
+ 19.726583,
+ "of"
+ ],
+ [
+ 19.84375,
+ "two"
+ ],
+ [
+ 20.091166,
+ "squares"
+ ],
+ [
+ 21.237,
+ "a"
+ ],
+ [
+ 21.276041,
+ "squared"
+ ],
+ [
+ 21.679708,
+ "plus"
+ ],
+ [
+ 21.979166,
+ "b"
+ ],
+ [
+ 22.122416,
+ "squared"
+ ],
+ [
+ 22.864583,
+ "doesn't"
+ ],
+ [
+ 23.203125,
+ "factor"
+ ],
+ [
+ 23.802083,
+ "with"
+ ],
+ [
+ 23.932291,
+ "real"
+ ],
+ [
+ 24.21875,
+ "numbers"
+ ]
+ ],
+ "marks": {
+ "ex": 4.05,
+ "sq": 7.057,
+ "ans": 13.607,
+ "no": 18.359
+ },
+ "cues": [
+ [
+ 0.104,
+ "To use it, ask: is each term a perfect square?"
+ ],
+ [
+ 4.05,
+ "Take a squared minus eighty-one b squared."
+ ],
+ [
+ 7.057,
+ "a squared is a, squared, and eighty-one b squared is nine b, squared."
+ ],
+ [
+ 13.607,
+ "So it factors into a plus nine b, times a minus nine b."
+ ],
+ [
+ 18.359,
+ "There's no such pattern for a sum of two squares: a squared plus b squared doesn't factor with real numbers."
+ ]
+ ]
+ },
+ "q1": {
+ "key": "1a5f47362d1f7c39a776151dae344062fdadb2c8",
+ "dur": 3.192,
+ "words": [
+ [
+ 0.091166,
+ "Quick"
+ ],
+ [
+ 0.247416,
+ "check"
+ ],
+ [
+ 1.197916,
+ "Factor"
+ ],
+ [
+ 1.497416,
+ "the"
+ ],
+ [
+ 1.588541,
+ "difference"
+ ],
+ [
+ 1.979166,
+ "of"
+ ],
+ [
+ 2.044291,
+ "squares"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.198,
+ "Factor the difference of squares."
+ ]
+ ]
+ },
+ "pst": {
+ "key": "090f7caa8bc62e796bf979cb7cea89643b460e83",
+ "dur": 37.128,
+ "words": [
+ [
+ 0.104166,
+ "The"
+ ],
+ [
+ 0.169291,
+ "second"
+ ],
+ [
+ 0.533875,
+ "pattern"
+ ],
+ [
+ 1.132833,
+ "is"
+ ],
+ [
+ 1.223958,
+ "a"
+ ],
+ [
+ 1.315125,
+ "perfect"
+ ],
+ [
+ 1.809916,
+ "square"
+ ],
+ [
+ 2.695333,
+ "trinomial"
+ ],
+ [
+ 3.90625,
+ "Picture"
+ ],
+ [
+ 4.21875,
+ "a"
+ ],
+ [
+ 4.270833,
+ "plus"
+ ],
+ [
+ 4.661458,
+ "b"
+ ],
+ [
+ 5.338541,
+ "squared"
+ ],
+ [
+ 6.471375,
+ "as"
+ ],
+ [
+ 6.5625,
+ "a"
+ ],
+ [
+ 6.627625,
+ "square"
+ ],
+ [
+ 7.135416,
+ "with"
+ ],
+ [
+ 7.252625,
+ "side"
+ ],
+ [
+ 7.604166,
+ "a"
+ ],
+ [
+ 7.64325,
+ "plus"
+ ],
+ [
+ 7.994791,
+ "b"
+ ],
+ [
+ 8.75,
+ "It"
+ ],
+ [
+ 8.828125,
+ "splits"
+ ],
+ [
+ 9.257833,
+ "into"
+ ],
+ [
+ 9.414083,
+ "an"
+ ],
+ [
+ 9.466166,
+ "a"
+ ],
+ [
+ 9.51825,
+ "squared"
+ ],
+ [
+ 10.013041,
+ "square"
+ ],
+ [
+ 11.041666,
+ "a"
+ ],
+ [
+ 11.067708,
+ "b"
+ ],
+ [
+ 11.263041,
+ "squared"
+ ],
+ [
+ 11.679708,
+ "square"
+ ],
+ [
+ 12.64325,
+ "and"
+ ],
+ [
+ 12.734375,
+ "two"
+ ],
+ [
+ 13.320333,
+ "a"
+ ],
+ [
+ 13.502625,
+ "b"
+ ],
+ [
+ 13.697916,
+ "rectangles"
+ ],
+ [
+ 15.0,
+ "So"
+ ],
+ [
+ 15.195333,
+ "a"
+ ],
+ [
+ 15.260416,
+ "plus"
+ ],
+ [
+ 15.585958,
+ "b"
+ ],
+ [
+ 16.25,
+ "squared"
+ ],
+ [
+ 17.278666,
+ "equals"
+ ],
+ [
+ 17.552083,
+ "a"
+ ],
+ [
+ 17.617208,
+ "squared"
+ ],
+ [
+ 18.046875,
+ "plus"
+ ],
+ [
+ 18.372416,
+ "two"
+ ],
+ [
+ 19.088541,
+ "a"
+ ],
+ [
+ 19.283875,
+ "b"
+ ],
+ [
+ 19.51825,
+ "plus"
+ ],
+ [
+ 19.947916,
+ "b"
+ ],
+ [
+ 20.117208,
+ "squared"
+ ],
+ [
+ 21.054708,
+ "And"
+ ],
+ [
+ 21.328125,
+ "a"
+ ],
+ [
+ 21.354166,
+ "minus"
+ ],
+ [
+ 21.848958,
+ "b"
+ ],
+ [
+ 22.552083,
+ "squared"
+ ],
+ [
+ 23.606791,
+ "equals"
+ ],
+ [
+ 23.880208,
+ "a"
+ ],
+ [
+ 23.958333,
+ "squared"
+ ],
+ [
+ 24.440125,
+ "minus"
+ ],
+ [
+ 24.882833,
+ "two"
+ ],
+ [
+ 25.533875,
+ "a"
+ ],
+ [
+ 25.729166,
+ "b"
+ ],
+ [
+ 26.08075,
+ "plus"
+ ],
+ [
+ 26.484375,
+ "b"
+ ],
+ [
+ 26.640625,
+ "squared"
+ ],
+ [
+ 27.578125,
+ "To"
+ ],
+ [
+ 27.64325,
+ "spot"
+ ],
+ [
+ 27.981791,
+ "one"
+ ],
+ [
+ 28.58075,
+ "check"
+ ],
+ [
+ 28.89325,
+ "three"
+ ],
+ [
+ 29.401041,
+ "things"
+ ],
+ [
+ 30.351583,
+ "the"
+ ],
+ [
+ 30.481791,
+ "first"
+ ],
+ [
+ 30.9375,
+ "and"
+ ],
+ [
+ 31.041666,
+ "last"
+ ],
+ [
+ 31.367208,
+ "terms"
+ ],
+ [
+ 31.731791,
+ "are"
+ ],
+ [
+ 31.966166,
+ "perfect"
+ ],
+ [
+ 32.473958,
+ "squares"
+ ],
+ [
+ 33.606791,
+ "and"
+ ],
+ [
+ 33.684916,
+ "the"
+ ],
+ [
+ 33.75,
+ "middle"
+ ],
+ [
+ 33.997416,
+ "term"
+ ],
+ [
+ 34.492208,
+ "is"
+ ],
+ [
+ 34.609375,
+ "twice"
+ ],
+ [
+ 35.091166,
+ "the"
+ ],
+ [
+ 35.195333,
+ "product"
+ ],
+ [
+ 35.612,
+ "of"
+ ],
+ [
+ 35.690125,
+ "their"
+ ],
+ [
+ 35.820333,
+ "square"
+ ],
+ [
+ 36.25,
+ "roots"
+ ]
+ ],
+ "marks": {
+ "sq": 3.906,
+ "parts": 8.75,
+ "sum": 15.0,
+ "minus": 21.055,
+ "test": 27.578
+ },
+ "cues": [
+ [
+ 0.104,
+ "The second pattern is a perfect square trinomial."
+ ],
+ [
+ 3.906,
+ "Picture a plus b, squared, as a square with side a plus b."
+ ],
+ [
+ 8.75,
+ "It splits into an a squared square, a b squared square, and two a b rectangles."
+ ],
+ [
+ 15.0,
+ "So a plus b, squared, equals a squared plus two a b plus b squared."
+ ],
+ [
+ 21.055,
+ "And a minus b, squared, equals a squared minus two a b plus b squared."
+ ],
+ [
+ 27.578,
+ "To spot one, check three things: the first and last terms are perfect squares, and the middle term is twice the product of their square roots."
+ ]
+ ]
+ },
+ "pstex": {
+ "key": "fe50eba5e9c5002fec81a86fc352e81509d62c47",
+ "dur": 20.328,
+ "words": [
+ [
+ 0.104166,
+ "Try"
+ ],
+ [
+ 0.364583,
+ "four"
+ ],
+ [
+ 0.677083,
+ "m"
+ ],
+ [
+ 0.859375,
+ "squared"
+ ],
+ [
+ 1.432291,
+ "minus"
+ ],
+ [
+ 1.914083,
+ "twenty"
+ ],
+ [
+ 2.317708,
+ "m"
+ ],
+ [
+ 2.773458,
+ "n"
+ ],
+ [
+ 2.981791,
+ "plus"
+ ],
+ [
+ 3.476583,
+ "twenty-five"
+ ],
+ [
+ 4.127625,
+ "n"
+ ],
+ [
+ 4.244791,
+ "squared"
+ ],
+ [
+ 5.14325,
+ "The"
+ ],
+ [
+ 5.221375,
+ "ends"
+ ],
+ [
+ 5.46875,
+ "are"
+ ],
+ [
+ 5.585958,
+ "two"
+ ],
+ [
+ 5.872416,
+ "m"
+ ],
+ [
+ 6.471375,
+ "squared"
+ ],
+ [
+ 7.34375,
+ "and"
+ ],
+ [
+ 7.434916,
+ "five"
+ ],
+ [
+ 7.877625,
+ "n"
+ ],
+ [
+ 8.385416,
+ "squared"
+ ],
+ [
+ 9.362,
+ "Twice"
+ ],
+ [
+ 9.635416,
+ "two"
+ ],
+ [
+ 9.84375,
+ "m"
+ ],
+ [
+ 10.039083,
+ "times"
+ ],
+ [
+ 10.416666,
+ "five"
+ ],
+ [
+ 10.9245,
+ "n"
+ ],
+ [
+ 11.289083,
+ "is"
+ ],
+ [
+ 11.419291,
+ "twenty"
+ ],
+ [
+ 11.783875,
+ "m"
+ ],
+ [
+ 11.966166,
+ "n"
+ ],
+ [
+ 12.786458,
+ "that"
+ ],
+ [
+ 13.007833,
+ "matches"
+ ],
+ [
+ 13.619791,
+ "the"
+ ],
+ [
+ 13.697916,
+ "middle"
+ ],
+ [
+ 13.945333,
+ "term"
+ ],
+ [
+ 14.726583,
+ "The"
+ ],
+ [
+ 14.791666,
+ "middle"
+ ],
+ [
+ 15.052083,
+ "sign"
+ ],
+ [
+ 15.677083,
+ "is"
+ ],
+ [
+ 15.820333,
+ "minus"
+ ],
+ [
+ 16.888041,
+ "so"
+ ],
+ [
+ 17.005208,
+ "it's"
+ ],
+ [
+ 17.1745,
+ "two"
+ ],
+ [
+ 17.630208,
+ "m"
+ ],
+ [
+ 17.903666,
+ "minus"
+ ],
+ [
+ 18.242208,
+ "five"
+ ],
+ [
+ 18.854166,
+ "n"
+ ],
+ [
+ 19.401041,
+ "squared"
+ ]
+ ],
+ "marks": {
+ "ends": 5.143,
+ "mid": 9.362,
+ "sign": 14.727,
+ "ans": 16.888
+ },
+ "cues": [
+ [
+ 0.104,
+ "Try four m squared minus twenty m n plus twenty-five n squared."
+ ],
+ [
+ 5.143,
+ "The ends are two m, squared, and five n, squared."
+ ],
+ [
+ 9.362,
+ "Twice two m times five n is twenty m n: that matches the middle term."
+ ],
+ [
+ 14.727,
+ "The middle sign is minus, so it's two m minus five n, squared."
+ ]
+ ]
+ },
+ "q2": {
+ "key": "70d355a4fc9ed385b7958a124a6b9dbd0d2e8f6b",
+ "dur": 2.736,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.273458,
+ "check"
+ ],
+ [
+ 1.132833,
+ "Is"
+ ],
+ [
+ 1.223958,
+ "it"
+ ],
+ [
+ 1.276041,
+ "a"
+ ],
+ [
+ 1.341166,
+ "perfect"
+ ],
+ [
+ 1.848958,
+ "square"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Is it a perfect square?"
+ ]
+ ]
+ },
+ "cubes": {
+ "key": "78042e79a6af1508fdd8af7c5bc2c0b4378a60ab",
+ "dur": 40.056,
+ "words": [
+ [
+ 0.104166,
+ "Two"
+ ],
+ [
+ 0.286458,
+ "more"
+ ],
+ [
+ 0.520833,
+ "patterns"
+ ],
+ [
+ 0.9375,
+ "work"
+ ],
+ [
+ 1.210958,
+ "with"
+ ],
+ [
+ 1.354166,
+ "cubes"
+ ],
+ [
+ 2.421875,
+ "A"
+ ],
+ [
+ 2.473958,
+ "sum"
+ ],
+ [
+ 2.695333,
+ "of"
+ ],
+ [
+ 2.7995,
+ "two"
+ ],
+ [
+ 3.138041,
+ "cubes"
+ ],
+ [
+ 4.140625,
+ "a"
+ ],
+ [
+ 4.192708,
+ "cubed"
+ ],
+ [
+ 4.51825,
+ "plus"
+ ],
+ [
+ 4.84375,
+ "b"
+ ],
+ [
+ 5.065125,
+ "cubed"
+ ],
+ [
+ 5.677083,
+ "equals"
+ ],
+ [
+ 6.041666,
+ "a"
+ ],
+ [
+ 6.09375,
+ "plus"
+ ],
+ [
+ 6.458333,
+ "b"
+ ],
+ [
+ 7.304708,
+ "times"
+ ],
+ [
+ 7.591166,
+ "a"
+ ],
+ [
+ 7.65625,
+ "squared"
+ ],
+ [
+ 8.059916,
+ "minus"
+ ],
+ [
+ 8.75,
+ "a"
+ ],
+ [
+ 8.89325,
+ "b"
+ ],
+ [
+ 9.088541,
+ "plus"
+ ],
+ [
+ 9.466166,
+ "b"
+ ],
+ [
+ 9.596375,
+ "squared"
+ ],
+ [
+ 10.494791,
+ "A"
+ ],
+ [
+ 10.572916,
+ "difference"
+ ],
+ [
+ 10.963541,
+ "of"
+ ],
+ [
+ 11.067708,
+ "two"
+ ],
+ [
+ 11.445333,
+ "cubes"
+ ],
+ [
+ 12.473958,
+ "a"
+ ],
+ [
+ 12.539083,
+ "cubed"
+ ],
+ [
+ 12.942708,
+ "minus"
+ ],
+ [
+ 13.385416,
+ "b"
+ ],
+ [
+ 13.567708,
+ "cubed"
+ ],
+ [
+ 14.296875,
+ "equals"
+ ],
+ [
+ 14.778666,
+ "a"
+ ],
+ [
+ 14.804708,
+ "minus"
+ ],
+ [
+ 15.3125,
+ "b"
+ ],
+ [
+ 16.132833,
+ "times"
+ ],
+ [
+ 16.39325,
+ "a"
+ ],
+ [
+ 16.458333,
+ "squared"
+ ],
+ [
+ 16.783875,
+ "plus"
+ ],
+ [
+ 17.304708,
+ "a"
+ ],
+ [
+ 17.395833,
+ "b"
+ ],
+ [
+ 17.578125,
+ "plus"
+ ],
+ [
+ 17.981791,
+ "b"
+ ],
+ [
+ 18.112,
+ "squared"
+ ],
+ [
+ 19.010416,
+ "Notice"
+ ],
+ [
+ 19.309916,
+ "the"
+ ],
+ [
+ 19.401041,
+ "signs"
+ ],
+ [
+ 20.559916,
+ "The"
+ ],
+ [
+ 20.651041,
+ "first"
+ ],
+ [
+ 20.976583,
+ "sign"
+ ],
+ [
+ 21.640625,
+ "matches"
+ ],
+ [
+ 22.096375,
+ "the"
+ ],
+ [
+ 22.1875,
+ "original"
+ ],
+ [
+ 23.138041,
+ "the"
+ ],
+ [
+ 23.203125,
+ "middle"
+ ],
+ [
+ 23.515625,
+ "sign"
+ ],
+ [
+ 24.192708,
+ "is"
+ ],
+ [
+ 24.322916,
+ "the"
+ ],
+ [
+ 24.557291,
+ "opposite"
+ ],
+ [
+ 25.533875,
+ "and"
+ ],
+ [
+ 25.572916,
+ "the"
+ ],
+ [
+ 25.651041,
+ "last"
+ ],
+ [
+ 26.054708,
+ "sign"
+ ],
+ [
+ 26.679708,
+ "is"
+ ],
+ [
+ 26.862,
+ "always"
+ ],
+ [
+ 27.252625,
+ "positive"
+ ],
+ [
+ 28.398458,
+ "For"
+ ],
+ [
+ 28.528666,
+ "example"
+ ],
+ [
+ 29.51825,
+ "a"
+ ],
+ [
+ 29.570333,
+ "cubed"
+ ],
+ [
+ 30.013041,
+ "plus"
+ ],
+ [
+ 30.598958,
+ "eight"
+ ],
+ [
+ 30.807291,
+ "b"
+ ],
+ [
+ 30.950541,
+ "cubed"
+ ],
+ [
+ 31.862,
+ "Eight"
+ ],
+ [
+ 32.005208,
+ "b"
+ ],
+ [
+ 32.135416,
+ "cubed"
+ ],
+ [
+ 32.734375,
+ "is"
+ ],
+ [
+ 32.903666,
+ "two"
+ ],
+ [
+ 33.151041,
+ "b"
+ ],
+ [
+ 33.450541,
+ "cubed"
+ ],
+ [
+ 34.388041,
+ "So"
+ ],
+ [
+ 34.53125,
+ "it's"
+ ],
+ [
+ 34.622416,
+ "a"
+ ],
+ [
+ 34.6875,
+ "plus"
+ ],
+ [
+ 34.987,
+ "two"
+ ],
+ [
+ 35.195333,
+ "b"
+ ],
+ [
+ 36.041666,
+ "times"
+ ],
+ [
+ 36.354166,
+ "a"
+ ],
+ [
+ 36.40625,
+ "squared"
+ ],
+ [
+ 36.809916,
+ "minus"
+ ],
+ [
+ 37.1745,
+ "two"
+ ],
+ [
+ 37.773458,
+ "a"
+ ],
+ [
+ 37.981791,
+ "b"
+ ],
+ [
+ 38.190125,
+ "plus"
+ ],
+ [
+ 38.58075,
+ "four"
+ ],
+ [
+ 38.945333,
+ "b"
+ ],
+ [
+ 39.101583,
+ "squared"
+ ]
+ ],
+ "marks": {
+ "sum": 2.422,
+ "diff": 10.495,
+ "soap": 19.01,
+ "ex": 28.398,
+ "cube": 31.862,
+ "ans": 34.388
+ },
+ "cues": [
+ [
+ 0.104,
+ "Two more patterns work with cubes."
+ ],
+ [
+ 2.422,
+ "A sum of two cubes: a cubed plus b cubed equals a plus b, times a squared minus a b plus b squared."
+ ],
+ [
+ 10.495,
+ "A difference of two cubes: a cubed minus b cubed equals a minus b, times a squared plus a b plus b squared."
+ ],
+ [
+ 19.01,
+ "Notice the signs."
+ ],
+ [
+ 20.56,
+ "The first sign matches the original, the middle sign is the opposite, and the last sign is always positive."
+ ],
+ [
+ 28.398,
+ "For example, a cubed plus eight b cubed."
+ ],
+ [
+ 31.862,
+ "Eight b cubed is two b, cubed."
+ ],
+ [
+ 34.388,
+ "So it's a plus two b, times a squared minus two a b plus four b squared."
+ ]
+ ]
+ },
+ "q3": {
+ "key": "8c50e9619b22c39a9426f1dffd2b50eca86f00e6",
+ "dur": 2.88,
+ "words": [
+ [
+ 0.104166,
+ "Quick"
+ ],
+ [
+ 0.286458,
+ "check"
+ ],
+ [
+ 1.25,
+ "Factor"
+ ],
+ [
+ 1.510416,
+ "the"
+ ],
+ [
+ 1.588541,
+ "sum"
+ ],
+ [
+ 1.783875,
+ "of"
+ ],
+ [
+ 1.875,
+ "cubes"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.25,
+ "Factor the sum of cubes."
+ ]
+ ]
+ },
+ "combo": {
+ "key": "03ce8e8d7afcfa3df13ba9e0d7d75080441f5377",
+ "dur": 23.016,
+ "words": [
+ [
+ 0.104166,
+ "Always"
+ ],
+ [
+ 0.364583,
+ "look"
+ ],
+ [
+ 0.494791,
+ "for"
+ ],
+ [
+ 0.625,
+ "a"
+ ],
+ [
+ 0.677083,
+ "GCF"
+ ],
+ [
+ 1.341166,
+ "first"
+ ],
+ [
+ 2.356791,
+ "Factor"
+ ],
+ [
+ 2.773458,
+ "eighteen"
+ ],
+ [
+ 3.255208,
+ "a"
+ ],
+ [
+ 3.4245,
+ "x"
+ ],
+ [
+ 4.114583,
+ "squared"
+ ],
+ [
+ 4.661458,
+ "minus"
+ ],
+ [
+ 5.273458,
+ "thirty-two"
+ ],
+ [
+ 5.9245,
+ "a"
+ ],
+ [
+ 6.71875,
+ "Both"
+ ],
+ [
+ 6.914083,
+ "terms"
+ ],
+ [
+ 7.278666,
+ "share"
+ ],
+ [
+ 7.721375,
+ "two"
+ ],
+ [
+ 8.020833,
+ "a"
+ ],
+ [
+ 8.697916,
+ "What's"
+ ],
+ [
+ 8.828125,
+ "left"
+ ],
+ [
+ 9.127625,
+ "is"
+ ],
+ [
+ 9.231791,
+ "nine"
+ ],
+ [
+ 9.648458,
+ "x"
+ ],
+ [
+ 10.247416,
+ "squared"
+ ],
+ [
+ 10.742208,
+ "minus"
+ ],
+ [
+ 11.08075,
+ "sixteen"
+ ],
+ [
+ 12.096375,
+ "a"
+ ],
+ [
+ 12.1745,
+ "difference"
+ ],
+ [
+ 12.604166,
+ "of"
+ ],
+ [
+ 12.669291,
+ "squares"
+ ],
+ [
+ 13.737,
+ "three"
+ ],
+ [
+ 14.114583,
+ "x"
+ ],
+ [
+ 14.583333,
+ "squared"
+ ],
+ [
+ 15.598958,
+ "minus"
+ ],
+ [
+ 15.885416,
+ "four"
+ ],
+ [
+ 16.510416,
+ "squared"
+ ],
+ [
+ 17.434916,
+ "So"
+ ],
+ [
+ 17.539083,
+ "the"
+ ],
+ [
+ 17.630208,
+ "answer"
+ ],
+ [
+ 17.96875,
+ "is"
+ ],
+ [
+ 18.098958,
+ "two"
+ ],
+ [
+ 18.658875,
+ "a"
+ ],
+ [
+ 19.179708,
+ "times"
+ ],
+ [
+ 19.570333,
+ "three"
+ ],
+ [
+ 19.778666,
+ "x"
+ ],
+ [
+ 19.921875,
+ "plus"
+ ],
+ [
+ 20.208333,
+ "four"
+ ],
+ [
+ 21.002625,
+ "times"
+ ],
+ [
+ 21.40625,
+ "three"
+ ],
+ [
+ 21.70575,
+ "x"
+ ],
+ [
+ 21.914083,
+ "minus"
+ ],
+ [
+ 22.239583,
+ "four"
+ ]
+ ],
+ "marks": {
+ "ex": 2.357,
+ "gcf": 6.719,
+ "left": 8.698,
+ "dos": 12.096,
+ "ans": 17.435
+ },
+ "cues": [
+ [
+ 0.104,
+ "Always look for a GCF first."
+ ],
+ [
+ 2.357,
+ "Factor eighteen a x squared minus thirty-two a."
+ ],
+ [
+ 6.719,
+ "Both terms share two a."
+ ],
+ [
+ 8.698,
+ "What's left is nine x squared minus sixteen, a difference of squares: three x, squared, minus four, squared."
+ ],
+ [
+ 17.435,
+ "So the answer is two a, times three x plus four, times three x minus four."
+ ]
+ ]
+ },
+ "wrap": {
+ "key": "10c43b30874214263ccbd19d130305b57b4b676d",
+ "dur": 24.456,
+ "words": [
+ [
+ 0.104166,
+ "To"
+ ],
+ [
+ 0.169291,
+ "sum"
+ ],
+ [
+ 0.377625,
+ "up"
+ ],
+ [
+ 1.002625,
+ "Difference"
+ ],
+ [
+ 1.39325,
+ "of"
+ ],
+ [
+ 1.484375,
+ "squares"
+ ],
+ [
+ 2.578125,
+ "a"
+ ],
+ [
+ 2.617208,
+ "squared"
+ ],
+ [
+ 3.007833,
+ "minus"
+ ],
+ [
+ 3.359375,
+ "b"
+ ],
+ [
+ 3.502625,
+ "squared"
+ ],
+ [
+ 4.088541,
+ "is"
+ ],
+ [
+ 4.20575,
+ "a"
+ ],
+ [
+ 4.270833,
+ "plus"
+ ],
+ [
+ 4.6745,
+ "b"
+ ],
+ [
+ 5.520833,
+ "times"
+ ],
+ [
+ 5.833333,
+ "a"
+ ],
+ [
+ 5.885416,
+ "minus"
+ ],
+ [
+ 6.39325,
+ "b"
+ ],
+ [
+ 7.1875,
+ "Perfect square"
+ ],
+ [
+ 8.046875,
+ "trinomial"
+ ],
+ [
+ 9.166666,
+ "a"
+ ],
+ [
+ 9.192708,
+ "squared"
+ ],
+ [
+ 9.544291,
+ "plus"
+ ],
+ [
+ 10.117208,
+ "or"
+ ],
+ [
+ 10.234375,
+ "minus"
+ ],
+ [
+ 10.742208,
+ "two"
+ ],
+ [
+ 11.39325,
+ "a"
+ ],
+ [
+ 11.510416,
+ "b"
+ ],
+ [
+ 11.731791,
+ "plus"
+ ],
+ [
+ 12.057291,
+ "b"
+ ],
+ [
+ 12.1875,
+ "squared"
+ ],
+ [
+ 12.604166,
+ "is"
+ ],
+ [
+ 12.708333,
+ "a"
+ ],
+ [
+ 12.773458,
+ "plus"
+ ],
+ [
+ 13.450541,
+ "or"
+ ],
+ [
+ 13.58075,
+ "minus"
+ ],
+ [
+ 14.101583,
+ "b"
+ ],
+ [
+ 14.83075,
+ "squared"
+ ],
+ [
+ 15.76825,
+ "Sum"
+ ],
+ [
+ 16.119791,
+ "and"
+ ],
+ [
+ 16.210958,
+ "difference"
+ ],
+ [
+ 16.692708,
+ "of"
+ ],
+ [
+ 16.783875,
+ "cubes"
+ ],
+ [
+ 17.460958,
+ "follow"
+ ],
+ [
+ 17.786458,
+ "their"
+ ],
+ [
+ 17.942708,
+ "own"
+ ],
+ [
+ 18.098958,
+ "patterns"
+ ],
+ [
+ 19.192708,
+ "Take"
+ ],
+ [
+ 19.335958,
+ "out"
+ ],
+ [
+ 19.440125,
+ "a"
+ ],
+ [
+ 19.492208,
+ "GCF"
+ ],
+ [
+ 20.14325,
+ "first"
+ ],
+ [
+ 21.002625,
+ "then"
+ ],
+ [
+ 21.197916,
+ "look"
+ ],
+ [
+ 21.354166,
+ "for"
+ ],
+ [
+ 21.510416,
+ "a"
+ ],
+ [
+ 21.5495,
+ "pattern"
+ ],
+ [
+ 22.356791,
+ "Now"
+ ],
+ [
+ 22.734375,
+ "try"
+ ],
+ [
+ 22.890625,
+ "the"
+ ],
+ [
+ 22.96875,
+ "chapter"
+ ],
+ [
+ 23.359375,
+ "practice"
+ ]
+ ],
+ "marks": {
+ "w1": 1.003,
+ "w2": 7.188,
+ "w3": 15.768,
+ "w4": 19.193,
+ "end": 22.357
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.003,
+ "Difference of squares: a squared minus b squared is a plus b, times a minus b."
+ ],
+ [
+ 7.188,
+ "Perfect square trinomial: a squared plus or minus two a b plus b squared is a plus or minus b, squared."
+ ],
+ [
+ 15.768,
+ "Sum and difference of cubes follow their own patterns."
+ ],
+ [
+ 19.193,
+ "Take out a GCF first, then look for a pattern."
+ ],
+ [
+ 22.357,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "key": "9e79c090b1a808d2586dbdb9f5d11aaa2a6261f5",
+ "dur": 3.0,
+ "words": [
+ [
+ 0.091166,
+ "Chapter"
+ ],
+ [
+ 0.377625,
+ "practice"
+ ],
+ [
+ 1.471375,
+ "Which"
+ ],
+ [
+ 1.588541,
+ "pattern"
+ ],
+ [
+ 1.940125,
+ "fits"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Chapter practice."
+ ],
+ [
+ 1.471,
+ "Which pattern fits?"
+ ]
+ ]
+ },
+ "final2": {
+ "key": "fb0ef3090c1dcb3f7b82ae4ec8b05098dfcae606",
+ "dur": 2.664,
+ "words": [
+ [
+ 0.104166,
+ "Next"
+ ],
+ [
+ 0.859375,
+ "factor"
+ ],
+ [
+ 1.289083,
+ "using"
+ ],
+ [
+ 1.601583,
+ "the"
+ ],
+ [
+ 1.666666,
+ "patterns"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, factor using the patterns."
+ ]
+ ]
+ },
+ "final3": {
+ "key": "332c693d8fc52154617ee09ee131c43ae4b14e0a",
+ "dur": 3.576,
+ "words": [
+ [
+ 0.104166,
+ "Last"
+ ],
+ [
+ 0.377625,
+ "one"
+ ],
+ [
+ 1.09375,
+ "GCF"
+ ],
+ [
+ 1.70575,
+ "first"
+ ],
+ [
+ 2.552083,
+ "then"
+ ],
+ [
+ 2.669291,
+ "a"
+ ],
+ [
+ 2.721375,
+ "pattern"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.094,
+ "GCF first, then a pattern."
+ ]
+ ]
+ },
+ "finish": {
+ "key": "cb87e74fd5eedff13b576d9c7917e7e1f74a8b4b",
+ "dur": 4.992,
+ "words": [
+ [
+ 0.091166,
+ "Great"
+ ],
+ [
+ 0.390625,
+ "work"
+ ],
+ [
+ 1.237,
+ "That's"
+ ],
+ [
+ 1.39325,
+ "the"
+ ],
+ [
+ 1.497416,
+ "end"
+ ],
+ [
+ 1.770833,
+ "of"
+ ],
+ [
+ 1.848958,
+ "chapter"
+ ],
+ [
+ 2.356791,
+ "fifty-six"
+ ],
+ [
+ 3.671875,
+ "and"
+ ],
+ [
+ 3.802083,
+ "of"
+ ],
+ [
+ 3.880208,
+ "unit"
+ ],
+ [
+ 4.244791,
+ "ten"
+ ]
+ ],
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Great work."
+ ],
+ [
+ 1.237,
+ "That's the end of chapter fifty-six, and of unit ten."
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/plan.md b/plan.md
index 5dcb0f0..1b11b5a 100644
--- a/plan.md
+++ b/plan.md
@@ -1,6 +1,6 @@
# AnimeBook 项目计划
-> 状态:第一章代表性 HTML(英文、带语音)已完成首版,等待用户审阅。
+> 状态:第 1–39 章已部署到 Cloudflare Pages(`https://math.diamonddoge.org/`);本地第 40 章首版完成,待用户审阅。下一阶段补齐全书章节,再系统检查动画;当前明确的反馈是开场旁白已有内容、主画面却留白,属于编排问题,具体章节待补充。
> 本文供后续参与项目的 agents 阅读和执行。明确标注的“候选”“建议”“待定”不等于已经获得用户确认。
> 当前阶段先完成计划,再讨论技术栈;不要仅凭本文直接开始搭建整站或批量制作课程。
@@ -8,8 +8,12 @@
以现有的预代数与代数 I 教材为参考,重新创作一本带有动画讲解、数学交互和自动判题的双语练习册,最终交付可部署到远程的静态站点。
+当前数学书是网站的第一本作品。网站最终会收录多本书与动画作品,后续增加类似书架的入口:从书架选择一本书,进入其目录,再观看章节动画和参与交互。用户希望保留类似老 Flash 动画网站的观看与操作体验。制作能力按动画难度逐步发展,最终目标是面向历史书或文艺书、类似 Vox 表达方式的短纪录片;具体形式和制作阶段继续讨论。
+
核心是做好数学教学动画:学生能看清一个概念、关系或计算过程如何逐步形成,并通过画面内的小测和整章练习验证理解。动画的组织、节奏和准确性优先于装饰、吉祥物和页面数量。
+用户明确项目的核心卖点是动画。后续改进以动画能否帮助理解知识、展示变化和推理、支持学习交互为主要评价标准。最终制作 Skill 会开源分享,用户不以盈利为目标。
+
最终站点尽量轻量、自包含,没有应用后端和数据库。JavaScript 负责播放控制、数学交互和答案判断,CSS 负责布局与视觉表现。制作过程可以使用 Python 或其他工具生成素材;这些工具不应成为学生使用站点时的依赖。
先以第一章验证完整教学体验,形成可复用的制作方法,再逐步扩展到其他章节。用户曾在大学线性代数内容上验证过 agent 制作纯 JavaScript 动画的能力,当时没有加入语音。用户认可 agent 自行处理动画的能力;本项目应围绕清楚的教学编排发挥这种能力,不预先要求复杂的动画框架。
@@ -33,7 +37,7 @@
| 目标读者 | 初一左右;语气不幼稚 |
| 角色使用 | 不用狗狗形象(显得轻浮)。改为 agent 用 SVG 绘制的数学符号角色:无穷符号 ∞,两个圈是眼睛;不能用 π(已有知名 YouTuber 使用)。只在小测卡片和结束页出现,会眨眼、答对跳、答错歪头 |
| 首版技术 | 纯 JS + SVG 单页,无框架、无构建;Edge TTS 制作阶段生成 MP3 和词级时间点 |
-| 部署 | 可远程部署的静态站点;尽量自包含,无后端、无数据库 |
+| 部署 | Cloudflare Pages 纯静态托管,域名 `math.diamonddoge.org`;运行无后端、无数据库,不依赖 Home 服务器 |
| Git | 已初始化本地仓库,不配置远程或 push,除非用户之后明确要求 |
| Agent 文档 | `plan.md` 记录详细计划;`CLAUDE.md` 提供目录地图、素材说明和执行约定 |
@@ -108,6 +112,8 @@
动画不以多、快或华丽为目标。需要明确:学生此刻看哪里、这一变化表示什么、下一步为何成立。避免在同一时间引入过多新对象、文字和动作。
+用户明确指出问题出现在开场:旁白已经开始讲解,主画面却还没有内容,属于编排留白。后续动画审查重点检查开场的画面承接,需要时更早呈现主题、相关数学对象、算式或关键文字,再随旁白展开逐步标注、图形变化和计算推演。用户确认正常转场与思考停顿没有问题,保留这些停顿,不要求画面持续运动;适当增加的动画效果仍应服务于数学讲解。
+
### 6.2 制作前先有可检查的分镜
每段动画的分镜至少写清:
@@ -228,6 +234,8 @@
## 10. 美术与小生物角色
+用户最新说明:现阶段暂时放弃使用外部图片,课程画面主要采用代码与 SVG 绘制;后续修复问题、调整动画时仍可能重新引入图片,具体素材和用途待讨论。保留现有图片资产供后续选择。
+
用户准备卡通小生物的一组图像,角色应与网站整体视觉风格一致。它是陪伴和引导学习的小角色,数学动画仍然是主要内容。
当前已提供 `img/1.png` 十表情大图及 `img/doge main.png`。十个表情已按原像素裁切到 `img/expressions/`,去除图案下方的编号与中文介绍。用户选择保留原画细节:另在 `img/mascot/png/` 提供十个表情与主形象的透明 PNG,在 `img/mascot/svg/` 提供内嵌这些 PNG 的自包含 SVG,原图与白背景裁切版均保留。SVG 内容仍是位图,不是真正的矢量路径。文件与表情对应关系见 `CLAUDE.md`,素材预览见 `img/mascot/preview.html`。最终使用方式尚待编排。
@@ -370,6 +378,23 @@
| 37 | Graphing Linear Inequalities | 首版完成,待用户审阅 | 原书无明显错误;引擎新增 `P.half`(半平面着色)、`pickPoint` 可接受判定函数;修正虚线被描线动画覆盖成实线的引擎错误(影响 ch32、ch36,已回归) |
| 38 | Solving Systems of Linear Inequalities by Graphing | 首版完成,待用户审阅 | 原书第二个例题题干写 x + y > −5、−x + y ≤ 1,解题过程却用 3x + y > −5、−x + y ≤ −1,本章按解题过程的版本讲;引擎新增 `P.region`(多个半平面的交集着色)与空心点 `open` |
| 39 | Introduction to Statistics | 首版完成,待用户审阅 | 原书无明显错误(第 2 题“rounded up from 18.67”实为四舍五入);第 3 题弹珠按高度比例估算与抽样无关,未采用;用点阵演示总体、随机样本与不具代表性的样本 |
+| 40 | Measures of Central Tendency and Variation | 首版完成,待用户审阅 | 答案页第 2 题平均数 99/13 ≈ 7.615,原书写 7.6 未注明四舍五入,练习改用整除的数据;用柱子“削峰填谷”演示平均数是平均分配,用天平三角演示离群值把平均数拉偏而中位数几乎不动;引擎新增数据数轴 `dataLine`(点图、平衡三角、区间括号);全屏练习题干里的行内数学改为与题干同字号 |
+| 41 | Displaying Data | 首版完成,待用户审阅 | 例题中老师姓名前后写成 Misra 与 Mirsa;答案页第 4 题说“下四分位从 5 开始、上四分位到 14 结束”,把四分位数(一个值)和箱子的边混为一谈,练习改为直接求五数(最小值、Q1、中位数、Q3、最大值);数据逐个飞入成为线图的 ×、直方图逐格长高,箱线图由点图逐步推出;引擎新增点选画面对象的题型 `pickEls`,`dataLine` 可画 ×,`a_`/`c_` 补间缺初值时从元素属性读取 |
+| 42 | Probability | 首版完成,待用户审阅 | 原书称“or 和 and 都表示概率相加”,and 不是相加(互斥的 or 才能相加),改为说明“一次只能落在一种颜色,所以可以相加”;“硬币抛 3 次:2 × 3 = 6 种”错误,应为 2 × 2 × 2 = 8,课程中专门对比;“掷一对骰子两次求双 2”表述混乱(图实为一颗骰子掷两次),未采用;用骰子点数飞入分子分母演示概率比,转盘、树状图逐枝生长、衣服配对网格演示乘法原理 |
+| 43 | Compound Events | 首版完成,待用户审阅 | 原书无明显计算错误(“single event + single event = compound event”只是口号,未采用);用面积模型(列条 × 行条的重叠)说明独立事件为何相乘;袋中弹珠取出后分母变化演示相关事件;52 张牌网格演示连续抽两张 A;骰子、硬币、转盘画法移入引擎 |
+| 44 | Permutations and Combinations | 首版完成,待用户审阅 | 甜点例题说“从 4 种甜点中选”却列出 5 种;答案页第 6 题算式写成“5 × 4 × (5×4×3)/(3×2×1)”,记号错乱;第 8 题颜色表里 red 出现两次,实际只有 9 种颜色却按 10 种算出 45,练习改为 9 种颜色(36 对);用空位依次减少的计数、约去 3 × 2 × 1 的动画推出 P(n, r),用 12 个有序配对两两同色、各去一个说明组合要除以 r! |
+| 45 | Relations and Functions | 首版完成,待用户审阅 | 原书把表格中的离散数对用折线连起来再做竖线检验(第二例还画了竖直线段),会让学生误以为关系是连续图形,本章只画点;有序数对的 x、y 分别飞入定义域、值域(重复的 3 只列一次),映射图箭头着色区分函数与非函数,竖线扫过图形做竖线检验;引擎 `mathEl` 固定正常字重,修正粗体题干中数学被截断(影响所有全屏练习) |
+| 46 | Function Notation | 首版完成,待用户审阅 | 原书无计算错误;例题 j(p) = 2n − 3p 把 n 当作参数混在单变量函数里、p(a) = 11 需要开平方(第 57 章才讲),均未采用;补充“f(x) 不是 f 乘 x”,用函数机器、代入数字飞入每个 x、f(3) = 5 对应图上点 (3, 5)、高度 7 的水平线找输入等动画;小测在坐标系上点选表示 f(−2) 的点 |
+| 47 | Application of Functions | 首版完成,待用户审阅 | 原书称“quadratic equation 的图像是抛物线”,应为二次函数;过山车图把 (15, 70) 圈成高度 200 的点;练习第 4 题“何时离家 3 英里”答“约 4 小时和 9 小时”,实际 4 到 9 小时之间一直是 3 英里,练习改为问停留了多久;用等步长台阶与变化步长对比线性/非线性,表格逐点飞入画出抛物线和 S 形三次曲线;引擎新增 `P.fn` 曲线绘制,`axes` 坐标轴移入引擎 |
+| 48 | Adding and Subtracting Polynomials | 首版完成,待用户审阅 | 原书定义“polynomial 是两个以上项的和”,与“单项式、二项式也是多项式”矛盾,改为“一个单项式或若干单项式的和”;代数方块按种类滑入分区、正负成对抵消演示加法,减法时第二组方块逐个翻面(变号)再相加;周长例题改为原创矩形与三角形 |
+| 49 | Multiplying and Dividing Exponents | 首版完成,待用户审阅 | 章名与小标题说“multiplying exponents”,实际是幂相乘、指数相加,本章标题改为 Multiplying and Dividing Powers;原书无计算错误;把每个幂展开成因数,相乘时合成一排逐个数,相除时上下成对划掉,负指数结果对应分母剩下的因数;练习题第 6 题(四人谁对)改为小测 |
+| 50 | Multiplying and Dividing Monomials | 首版完成,待用户审阅 | 例题 3a⁵ ÷ 10a⁹ 最后写成 3/(10a⁻⁴),应为 3/(10a⁴),课程中专门演示 a⁻⁴ 移到分母变成 a⁴;单项式拆成系数、x、y 三条“分道”分别相乘或相除,幂的乘方把 x³ 的两份展开成 6 个 x,单项式乘方用弧线把外指数分给每个因数并点出“忘记给系数乘方”的常见错误 |
+| 51 | Multiplying and Dividing Polynomials | 首版完成,待用户审阅 | 原书无计算错误(“multiply exponents by using addition”措辞不当,改为幂相乘指数相加);用面积网格贯穿全章:单项式乘二项式、(x + 9)(x + 7) 按比例的矩形、负项格、2×3 网格中同类项沿对角线;FOIL 四条弧线与网格四格同色对应;小测在网格中填三格再合并 |
+| 52 | Factoring Polynomials Using GCF | 首版完成,待用户审阅 | 原书第 2 步写“找每个变量的最大指数”,实际应取各项中最小的指数(例题里写的是“都含有的最高次幂”,与步骤标题矛盾),已改为“最小指数”;开头“integer (whole number)”混称,未采用;12 个点重排成矩形引出因数,质因数小圆片连线找公因数,用面积网格反推公共高度演示提公因式,并专门讲“保留 1”和“括号里不能再有公因式” |
+| 53 | Factoring Polynomials Using Grouping | 首版完成,待用户审阅 | 原书称“分组分解是分解这类多项式的唯一方法”,说法过绝对,未采用;用面积模型说明四项拼成 (a + b)(x + y) 的矩形,提出 −n 时括号内两项同时变号;原书练习第 7 题(找错误行)改为小测 |
+| 54 | Factoring Trinomials When a = 1 | 首版完成,待用户审阅 | 原书无明显错误(答案已逐题验算);代数方块 x² + 5x + 6 拼成 (x + 2)(x + 3) 的矩形,FOIL 推出“乘积为 c、和为 b”,因数对表格逐行算和并框出命中行,“无整数解”用穷举表说明;小测点选因数对;引擎 `blanks` 新增整行判定 `test`,两个因式顺序任意都判对 |
+| 55 | Factoring Trinomials When a ≠ 1 | 首版完成,待用户审阅 | 原书无计算错误(答案逐题验算);原书用“十字交叉”同时猜四个数,本章改讲 ac 法(乘积 ac、和 b,拆中项后分组,衔接第 53 章),并用 2×2 网格从行列公因式读出两个因式;填空题按“乘回去等于原式”判定,任何正确顺序都算对 |
+| 56 | Factoring Using Special Formulas | 首版完成,待用户审阅 | 原书无计算错误(例题与答案逐题验算);平方差用“大正方形剪去角上小正方形、剩余部分旋转拼成 (a + b)(a − b) 长方形”的剪拼动画证明,完全平方式用面积网格,立方和/差用三种颜色标出符号规律(同号、异号、恒正);补充“平方和不能在实数范围内分解” |
第二章起,引擎抽到 `site/lib/`,并新增填空题 `blanks`、可单独移动的算式记号 `tokens`、逐步化简动画 `collapse`、点选画面中运算符的 `tapEls`。
@@ -404,7 +429,19 @@
10. 是否保存本地学习进度,是否需要离线使用或直接打开 HTML。
11. 扩展全书时的章节发布方式、审核流程和资源体积要求。
-## 16. 给后续 agents 的协作约定
+## 16. 最终方向:提炼为可复用 Skill
+
+用户希望在完成当前教材并检查、优化动画后,将项目的制作能力封装为 Skill。当前页面、讲解和动画主要由 Claude Code 实现,用户没有预先提供页面设计;后续封装应保留 agent 承担教学编排与实现的能力。
+
+最终 Skill 开源分享的方向已确认,不以盈利为目标。封装重点是让其他使用者也能制作有教学价值的动画课程;具体许可证和发布方式尚未确定。
+
+现有 `.claude/skills/animebook-chapter/` 已覆盖单章制作流程,是可复用部分的基础。候选封装范围是从参考教材分析、章节规划、分镜与讲稿,到动画、小测、语音生成、审阅检查和静态站点交付;具体范围尚待确定。
+
+设计时区分三类资源:Skill 中的制作与检查规则,可随 Skill 提供的引擎、模板和工具,以及每本书各自的目录、内容、音频、进度与章节产物。网站可通过书架统一收录多本书。当前参考书的 PDF、书页图片和已生成课程不作为通用 Skill 的内置教材。教学与视觉经验应区分通用原则和本书约定,避免把固定章节数、知识点或数学约定套到其他教材上。
+
+用户的最终方向已包含历史书和文艺书的短纪录片表达,首版 Skill 的覆盖范围与扩展阶段留待后续讨论。素材方案也保留选择空间:当前暂时不用外部图片,未来仍可能引入,Skill 不应将这一阶段的选择固化为通用限制。封装后的可复用性需要用另一本文本的代表性章节验证,不能仅凭本项目制作顺利认定已完成。
+
+## 17. 给后续 agents 的协作约定
- 先读本文,分清已确认需求、候选建议和待讨论问题。
- 技术与视觉决策围绕教学动画的质量展开,避免优先做大量导航、装饰或其他外围功能。
diff --git a/site/ch39/index.html b/site/ch39/index.html
index ca5fe8a..0a7e647 100644
--- a/site/ch39/index.html
+++ b/site/ch39/index.html
@@ -12,7 +12,7 @@
<script src="audio/en/timings.js"></script>
<script>
'use strict';
-const CHAPTER = { number: 39, title: 'Introduction to Statistics', minutes: 6 };
+const CHAPTER = { number: 39, title: 'Introduction to Statistics', minutes: 6, next: '../ch40/' };
const QN = COL.whole, QL = COL.rat, SM = COL.task; // quantitative, qualitative, sample
/* ---------- chapter drawing helpers ---------- */
diff --git a/site/ch40/audio/en/even.mp3 b/site/ch40/audio/en/even.mp3
new file mode 100644
index 0000000..eb875aa
Binary files /dev/null and b/site/ch40/audio/en/even.mp3 differ
diff --git a/site/ch40/audio/en/final1.mp3 b/site/ch40/audio/en/final1.mp3
new file mode 100644
index 0000000..2ac186f
Binary files /dev/null and b/site/ch40/audio/en/final1.mp3 differ
diff --git a/site/ch40/audio/en/final2.mp3 b/site/ch40/audio/en/final2.mp3
new file mode 100644
index 0000000..0cb22cf
Binary files /dev/null and b/site/ch40/audio/en/final2.mp3 differ
diff --git a/site/ch40/audio/en/final3.mp3 b/site/ch40/audio/en/final3.mp3
new file mode 100644
index 0000000..3807d96
Binary files /dev/null and b/site/ch40/audio/en/final3.mp3 differ
diff --git a/site/ch40/audio/en/finish.mp3 b/site/ch40/audio/en/finish.mp3
new file mode 100644
index 0000000..5cdfbd9
Binary files /dev/null and b/site/ch40/audio/en/finish.mp3 differ
diff --git a/site/ch40/audio/en/intro.mp3 b/site/ch40/audio/en/intro.mp3
new file mode 100644
index 0000000..80f8f0b
Binary files /dev/null and b/site/ch40/audio/en/intro.mp3 differ
diff --git a/site/ch40/audio/en/level.mp3 b/site/ch40/audio/en/level.mp3
new file mode 100644
index 0000000..3f72da7
Binary files /dev/null and b/site/ch40/audio/en/level.mp3 differ
diff --git a/site/ch40/audio/en/mean.mp3 b/site/ch40/audio/en/mean.mp3
new file mode 100644
index 0000000..aabf446
Binary files /dev/null and b/site/ch40/audio/en/mean.mp3 differ
diff --git a/site/ch40/audio/en/median.mp3 b/site/ch40/audio/en/median.mp3
new file mode 100644
index 0000000..9bbaae7
Binary files /dev/null and b/site/ch40/audio/en/median.mp3 differ
diff --git a/site/ch40/audio/en/mode.mp3 b/site/ch40/audio/en/mode.mp3
new file mode 100644
index 0000000..c0a3913
Binary files /dev/null and b/site/ch40/audio/en/mode.mp3 differ
diff --git a/site/ch40/audio/en/outlier.mp3 b/site/ch40/audio/en/outlier.mp3
new file mode 100644
index 0000000..ce36188
Binary files /dev/null and b/site/ch40/audio/en/outlier.mp3 differ
diff --git a/site/ch40/audio/en/q1.mp3 b/site/ch40/audio/en/q1.mp3
new file mode 100644
index 0000000..a78523a
Binary files /dev/null and b/site/ch40/audio/en/q1.mp3 differ
diff --git a/site/ch40/audio/en/q2.mp3 b/site/ch40/audio/en/q2.mp3
new file mode 100644
index 0000000..44c3bcb
Binary files /dev/null and b/site/ch40/audio/en/q2.mp3 differ
diff --git a/site/ch40/audio/en/q3.mp3 b/site/ch40/audio/en/q3.mp3
new file mode 100644
index 0000000..ab55f86
Binary files /dev/null and b/site/ch40/audio/en/q3.mp3 differ
diff --git a/site/ch40/audio/en/q4.mp3 b/site/ch40/audio/en/q4.mp3
new file mode 100644
index 0000000..4becd15
Binary files /dev/null and b/site/ch40/audio/en/q4.mp3 differ
diff --git a/site/ch40/audio/en/range.mp3 b/site/ch40/audio/en/range.mp3
new file mode 100644
index 0000000..5b1cdaf
Binary files /dev/null and b/site/ch40/audio/en/range.mp3 differ
diff --git a/site/ch40/audio/en/set.mp3 b/site/ch40/audio/en/set.mp3
new file mode 100644
index 0000000..d871f3c
Binary files /dev/null and b/site/ch40/audio/en/set.mp3 differ
diff --git a/site/ch40/audio/en/timings.js b/site/ch40/audio/en/timings.js
new file mode 100644
index 0000000..7ea03cf
--- /dev/null
+++ b/site/ch40/audio/en/timings.js
@@ -0,0 +1,453 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 8.496,
+ "marks": {
+ "sub": 1.406
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter forty."
+ ],
+ [
+ 1.406,
+ "When you have a whole set of data, it helps to describe it with just a few numbers: one for the middle, and one for the spread."
+ ]
+ ]
+ },
+ "set": {
+ "dur": 18.864,
+ "marks": {
+ "c": 3.047,
+ "three": 8.867,
+ "mean": 9.818,
+ "med": 10.638,
+ "mode": 11.667,
+ "var": 12.578,
+ "range": 17.747
+ },
+ "cues": [
+ [
+ 0.104,
+ "A data set is the group of values you collected."
+ ],
+ [
+ 3.047,
+ "A measure of central tendency is a single number that summarizes the middle of the set."
+ ],
+ [
+ 8.867,
+ "The three most common are the mean, the median, and the mode."
+ ],
+ [
+ 12.578,
+ "A measure of variation tells how spread out the values are."
+ ],
+ [
+ 16.628,
+ "The main one is the range."
+ ]
+ ]
+ },
+ "mean": {
+ "dur": 23.064,
+ "marks": {
+ "data": 2.969,
+ "add": 8.997,
+ "div": 14.023,
+ "ans": 20.911
+ },
+ "cues": [
+ [
+ 0.104,
+ "Start with the mean, also called the average."
+ ],
+ [
+ 2.969,
+ "A player scored twelve, nineteen, twenty-three, and ten points in four games."
+ ],
+ [
+ 8.997,
+ "First, add all the values."
+ ],
+ [
+ 11.797,
+ "The total is sixty-four."
+ ],
+ [
+ 14.023,
+ "Then divide by how many values there are."
+ ],
+ [
+ 16.745,
+ "Four games, so sixty-four divided by four is sixteen."
+ ],
+ [
+ 20.911,
+ "The mean is sixteen points per game."
+ ]
+ ]
+ },
+ "level": {
+ "dur": 18.24,
+ "marks": {
+ "line": 1.237,
+ "extra": 2.982,
+ "short": 5.521,
+ "move": 7.552,
+ "even": 9.805,
+ "fair": 13.008
+ },
+ "cues": [
+ [
+ 0.104,
+ "Why does that work?"
+ ],
+ [
+ 1.237,
+ "Draw a line at sixteen."
+ ],
+ [
+ 2.982,
+ "The tall bars have points above the line, and the short bars have room below it."
+ ],
+ [
+ 7.552,
+ "Move the extra points into the gaps, and every bar ends up at exactly sixteen."
+ ],
+ [
+ 13.008,
+ "The mean is a fair share: what each game would score if the total were spread out evenly."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 2.16,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.198,
+ "Find the mean."
+ ]
+ ]
+ },
+ "median": {
+ "dur": 23.016,
+ "marks": {
+ "jumps": 2.383,
+ "sort": 10.898,
+ "cross": 14.661,
+ "mid": 18.893
+ },
+ "cues": [
+ [
+ 0.104,
+ "The median is the middle value."
+ ],
+ [
+ 2.383,
+ "Five friends counted their jump rope jumps: one hundred thirty, eighty-five, one hundred fifty, two hundred ten, and one hundred."
+ ],
+ [
+ 10.898,
+ "First, put the values in order from least to greatest."
+ ],
+ [
+ 14.661,
+ "Then cross off one value from each end, again and again."
+ ],
+ [
+ 18.893,
+ "The value left in the middle, one hundred thirty, is the median."
+ ]
+ ]
+ },
+ "even": {
+ "dur": 23.88,
+ "marks": {
+ "set": 3.62,
+ "pair": 7.982,
+ "avg": 11.758,
+ "ans": 17.734
+ },
+ "cues": [
+ [
+ 0.117,
+ "With an even number of values, two values share the middle."
+ ],
+ [
+ 3.62,
+ "Take fourteen, twenty-six, forty, and fifty-three."
+ ],
+ [
+ 7.982,
+ "Crossing off the ends leaves twenty-six and forty."
+ ],
+ [
+ 11.758,
+ "The median is the mean of those two: add them to get sixty-six, then divide by two."
+ ],
+ [
+ 17.734,
+ "The median is thirty-three, halfway between them, even though thirty-three isn't in the data."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 2.28,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Click the median."
+ ]
+ ]
+ },
+ "mode": {
+ "dur": 20.976,
+ "marks": {
+ "plot": 2.93,
+ "tall": 9.779,
+ "two": 13.099,
+ "none": 17.865
+ },
+ "cues": [
+ [
+ 0.104,
+ "The mode is the value that occurs most often."
+ ],
+ [
+ 2.93,
+ "Here are nine quiz scores on a dot plot."
+ ],
+ [
+ 5.599,
+ "Each dot is one score, and repeated scores stack up."
+ ],
+ [
+ 9.779,
+ "The tallest stack is at eight, so the mode is eight."
+ ],
+ [
+ 13.099,
+ "A set can have two modes, when two values tie for most often."
+ ],
+ [
+ 17.865,
+ "And if no value repeats, there is no mode."
+ ]
+ ]
+ },
+ "range": {
+ "dur": 24.864,
+ "marks": {
+ "a": 1.237,
+ "bal": 3.594,
+ "diff": 7.383,
+ "def": 10.508,
+ "ra": 14.727,
+ "rb": 18.346,
+ "big": 22.018
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now the spread."
+ ],
+ [
+ 1.237,
+ "Here are two groups of six scores."
+ ],
+ [
+ 3.594,
+ "Both have a mean of eight: each dot plot balances at eight."
+ ],
+ [
+ 7.383,
+ "But the second group is far more spread out."
+ ],
+ [
+ 10.508,
+ "The range measures that: the maximum minus the minimum."
+ ],
+ [
+ 14.727,
+ "For the first group, ten minus six is four."
+ ],
+ [
+ 18.346,
+ "For the second, fourteen minus two is twelve."
+ ],
+ [
+ 22.018,
+ "A bigger range means more variation."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 3.24,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Find the mode and the range."
+ ]
+ ]
+ },
+ "outlier": {
+ "dur": 30.744,
+ "marks": {
+ "four": 4.583,
+ "mn": 9.505,
+ "md": 11.628,
+ "out": 13.88,
+ "pull": 17.266,
+ "stay": 21.172,
+ "skew": 23.555
+ },
+ "cues": [
+ [
+ 0.104,
+ "An outlier is a value much greater or much less than the rest."
+ ],
+ [
+ 4.583,
+ "Four friends ate two, three, two, and four slices of pizza."
+ ],
+ [
+ 9.505,
+ "Their mean is two point seven five, and their median is two point five."
+ ],
+ [
+ 13.88,
+ "Now a fifth friend ate fourteen slices."
+ ],
+ [
+ 17.266,
+ "The mean jumps to five, more than four of the five friends ate."
+ ],
+ [
+ 21.172,
+ "The median only moves to three."
+ ],
+ [
+ 23.555,
+ "An outlier can skew the mean, so when a set has one, the median usually describes a typical value better."
+ ]
+ ]
+ },
+ "q4": {
+ "dur": 3.984,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.159,
+ "Which number better describes a typical friend?"
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 19.416,
+ "marks": {
+ "w1": 0.977,
+ "w2": 5.182,
+ "w3": 10.898,
+ "w4": 14.023,
+ "end": 17.188
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.977,
+ "Mean: add the values, then divide by how many there are."
+ ],
+ [
+ 5.182,
+ "Median: the middle value once they're in order, or the mean of the two middle values."
+ ],
+ [
+ 10.898,
+ "Mode: the value that occurs most often."
+ ],
+ [
+ 14.023,
+ "Range: the maximum minus the minimum."
+ ],
+ [
+ 17.188,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 3.528,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.589,
+ "Find all four measures."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 3.336,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, how many modes does each set have?"
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 3.408,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Last one."
+ ],
+ [
+ 1.081,
+ "This set has an even number of values."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 6.888,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Nicely done."
+ ],
+ [
+ 1.211,
+ "That's the end of chapter forty, measures of central tendency and variation."
+ ]
+ ]
+ }
+};
diff --git a/site/ch40/audio/en/wrap.mp3 b/site/ch40/audio/en/wrap.mp3
new file mode 100644
index 0000000..a1b92d4
Binary files /dev/null and b/site/ch40/audio/en/wrap.mp3 differ
diff --git a/site/ch40/index.html b/site/ch40/index.html
new file mode 100644
index 0000000..f6345e8
--- /dev/null
+++ b/site/ch40/index.html
@@ -0,0 +1,328 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Measures of Central Tendency and Variation</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 40, title: 'Measures of Central Tendency and Variation', minutes: 8, next: '../ch41/' };
+const MEAN = COL.whole, MED = COL.rat, MODE = COL.int, RNG = COL.real;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+// A rounded name tag, centred on (x, y).
+function tag(p, str, color, x, y, t0, w = 220) {
+ const g = G(p, { x, y, s: .6, o: 0 });
+ mk('rect', { x: -w / 2, y: -36, width: w, height: 72, rx: 36, fill: mix(COL.board, color, .22), stroke: color, 'stroke-width': 3 }, g);
+ T(g, str, { y: 12, size: 34, fill: color, weight: 600, anchor: 'middle' });
+ pop(g, t0);
+ return g;
+}
+// Bar chart on a baseline: one bar per value, u pixels per unit. Heights tween with a_y / a_height.
+const BY = 720, BX = i => 250 + i * 160, BW = 104;
+function barSet(p, vals, u, t0, color = MEAN) {
+ const bars = vals.map((v, i) => {
+ const b = put(rect(p, BX(i) - BW / 2, BY, BW, 0, mix(COL.board, color, .55), 1, color), { a_y: BY, a_height: 0 });
+ tw(b, { a_y: BY - v * u, a_height: v * u }, t0 + i * .25, .7, out);
+ return b;
+ });
+ const labels = vals.map((v, i) => text(p, String(v), BX(i), BY - v * u - 16, t0 + i * .25 + .5, { size: 34, anchor: 'middle', weight: 600 }));
+ vals.forEach((v, i) => text(p, `game ${i + 1}`, BX(i), BY + 40, t0, { size: 22, fill: COL.dim, anchor: 'middle' }));
+ path(p, `M${BX(0) - 90} ${BY}H${BX(vals.length - 1) + 90}`, { stroke: COL.dim, 'stroke-width': 3 });
+ return { bars, labels };
+}
+// Move a block along an arc: up and over, then down into place.
+function arcMove(e, dx, dy, t0, dur = 1.1, lift = 90, run = prog) {
+ const { x, y } = st(e);
+ run(q => put(e, { x: x + dx * q, y: y + dy * q - Math.sin(Math.PI * q) * lift }), t0, dur);
+}
+// Number chips in slots along a row; returns the chips (each remembers its value).
+const SLOT = (i, n, gap = 200) => 800 + (i - (n - 1) / 2) * gap;
+function chipRow(p, vals, y, t0, color = COL.chalk, gap = 200) {
+ return vals.map((v, i) => {
+ const c = chip(p, [String(v)], color, { x: SLOT(i, vals.length, gap), y, size: 46, s: 0, o: 0 });
+ c.v = v;
+ pop(c, t0 + i * .12);
+ return c;
+ });
+}
+// Cross off the chip at (x, y): a slash, and the chip fades.
+function strike(p, c, x, y, t0, color = COL.dim) {
+ draw(path(p, `M${x - 70} ${y + 26}L${x + 70} ${y - 26}`, { stroke: color, 'stroke-width': 4 }, { d: 0 }), t0, .35);
+ tw(c, { o: .35 }, t0 + .2, .4);
+}
+
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'Measures of center', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 7, Chapter 40', { x: 800, y: 300, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Measures of Central Tendency', { x: 800, y: 400, size: 76, weight: 600, anchor: 'middle' });
+ T(g, 'and Variation', { x: 800, y: 490, size: 76, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = text(scene, 'one number for the middle · one for the spread', 800, 620, m('sub'), { size: 34, fill: COL.dim, anchor: 'middle' });
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['set', 'Data sets', (m) => {
+ const p = panel(0);
+ text(p, 'a data set', 800, 160, .2, { size: 28, fill: COL.dim, anchor: 'middle' });
+ chipRow(p, [7, 3, 9, 5, 6, 9, 4], 250, .3, COL.chalk, 150);
+ text(p, 'measures of central tendency: where is the middle?', 120, 450, m('c'), { size: 30, fill: COL.dim });
+ tag(p, 'Mean', MEAN, 250, 550, m('mean'));
+ tag(p, 'Median', MED, 510, 550, m('med'));
+ tag(p, 'Mode', MODE, 770, 550, m('mode'));
+ text(p, 'the average', 250, 630, m('mean', .3), { size: 24, fill: COL.dim, anchor: 'middle' });
+ text(p, 'the middle value', 510, 630, m('med', .3), { size: 24, fill: COL.dim, anchor: 'middle' });
+ text(p, 'the most common', 770, 630, m('mode', .3), { size: 24, fill: COL.dim, anchor: 'middle' });
+ path(p, 'M1000 420V670', { stroke: COL.faint, 'stroke-width': 2 });
+ text(p, 'measure of variation: how spread out?', 1060, 450, m('var'), { size: 30, fill: COL.dim });
+ tag(p, 'Range', RNG, 1270, 550, m('range'));
+ text(p, 'the spread', 1270, 630, m('range', .3), { size: 24, fill: COL.dim, anchor: 'middle' });
+ }],
+ ['mean', 'The mean', (m) => {
+ const p = panel(0);
+ S.bars = G(scene);
+ const B = S.b = barSet(S.bars, [12, 19, 23, 10], 18, m('data'));
+ text(p, 'points in four games', 160, 150, m('data'), { size: 30, fill: COL.dim });
+ text(p, 'mean = sum ÷ number of values', 1240, 180, .3, { size: 32, fill: MEAN, anchor: 'middle', weight: 600 });
+ B.labels.forEach((l, i) => pulse(l, m('add', .2 + i * .35), 1.3));
+ mline(p, '12 + 19 + 23 + 10 = 64', 1240, 330, m('add', .2), COL.chalk, 52);
+ text(p, 'add all the values', 1240, 380, m('add', .2), { size: 24, fill: COL.dim, anchor: 'middle' });
+ bracketH(p, BX(0) - BW / 2, BX(3) + BW / 2, BY + 66, '4 values', MEAN, m('div', 1));
+ mline(p, '64 ÷ 4 = 16', 1240, 480, m('div', 1.5), COL.chalk, 52);
+ text(p, 'divide by how many', 1240, 530, m('div', 1.5), { size: 24, fill: COL.dim, anchor: 'middle' });
+ const a = G(p, { x: 1240, y: 640, s: .6, o: 0 });
+ mk('rect', { x: -170, y: -50, width: 340, height: 80, rx: 16, fill: 'none', stroke: MEAN, 'stroke-width': 3 }, a);
+ M(a, ['mean = 16'], { y: 6, size: 50, fill: MEAN });
+ pop(a, m('ans'));
+ }],
+ ['level', 'A fair share', (m) => {
+ const p = panel(0), U = 18, Yv = v => BY - v * U, { bars, labels } = S.b;
+ const line = path(p, `M${BX(0) - 90} ${Yv(16)}H${BX(3) + 90}`, { stroke: MEAN, 'stroke-width': 3, 'stroke-dasharray': '10 8' }, { o: 0, 'a_stroke-width': 3 });
+ show(line, m('line'));
+ text(p, 'mean 16', BX(3) + 104, Yv(16) + 9, m('line'), { size: 28, fill: MEAN, weight: 600 });
+ // Extra points above the line: two pieces from the 23 bar, one from the 19 bar.
+ const piece = (i, lo, hi) => rect(p, BX(i) - BW / 2, Yv(hi), BW, (hi - lo) * U, mix(COL.board, COL.task, .6), 0, COL.task);
+ const pa = piece(2, 16, 20), pb = piece(2, 20, 23), pc = piece(1, 16, 19);
+ [pa, pb, pc].forEach((e, i) => show(e, m('extra', i * .2)));
+ const gaps = [[0, 12], [3, 10]].map(([i, v]) => {
+ const g = put(mk('rect', { x: BX(i) - BW / 2, y: Yv(16), width: BW, height: (16 - v) * U, fill: 'none', stroke: COL.dim, 'stroke-width': 2.5, 'stroke-dasharray': '7 6' }, p), { o: 0 });
+ show(g, m('short', i * .2));
+ return g;
+ });
+ [1, 2].forEach(i => tw(bars[i], { a_y: Yv(16), a_height: 16 * U }, m('move'), .01));
+ labels.forEach(l => hide(l, m('move'), .3));
+ arcMove(pc, BX(3) - BX(1), Yv(13) - Yv(19), m('move'), 1);
+ arcMove(pb, BX(3) - BX(2), Yv(16) - Yv(23), m('move', .6), 1);
+ arcMove(pa, BX(0) - BX(2), Yv(16) - Yv(20), m('move', 1.1), 1.1, 120);
+ gaps.forEach(g => hide(g, m('even')));
+ [0, 1, 2, 3].forEach(i => text(p, '16', BX(i), Yv(16) - 16, m('even', i * .15), { size: 34, fill: MEAN, anchor: 'middle', weight: 600 }));
+ tw(line, { 'a_stroke-width': 6 }, m('even', .6), .3); tw(line, { 'a_stroke-width': 3 }, m('even', 1), .4);
+ text(p, '64 points shared evenly', 1240, 330, m('fair'), { size: 34, anchor: 'middle', weight: 600 });
+ text(p, 'by 4 games is 16 each', 1240, 380, m('fair', .4), { size: 34, anchor: 'middle', weight: 600 });
+ }],
+ ['q1', 'Quick check', () => {
+ const p = panel(0);
+ hide(S.bars, 0, .4);
+ text(p, 'minutes of practice on four days', 160, 150, .2, { size: 30, fill: COL.dim });
+ S.qb = barSet(p, [7, 3, 9, 5], 30, .3);
+ }, { ask: done => quiz({ x: 960, y: 180, w: 560, cls: 'side' }, [{
+ id: 'c-mean', prompt: ['Find the mean of ', $m('7, 3, 9, 5'), '.'],
+ build: blanks([{ parts: ['mean = ', { box: '6' }], why: '7 + 3 + 9 + 5 = 24, and 24 ÷ 4 = 6.', hint: 'Add the four values, then divide by 4.',
+ fx: () => {
+ const L = S.q || qlayer();
+ S.qb.bars.forEach(b => fx(b, { a_y: BY - 180, a_height: 180 }, .2, .9));
+ S.qb.labels.forEach(l => fx(l, { o: 0 }, 0, .3));
+ const ln = path(L, `M${BX(0) - 90} ${BY - 180}H${BX(3) + 90}`, { stroke: MEAN, 'stroke-width': 3, 'stroke-dasharray': '10 8' }, { o: 0 });
+ fx(ln, { o: 1 }, .9, .4);
+ [0, 1, 2, 3].forEach(i => fx(T(L, '6', { x: BX(i), y: BY - 196, size: 34, fill: MEAN, anchor: 'middle', weight: 600, o: 0 }), { o: 1 }, 1 + i * .1, .3));
+ } }]),
+ }], done) }],
+ ['median', 'The median', (m) => {
+ const p = panel(0);
+ text(p, 'jump rope jumps', 800, 200, m('jumps'), { size: 30, fill: COL.dim, anchor: 'middle' });
+ const cs = S.mc = chipRow(p, [130, 85, 150, 210, 100], 360, m('jumps', .3));
+ const order = [...cs].sort((a, b) => a.v - b.v);
+ order.forEach((c, k) => {
+ const from = cs.indexOf(c), dx = SLOT(k, 5) - SLOT(from, 5);
+ if (dx) arcMove(c, dx, 0, m('sort', .3 + k * .15), 1.1, dx > 0 ? 80 : -80);
+ });
+ const ar = G(p, { o: 0 });
+ path(ar, `M${SLOT(0, 5)} 470H${SLOT(4, 5)}M${SLOT(4, 5) - 16} 460L${SLOT(4, 5)} 470L${SLOT(4, 5) - 16} 480`, { stroke: COL.dim, 'stroke-width': 3 });
+ T(ar, 'least', { x: SLOT(0, 5), y: 510, size: 24, fill: COL.dim, anchor: 'middle' });
+ T(ar, 'greatest', { x: SLOT(4, 5), y: 510, size: 24, fill: COL.dim, anchor: 'middle' });
+ show(ar, m('sort', 1.4));
+ [[0, 4], [1, 3]].forEach(([a, b], j) => [a, b].forEach(k => strike(p, order[k], SLOT(k, 5), 360, m('cross', j * 1.1))));
+ const mid = order[2];
+ tw(mid, { s: 1.25 }, m('mid'), .4, back);
+ tw(mid._rect, { c_stroke: MED }, m('mid'), .3);
+ put(mid._rect, { c_stroke: COL.chalk });
+ mline(p, 'median = 130', 800, 620, m('mid', .5), MED, 56);
+ }],
+ ['even', 'Two middle values', (m) => {
+ const p = panel(0);
+ const cs = chipRow(p, [14, 26, 40, 53], 220, m('set'));
+ const D = dataLine(p, { lo: 10, hi: 60, x0: 300, x1: 1300, y: 720, step: 5, every: 2, t0: m('set', .4) });
+ D.dots([14, 26, 40, 53], COL.chalk, m('set', .8), .15);
+ [0, 3].forEach(k => strike(p, cs[k], SLOT(k, 4), 220, m('pair', k * .2)));
+ [1, 2].forEach(k => { tw(cs[k]._rect, { c_stroke: MED }, m('pair', .6), .3); put(cs[k]._rect, { c_stroke: COL.chalk }); });
+ mline(p, ['(26 + 40) ÷ 2 = 66 ÷ 2 = 33'], 800, 380, m('avg'), COL.chalk, 50);
+ D.mark(33, MED, m('ans'), 'median 33');
+ D.span(26, 33, 600, '7', MED, m('ans', .8));
+ D.span(33, 40, 600, '7', MED, m('ans', 1.2));
+ text(p, 'halfway between the two middle values', 800, 480, m('ans', 1.6), { size: 28, fill: MED, anchor: 'middle' });
+ }],
+ ['q2', 'Quick check', () => {
+ const p = panel(0);
+ text(p, 'points scored in five games', 800, 220, .2, { size: 30, fill: COL.dim, anchor: 'middle' });
+ S.row = tokens(p, ['9', ' ', '4', ' ', '12', ' ', '7', ' ', '15'], { x: 800, y: 420, size: 84, anchor: 'middle', o: 0 });
+ S.row.forEach((e, i) => show(e, .3 + i * .05));
+ }, { ask: done => quiz(BAND, [{
+ id: 'c-median', prompt: ['Click the median of these five values.'],
+ build: tapEls(S.row, [0, 2, 4, 6, 8], 0, 'In order the values are 4, 7, 9, 12, 15, and 9 is in the middle.',
+ i => i === 4 ? '12 is in the middle of the list, but the list is not in order yet. Sort first: 4, 7, 9, 12, 15.'
+ : `Sort the values first: 4, 7, 9, 12, 15. Which one has two values on each side?`,
+ () => {
+ const nums = [0, 2, 4, 6, 8].map(i => S.row[i]), slots = nums.map(e => e._px);
+ [4, 7, 9, 12, 15].forEach((v, k) => { const e = nums.find(n => n.textContent.trim() === String(v)); fx(e, { x: slots[k] }, .2 + k * .1, .8); });
+ floatText('sorted: least to greatest', 800, 300, MED);
+ }),
+ }], done) }],
+ ['mode', 'The mode', (m) => {
+ const p = panel(0);
+ text(p, 'quiz scores out of 10', 180, 200, m('plot'), { size: 30, fill: COL.dim });
+ const D = dataLine(p, { lo: 4, hi: 10, x0: 220, x1: 880, y: 660, t0: m('plot'), r: 17 });
+ D.dots([6, 8, 7, 8, 9, 8, 5, 7, 10], MODE, m('plot', 1), .35, { from: 260 });
+ const box = put(mk('rect', { x: D.V(8) - 32, y: 528, width: 64, height: 124, rx: 20, fill: 'none', stroke: MODE, 'stroke-width': 3.5 }, p), { o: 0 });
+ show(box, m('tall'));
+ mline(p, 'mode = 8', D.V(8), 500, m('tall', .4), MODE, 46);
+ path(p, 'M1000 260V720', { stroke: COL.faint, 'stroke-width': 2 });
+ text(p, 'two values tie', 1060, 300, m('two'), { size: 28, fill: COL.dim });
+ tokens(p, ['2, ', { t: '3, 3,', fill: MODE }, ' ', { t: '5, 5', fill: MODE }], { x: 1060, y: 370, size: 48, o: 0 }).forEach(e => show(e, m('two', .4)));
+ text(p, 'two modes: 3 and 5', 1060, 420, m('two', 1), { size: 28, fill: MODE, weight: 600 });
+ text(p, 'nothing repeats', 1060, 540, m('none'), { size: 28, fill: COL.dim });
+ mline(p, '1, 4, 6, 9', 1060, 610, m('none', .4), COL.chalk, 48, 'start');
+ text(p, 'no mode', 1060, 660, m('none', 1), { size: 28, fill: MODE, weight: 600 });
+ }],
+ ['range', 'The range', (m) => {
+ const p = panel(0);
+ const A = dataLine(p, { lo: 0, hi: 16, x0: 140, x1: 940, y: 370, every: 2, t0: m('a'), r: 14 });
+ const B = dataLine(p, { lo: 0, hi: 16, x0: 140, x1: 940, y: 720, every: 2, t0: m('a', .3), r: 14 });
+ text(p, 'group A', 120, 170, m('a'), { size: 28, fill: COL.whole, weight: 600 });
+ text(p, 'group B', 120, 520, m('a', .3), { size: 28, fill: COL.nat, weight: 600 });
+ A.dots([6, 7, 8, 8, 9, 10], COL.whole, m('a', .4), .1);
+ const bd = B.dots([2, 4, 8, 8, 12, 14], COL.nat, m('a', 1), .1);
+ A.mark(8, MEAN, m('bal'), 'mean 8');
+ B.mark(8, MEAN, m('bal', .3), 'mean 8');
+ bd.forEach((d, i) => pulse(d, m('diff', i * .1), 1.4));
+ path(p, 'M1020 160V780', { stroke: COL.faint, 'stroke-width': 2 });
+ text(p, 'range = maximum − minimum', 1070, 230, m('def'), { size: 32, fill: RNG, weight: 600 });
+ A.span(6, 10, 250, '4', RNG, m('ra'));
+ mline(p, '10 − 6 = 4', 1070, 380, m('ra', .4), COL.chalk, 50, 'start');
+ text(p, 'group A', 1070, 320, m('ra', .4), { size: 24, fill: COL.whole });
+ B.span(2, 14, 600, '12', RNG, m('rb'));
+ mline(p, '14 − 2 = 12', 1070, 540, m('rb', .4), COL.chalk, 50, 'start');
+ text(p, 'group B', 1070, 480, m('rb', .4), { size: 24, fill: COL.nat });
+ text(p, 'bigger range: more spread out', 1070, 660, m('big'), { size: 28, fill: RNG, weight: 600 });
+ }],
+ ['q3', 'Quick check', () => {
+ const p = panel(0);
+ text(p, 'books read by nine students this summer', 140, 200, .2, { size: 30, fill: COL.dim });
+ const D = S.qd = dataLine(p, { lo: 2, hi: 12, x0: 160, x1: 900, y: 660, t0: .2, r: 16 });
+ D.dots([3, 4, 4, 6, 7, 7, 7, 9, 11], COL.whole, .4, .08);
+ }, { ask: done => quiz({ x: 1000, y: 170, w: 540, cls: 'side' }, [{
+ id: 'c-moderange', prompt: ['Find the mode and the range.'],
+ build: blanks([
+ { parts: ['mode = ', { box: '7' }], why: '7 appears three times, more than any other value.', hint: 'Which stack of dots is tallest?',
+ fx: () => { const L = S.q || qlayer(), V = S.qd.V; const b = put(mk('rect', { x: V(7) - 30, y: 540, width: 60, height: 114, rx: 18, fill: 'none', stroke: MODE, 'stroke-width': 3.5 }, L), { o: 0 }); fx(b, { o: 1 }, 0, .4); } },
+ { parts: ['range = ', { box: '8' }], why: 'The maximum is 11 and the minimum is 3: 11 − 3 = 8.', hint: 'Maximum minus minimum.',
+ fx: () => S.qd.span(3, 11, 470, '11 − 3 = 8', RNG, 0, { run: fx, into: S.q || qlayer() }) },
+ ]),
+ }], done) }],
+ ['outlier', 'Outliers', (m) => {
+ const p = panel(0);
+ const D = dataLine(p, { lo: 0, hi: 15, x0: 160, x1: 1000, y: 560, t0: m('four'), r: 15, size: 20 });
+ text(p, 'slices of pizza', 160, 160, m('four'), { size: 30, fill: COL.dim });
+ const l1 = mline(p, '2, 3, 2, 4', 160, 230, m('four'), COL.chalk, 46, 'start');
+ D.dots([2, 3, 2, 4], COL.whole, m('four', .5), .2);
+ const mn = D.mark(2.75, MEAN, m('mn'), 'mean');
+ const md = G(p, { x: D.V(2.5), y: 560, o: 0 });
+ path(md, 'M0 -10V-140', { stroke: MED, 'stroke-width': 3, 'stroke-dasharray': '8 6' });
+ T(md, 'median', { y: -154, size: 24, fill: MED, weight: 600, anchor: 'middle' });
+ show(md, m('md'));
+ const v1 = mline(p, 'mean = 2.75', 1120, 330, m('mn'), MEAN, 44, 'start');
+ const v2 = mline(p, 'median = 2.5', 1120, 420, m('md'), MED, 44, 'start');
+ const o = D.dot(14, COL.bad, m('out'), { from: 300 });
+ mline(p, ', 14', 160 + l1._w, 230, m('out'), COL.bad, 46, 'start');
+ text(p, 'outlier', D.V(14), 490, m('out', .6), { size: 26, fill: COL.bad, anchor: 'middle', weight: 600 });
+ D.slide(mn, 5, m('pull'), tw, 1.6);
+ hide(v1, m('pull'), .3);
+ mline(p, 'mean = 5', 1120, 330, m('pull', .8), MEAN, 44, 'start');
+ tw(md, { x: D.V(3) }, m('stay'), .8);
+ hide(v2, m('stay'), .3);
+ S.medVal = mline(p, 'median = 3', 1120, 420, m('stay', .5), MED, 44, 'start');
+ text(p, 'An outlier pulls the mean.', 1120, 520, m('skew'), { size: 26, fill: COL.dim });
+ text(p, 'The median barely moves.', 1120, 560, m('skew', .4), { size: 26, fill: COL.dim });
+ }],
+ ['q4', 'Quick check', () => {}, { ask: done => quiz(BAND, [{
+ id: 'c-outlier', prompt: ['Which number better describes how many slices a typical friend ate?'],
+ build: choice([['the mean, ', $m('5')], ['the median, ', $m('3')]], 1, 'Four of the five friends ate 4 slices or fewer. The median, 3, sits among them.',
+ ['Four of the five friends ate fewer than 5 slices. The outlier, 14, pulled the mean up.', null], () => pulseFx(S.medVal, 1.2)),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['Mean: add the values, divide by how many.', 'w1', MEAN], ['Median: the middle value in order (or the mean of the two middle values).', 'w2', MED],
+ ['Mode: the value that occurs most often.', 'w3', MODE], ['Range: maximum − minimum.', 'w4', RNG]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 230 + i * 130, o: 0 });
+ mk('circle', { cx: 170, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 170, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 230, size: 34, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-five', prompt: ['Data: ', $m('12, 15, 9, 15, 19'), '. Find each measure.'], build: blanks(MEASURES5),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-modes', prompt: ['How many modes does each data set have?'],
+ build: grid(MODEQ, [['0', 'No mode', null, '0'], ['1', 'One mode', MODE, '1'], ['2', 'Two modes', MODE, '2']], { multi: false, text: true }),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-six', prompt: ['Data: ', $m('8, 3, 12, 5, 9, 5'), '. Find each measure.'], build: blanks(MEASURES6),
+ }], done, 'Chapter practice 3 of 3') }],
+ ['finish', 'Finished', () => {}, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const MEASURES5 = [
+ { parts: ['mean = ', { box: '14' }], why: '12 + 15 + 9 + 15 + 19 = 70, and 70 ÷ 5 = 14.', hint: 'Add the five values, then divide by 5.' },
+ { parts: ['median = ', { box: '15' }], why: 'In order: 9, 12, 15, 15, 19. The middle value is 15.', hint: 'Put the values in order first.' },
+ { parts: ['mode = ', { box: '15' }], why: '15 appears twice; every other value appears once.', hint: 'Which value appears most often?' },
+ { parts: ['range = ', { box: '10' }], why: '19 − 9 = 10.', hint: 'Maximum minus minimum.' },
+];
+const MEASURES6 = [
+ { parts: ['mean = ', { box: '7' }], why: '8 + 3 + 12 + 5 + 9 + 5 = 42, and 42 ÷ 6 = 7.', hint: 'Add the six values, then divide by 6.' },
+ { parts: ['median = ', { box: '6.5' }], why: 'In order: 3, 5, 5, 8, 9, 12. The middle two are 5 and 8, and (5 + 8) ÷ 2 = 6.5.', hint: 'Sort the values. With six values, take the mean of the two middle ones.' },
+ { parts: ['mode = ', { box: '5' }], why: '5 appears twice; every other value appears once.', hint: 'Which value appears most often?' },
+ { parts: ['range = ', { box: '9' }], why: '12 − 3 = 9.', hint: 'Maximum minus minimum.' },
+];
+const MODEQ = [
+ { parts: [$m('4, 7, 7, 9')], ans: ['1'], why: '7 appears twice.' },
+ { parts: [$m('2, 5, 8, 11')], ans: ['0'], why: 'No value repeats.' },
+ { parts: [$m('1, 1, 6, 6, 9')], ans: ['2'], why: '1 and 6 each appear twice.' },
+ { parts: [$m('10, 20, 30, 10, 40')], ans: ['1'], why: '10 appears twice.' },
+ { parts: [$m('6, 2, 9, 4, 7')], ans: ['0'], why: 'No value repeats.' },
+ { parts: [$m('3, 8, 8, 5, 3, 1')], ans: ['2'], why: '3 and 8 each appear twice.' },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch41/audio/en/boxplot.mp3 b/site/ch41/audio/en/boxplot.mp3
new file mode 100644
index 0000000..f146c01
Binary files /dev/null and b/site/ch41/audio/en/boxplot.mp3 differ
diff --git a/site/ch41/audio/en/corr.mp3 b/site/ch41/audio/en/corr.mp3
new file mode 100644
index 0000000..1b41792
Binary files /dev/null and b/site/ch41/audio/en/corr.mp3 differ
diff --git a/site/ch41/audio/en/final1.mp3 b/site/ch41/audio/en/final1.mp3
new file mode 100644
index 0000000..687eca9
Binary files /dev/null and b/site/ch41/audio/en/final1.mp3 differ
diff --git a/site/ch41/audio/en/final2.mp3 b/site/ch41/audio/en/final2.mp3
new file mode 100644
index 0000000..fee07d4
Binary files /dev/null and b/site/ch41/audio/en/final2.mp3 differ
diff --git a/site/ch41/audio/en/final3.mp3 b/site/ch41/audio/en/final3.mp3
new file mode 100644
index 0000000..f85f345
Binary files /dev/null and b/site/ch41/audio/en/final3.mp3 differ
diff --git a/site/ch41/audio/en/final4.mp3 b/site/ch41/audio/en/final4.mp3
new file mode 100644
index 0000000..0bc3637
Binary files /dev/null and b/site/ch41/audio/en/final4.mp3 differ
diff --git a/site/ch41/audio/en/finish.mp3 b/site/ch41/audio/en/finish.mp3
new file mode 100644
index 0000000..6c936ba
Binary files /dev/null and b/site/ch41/audio/en/finish.mp3 differ
diff --git a/site/ch41/audio/en/histogram.mp3 b/site/ch41/audio/en/histogram.mp3
new file mode 100644
index 0000000..88b1a4f
Binary files /dev/null and b/site/ch41/audio/en/histogram.mp3 differ
diff --git a/site/ch41/audio/en/intro.mp3 b/site/ch41/audio/en/intro.mp3
new file mode 100644
index 0000000..1b4a4cd
Binary files /dev/null and b/site/ch41/audio/en/intro.mp3 differ
diff --git a/site/ch41/audio/en/lineplot.mp3 b/site/ch41/audio/en/lineplot.mp3
new file mode 100644
index 0000000..6bca939
Binary files /dev/null and b/site/ch41/audio/en/lineplot.mp3 differ
diff --git a/site/ch41/audio/en/q1.mp3 b/site/ch41/audio/en/q1.mp3
new file mode 100644
index 0000000..18c3329
Binary files /dev/null and b/site/ch41/audio/en/q1.mp3 differ
diff --git a/site/ch41/audio/en/q2.mp3 b/site/ch41/audio/en/q2.mp3
new file mode 100644
index 0000000..8d7ccd7
Binary files /dev/null and b/site/ch41/audio/en/q2.mp3 differ
diff --git a/site/ch41/audio/en/q3.mp3 b/site/ch41/audio/en/q3.mp3
new file mode 100644
index 0000000..db507aa
Binary files /dev/null and b/site/ch41/audio/en/q3.mp3 differ
diff --git a/site/ch41/audio/en/q4.mp3 b/site/ch41/audio/en/q4.mp3
new file mode 100644
index 0000000..07a4e11
Binary files /dev/null and b/site/ch41/audio/en/q4.mp3 differ
diff --git a/site/ch41/audio/en/quarters.mp3 b/site/ch41/audio/en/quarters.mp3
new file mode 100644
index 0000000..c64348f
Binary files /dev/null and b/site/ch41/audio/en/quarters.mp3 differ
diff --git a/site/ch41/audio/en/scatter.mp3 b/site/ch41/audio/en/scatter.mp3
new file mode 100644
index 0000000..02975c5
Binary files /dev/null and b/site/ch41/audio/en/scatter.mp3 differ
diff --git a/site/ch41/audio/en/timings.js b/site/ch41/audio/en/timings.js
new file mode 100644
index 0000000..70567d0
--- /dev/null
+++ b/site/ch41/audio/en/timings.js
@@ -0,0 +1,482 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 7.728,
+ "marks": {
+ "sub": 1.667
+ },
+ "cues": [
+ [
+ 0.091,
+ "Chapter forty-one."
+ ],
+ [
+ 1.667,
+ "A long list of numbers is hard to read at a glance."
+ ],
+ [
+ 5.104,
+ "A good display lets you see the pattern."
+ ]
+ ]
+ },
+ "twoway": {
+ "dur": 43.608,
+ "marks": {
+ "q": 4.466,
+ "cols": 9.596,
+ "rows": 12.422,
+ "cells": 14.714,
+ "tot": 19.74,
+ "all": 25.729,
+ "cmp": 29.844,
+ "cmp2": 34.557,
+ "rel": 37.8
+ },
+ "cues": [
+ [
+ 0.091,
+ "A two-way table sorts one group by two questions at once."
+ ],
+ [
+ 4.466,
+ "Thirty-six students took a test."
+ ],
+ [
+ 6.55,
+ "Did they go to the review session, and did they pass?"
+ ],
+ [
+ 9.596,
+ "The columns split the students by the review."
+ ],
+ [
+ 12.422,
+ "The rows split them by the result."
+ ],
+ [
+ 14.714,
+ "Each cell counts the students who fit both."
+ ],
+ [
+ 17.422,
+ "Eighteen did the review and passed."
+ ],
+ [
+ 19.74,
+ "Adding across a row gives a row total."
+ ],
+ [
+ 22.695,
+ "Adding down a column gives a column total."
+ ],
+ [
+ 25.729,
+ "Both ways, the totals add up to all thirty-six students."
+ ],
+ [
+ 29.844,
+ "Now compare."
+ ],
+ [
+ 31.016,
+ "Of the twenty-one students who did the review, eighteen passed."
+ ],
+ [
+ 34.557,
+ "Of the fifteen who skipped it, only six passed."
+ ],
+ [
+ 37.8,
+ "The table suggests a relationship: students who did the review were more likely to pass."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 2.424,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.146,
+ "Click the right cell."
+ ]
+ ]
+ },
+ "lineplot": {
+ "dur": 26.256,
+ "marks": {
+ "data": 5.612,
+ "line": 9.193,
+ "marks": 12.07,
+ "read": 15.716,
+ "mode": 18.464,
+ "range": 22.253
+ },
+ "cues": [
+ [
+ 0.065,
+ "A line plot shows the frequency of each value, meaning how often it occurs."
+ ],
+ [
+ 5.612,
+ "Twelve students said how many pets they have."
+ ],
+ [
+ 9.193,
+ "Draw a number line that covers every answer, then put one x above the value for each answer."
+ ],
+ [
+ 15.716,
+ "Now the pattern is easy to see."
+ ],
+ [
+ 18.464,
+ "One pet is the most common answer, so the mode is one."
+ ],
+ [
+ 22.253,
+ "The answers run from zero to four, so the range is four."
+ ]
+ ]
+ },
+ "histogram": {
+ "dur": 30.528,
+ "marks": {
+ "data": 6.953,
+ "bins": 10.286,
+ "fill": 17.37,
+ "gap": 20.964,
+ "read": 25.625
+ },
+ "cues": [
+ [
+ 0.091,
+ "A histogram also shows frequency, but for equal intervals instead of single values."
+ ],
+ [
+ 6.953,
+ "Here are twenty students' homework times, in minutes."
+ ],
+ [
+ 10.286,
+ "Split the scale into intervals of ten minutes: zero to nine, ten to nineteen, and so on."
+ ],
+ [
+ 17.37,
+ "Each time adds one to the height of its interval's bar."
+ ],
+ [
+ 20.964,
+ "The bars touch, because the intervals cover the whole scale with no gaps."
+ ],
+ [
+ 25.625,
+ "The tallest bar shows the most common interval: twenty to twenty-nine minutes."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 2.544,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.081,
+ "Read the histogram."
+ ]
+ ]
+ },
+ "boxplot": {
+ "dur": 39.312,
+ "marks": {
+ "data": 5.195,
+ "med": 9.31,
+ "q1": 17.005,
+ "q3": 22.357,
+ "ends": 27.826,
+ "box": 31.745,
+ "wh": 36.224
+ },
+ "cues": [
+ [
+ 0.091,
+ "A box plot shows how a data set is spread out, using just five numbers."
+ ],
+ [
+ 5.195,
+ "Here are eleven values, in order, on a number line."
+ ],
+ [
+ 9.31,
+ "First find the median, the middle value."
+ ],
+ [
+ 11.927,
+ "It's eleven, and it splits the data into a lower half and an upper half."
+ ],
+ [
+ 17.005,
+ "The median of the lower half is the lower quartile, Q one."
+ ],
+ [
+ 21.094,
+ "Here it's six."
+ ],
+ [
+ 22.357,
+ "The median of the upper half is the upper quartile, Q three."
+ ],
+ [
+ 26.641,
+ "Here it's fifteen."
+ ],
+ [
+ 27.826,
+ "The minimum is two, and the maximum is twenty-four."
+ ],
+ [
+ 31.745,
+ "Draw a box from Q one to Q three, with a line at the median, then whiskers out to the minimum and the maximum."
+ ]
+ ]
+ },
+ "quarters": {
+ "dur": 20.544,
+ "marks": {
+ "four": 3.32,
+ "mid": 6.224,
+ "long": 8.971,
+ "short": 12.188,
+ "ex": 14.792
+ },
+ "cues": [
+ [
+ 0.104,
+ "Those five numbers cut the data into four parts, and each part holds about a quarter of the values."
+ ],
+ [
+ 6.224,
+ "So the box holds the middle half of the data."
+ ],
+ [
+ 8.971,
+ "A long part means the values in it are spread out."
+ ],
+ [
+ 12.188,
+ "A short part means they're bunched close together."
+ ],
+ [
+ 14.792,
+ "Here, the right whisker is the longest part: the largest values are the most spread out."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 3.624,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.159,
+ "Find the median and the quartiles."
+ ]
+ ]
+ },
+ "scatter": {
+ "dur": 25.752,
+ "marks": {
+ "tab": 4.57,
+ "pt": 8.581,
+ "all": 12.995,
+ "trend": 14.779,
+ "fit": 19.505
+ },
+ "cues": [
+ [
+ 0.091,
+ "A scatter plot compares two sets of data that come in pairs."
+ ],
+ [
+ 4.57,
+ "Ten students report the hours they studied and their test scores."
+ ],
+ [
+ 8.581,
+ "Each student becomes an ordered pair: hours across, score up."
+ ],
+ [
+ 12.995,
+ "Plot every student."
+ ],
+ [
+ 14.779,
+ "The points drift upward: more studying tends to go with a higher score."
+ ],
+ [
+ 19.505,
+ "A line of best fit runs through the middle of the points to show that trend."
+ ],
+ [
+ 23.607,
+ "It doesn't have to pass through any of them."
+ ]
+ ]
+ },
+ "corr": {
+ "dur": 28.224,
+ "marks": {
+ "pos": 3.359,
+ "neg": 8.542,
+ "none": 15.885,
+ "tend": 21.589
+ },
+ "cues": [
+ [
+ 0.117,
+ "The trend in a scatter plot is called a correlation."
+ ],
+ [
+ 3.359,
+ "Positive correlation: as one value goes up, the other tends to go up too."
+ ],
+ [
+ 8.542,
+ "Negative correlation: as one value goes up, the other tends to go down, like a car's age and its price."
+ ],
+ [
+ 15.885,
+ "No correlation: the points show no trend, like shoe size and birthday month."
+ ],
+ [
+ 21.589,
+ "Notice the word tends."
+ ],
+ [
+ 23.281,
+ "A correlation describes the overall pattern, not every single point."
+ ]
+ ]
+ },
+ "q4": {
+ "dur": 3.48,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.107,
+ "Which plot shows a negative correlation?"
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 22.488,
+ "marks": {
+ "w1": 3.047,
+ "w2": 7.539,
+ "w3": 12.383,
+ "w4": 16.393,
+ "end": 20.156
+ },
+ "cues": [
+ [
+ 0.104,
+ "Each display answers a different question."
+ ],
+ [
+ 3.047,
+ "A two-way table counts one group by two categories at once."
+ ],
+ [
+ 7.539,
+ "Line plots and histograms show how often values occur."
+ ],
+ [
+ 12.383,
+ "A box plot summarizes the spread with five numbers."
+ ],
+ [
+ 16.393,
+ "A scatter plot shows whether two sets of data are related."
+ ],
+ [
+ 20.156,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 3.144,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.484,
+ "Read the two-way table."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 2.112,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, read the histogram."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 2.664,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Now decide the kind of correlation."
+ ]
+ ]
+ },
+ "final4": {
+ "dur": 3.624,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.146,
+ "Find the five numbers for a box plot."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 5.088,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Great work."
+ ],
+ [
+ 1.276,
+ "That's the end of chapter forty-one, displaying data."
+ ]
+ ]
+ }
+};
diff --git a/site/ch41/audio/en/twoway.mp3 b/site/ch41/audio/en/twoway.mp3
new file mode 100644
index 0000000..dd1ef17
Binary files /dev/null and b/site/ch41/audio/en/twoway.mp3 differ
diff --git a/site/ch41/audio/en/wrap.mp3 b/site/ch41/audio/en/wrap.mp3
new file mode 100644
index 0000000..9061468
Binary files /dev/null and b/site/ch41/audio/en/wrap.mp3 differ
diff --git a/site/ch41/index.html b/site/ch41/index.html
new file mode 100644
index 0000000..1a8322f
--- /dev/null
+++ b/site/ch41/index.html
@@ -0,0 +1,393 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Displaying Data</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 41, title: 'Displaying Data', minutes: 10, next: '../ch42/' };
+const REV = COL.whole, SKIP = COL.nat, MED = COL.rat, QC = COL.int, END = COL.nat, BAR = COL.irr;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+// Table grid: xs and ys are the column and row edges. Returns cell centres and click boxes.
+function grid2(p, xs, ys, t0) {
+ let d = '';
+ ys.forEach(y => { d += `M${xs[0]} ${y}H${xs.at(-1)}`; });
+ xs.forEach(x => { d += `M${x} ${ys[0]}V${ys.at(-1)}`; });
+ show(path(p, d, { stroke: COL.faint, 'stroke-width': 2 }, { o: 0 }), t0);
+ return {
+ C: (i, j) => [(xs[j] + xs[j + 1]) / 2, (ys[i] + ys[i + 1]) / 2],
+ box: (i, j) => [xs[j] + 5, ys[i] + 5, xs[j + 1] - xs[j] - 10, ys[i + 1] - ys[i] - 10],
+ strip: (i, j1, j2, color, t0, run = tw, into = p) => {
+ const r = put(mk('rect', { x: xs[j1] + 4, y: ys[i] + 4, width: xs[j2 + 1] - xs[j1] - 8, height: ys[i + 1] - ys[i] - 8, rx: 10, fill: color }, into), { o: 0 });
+ into.insertBefore(r, into.firstChild);
+ run(r, { o: .22 }, t0, .3);
+ return r;
+ },
+ stripV: (j, i1, i2, color, t0, run = tw, into = p) => {
+ const r = put(mk('rect', { x: xs[j] + 4, y: ys[i1] + 4, width: xs[j + 1] - xs[j] - 8, height: ys[i2 + 1] - ys[i1] - 8, rx: 10, fill: color }, into), { o: 0 });
+ into.insertBefore(r, into.firstChild);
+ run(r, { o: .22 }, t0, .3);
+ return r;
+ },
+ };
+}
+// A number in a table cell; pops in at t0.
+function cellNum(p, G2, i, j, v, t0, fill = COL.chalk, size = 40) {
+ const [x, y] = G2.C(i, j);
+ const e = M(p, [String(v)], { x, y: y + size * .34, size, fill, s: .5, o: 0 });
+ pop(e, t0);
+ return e;
+}
+function cellText(p, G2, i, j, str, t0, fill = COL.dim, size = 24) {
+ const [x, y] = G2.C(i, j);
+ return text(p, str, x, y + size * .36, t0, { size, fill, anchor: 'middle', weight: 600 });
+}
+// Histogram: bins of equal width on a baseline; bars grow with grow(bin, count, t0).
+function histo(p, { x0, y0, bw, u, labels, top, t0, title }) {
+ const n = labels.length, g = G(p, { o: 0 });
+ path(g, `M${x0} ${y0}H${x0 + n * bw + 30}`, { stroke: COL.dim, 'stroke-width': 3 });
+ path(g, `M${x0} ${y0}V${y0 - top * u - 30}`, { stroke: COL.dim, 'stroke-width': 3 });
+ for (let c = 0; c <= top; c++) {
+ path(g, `M${x0 - 8} ${y0 - c * u}H${x0}`, { stroke: COL.dim, 'stroke-width': 2 });
+ T(g, String(c), { x: x0 - 16, y: y0 - c * u + 8, size: 20, fill: COL.dim, font: MATH, anchor: 'end' });
+ }
+ labels.forEach((l, i) => T(g, l, { x: x0 + (i + .5) * bw, y: y0 + 36, size: 22, fill: COL.dim, font: MATH, anchor: 'middle' }));
+ T(g, 'frequency', { x: x0, y: y0 - top * u - 46, size: 22, fill: COL.dim, anchor: 'middle' });
+ if (title) T(g, title, { x: x0 + n * bw / 2, y: y0 + 76, size: 24, fill: COL.dim, anchor: 'middle' });
+ show(g, t0);
+ const bars = labels.map((l, i) => put(mk('rect', { x: x0 + i * bw, width: bw, fill: mix(COL.board, BAR, .45), stroke: BAR, 'stroke-width': 2.5 }, p), { a_y: y0, a_height: 0, c_stroke: BAR, 'a_stroke-width': 2.5 }));
+ return { bars, grow: (i, c, t0, run = tw, dur = .25) => run(bars[i], { a_y: y0 - c * u, a_height: c * u }, t0, dur, out) };
+}
+// Box plot pieces on a data line D, centred at height yc.
+const BH = 50;
+function boxBar(p, D, v, yc, color, t0, run = tw, h = BH) {
+ const l = path(p, `M${D.V(v)} ${yc - h}V${yc + h}`, { stroke: color, 'stroke-width': 4 }, { d: 0 });
+ run(l, { d: 1 }, t0, .4);
+ return l;
+}
+function boxEdges(p, D, q1, q3, yc, t0, run = tw) {
+ const l = path(p, `M${D.V(q1)} ${yc - BH}H${D.V(q3)}M${D.V(q1)} ${yc + BH}H${D.V(q3)}`, { stroke: COL.chalk, 'stroke-width': 4 }, { d: 0 });
+ run(l, { d: 1 }, t0, .6);
+ return l;
+}
+function whiskers(p, D, [mn, q1, , q3, mx], yc, t0, run = tw) {
+ const l = path(p, `M${D.V(q1)} ${yc}H${D.V(mn)}M${D.V(q3)} ${yc}H${D.V(mx)}`, { stroke: COL.chalk, 'stroke-width': 4 }, { d: 0 });
+ run(l, { d: 1 }, t0, .7);
+ return [l, boxBar(p, D, mn, yc, END, t0 + .6, run, 28), boxBar(p, D, mx, yc, END, t0 + .6, run, 28)];
+}
+// Recolour a dot (circle) from its current fill.
+function tint(d, color, t0, run = tw) { put(d, { c_fill: d.getAttribute('fill') }); run(d, { c_fill: color }, t0, .4); }
+// Small scatter plot in a 360×250 frame at (x, y) top-left. pts in [0, 1]².
+function mini(p, x, y, pts, color, t0, run = tw) {
+ const g = G(p, { o: 0 }), W = 360, H = 250;
+ path(g, `M${x} ${y}V${y + H}H${x + W}`, { stroke: COL.chalk, 'stroke-width': 3 });
+ run(g, { o: 1 }, t0, .4);
+ const ds = pts.map(([u, v], i) => { const d = put(mk('circle', { cx: x + 20 + u * (W - 40), cy: y + H - 20 - v * (H - 40), r: 8, fill: color }, p), { o: 0 }); run(d, { o: 1 }, t0 + .2 + i * .04, .2); return d; });
+ return { g, ds, box: [x - 16, y - 16, W + 32, H + 32] };
+}
+// Fixed scatter patterns (no randomness: a replayed step must look the same).
+const hash = i => { const x = Math.sin(i * 12.9898 + 78.233) * 43758.5453; return x - Math.floor(x); };
+const wob = i => (hash(i) - .5) * .3;
+const POSP = Array.from({ length: 14 }, (_, i) => { const u = (i + .5) / 14; return [u, .12 + .76 * u + wob(i)]; });
+const NEGP = Array.from({ length: 14 }, (_, i) => { const u = (i + .5) / 14; return [u, .88 - .76 * u + wob(i + 3)]; });
+const NONEP = Array.from({ length: 14 }, (_, i) => [(i + .5) / 14, .08 + .84 * hash(i + 40)]);
+
+/* ---------- data ---------- */
+const TWX = [220, 540, 820, 1100, 1380], TWY = [140, 230, 320, 410, 500];
+const PETS = [0, 2, 1, 1, 3, 0, 1, 2, 1, 4, 0, 1];
+const HW = [5, 12, 18, 23, 27, 31, 8, 15, 22, 25, 29, 35, 14, 19, 21, 26, 38, 44, 11, 47];
+const BOXD = [2, 5, 6, 8, 9, 11, 12, 14, 15, 18, 24], FIVE = [2, 6, 11, 15, 24];
+const STUDY = [[0.5, 58], [1, 65], [1.5, 62], [2, 70], [2.5, 74], [3, 71], [3.5, 80], [4, 84], [4.5, 79], [5, 90]];
+const bestFit = (() => {
+ const n = STUDY.length, mx = STUDY.reduce((a, [x]) => a + x, 0) / n, my = STUDY.reduce((a, [, y]) => a + y, 0) / n;
+ const m = STUDY.reduce((a, [x, y]) => a + (x - mx) * (y - my), 0) / STUDY.reduce((a, [x]) => a + (x - mx) ** 2, 0);
+ return x => my + m * (x - mx);
+})();
+
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'Displaying data', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 7, Chapter 41', { x: 800, y: 330, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Displaying Data', { x: 800, y: 430, size: 88, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = text(scene, 'tables · line plots · histograms · box plots · scatter plots', 800, 600, m('sub'), { size: 32, fill: COL.dim, anchor: 'middle' });
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['twoway', 'Two-way tables', (m) => {
+ const p = panel(0), G2 = grid2(p, TWX, TWY, m('q'));
+ text(p, '36 students took a test', 220, 100, m('q'), { size: 28, fill: COL.dim });
+ cellText(p, G2, 0, 1, 'Did the review', m('cols'), REV);
+ cellText(p, G2, 0, 2, 'Skipped it', m('cols', .3), SKIP);
+ cellText(p, G2, 0, 3, 'Total', m('tot'), COL.dim);
+ cellText(p, G2, 1, 0, 'Passed', m('rows'));
+ cellText(p, G2, 2, 0, 'Did not pass', m('rows', .3));
+ cellText(p, G2, 3, 0, 'Total', m('tot', 3), COL.dim);
+ const V = [[18, 6], [3, 9]], n = {};
+ V.forEach((row, i) => row.forEach((v, j) => { n[`${i + 1}${j + 1}`] = cellNum(p, G2, i + 1, j + 1, v, m('cells', .2 + (i * 2 + j) * .25)); }));
+ tw(n[11], { s: 1.35 }, m('cells', 2.6), .3, out); tw(n[11], { s: 1 }, m('cells', 3.1), .4);
+ [[1, 24], [2, 12]].forEach(([i, v], k) => {
+ hide(G2.strip(i, 1, 2, COL.task, m('tot', k * 1.2)), m('tot', 1.4 + k * 1.2));
+ n[`${i}3`] = cellNum(p, G2, i, 3, v, m('tot', .6 + k * 1.2), COL.task);
+ });
+ [[1, 21], [2, 15]].forEach(([j, v], k) => {
+ hide(G2.stripV(j, 1, 2, COL.task, m('tot', 3 + k * 1.2)), m('tot', 4.4 + k * 1.2));
+ n[`3${j}`] = cellNum(p, G2, 3, j, v, m('tot', 3.6 + k * 1.2), COL.task);
+ });
+ n[33] = cellNum(p, G2, 3, 3, 36, m('all'), COL.good);
+ mline(p, '24 + 12 = 36 = 21 + 15', 800, 570, m('all', .5), COL.dim, 34);
+ S.tw = { G2, n };
+ const c = S.cmp = G(p);
+ [[640, 'did the review', REV, 18, 21, 'cmp'], [720, 'skipped it', SKIP, 6, 15, 'cmp2']].forEach(([y, lab, col, a, b, mk2]) => {
+ text(c, lab, 220, y + 10, m(mk2), { size: 26, fill: col, weight: 600 });
+ show(rect(c, 460, y - 22, 520, 44, 'none', 0, COL.faint), m(mk2));
+ const f = put(rect(c, 460, y - 22, 0, 44, mix(COL.board, col, .6), 1), { a_width: 0 });
+ tw(f, { a_width: 520 * a / b }, m(mk2, .4), .9, out);
+ text(c, `${a} of ${b} passed`, 1010, y + 10, m(mk2, 1), { size: 28, weight: 600 });
+ });
+ text(c, 'More likely to pass after the review.', 220, 810, m('rel'), { size: 28, fill: COL.good, weight: 600 });
+ }],
+ ['q1', 'Quick check', () => { hide(S.cmp, 0, .4); }, { ask: done => quiz(BAND, [{
+ id: 'c-cell', prompt: ['Click the cell that counts students who skipped the review but still passed.'],
+ build: pickEls([[1, 1, 18], [1, 2, 6], [2, 1, 3], [2, 2, 9], [1, 3, 24]].map(([i, j, v]) => ({ el: S.tw.n[`${i}${j}`], box: S.tw.G2.box(i, j), label: String(v) })), 1,
+ 'Row Passed, column Skipped it: 6 students.',
+ i => ['18 is in the Did the review column. Look in the Skipped it column.', null, '3 did the review and did not pass.', '9 skipped the review and did not pass. Look in the Passed row.', '24 is everyone who passed, with or without the review.'][i],
+ () => pulseFx(S.tw.n[12], 1.5)),
+ }], done) }],
+ ['lineplot', 'Line plots', (m) => {
+ const p = panel(0);
+ text(p, 'frequency: how often a value occurs', 800, 110, .3, { size: 28, fill: COL.dim, anchor: 'middle' });
+ text(p, 'pets owned by 12 students', 800, 170, m('data'), { size: 28, fill: COL.dim, anchor: 'middle' });
+ const cs = PETS.map((v, i) => { const c = chip(p, [String(v)], COL.chalk, { x: 250 + i * 100, y: 240, size: 34, s: 0, o: 0 }); pop(c, m('data', .3 + i * .08)); return c; });
+ const D = dataLine(p, { lo: 0, hi: 5, x0: 360, x1: 1160, y: 680, t0: m('line'), r: 16, shape: 'x' });
+ text(p, 'pets', 1240, 728, m('line'), { size: 24, fill: COL.dim });
+ const gap = (m('read') - m('marks') - .6) / PETS.length;
+ PETS.forEach((v, i) => {
+ const t = m('marks', i * gap), x = st(D.dot(v, COL.task, t + .45)).x, y = D.top(v);
+ tw(cs[i], { x, y, s: .7 }, t, .45);
+ hide(cs[i], t + .4, .15);
+ });
+ const box = put(mk('rect', { x: D.V(1) - 30, y: 470, width: 60, height: 200, rx: 18, fill: 'none', stroke: COL.int, 'stroke-width': 3.5 }, p), { o: 0 });
+ show(box, m('mode'));
+ mline(p, 'mode = 1', 1240, 470, m('mode', .3), COL.int, 44, 'start');
+ D.span(0, 4, 420, 'range', COL.real, m('range'));
+ mline(p, 'range = 4 − 0 = 4', 1240, 550, m('range', .4), COL.real, 44, 'start');
+ }],
+ ['histogram', 'Histograms', (m) => {
+ const p = panel(0);
+ text(p, 'homework time (minutes)', 130, 150, m('data'), { size: 28, fill: COL.dim });
+ const vs = HW.map((v, i) => { const t = T(p, String(v), { x: 160 + (i % 5) * 100, y: 230 + Math.floor(i / 5) * 70, size: 40, font: MATH, anchor: 'middle', o: 0 }); show(t, m('data', .3 + i * .05), .3); return t; });
+ const H = S.h = histo(p, { x0: 800, y0: 700, bw: 140, u: 52, top: 7, labels: ['0–9', '10–19', '20–29', '30–39', '40–49'], t0: m('bins'), title: 'minutes of homework' });
+ const cnt = [0, 0, 0, 0, 0], gap = (m('gap') - m('fill') - .5) / HW.length;
+ HW.forEach((v, i) => {
+ const b = Math.floor(v / 10), t = m('fill', i * gap);
+ tw(vs[i], { c_fill: BAR }, t, .1); put(vs[i], { c_fill: COL.chalk });
+ tw(vs[i], { o: .3 }, t + .15, .3);
+ H.grow(b, ++cnt[b], t);
+ });
+ const n = S.hn = G(p);
+ const edges = path(n, [1, 2, 3, 4].map(k => `M${800 + k * 140} ${700 - 7 * 52}V${700}`).join(''), { stroke: COL.task, 'stroke-width': 4 }, { o: 0 });
+ tw(edges, { o: 1 }, m('gap'), .3); tw(edges, { o: 0 }, m('gap', 2.5), .5);
+ text(n, 'Bars touch: the intervals leave no gaps.', 130, 590, m('gap'), { size: 26, fill: COL.task, weight: 600 });
+ tw(H.bars[2], { c_stroke: COL.task, 'a_stroke-width': 5 }, m('read'), .4);
+ text(n, 'Most common: 20–29 minutes.', 130, 650, m('read', .4), { size: 26, fill: COL.task, weight: 600 });
+ }],
+ ['q2', 'Quick check', () => { hide(S.hn, 0, .4); }, { ask: done => quiz({ x: 100, y: 470, w: 600, cls: 'side' }, [{
+ id: 'c-h30', prompt: ['How many students did homework for 30 minutes or more?'],
+ build: blanks([{ parts: [{ box: '5' }, ' students'], why: 'The 30–39 bar is 3 and the 40–49 bar is 2: 3 + 2 = 5.', hint: 'Add the heights of the bars from 30 minutes up.',
+ fx: () => [3, 4].forEach(i => fx(S.h.bars[i], { c_stroke: COL.good, 'a_stroke-width': 6 }, 0, .4)) }]),
+ }, {
+ id: 'c-h20', prompt: ['How many did less than 20 minutes?'],
+ build: blanks([{ parts: [{ box: '8' }, ' students'], why: 'The 0–9 bar is 2 and the 10–19 bar is 6: 2 + 6 = 8.', hint: 'Add the heights of the first two bars.',
+ fx: () => [0, 1].forEach(i => fx(S.h.bars[i], { c_stroke: COL.good, 'a_stroke-width': 6 }, 0, .4)) }]),
+ }], done) }],
+ ['boxplot', 'Box plots', (m) => {
+ const p = panel(0), B = S.bp = G(scene), yc = 420;
+ const D = S.bD = dataLine(B, { lo: 0, hi: 25, x0: 200, x1: 1400, y: 740, every: 5, t0: m('data'), r: 14 });
+ const ds = BOXD.map((v, i) => D.dot(v, COL.whole, m('data', .4 + i * .12)));
+ const at = v => ds[BOXD.indexOf(v)];
+ tint(at(11), MED, m('med'));
+ const lab = (v, str, color, t0) => text(B, str, D.V(v), 680, t0, { size: 24, fill: color, anchor: 'middle', weight: 600 });
+ lab(11, 'median', MED, m('med', .3));
+ const halves = [D.span(2, 9, 620, 'lower half', COL.dim, m('med', 3)), D.span(12, 24, 620, 'upper half', COL.dim, m('med', 3.4))];
+ tint(at(6), QC, m('q1')); lab(6, 'Q1', QC, m('q1', .3));
+ tint(at(15), QC, m('q3')); lab(15, 'Q3', QC, m('q3', .3));
+ tint(at(2), END, m('ends')); lab(2, 'min', END, m('ends', .3));
+ tint(at(24), END, m('ends', 1.4)); lab(24, 'max', END, m('ends', 1.7));
+ halves.forEach(h => hide(h, m('box')));
+ const drops = path(B, FIVE.map(v => `M${D.V(v)} ${yc + BH + 8}V${720}`).join(''), { stroke: COL.dim, 'stroke-width': 2, 'stroke-dasharray': '5 7' }, { o: 0 });
+ show(drops, m('box'));
+ boxBar(B, D, 6, yc, QC, m('box', .3)); boxBar(B, D, 15, yc, QC, m('box', .5));
+ boxEdges(B, D, 6, 15, yc, m('box', .9));
+ boxBar(B, D, 11, yc, MED, m('box', 1.8));
+ S.wh = whiskers(B, D, FIVE, yc, m('wh'));
+ FIVE.forEach((v, i) => mline(B, String(v), D.V(v), yc - BH - 22, m(i % 4 ? 'box' : 'wh', 2.2 + i * .1), [END, QC, MED, QC, END][i], 34));
+ }],
+ ['quarters', 'Four parts', (m) => {
+ const p = panel(0), D = S.bD, yc = 420;
+ [[2, 6], [6, 11], [11, 15], [15, 24]].forEach(([a, b], i) => D.span(a, b, 290, '¼', COL.task, m('four', i * .4), { into: p }));
+ text(p, 'each part: about a quarter of the values', 800, 200, m('four', 1.8), { size: 28, fill: COL.task, anchor: 'middle', weight: 600 });
+ const mid = put(mk('rect', { x: D.V(6), y: yc - BH, width: D.V(15) - D.V(6), height: 2 * BH, fill: QC }, p), { o: 0 });
+ p.insertBefore(mid, p.firstChild);
+ tw(mid, { o: .25 }, m('mid'), .5);
+ text(p, 'middle half', (D.V(6) + D.V(11)) / 2, yc + 9, m('mid', .3), { size: 22, fill: COL.chalk, anchor: 'middle', weight: 600 });
+ const rw = path(p, `M${D.V(15)} ${yc}H${D.V(24)}`, { stroke: COL.nat, 'stroke-width': 10 }, { d: 0, 'a_stroke-width': 10 });
+ draw(rw, m('long'), .8);
+ text(p, 'long: spread out', (D.V(15) + D.V(24)) / 2, yc + 46, m('long', .5), { size: 24, fill: COL.nat, anchor: 'middle', weight: 600 });
+ draw(path(p, `M${D.V(2)} ${yc}H${D.V(6)}`, { stroke: COL.whole, 'stroke-width': 10 }, { d: 0 }), m('short'), .6);
+ text(p, 'short: bunched', (D.V(2) + D.V(6)) / 2, yc + 46, m('short', .4), { size: 24, fill: COL.whole, anchor: 'middle', weight: 600 });
+ tw(rw, { 'a_stroke-width': 18 }, m('ex'), .3, out); tw(rw, { 'a_stroke-width': 10 }, m('ex', .35), .5);
+ text(p, 'the largest values are the most spread out', (D.V(15) + D.V(24)) / 2, yc + 82, m('ex', .5), { size: 22, fill: COL.dim, anchor: 'middle' });
+ }],
+ ['q3', 'Quick check', () => {
+ const p = panel(0);
+ hide(S.bp, 0, .4);
+ text(p, 'seven values', 240, 170, .2, { size: 28, fill: COL.dim });
+ const D = S.qD = dataLine(p, { lo: 0, hi: 16, x0: 240, x1: 1360, y: 560, every: 2, t0: .3, r: 15 });
+ D.dots([3, 4, 6, 8, 9, 12, 14], COL.whole, .5, .1);
+ }, { ask: done => quiz(BAND, [{
+ id: 'c-box', prompt: ['Find the quartiles and the median.'],
+ build: blanks([{ parts: ['Q1 = ', { box: '4' }, ' median = ', { box: '8' }, ' Q3 = ', { box: '12' }],
+ why: 'The median is the 4th value, 8. Lower half 3, 4, 6 has median 4; upper half 9, 12, 14 has median 12.',
+ hint: 'Find the middle value first. Then find the middle of each half: 3, 4, 6 and 9, 12, 14.',
+ fx: () => {
+ const L = S.q || qlayer(), D = S.qD, yc = 330;
+ boxBar(L, D, 4, yc, QC, 0, fx); boxBar(L, D, 12, yc, QC, .2, fx); boxEdges(L, D, 4, 12, yc, .5, fx);
+ boxBar(L, D, 8, yc, MED, 1, fx); whiskers(L, D, [3, 4, 8, 12, 14], yc, 1.3, fx);
+ } }]),
+ }], done) }],
+ ['scatter', 'Scatter plots', (m) => {
+ const p = panel(0);
+ const A = S.ax = axes(p, { x0: 170, y0: 760, w: 720, h: 520, xs: [0, 6, 1], ys: [50, 100, 10], xl: 'hours studied', yl: 'test score', t0: m('tab'), ybreak: true });
+ text(p, 'hours', 1150, 200, m('tab'), { size: 24, fill: COL.whole, anchor: 'middle', weight: 600 });
+ text(p, 'score', 1330, 200, m('tab'), { size: 24, fill: COL.nat, anchor: 'middle', weight: 600 });
+ const rows = STUDY.map(([h, s], i) => {
+ const y = 250 + i * 50, g = G(p, { o: 0 });
+ M(g, [String(h)], { x: 1150, y: y + 10, size: 30 }); M(g, [String(s)], { x: 1330, y: y + 10, size: 30 });
+ show(g, m('tab', .4 + i * .06));
+ return y;
+ });
+ const plot = (i, t) => {
+ const [h, s] = STUDY[i], hl = put(mk('rect', { x: 1060, y: rows[i] - 22, width: 360, height: 44, rx: 10, fill: COL.task }, p), { o: 0 });
+ tw(hl, { o: .25 }, t, .2); tw(hl, { o: 0 }, t + .6, .3);
+ const d = put(mk('circle', { cx: A.PX(h), cy: A.PY(s), r: 10, fill: COL.task, stroke: COL.board, 'stroke-width': 2 }, p), { o: 0 });
+ show(d, t + .2, .3);
+ };
+ const [h0, s0] = STUDY[0];
+ const guide = path(p, `M${A.PX(h0)} 760V${A.PY(s0)}H170`, { stroke: COL.dim, 'stroke-width': 2.5, 'stroke-dasharray': '6 6' }, { o: 0 });
+ tw(guide, { o: 1 }, m('pt', .5), .4); tw(guide, { o: 0 }, m('all'), .4);
+ hide(mline(p, '(0.5, 58)', A.PX(h0) + 18, A.PY(s0) - 18, m('pt', 1.2), COL.task, 30, 'start'), m('all'));
+ plot(0, m('pt', 1));
+ for (let i = 1; i < STUDY.length; i++) plot(i, m('all', (i - 1) * .17));
+ const ar = path(p, `M${A.PX(.8)} ${A.PY(56)}L${A.PX(5.2)} ${A.PY(96)}`, { stroke: COL.good, 'stroke-width': 3, 'stroke-dasharray': '4 10' }, { o: 0 });
+ tw(ar, { o: .8 }, m('trend'), .5); tw(ar, { o: 0 }, m('fit'), .4);
+ draw(path(p, `M${A.PX(0)} ${A.PY(bestFit(0))}L${A.PX(6)} ${A.PY(bestFit(6))}`, { stroke: COL.good, 'stroke-width': 4 }, { d: 0 }), m('fit'), 1);
+ text(p, 'line of best fit', A.PX(6) + 12, A.PY(bestFit(6)) + 8, m('fit', .8), { size: 22, fill: COL.good, weight: 600 });
+ }],
+ ['corr', 'Correlation', (m) => {
+ const p = panel(0);
+ [[140, POSP, 'Positive', 'hours studied and score', COL.whole, 'pos'], [620, NEGP, 'Negative', "a car's age and its price", COL.nat, 'neg'],
+ [1100, NONEP, 'No correlation', 'shoe size and birthday month', COL.dim, 'none']].forEach(([x, pts, name, ex, col, mk2]) => {
+ mini(p, x, 210, pts, col, m(mk2));
+ text(p, name, x + 180, 530, m(mk2, .4), { size: 32, fill: col, anchor: 'middle', weight: 600 });
+ text(p, ex, x + 180, 575, m(mk2, .8), { size: 24, fill: COL.dim, anchor: 'middle' });
+ });
+ draw(path(p, 'M170 430L470 230', { stroke: COL.whole, 'stroke-width': 3, 'stroke-dasharray': '4 9' }, { d: 0 }), m('pos', 1.4));
+ draw(path(p, 'M650 230L950 430', { stroke: COL.nat, 'stroke-width': 3, 'stroke-dasharray': '4 9' }, { d: 0 }), m('neg', 1.4));
+ text(p, '“Tends to”: the overall pattern, not every point.', 800, 720, m('tend'), { size: 30, fill: COL.task, anchor: 'middle', weight: 600 });
+ }],
+ ['q4', 'Quick check', () => {
+ const p = panel(0);
+ S.minis = [NONEP.map(([u, v]) => [u, 1 - v]), POSP.map(([u, v]) => [1 - u, v]), NEGP.map(([u, v]) => [1 - u, v])].map((pts, i) => {
+ text(p, 'ABC'[i], 320 + i * 480, 160, .3, { size: 32, anchor: 'middle', weight: 700 });
+ return mini(p, 140 + i * 480, 200, pts, COL.chalk, .3 + i * .2);
+ });
+ }, { ask: done => quiz(BAND, [{
+ id: 'c-corr', prompt: ['Click the scatter plot that shows a negative correlation.'],
+ build: pickEls(S.minis.map((g, i) => ({ el: g.g, box: g.box, label: 'Plot ' + 'ABC'[i] })), 1, 'As x goes up, the points tend to go down.',
+ i => i === 0 ? 'These points show no trend at all: no correlation.' : 'These points rise from left to right: a positive correlation.',
+ () => S.minis[1].ds.forEach((d, k) => tint(d, COL.nat, k * .04, fx))),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['Two-way table: one group counted by two categories.', 'w1', REV], ['Line plot, histogram: how often values occur.', 'w2', BAR],
+ ['Box plot: min, Q1, median, Q3, max.', 'w3', QC], ['Scatter plot: are two data sets related?', 'w4', SKIP]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 230 + i * 130, o: 0 });
+ mk('circle', { cx: 200, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 200, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 260, size: 34, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => {
+ const p = panel(0), xs = [830, 1090, 1240, 1390, 1540], ys = [230, 320, 400, 480, 560], G2 = S.f1 = grid2(p, xs, ys, .2);
+ text(p, '50 students: do they bike to school?', 830, 180, .2, { size: 26, fill: COL.dim });
+ [['Bikes', REV], ["Doesn't bike", SKIP], ['Total', COL.dim]].forEach(([s, c], j) => cellText(p, G2, 0, j + 1, s, .3, c, 22));
+ ['Within 2 miles', 'Farther away', 'Total'].forEach((s, i) => cellText(p, G2, i + 1, 0, s, .3, i === 2 ? COL.dim : COL.chalk, 22));
+ [[14, 10, 24], [3, 23, 26], [17, 33, 50]].forEach((r, i) => r.forEach((v, j) => cellNum(p, G2, i + 1, j + 1, v, .4 + (i * 3 + j) * .04, j === 2 || i === 2 ? COL.task : COL.chalk, 34)));
+ }, { ask: done => quiz({ x: 0, y: 0, w: 800, cls: 'screen' }, [
+ { id: 'p-t1', prompt: ['How many students bike to school but live farther than 2 miles away?'], build: blanks([{ parts: [{ box: '3' }, ' students'], why: 'Column Bikes, row Farther away: 3.', hint: 'Find the Bikes column and the Farther away row.', fx: () => S.f1.strip(2, 1, 1, COL.good, 0, fx, S.q || qlayer()) }]) },
+ { id: 'p-t2', prompt: ['How many students live within 2 miles?'], build: blanks([{ parts: [{ box: '24' }, ' students'], why: 'The row total for Within 2 miles: 14 + 10 = 24.', hint: 'Use the total of the Within 2 miles row.', fx: () => S.f1.strip(1, 3, 3, COL.good, 0, fx, S.q || qlayer()) }]) },
+ { id: 'p-t3', prompt: ['Of the 17 students who bike, how many live within 2 miles?'], build: blanks([{ parts: [{ box: '14' }, ' students'], why: 'Column Bikes, row Within 2 miles: 14 of the 17.', hint: 'Stay in the Bikes column.', fx: () => S.f1.strip(1, 1, 1, COL.good, 0, fx, S.q || qlayer()) }]) },
+ ], done, 'Chapter practice 1 of 4, question') }],
+ ['final2', 'Chapter practice', () => {
+ const p = panel(0);
+ text(p, 'points a team scored in 30 games', 1180, 200, .2, { size: 26, fill: COL.dim, anchor: 'middle' });
+ const H = S.f2 = histo(p, { x0: 880, y0: 700, bw: 120, u: 34, top: 11, labels: ['0–9', '10–19', '20–29', '30–39', '40–49'], t0: .2, title: 'points scored' });
+ [3, 8, 11, 6, 2].forEach((c, i) => H.grow(i, c, .4 + i * .1, tw, .5));
+ }, { ask: done => quiz({ x: 0, y: 0, w: 800, cls: 'screen' }, [
+ { id: 'p-h1', prompt: ['In how many games did the team score fewer than 20 points?'], build: blanks([{ parts: [{ box: '11' }, ' games'], why: '3 + 8 = 11.', hint: 'Add the bars for 0–9 and 10–19.', fx: () => [0, 1].forEach(i => fx(S.f2.bars[i], { c_stroke: COL.good, 'a_stroke-width': 6 }, 0, .4)) }]) },
+ { id: 'p-h2', prompt: ['In how many games did they score 30 or more points?'], build: blanks([{ parts: [{ box: '8' }, ' games'], why: '6 + 2 = 8.', hint: 'Add the bars from 30 up.', fx: () => [3, 4].forEach(i => fx(S.f2.bars[i], { c_stroke: COL.good, 'a_stroke-width': 6 }, 0, .4)) }]) },
+ { id: 'p-h3', prompt: ['Which interval has the greatest frequency? Type its lowest value.'], build: blanks([{ parts: ['the interval starting at ', { box: '20' }], why: 'The tallest bar, 11 games, is 20–29.', hint: 'Find the tallest bar.', fx: () => fx(S.f2.bars[2], { c_stroke: COL.good, 'a_stroke-width': 6 }, 0, .4) }]) },
+ ], done, 'Chapter practice 2 of 4, question') }],
+ ['final3', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-corr', prompt: ['What kind of correlation would you expect?'],
+ build: grid(CORRQ, [['p', 'Positive', COL.whole], ['n', 'Negative', COL.nat], ['o', 'None', COL.dim]], { multi: false, text: true }),
+ }], done, 'Chapter practice 3 of 4') }],
+ ['final4', 'Chapter practice', () => {
+ const p = panel(0);
+ const D = S.f4 = dataLine(p, { lo: 0, hi: 20, x0: 900, x1: 1500, y: 660, every: 5, t0: .2, r: 11 });
+ D.dots([4, 6, 7, 9, 10, 12, 13, 15, 20], COL.whole, .3, .06);
+ S.f4n = 0;
+ }, { ask: done => quiz({ x: 0, y: 0, w: 820, cls: 'screen' }, [{
+ id: 'p-five', prompt: ['Data: ', $m('12, 4, 9, 15, 7, 20, 10, 6, 13'), '. Find the five numbers.'], build: blanks(FIVEQ),
+ }], done, 'Chapter practice 4 of 4') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const CORRQ = [
+ { parts: ['minutes of practice and free throws made'], ans: ['p'], why: 'More practice tends to mean more baskets.' },
+ { parts: ['outside temperature and cups of hot cocoa sold'], ans: ['n'], why: 'Warmer days tend to mean less cocoa sold.' },
+ { parts: ['height and the last digit of your phone number'], ans: ['o'], why: 'The two have nothing to do with each other.' },
+ { parts: ["a car's age and its price"], ans: ['n'], why: 'Older cars tend to cost less.' },
+ { parts: ['height and arm span'], ans: ['p'], why: 'Taller people tend to have longer arm spans.' },
+ { parts: ['number of absences and test score'], ans: ['n'], why: 'More absences tend to go with lower scores.' },
+];
+// Each right answer draws its piece of the box plot; the last one completes it.
+const f4piece = draw => () => {
+ const L = S.q || qlayer(), D = S.f4, yc = 470;
+ draw(L, D, yc);
+ if (++S.f4n === 5) { boxEdges(L, D, 6.5, 14, yc, .3, fx); whiskers(L, D, [4, 6.5, 10, 14, 20], yc, .6, fx); }
+};
+const FIVEQ = [
+ { parts: ['minimum = ', { box: '4' }], why: 'In order: 4, 6, 7, 9, 10, 12, 13, 15, 20. The least value is 4.', hint: 'Put the values in order.', fx: f4piece((L, D, yc) => boxBar(L, D, 4, yc, END, 0, fx, 28)) },
+ { parts: ['Q1 = ', { box: '6.5' }], why: 'Lower half 4, 6, 7, 9: (6 + 7) ÷ 2 = 6.5.', hint: 'The lower half is 4, 6, 7, 9. Its median is the mean of its two middle values.', fx: f4piece((L, D, yc) => boxBar(L, D, 6.5, yc, QC, 0, fx)) },
+ { parts: ['median = ', { box: '10' }], why: 'The 5th of 9 values is 10.', hint: 'With 9 values, the median is the 5th one in order.', fx: f4piece((L, D, yc) => boxBar(L, D, 10, yc, MED, 0, fx)) },
+ { parts: ['Q3 = ', { box: '14' }], why: 'Upper half 12, 13, 15, 20: (13 + 15) ÷ 2 = 14.', hint: 'The upper half is 12, 13, 15, 20.', fx: f4piece((L, D, yc) => boxBar(L, D, 14, yc, QC, 0, fx)) },
+ { parts: ['maximum = ', { box: '20' }], why: 'The greatest value is 20.', hint: 'Which value is greatest?', fx: f4piece((L, D, yc) => boxBar(L, D, 20, yc, END, 0, fx, 28)) },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch42/audio/en/coins.mp3 b/site/ch42/audio/en/coins.mp3
new file mode 100644
index 0000000..e5c9266
Binary files /dev/null and b/site/ch42/audio/en/coins.mp3 differ
diff --git a/site/ch42/audio/en/comp.mp3 b/site/ch42/audio/en/comp.mp3
new file mode 100644
index 0000000..0a1d61e
Binary files /dev/null and b/site/ch42/audio/en/comp.mp3 differ
diff --git a/site/ch42/audio/en/count.mp3 b/site/ch42/audio/en/count.mp3
new file mode 100644
index 0000000..4a68e0a
Binary files /dev/null and b/site/ch42/audio/en/count.mp3 differ
diff --git a/site/ch42/audio/en/final1.mp3 b/site/ch42/audio/en/final1.mp3
new file mode 100644
index 0000000..7c38a89
Binary files /dev/null and b/site/ch42/audio/en/final1.mp3 differ
diff --git a/site/ch42/audio/en/final2.mp3 b/site/ch42/audio/en/final2.mp3
new file mode 100644
index 0000000..edc7465
Binary files /dev/null and b/site/ch42/audio/en/final2.mp3 differ
diff --git a/site/ch42/audio/en/final3.mp3 b/site/ch42/audio/en/final3.mp3
new file mode 100644
index 0000000..8289061
Binary files /dev/null and b/site/ch42/audio/en/final3.mp3 differ
diff --git a/site/ch42/audio/en/final4.mp3 b/site/ch42/audio/en/final4.mp3
new file mode 100644
index 0000000..d51bff2
Binary files /dev/null and b/site/ch42/audio/en/final4.mp3 differ
diff --git a/site/ch42/audio/en/finish.mp3 b/site/ch42/audio/en/finish.mp3
new file mode 100644
index 0000000..344ca83
Binary files /dev/null and b/site/ch42/audio/en/finish.mp3 differ
diff --git a/site/ch42/audio/en/formula.mp3 b/site/ch42/audio/en/formula.mp3
new file mode 100644
index 0000000..a57c784
Binary files /dev/null and b/site/ch42/audio/en/formula.mp3 differ
diff --git a/site/ch42/audio/en/intro.mp3 b/site/ch42/audio/en/intro.mp3
new file mode 100644
index 0000000..ccf87da
Binary files /dev/null and b/site/ch42/audio/en/intro.mp3 differ
diff --git a/site/ch42/audio/en/or.mp3 b/site/ch42/audio/en/or.mp3
new file mode 100644
index 0000000..30f984c
Binary files /dev/null and b/site/ch42/audio/en/or.mp3 differ
diff --git a/site/ch42/audio/en/q1.mp3 b/site/ch42/audio/en/q1.mp3
new file mode 100644
index 0000000..f7b0148
Binary files /dev/null and b/site/ch42/audio/en/q1.mp3 differ
diff --git a/site/ch42/audio/en/q2.mp3 b/site/ch42/audio/en/q2.mp3
new file mode 100644
index 0000000..8969b1c
Binary files /dev/null and b/site/ch42/audio/en/q2.mp3 differ
diff --git a/site/ch42/audio/en/q3.mp3 b/site/ch42/audio/en/q3.mp3
new file mode 100644
index 0000000..c6653eb
Binary files /dev/null and b/site/ch42/audio/en/q3.mp3 differ
diff --git a/site/ch42/audio/en/q4.mp3 b/site/ch42/audio/en/q4.mp3
new file mode 100644
index 0000000..93c5b69
Binary files /dev/null and b/site/ch42/audio/en/q4.mp3 differ
diff --git a/site/ch42/audio/en/sample.mp3 b/site/ch42/audio/en/sample.mp3
new file mode 100644
index 0000000..167ec6c
Binary files /dev/null and b/site/ch42/audio/en/sample.mp3 differ
diff --git a/site/ch42/audio/en/scale.mp3 b/site/ch42/audio/en/scale.mp3
new file mode 100644
index 0000000..2726005
Binary files /dev/null and b/site/ch42/audio/en/scale.mp3 differ
diff --git a/site/ch42/audio/en/terms.mp3 b/site/ch42/audio/en/terms.mp3
new file mode 100644
index 0000000..efb9f66
Binary files /dev/null and b/site/ch42/audio/en/terms.mp3 differ
diff --git a/site/ch42/audio/en/timings.js b/site/ch42/audio/en/timings.js
new file mode 100644
index 0000000..9bc2c1d
--- /dev/null
+++ b/site/ch42/audio/en/timings.js
@@ -0,0 +1,481 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 7.296,
+ "marks": {
+ "sub": 1.576
+ },
+ "cues": [
+ [
+ 0.091,
+ "Chapter forty-two."
+ ],
+ [
+ 1.576,
+ "Probability measures how likely something is to happen, with a number from zero to one."
+ ]
+ ]
+ },
+ "terms": {
+ "dur": 28.032,
+ "marks": {
+ "act": 1.745,
+ "out": 6.042,
+ "ev": 13.177,
+ "fav": 18.242,
+ "eq": 23.633
+ },
+ "cues": [
+ [
+ 0.104,
+ "Start with a few words."
+ ],
+ [
+ 1.745,
+ "The action is what you do: here, roll a number cube once."
+ ],
+ [
+ 6.042,
+ "The outcomes are all the possible results: one, two, three, four, five, or six."
+ ],
+ [
+ 13.177,
+ "An event is an outcome or a group of outcomes, like rolling an even number."
+ ],
+ [
+ 18.242,
+ "The outcomes in the event are the favorable ones: two, four, and six."
+ ],
+ [
+ 23.633,
+ "On a fair cube, every face is equally likely to come up."
+ ]
+ ]
+ },
+ "formula": {
+ "dur": 21.0,
+ "marks": {
+ "def": 5.286,
+ "num": 9.766,
+ "den": 11.693,
+ "frac": 13.867,
+ "simp": 18.242,
+ "pct": 19.557
+ },
+ "cues": [
+ [
+ 0.091,
+ "When the outcomes are equally likely, the probability of an event is a ratio."
+ ],
+ [
+ 5.286,
+ "The number of favorable outcomes, over the number of possible outcomes."
+ ],
+ [
+ 9.766,
+ "Three outcomes are even, out of six possible outcomes."
+ ],
+ [
+ 13.867,
+ "So the probability of rolling an even number is three sixths, which is one half, or fifty percent."
+ ]
+ ]
+ },
+ "scale": {
+ "dur": 31.104,
+ "marks": {
+ "zero": 3.685,
+ "one": 8.62,
+ "half": 14.193,
+ "six": 17.839,
+ "more": 22.917,
+ "pct": 27.135
+ },
+ "cues": [
+ [
+ 0.091,
+ "Every probability lands somewhere from zero to one."
+ ],
+ [
+ 3.685,
+ "Rolling a seven can't happen: probability zero, impossible."
+ ],
+ [
+ 8.62,
+ "Rolling a number less than seven always happens: probability one, certain."
+ ],
+ [
+ 14.193,
+ "An even number is a fifty-fifty chance: one half."
+ ],
+ [
+ 17.839,
+ "Rolling a six is unlikely: one sixth, closer to zero."
+ ],
+ [
+ 22.917,
+ "Rolling more than one is likely: five sixths, closer to one."
+ ],
+ [
+ 27.135,
+ "The same scale in percents runs from zero to one hundred percent."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 3.6,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.185,
+ "Find a probability on the spinner."
+ ]
+ ]
+ },
+ "or": {
+ "dur": 22.272,
+ "marks": {
+ "ask": 2.07,
+ "fav": 5.638,
+ "frac": 11.758,
+ "why": 13.763,
+ "spin": 18.841
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now an event with the word or."
+ ],
+ [
+ 2.07,
+ "What is the probability of landing on red or yellow?"
+ ],
+ [
+ 5.638,
+ "Count every section that is red or yellow: two red plus two yellow is four."
+ ],
+ [
+ 11.758,
+ "Four out of eight is one half."
+ ],
+ [
+ 13.763,
+ "You can add the two counts because one spin can't land on red and yellow at the same time."
+ ],
+ [
+ 18.841,
+ "Spin it, and half the sections would make the event happen."
+ ]
+ ]
+ },
+ "sample": {
+ "dur": 27.696,
+ "marks": {
+ "two": 2.773,
+ "list": 4.284,
+ "space": 11.406,
+ "order": 15.326,
+ "hh": 20.573
+ },
+ "cues": [
+ [
+ 0.104,
+ "Some actions have more than one stage."
+ ],
+ [
+ 2.773,
+ "Flip a coin twice."
+ ],
+ [
+ 4.284,
+ "List every possible result in order: heads heads, heads tails, tails heads, and tails tails."
+ ],
+ [
+ 11.406,
+ "This list of all possible outcomes is the sample space."
+ ],
+ [
+ 15.326,
+ "Heads tails and tails heads are different outcomes, because the first flip is different."
+ ],
+ [
+ 20.573,
+ "Only one of the four outcomes is two heads, so the probability is one fourth, or twenty-five percent."
+ ]
+ ]
+ },
+ "tree": {
+ "dur": 24.576,
+ "marks": {
+ "coin": 4.193,
+ "die": 8.32,
+ "leaves": 12.63,
+ "ev": 18.242,
+ "one": 21.51
+ },
+ "cues": [
+ [
+ 0.104,
+ "A tree diagram builds the sample space one stage at a time."
+ ],
+ [
+ 4.193,
+ "Flip a coin: two branches, heads or tails."
+ ],
+ [
+ 8.32,
+ "Then roll a number cube: each branch splits into six."
+ ],
+ [
+ 12.63,
+ "Following every path gives twelve outcomes, from heads one to tails six."
+ ],
+ [
+ 18.242,
+ "What's the probability of heads and a six?"
+ ],
+ [
+ 21.51,
+ "Just one path out of twelve: one twelfth."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 2.688,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.094,
+ "Use the tree diagram."
+ ]
+ ]
+ },
+ "count": {
+ "dur": 19.68,
+ "marks": {
+ "rule": 2.435,
+ "shirts": 11.966,
+ "pants": 12.773,
+ "grid": 14.245,
+ "each": 17.37
+ },
+ "cues": [
+ [
+ 0.104,
+ "You don't always need to draw the whole tree."
+ ],
+ [
+ 2.435,
+ "The counting principle says: if one choice can be made in a ways and a second in b ways, then both together can be made in a times b ways."
+ ],
+ [
+ 11.966,
+ "Four shirts and three pairs of pants make four times three, or twelve outfits."
+ ],
+ [
+ 17.37,
+ "Each shirt pairs with each pair of pants."
+ ]
+ ]
+ },
+ "coins": {
+ "dur": 17.904,
+ "marks": {
+ "flip": 2.63,
+ "branch": 4.844,
+ "mult": 9.935,
+ "warn": 13.425
+ },
+ "cues": [
+ [
+ 0.104,
+ "The rule extends to more stages."
+ ],
+ [
+ 2.63,
+ "Flip a coin three times."
+ ],
+ [
+ 4.844,
+ "Each flip doubles the number of paths: two, then four, then eight."
+ ],
+ [
+ 9.935,
+ "So there are two times two times two, eight arrangements."
+ ],
+ [
+ 13.425,
+ "Not two times three."
+ ],
+ [
+ 15.208,
+ "Three flips means three factors of two."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 2.448,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Count the choices."
+ ]
+ ]
+ },
+ "comp": {
+ "dur": 29.544,
+ "marks": {
+ "ex": 3.425,
+ "sum": 6.289,
+ "rain": 14.583,
+ "no": 17.865,
+ "spin": 22.279
+ },
+ "cues": [
+ [
+ 0.091,
+ "The complement of an event is the event not happening."
+ ],
+ [
+ 3.425,
+ "Winning and losing, or heads and tails."
+ ],
+ [
+ 6.289,
+ "Together, an event and its complement cover every outcome, so their probabilities add up to one, or one hundred percent."
+ ],
+ [
+ 14.583,
+ "If the chance of rain tomorrow is thirty percent, the chance of no rain is one hundred minus thirty: seventy percent."
+ ],
+ [
+ 22.279,
+ "On the spinner, the probability of blue is three eighths, so the probability of not blue is five eighths."
+ ]
+ ]
+ },
+ "q4": {
+ "dur": 2.616,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.25,
+ "Find the complement."
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 21.216,
+ "marks": {
+ "w1": 0.99,
+ "w2": 7.8,
+ "w3": 11.667,
+ "w4": 16.289,
+ "end": 19.128
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.99,
+ "The probability of an event is favorable outcomes over possible outcomes, a number from zero to one."
+ ],
+ [
+ 7.8,
+ "A table or a tree diagram lists the sample space."
+ ],
+ [
+ 11.667,
+ "The counting principle multiplies the number of choices at each stage."
+ ],
+ [
+ 16.289,
+ "An event and its complement add up to one."
+ ],
+ [
+ 19.128,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 3.384,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.615,
+ "Find each probability."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 1.968,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, count the outcomes."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 2.04,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "How likely is each event?"
+ ]
+ ]
+ },
+ "final4": {
+ "dur": 2.928,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.185,
+ "Find each complement."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 4.416,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Well done."
+ ],
+ [
+ 1.081,
+ "That's the end of chapter forty-two, probability."
+ ]
+ ]
+ }
+};
diff --git a/site/ch42/audio/en/tree.mp3 b/site/ch42/audio/en/tree.mp3
new file mode 100644
index 0000000..0d4fdd9
Binary files /dev/null and b/site/ch42/audio/en/tree.mp3 differ
diff --git a/site/ch42/audio/en/wrap.mp3 b/site/ch42/audio/en/wrap.mp3
new file mode 100644
index 0000000..9b6c2f2
Binary files /dev/null and b/site/ch42/audio/en/wrap.mp3 differ
diff --git a/site/ch42/index.html b/site/ch42/index.html
new file mode 100644
index 0000000..2b161d8
--- /dev/null
+++ b/site/ch42/index.html
@@ -0,0 +1,316 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Probability</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 42, title: 'Probability', minutes: 10, next: '../ch43/' };
+const FAV = COL.task, POSS = COL.whole, HEADS = COL.int, TAILS = COL.rat;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+function branch(p, x1, y1, x2, y2, t0, color = COL.dim, run = tw) {
+ const l = path(p, `M${x1} ${y1}L${x2} ${y2}`, { stroke: color, 'stroke-width': 3 }, { d: 0 });
+ run(l, { d: 1 }, t0, .4);
+ return l;
+}
+// Simple clothing icons, centred on (x, y).
+function shirt(p, x, y, color, s = 1) {
+ const g = G(p, { x, y, s: .5 * s, o: 0 });
+ path(g, 'M-18 -30L-44 -18L-36 2L-24 -4V32H24V-4L36 2L44 -18L18 -30Q0 -16 -18 -30Z', { fill: mix(COL.board, color, .6), stroke: color, 'stroke-width': 3 });
+ g._s = s;
+ return g;
+}
+function pants(p, x, y, color, s = 1) {
+ const g = G(p, { x, y, s: .5 * s, o: 0 });
+ path(g, 'M-26 -32H26L30 34H8L0 -6L-8 34H-30Z', { fill: mix(COL.board, color, .6), stroke: color, 'stroke-width': 3 });
+ g._s = s;
+ return g;
+}
+const grow = (e, t0) => tw(e, { s: e._s || 1, o: 1 }, t0, .45, back);
+
+/* ---------- data ---------- */
+const PL = { x0: 240, x1: 1360, y: 600 }, PX = v => PL.x0 + v * (PL.x1 - PL.x0);
+const TREE = { root: [190, 450], l1: [430, [300, 600]], l2: 720, gap: 44 };
+
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'Probability', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 7, Chapter 42', { x: 800, y: 330, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Probability', { x: 800, y: 430, size: 88, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = mline(scene, ['0 ≤ ', 'P', ' ≤ 1'], 800, 600, m('sub'), COL.dim, 46);
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['terms', 'Outcomes and events', (m) => {
+ const p = panel(0);
+ text(p, 'action', 160, 170, m('act'), { size: 28, fill: COL.dim, weight: 600 });
+ text(p, 'roll a number cube once', 360, 170, m('act'), { size: 30 });
+ const big = die(p, 5, 1300, 200, 120);
+ tw(big, { s: 1, o: 1, r: 360 }, m('act', .3), 1, out);
+ text(p, 'outcomes', 160, 330, m('out'), { size: 28, fill: COL.dim, weight: 600 });
+ const faces = S.faces = [1, 2, 3, 4, 5, 6].map((n, i) => { const d = die(p, n, 420 + i * 150, 320); pop(d, m('out', .4 + i * .35)); return d; });
+ text(p, 'event', 160, 510, m('ev'), { size: 28, fill: COL.dim, weight: 600 });
+ text(p, 'roll an even number', 360, 510, m('ev'), { size: 30 });
+ [1, 3, 5].forEach((k, i) => { tw(faces[k]._box, { c_stroke: FAV, 'a_stroke-width': 6 }, m('fav', i * .4), .3); tw(faces[k], { y: 300 }, m('fav', i * .4), .3, out); });
+ text(p, 'favorable outcomes: 2, 4, 6', 360, 580, m('fav', 1.2), { size: 30, fill: FAV, weight: 600 });
+ text(p, 'fair cube: each face equally likely', 360, 720, m('eq'), { size: 28, fill: COL.dim });
+ [0, 1, 2, 3, 4, 5].forEach(i => pulse(faces[i], m('eq', .5 + i * .12), 1.12));
+ }],
+ ['formula', 'The probability ratio', (m) => {
+ const p = panel(0);
+ const faces = [1, 2, 3, 4, 5, 6].map((n, i) => { const d = die(p, n, 420 + i * 150, 200, 96, 1); if (n % 2 === 0) put(d._box, { c_stroke: FAV, 'a_stroke-width': 6 }); return d; });
+ const g = G(p, { o: 0 });
+ T(g, 'P(event) =', { x: 560, y: 470, size: 40, anchor: 'end', weight: 600 });
+ T(g, 'number of favorable outcomes', { x: 840, y: 440, size: 32, fill: FAV, anchor: 'middle' });
+ path(g, 'M600 455H1080', { stroke: COL.chalk, 'stroke-width': 3 });
+ T(g, 'number of possible outcomes', { x: 840, y: 500, size: 32, fill: POSS, anchor: 'middle' });
+ show(g, m('def'));
+ // Copies of the favorable faces fly to the numerator; all six to the denominator.
+ [1, 3, 5].forEach((k, i) => { const c = die(p, k + 1, 420 + k * 150, 200, 96, 1); put(c._box, { c_stroke: FAV }); tw(c, { x: 640 + i * 60, y: 650, s: .45 }, m('num', i * .2), .7); });
+ faces.forEach((f, i) => { const c = die(p, i + 1, 420 + i * 150, 200, 96, 1); tw(c, { x: 580 + i * 50, y: 760, s: .4 }, m('den', i * .1), .7); });
+ const row = tokens(p, [['P(even) = ', F(3, 6)], [' = ', F(1, 2)], { t: ' = 50%', fill: COL.good }], { x: 1260, y: 720, size: 60, anchor: 'middle', o: 0 });
+ ['frac', 'simp', 'pct'].forEach((k, i) => show(row[i], m(k)));
+ text(p, '3 favorable', 500, 610, m('num', .8), { size: 24, fill: FAV, anchor: 'middle' });
+ text(p, '6 possible', 500, 820, m('den', .8), { size: 24, fill: POSS, anchor: 'middle' });
+ }],
+ ['scale', 'From 0 to 1', (m) => {
+ const p = panel(0), y = PL.y;
+ const band = G(p, { o: 0 });
+ const grad = mk('linearGradient', { id: 'pgrad' }, mk('defs', {}, band));
+ [[0, COL.bad], [.5, COL.int], [1, COL.good]].forEach(([o, c]) => mk('stop', { offset: o, 'stop-color': c }, grad));
+ mk('rect', { x: PL.x0, y: y - 10, width: PL.x1 - PL.x0, height: 20, rx: 10, fill: 'url(#pgrad)', opacity: .55 }, band);
+ [[0, '0'], [.5, '½'], [1, '1']].forEach(([v, s]) => { path(band, `M${PX(v)} ${y - 18}V${y + 18}`, { stroke: COL.chalk, 'stroke-width': 3 }); T(band, s, { x: PX(v), y: y + 56, size: 34, font: MATH, anchor: 'middle' }); });
+ [[0, 'impossible'], [.25, 'unlikely'], [.5, 'equally likely'], [.75, 'likely'], [1, 'certain']].forEach(([v, s]) => T(band, s, { x: PX(v), y: y + 100, size: 24, fill: COL.dim, anchor: 'middle' }));
+ show(band, .2);
+ const pin = (v, label, parts, h, t0, color) => {
+ const g = G(p, { x: PX(v), y: y - 420, o: 0 });
+ path(g, `M0 ${h - 4}V${380 - 14}`, { stroke: color, 'stroke-width': 2.5, 'stroke-dasharray': '5 6' });
+ mk('circle', { cy: 380, r: 12, fill: color, stroke: COL.board, 'stroke-width': 3 }, g);
+ T(g, label, { y: h - 46, size: 24, fill: color, anchor: 'middle', weight: 600 });
+ M(g, parts, { y: h - 8, size: 34, fill: color });
+ show(g, t0, .3); tw(g, { y: y - 380 }, t0, .6, back);
+ };
+ pin(0, 'roll a 7', ['0'], 120, m('zero'), COL.bad);
+ pin(1, 'roll less than 7', ['1'], 120, m('one'), COL.good);
+ pin(.5, 'roll an even number', [F(1, 2)], 120, m('half'), COL.int);
+ pin(1 / 6, 'roll a 6', [F(1, 6)], 250, m('six'), COL.nat);
+ pin(5 / 6, 'roll more than 1', [F(5, 6)], 250, m('more'), COL.irr);
+ const pc = G(p, { o: 0 });
+ [[0, '0%'], [.5, '50%'], [1, '100%']].forEach(([v, s]) => T(pc, s, { x: PX(v), y: y + 150, size: 30, fill: COL.task, font: MATH, anchor: 'middle', weight: 600 }));
+ show(pc, m('pct'));
+ }],
+ ['q1', 'Quick check', () => {
+ const p = panel(0);
+ S.sp = spinner(p, 460, 450, 270, .2);
+ text(p, '8 equal sections', 460, 790, .3, { size: 26, fill: COL.dim, anchor: 'middle' });
+ }, { ask: done => quiz({ x: 900, y: 220, w: 560, cls: 'side' }, [{
+ id: 'c-blue', prompt: ['What is the probability of landing on blue?'],
+ build: blanks([{ parts: ['P(blue) = ', { box: '3/8' }], why: '3 of the 8 equal sections are blue.', hint: 'Count the blue sections, then count all the sections.',
+ fx: () => outline(S.q || qlayer(), S.sp, [0, 3, 6], COL.good, 0, fx) }]),
+ }], done) }],
+ ['or', 'Red or yellow', (m) => {
+ const p = panel(0), sp = spinner(p, 460, 450, 270, 0);
+ mline(p, 'P(red or yellow) = ?', 900, 220, m('ask'), COL.chalk, 46, 'start');
+ outline(p, sp, [1, 5], COL.nat, m('fav'));
+ outline(p, sp, [2, 7], COL.int, m('fav', 1.5));
+ mline(p, '2 red + 2 yellow = 4', 900, 330, m('fav', 1), COL.chalk, 40, 'start');
+ mline(p, ['P(red or yellow) = ', F(4, 8), ' = ', F(1, 2)], 900, 450, m('frac'), COL.good, 46, 'start');
+ text(p, 'One spin can’t be red and yellow at once,', 900, 560, m('why'), { size: 26, fill: COL.dim });
+ text(p, 'so the two counts add.', 900, 598, m('why'), { size: 26, fill: COL.dim });
+ tw(sp.ptr, { r: 720 + sp.land(5) }, m('spin'), 3, out);
+ }],
+ ['sample', 'Sample space', (m) => {
+ const p = panel(0);
+ text(p, 'flip a coin twice', 160, 150, m('two'), { size: 30, fill: COL.dim });
+ const rows = [['H', 'H'], ['H', 'T'], ['T', 'H'], ['T', 'T']];
+ const tb = G(p, { o: 0 });
+ T(tb, '1st flip', { x: 320, y: 230, size: 24, fill: COL.dim, anchor: 'middle' });
+ T(tb, '2nd flip', { x: 460, y: 230, size: 24, fill: COL.dim, anchor: 'middle' });
+ show(tb, m('two'));
+ rows.forEach(([a, b], i) => { coin(p, a, 320, 300 + i * 110, m('list', i * 1.4)); coin(p, b, 460, 300 + i * 110, m('list', i * 1.4 + .3)); });
+ const brace = path(p, 'M560 260Q590 260 590 300V420Q590 455 615 455Q590 455 590 490V610Q590 650 560 650', { stroke: COL.task, 'stroke-width': 3 }, { d: 0 });
+ draw(brace, m('space'), .6);
+ text(p, 'sample space: 4 outcomes', 640, 465, m('space', .3), { size: 30, fill: COL.task, weight: 600 });
+ [1, 2].forEach(i => { const r = put(mk('rect', { x: 270, y: 300 + i * 110 - 44, width: 240, height: 88, rx: 16, fill: 'none', stroke: COL.irr, 'stroke-width': 3 }, p), { o: 0 }); tw(r, { o: 1 }, m('order'), .3); tw(r, { o: 0 }, m('hh', -.3), .3); });
+ text(p, 'HT and TH are different outcomes', 640, 540, m('order', .4), { size: 26, fill: COL.irr });
+ const r0 = put(mk('rect', { x: 270, y: 256, width: 240, height: 88, rx: 16, fill: 'none', stroke: COL.good, 'stroke-width': 4 }, p), { o: 0 });
+ show(r0, m('hh'));
+ mline(p, ['P(two heads) = ', F(1, 4), ' = 25%'], 640, 680, m('hh', .5), COL.good, 46, 'start');
+ }],
+ ['tree', 'Tree diagrams', (m) => {
+ const p = panel(0), [rx, ry] = TREE.root, [x1, ys1] = TREE.l1;
+ const root = put(mk('circle', { r: 10, fill: COL.chalk }, p), { x: rx, y: ry, o: 0 }); show(root, m('coin'));
+ text(p, 'coin', x1, 140, m('coin'), { size: 24, fill: COL.dim, anchor: 'middle' });
+ text(p, 'number cube', TREE.l2, 140, m('die'), { size: 24, fill: COL.dim, anchor: 'middle' });
+ S.leaves = [];
+ ['H', 'T'].forEach((side, a) => {
+ const y1 = ys1[a];
+ branch(p, rx, ry, x1 - 36, y1, m('coin', .3 + a * .3));
+ coin(p, side, x1, y1, m('coin', .6 + a * .3));
+ for (let n = 1; n <= 6; n++) {
+ const y2 = y1 + (n - 3.5) * TREE.gap, t = m('die', a * .9 + n * .1);
+ branch(p, x1 + 36, y1, TREE.l2 - 26, y2, t);
+ const lab = M(p, [String(n)], { x: TREE.l2, y: y2 + 10, size: 28, o: 0 });
+ show(lab, t + .2);
+ const out = T(p, `${side}${n}`, { x: TREE.l2 + 135, y: y2 + 9, size: 26, fill: side === 'H' ? HEADS : TAILS, weight: 600, anchor: 'middle', o: 0 });
+ show(out, m('leaves', (a * 6 + n - 1) * .18));
+ S.leaves.push({ side, n, y: y2, out });
+ }
+ });
+ mline(p, '2 × 6 = 12 outcomes', 1120, 300, m('leaves', 2.4), COL.chalk, 40, 'start');
+ const hit = put(mk('rect', { x: TREE.l2 + 90, y: S.leaves[5].y - 24, width: 90, height: 44, rx: 12, fill: 'none', stroke: COL.good, 'stroke-width': 3.5 }, p), { o: 0 });
+ show(hit, m('ev'));
+ mline(p, ['P(heads and 6) = ', F(1, 12)], 1120, 420, m('one'), COL.good, 40, 'start');
+ }],
+ ['q2', 'Quick check', () => {}, { ask: done => quiz({ x: 1090, y: 500, w: 470, cls: 'side' }, [{
+ id: 'c-tree', prompt: ['What is the probability of tails and an even number?'],
+ build: blanks([{ parts: ['P = ', { box: '1/4' }], why: 'T2, T4 and T6: 3 of the 12 outcomes, and 3/12 = 1/4.', hint: 'Count the outcomes that start with T and end in 2, 4 or 6.',
+ fx: () => { const L = S.q || qlayer(); S.leaves.filter(l => l.side === 'T' && l.n % 2 === 0).forEach((l, i) => fx(put(mk('rect', { x: TREE.l2 + 90, y: l.y - 24, width: 90, height: 44, rx: 12, fill: 'none', stroke: COL.good, 'stroke-width': 3.5 }, L), { o: 0 }), { o: 1 }, i * .2, .3)); } }]),
+ }], done) }],
+ ['count', 'Counting principle', (m) => {
+ const p = panel(0);
+ const rule = G(p, { o: 0 });
+ T(rule, 'a ways, then b ways:', { x: 800, y: 130, size: 32, fill: COL.dim, anchor: 'middle' });
+ M(rule, ['a × b ways in all'], { x: 800, y: 185, size: 44, fill: COL.task });
+ show(rule, m('rule'));
+ const SC = [COL.whole, COL.nat, COL.int, COL.irr], PC = [COL.real, COL.rat, COL.dim];
+ SC.forEach((c, j) => grow(shirt(p, 560 + j * 190, 300, c), m('shirts', j * .2)));
+ PC.forEach((c, i) => grow(pants(p, 330, 430 + i * 130, c), m('pants', i * .2)));
+ text(p, '4 shirts', 845, 250, m('shirts'), { size: 24, fill: COL.dim, anchor: 'middle' });
+ text(p, '3 pants', 210, 560, m('pants'), { size: 24, fill: COL.dim, anchor: 'middle' });
+ PC.forEach((pc, i) => SC.forEach((sc, j) => {
+ const t = m('grid', (i * 4 + j) * .14), x = 560 + j * 190, y = 430 + i * 130;
+ const cell = put(mk('rect', { x: x - 80, y: y - 58, width: 160, height: 116, rx: 14, fill: mix(COL.board, COL.chalk, .05), stroke: COL.faint, 'stroke-width': 2 }, p), { o: 0 });
+ show(cell, t, .3);
+ grow(shirt(p, x - 30, y, sc, .8), t); grow(pants(p, x + 32, y, pc, .8), t + .1);
+ }));
+ mline(p, '4 × 3 = 12 outfits', 1410, 560, m('grid', 1.8), COL.good, 44);
+ text(p, 'every shirt with every pair', 1410, 620, m('each'), { size: 24, fill: COL.dim, anchor: 'middle' });
+ }],
+ ['coins', 'Three flips', (m) => {
+ const p = panel(0);
+ text(p, 'flip a coin 3 times', 160, 130, m('flip'), { size: 30, fill: COL.dim });
+ const lev = [[200, [450]], [420, [300, 600]], [640, [225, 375, 525, 675]], [860, [190, 265, 340, 415, 485, 560, 635, 710]]];
+ put(mk('circle', { r: 10, fill: COL.chalk }, p), { x: 200, y: 450 });
+ for (let L = 1; L <= 3; L++) {
+ const [x, ys] = lev[L], [px, pys] = lev[L - 1], t = m('branch', (L - 1) * 1.4);
+ ys.forEach((y, k) => {
+ const parent = pys[k >> 1], side = k % 2 ? 'T' : 'H';
+ branch(p, px + (L > 1 ? 26 : 0), parent, x - 26, y, t + k * .05);
+ coin(p, side, x, y, t + .3 + k * .05, 22);
+ });
+ text(p, `${2 ** L} paths`, x, 790, t + .5, { size: 26, fill: COL.task, anchor: 'middle', weight: 600 });
+ }
+ mline(p, '2 × 2 × 2 = 8', 1050, 400, m('mult'), COL.good, 56, 'start');
+ mline(p, '2 × 3 = 6', 1050, 540, m('warn'), COL.bad, 48, 'start');
+ draw(path(p, 'M1040 525H1260', { stroke: COL.bad, 'stroke-width': 4 }, { d: 0 }), m('warn', .5), .4);
+ text(p, '3 flips: three factors of 2', 1050, 610, m('warn', 1.2), { size: 26, fill: COL.dim });
+ }],
+ ['q3', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 300, y: 220, w: 1000, cls: 'side' }, [{
+ id: 'c-count', prompt: ['Use the counting principle.'],
+ build: blanks([
+ { parts: ['6 kinds of bread and 4 fillings: ', { box: '24' }, ' sandwiches'], why: '6 × 4 = 24.', hint: 'Multiply the number of choices at each stage.' },
+ { parts: ['one coin flipped 4 times: ', { box: '16' }, ' arrangements'], why: '2 × 2 × 2 × 2 = 16.', hint: 'Each flip has 2 choices, and there are 4 flips.' },
+ ]),
+ }], done) }],
+ ['comp', 'Complements', (m) => {
+ const p = panel(0);
+ [['win', 'lose'], ['heads', 'tails']].forEach(([a, b], i) => {
+ text(p, a, 260, 180 + i * 60, m('ex', i * .8), { size: 30, fill: COL.whole, weight: 600, anchor: 'end' });
+ text(p, '↔', 300, 180 + i * 60, m('ex', i * .8), { size: 30, fill: COL.dim, anchor: 'middle' });
+ text(p, b, 340, 180 + i * 60, m('ex', i * .8), { size: 30, fill: COL.nat, weight: 600 });
+ });
+ mline(p, 'P(event) + P(not event) = 1 = 100%', 1000, 210, m('sum'), COL.task, 44);
+ const bx = 160, bw = 1280, by = 380;
+ show(rect(p, bx, by, bw, 80, 'none', 0, COL.faint), m('rain'));
+ const r1 = put(rect(p, bx, by, 0, 80, mix(COL.board, COL.whole, .6), 1), { a_width: 0 });
+ tw(r1, { a_width: bw * .3 }, m('rain', .3), .8, out);
+ text(p, 'rain 30%', bx + bw * .15, by + 52, m('rain', 1), { size: 30, anchor: 'middle', weight: 600 });
+ const r2 = put(rect(p, bx + bw * .3, by, 0, 80, mix(COL.board, COL.nat, .5), 1), { a_width: 0 });
+ tw(r2, { a_width: bw * .7 }, m('no'), .9, out);
+ text(p, 'no rain 70%', bx + bw * .65, by + 52, m('no', .8), { size: 30, anchor: 'middle', weight: 600 });
+ mline(p, '100% − 30% = 70%', 800, 540, m('no', .5), COL.chalk, 42);
+ const sp = spinner(p, 400, 720, 140, m('spin'));
+ outline(p, sp, [0, 3, 6], COL.whole, m('spin', .5));
+ outline(p, sp, [1, 2, 4, 5, 7], COL.nat, m('spin', 2));
+ mline(p, ['P(blue) = ', F(3, 8)], 640, 690, m('spin', .5), COL.whole, 40, 'start');
+ mline(p, ['P(not blue) = 1 − ', F(3, 8), ' = ', F(5, 8)], 640, 780, m('spin', 2), COL.nat, 40, 'start');
+ }],
+ ['q4', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 300, y: 220, w: 1000, cls: 'side' }, [{
+ id: 'c-comp', prompt: ['Find each complement.'],
+ build: blanks([
+ { parts: ['P(win) = 35%, P(not win) = ', { box: '65' }, '%'], why: '100% − 35% = 65%.', hint: 'The two probabilities add up to 100%.' },
+ { parts: ['P(6) = ', F(1, 6), ', P(not 6) = ', { box: '5/6' }], why: '1 − 1/6 = 5/6.', hint: 'The two probabilities add up to 1.' },
+ ]),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['P(event) = favorable ÷ possible, from 0 to 1.', 'w1', FAV], ['Tables and tree diagrams list the sample space.', 'w2', HEADS],
+ ['Counting principle: multiply the choices at each stage.', 'w3', COL.irr], ['P(event) + P(not event) = 1.', 'w4', COL.nat]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 230 + i * 130, o: 0 });
+ mk('circle', { cx: 200, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 200, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 260, size: 34, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => {
+ const p = panel(0);
+ text(p, 'one marble, picked without looking', 1180, 200, .2, { size: 26, fill: COL.dim, anchor: 'middle' });
+ [[COL.nat, 4], [COL.whole, 5], [COL.irr, 3]].flatMap(([c, n]) => Array(n).fill(c)).forEach((c, i) => {
+ const d = put(mk('circle', { cx: 0, cy: 0, r: 30, fill: mix(COL.board, c, .8), stroke: c, 'stroke-width': 3 }, p), { x: 1000 + (i % 4) * 120, y: 300 + Math.floor(i / 4) * 110, s: 0, o: 0 });
+ pop(d, .3 + i * .05);
+ });
+ text(p, '4 red, 5 blue, 3 green', 1180, 680, .4, { size: 28, anchor: 'middle', weight: 600 });
+ }, { ask: done => quiz({ x: 0, y: 0, w: 820, cls: 'screen' }, [{
+ id: 'p-prob', prompt: ['A bag holds 12 marbles. Find each probability.'], build: blanks([
+ { parts: ['P(red) = ', { box: '1/3' }], why: '4 of 12 marbles are red: 4/12 = 1/3.', hint: 'Favorable: the red marbles. Possible: all 12.' },
+ { parts: ['P(blue or green) = ', { box: '2/3' }], why: '5 + 3 = 8 of 12: 8/12 = 2/3.', hint: 'Add the blue and green marbles.' },
+ { parts: ['P(yellow) = ', { box: '0' }], why: 'There are no yellow marbles: impossible.', hint: 'How many yellow marbles are there?' },
+ { parts: ['P(not blue) = ', { box: '7/12' }], why: '1 − 5/12 = 7/12.', hint: 'Use the complement of blue.' },
+ ]),
+ }], done, 'Chapter practice 1 of 4') }],
+ ['final2', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [
+ { id: 'p-c1', prompt: ['A lunch special has 5 sandwiches and 3 drinks. How many different lunches of one sandwich and one drink?'], build: blanks([{ parts: [{ box: '15' }, ' lunches'], why: '5 × 3 = 15.', hint: 'Multiply the number of choices.' }]) },
+ { id: 'p-c2', prompt: ['A coin is flipped 5 times. How many arrangements of heads and tails are possible?'], build: blanks([{ parts: [{ box: '32' }, ' arrangements'], why: '2 × 2 × 2 × 2 × 2 = 32.', hint: 'Five flips, two choices each.' }]) },
+ { id: 'p-c3', prompt: ['A code is one letter from A to Z followed by one digit from 0 to 9. How many codes are possible?'], build: blanks([{ parts: [{ box: '260' }, ' codes'], why: '26 letters × 10 digits = 260.', hint: 'How many letters? How many digits?' }]) },
+ ], done, 'Chapter practice 2 of 4, question') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-likely', prompt: ['Roll one fair number cube. How likely is each event?'],
+ build: grid(LIKELY, [['0', 'Impossible', COL.bad], ['u', 'Unlikely', COL.nat], ['e', 'Even chance', COL.int], ['l', 'Likely', COL.irr], ['c', 'Certain', COL.good]], { multi: false, text: true }),
+ }], done, 'Chapter practice 3 of 4') }],
+ ['final4', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-comp', prompt: ['Find each complement.'], build: blanks([
+ { parts: ['P(snow) = 0.4, P(no snow) = ', { box: '0.6' }], why: '1 − 0.4 = 0.6.', hint: 'The two add up to 1.' },
+ { parts: ['P(win) = 15%, P(not win) = ', { box: '85' }, '%'], why: '100% − 15% = 85%.', hint: 'The two add up to 100%.' },
+ { parts: ['P(red) = ', F(3, 10), ', P(not red) = ', { box: '7/10' }], why: '1 − 3/10 = 7/10.', hint: 'The two add up to 1.' },
+ { parts: ['P(late) = 8%, P(on time) = ', { box: '92' }, '%'], why: 'On time is the complement of late: 100% − 8% = 92%.', hint: 'On time is the complement of late.' },
+ ]),
+ }], done, 'Chapter practice 4 of 4') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const LIKELY = [
+ { parts: ['roll a 9'], ans: ['0'], why: 'A number cube has only 1 to 6: probability 0.' },
+ { parts: ['roll a 2'], ans: ['u'], why: '1 of 6 outcomes: 1/6.' },
+ { parts: ['roll an odd number'], ans: ['e'], why: '1, 3, 5: 3 of 6, which is 1/2.' },
+ { parts: ['roll a number greater than 2'], ans: ['l'], why: '3, 4, 5, 6: 4 of 6, which is 2/3.' },
+ { parts: ['roll a number less than 10'], ans: ['c'], why: 'Every face is less than 10: probability 1.' },
+ { parts: ['roll a 5 or a 6'], ans: ['u'], why: '2 of 6, which is 1/3.' },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch43/audio/en/cards.mp3 b/site/ch43/audio/en/cards.mp3
new file mode 100644
index 0000000..61249d8
Binary files /dev/null and b/site/ch43/audio/en/cards.mp3 differ
diff --git a/site/ch43/audio/en/compound.mp3 b/site/ch43/audio/en/compound.mp3
new file mode 100644
index 0000000..dda0268
Binary files /dev/null and b/site/ch43/audio/en/compound.mp3 differ
diff --git a/site/ch43/audio/en/dep.mp3 b/site/ch43/audio/en/dep.mp3
new file mode 100644
index 0000000..ed33e79
Binary files /dev/null and b/site/ch43/audio/en/dep.mp3 differ
diff --git a/site/ch43/audio/en/final1.mp3 b/site/ch43/audio/en/final1.mp3
new file mode 100644
index 0000000..940de45
Binary files /dev/null and b/site/ch43/audio/en/final1.mp3 differ
diff --git a/site/ch43/audio/en/final2.mp3 b/site/ch43/audio/en/final2.mp3
new file mode 100644
index 0000000..ad8e77f
Binary files /dev/null and b/site/ch43/audio/en/final2.mp3 differ
diff --git a/site/ch43/audio/en/final3.mp3 b/site/ch43/audio/en/final3.mp3
new file mode 100644
index 0000000..519e2c4
Binary files /dev/null and b/site/ch43/audio/en/final3.mp3 differ
diff --git a/site/ch43/audio/en/finish.mp3 b/site/ch43/audio/en/finish.mp3
new file mode 100644
index 0000000..e26f300
Binary files /dev/null and b/site/ch43/audio/en/finish.mp3 differ
diff --git a/site/ch43/audio/en/intro.mp3 b/site/ch43/audio/en/intro.mp3
new file mode 100644
index 0000000..60b7190
Binary files /dev/null and b/site/ch43/audio/en/intro.mp3 differ
diff --git a/site/ch43/audio/en/multiply.mp3 b/site/ch43/audio/en/multiply.mp3
new file mode 100644
index 0000000..c23fe64
Binary files /dev/null and b/site/ch43/audio/en/multiply.mp3 differ
diff --git a/site/ch43/audio/en/q1.mp3 b/site/ch43/audio/en/q1.mp3
new file mode 100644
index 0000000..2ae0599
Binary files /dev/null and b/site/ch43/audio/en/q1.mp3 differ
diff --git a/site/ch43/audio/en/q2.mp3 b/site/ch43/audio/en/q2.mp3
new file mode 100644
index 0000000..3c2fab3
Binary files /dev/null and b/site/ch43/audio/en/q2.mp3 differ
diff --git a/site/ch43/audio/en/q3.mp3 b/site/ch43/audio/en/q3.mp3
new file mode 100644
index 0000000..9f146cf
Binary files /dev/null and b/site/ch43/audio/en/q3.mp3 differ
diff --git a/site/ch43/audio/en/replace.mp3 b/site/ch43/audio/en/replace.mp3
new file mode 100644
index 0000000..e863f41
Binary files /dev/null and b/site/ch43/audio/en/replace.mp3 differ
diff --git a/site/ch43/audio/en/timings.js b/site/ch43/audio/en/timings.js
new file mode 100644
index 0000000..dff021e
--- /dev/null
+++ b/site/ch43/audio/en/timings.js
@@ -0,0 +1,321 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 6.024,
+ "marks": {
+ "sub": 1.667
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter forty-three."
+ ],
+ [
+ 1.667,
+ "A compound event is made of two or more events happening together."
+ ]
+ ]
+ },
+ "compound": {
+ "dur": 18.552,
+ "marks": {
+ "grid": 2.773,
+ "ev": 12.188,
+ "p": 15.677
+ },
+ "cues": [
+ [
+ 0.104,
+ "Flip a coin and roll a number cube."
+ ],
+ [
+ 2.773,
+ "Every pair of results is one outcome: the coin's two sides, times the cube's six faces, makes twelve equally likely outcomes."
+ ],
+ [
+ 12.188,
+ "The compound event tails and a three is just one of them."
+ ],
+ [
+ 15.677,
+ "So its probability is one twelfth."
+ ]
+ ]
+ },
+ "multiply": {
+ "dur": 30.576,
+ "marks": {
+ "sq": 1.523,
+ "col": 5.755,
+ "row": 8.932,
+ "both": 11.823,
+ "eq": 16.966,
+ "ind": 18.424,
+ "rule": 23.359
+ },
+ "cues": [
+ [
+ 0.104,
+ "There's a faster way."
+ ],
+ [
+ 1.523,
+ "Picture all the outcomes as one square of area one."
+ ],
+ [
+ 5.755,
+ "Rolling a three takes one sixth of the width."
+ ],
+ [
+ 8.932,
+ "Getting tails takes one half of the height."
+ ],
+ [
+ 11.823,
+ "Both happen only where the strips overlap: one half of one sixth, which is one twelfth."
+ ],
+ [
+ 18.424,
+ "This works because the events are independent: the coin has no effect on the cube."
+ ],
+ [
+ 23.359,
+ "For independent events, the probability of A and B is the probability of A times the probability of B."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 2.544,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "Spin, then flip."
+ ]
+ ]
+ },
+ "dep": {
+ "dur": 31.2,
+ "marks": {
+ "first": 4.232,
+ "keep": 8.372,
+ "now": 10.326,
+ "second": 13.997,
+ "dep": 18.06,
+ "mult": 21.484,
+ "simp": 29.557
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now a bag of ten marbles: four red and six blue."
+ ],
+ [
+ 4.232,
+ "Pick one without looking."
+ ],
+ [
+ 5.794,
+ "The chance it's red is four tenths."
+ ],
+ [
+ 8.372,
+ "Keep that marble out of the bag."
+ ],
+ [
+ 10.326,
+ "Now only nine marbles are left, and six of them are blue."
+ ],
+ [
+ 13.997,
+ "So the chance the second marble is blue is six ninths."
+ ],
+ [
+ 18.06,
+ "The first pick changed the bag, so these events are dependent."
+ ],
+ [
+ 21.484,
+ "Multiply the first probability by the second one, after the first event: four tenths times six ninths is twenty-four ninetieths, or four fifteenths."
+ ]
+ ]
+ },
+ "replace": {
+ "dur": 18.984,
+ "marks": {
+ "back": 2.461,
+ "ten": 5.859,
+ "ind": 7.435,
+ "diff": 12.943
+ },
+ "cues": [
+ [
+ 0.091,
+ "Compare that with putting the marble back."
+ ],
+ [
+ 2.461,
+ "With replacement, the bag is the same for the second pick: six blue out of ten."
+ ],
+ [
+ 7.435,
+ "The picks are independent, and the probability is four tenths times six tenths."
+ ],
+ [
+ 12.943,
+ "Without replacement, the second fraction changes: both the top and the bottom can shrink."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 3.072,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Two picks without replacement."
+ ]
+ ]
+ },
+ "cards": {
+ "dur": 25.104,
+ "marks": {
+ "aces": 2.188,
+ "first": 4.323,
+ "out": 8.776,
+ "left": 9.701,
+ "mult": 14.05,
+ "simp": 20.82
+ },
+ "cues": [
+ [
+ 0.091,
+ "A deck has fifty-two cards, and four of them are aces."
+ ],
+ [
+ 4.323,
+ "Draw one card: the chance of an ace is four out of fifty-two."
+ ],
+ [
+ 8.776,
+ "Keep it out."
+ ],
+ [
+ 9.701,
+ "Now fifty-one cards are left, and only three are aces."
+ ],
+ [
+ 14.05,
+ "So the probability of an ace, then another ace, is four fifty-seconds times three fifty-firsts, which is one out of two hundred twenty-one."
+ ],
+ [
+ 23.073,
+ "That's less than half of one percent."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 2.976,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.107,
+ "Independent or dependent?"
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 19.008,
+ "marks": {
+ "w1": 1.016,
+ "w2": 4.609,
+ "w3": 8.633,
+ "end": 16.654
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.016,
+ "A compound event combines two or more events."
+ ],
+ [
+ 4.609,
+ "If the events are independent, multiply their probabilities."
+ ],
+ [
+ 8.633,
+ "If the first event changes the second, they're dependent: multiply by the second probability after the first event has happened."
+ ],
+ [
+ 16.654,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 3.408,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.536,
+ "Independent or dependent?"
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 2.376,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Next, independent events."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 2.784,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Last one."
+ ],
+ [
+ 1.133,
+ "Picks without replacement."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 4.872,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Nice work."
+ ],
+ [
+ 1.146,
+ "That's the end of chapter forty-three, compound events."
+ ]
+ ]
+ }
+};
diff --git a/site/ch43/audio/en/wrap.mp3 b/site/ch43/audio/en/wrap.mp3
new file mode 100644
index 0000000..ea26f2e
Binary files /dev/null and b/site/ch43/audio/en/wrap.mp3 differ
diff --git a/site/ch43/index.html b/site/ch43/index.html
new file mode 100644
index 0000000..5347ea4
--- /dev/null
+++ b/site/ch43/index.html
@@ -0,0 +1,233 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Compound Events</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 43, title: 'Compound Events', minutes: 8, next: '../ch44/' };
+const CA = COL.nat, CB = COL.whole, BOTH = COL.task, RED = COL.nat, BLUE = COL.whole;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+// Area model: a square split into cols × rows equal cells. strip / cell shade parts of it.
+function area(p, x, y, W, H, cols, rows, t0) {
+ const g = G(p, { o: 0 }), cw = W / cols, rh = H / rows;
+ let d = '';
+ for (let c = 1; c < cols; c++) d += `M${x + c * cw} ${y}V${y + H}`;
+ for (let r = 1; r < rows; r++) d += `M${x} ${y + r * rh}H${x + W}`;
+ path(g, d, { stroke: COL.faint, 'stroke-width': 2 });
+ mk('rect', { x, y, width: W, height: H, fill: 'none', stroke: COL.chalk, 'stroke-width': 3 }, g);
+ show(g, t0);
+ const shade = (x1, y1, w, h, color, t0, o = .35, run = tw, into = p) => {
+ const r = put(mk('rect', { x: x1, y: y1, width: w, height: h, fill: color }, into), { o: 0 });
+ into.insertBefore(r, into.firstChild);
+ run(r, { o }, t0, .5);
+ return r;
+ };
+ return { g, cw, rh,
+ col: (c, color, t0) => shade(x + c * cw, y, cw, H, color, t0),
+ row: (r, color, t0) => shade(x, y + r * rh, W, rh, color, t0),
+ cell: (c, r, color, t0, run = tw, into = p) => {
+ const e = put(mk('rect', { x: x + c * cw + 4, y: y + r * rh + 4, width: cw - 8, height: rh - 8, rx: 8, fill: 'none', stroke: color, 'stroke-width': 5 }, into), { o: 0 });
+ run(e, { o: 1 }, t0, .4);
+ return e;
+ } };
+}
+// A bag of marbles. order: colours; marbles sit in a grid inside the bag.
+function bag(p, x, y, order, t0, cols = 4) {
+ const g = G(p, { o: 0 }), w = cols * 90 + 60, rows = Math.ceil(order.length / cols), h = rows * 90 + 90;
+ path(g, `M${x} ${y}V${y + h - 40}Q${x} ${y + h} ${x + 40} ${y + h}H${x + w - 40}Q${x + w} ${y + h} ${x + w} ${y + h - 40}V${y}`, { stroke: COL.dim, 'stroke-width': 4 });
+ show(g, t0);
+ return order.map((c, i) => {
+ const m = put(mk('circle', { r: 32, fill: mix(COL.board, c, .8), stroke: c, 'stroke-width': 3 }, p), { x: x + 75 + (i % cols) * 90, y: y + 70 + Math.floor(i / cols) * 90, s: 0, o: 0 });
+ m.c = c;
+ pop(m, t0 + .3 + i * .05);
+ return m;
+ });
+}
+function arcTo(e, x, y, t0, dur = .9, lift = 120, run = prog) {
+ const { x: x0, y: y0 } = st(e);
+ run(q => put(e, { x: x0 + (x - x0) * q, y: y0 + (y - y0) * q - Math.sin(Math.PI * q) * lift }), t0, dur);
+}
+const pulseAll = (els, t0, k = 1.2) => els.forEach((e, i) => pulse(e, t0 + i * .06, k));
+
+/* ---------- beats ---------- */
+const MARB = [RED, BLUE, BLUE, RED, BLUE, RED, BLUE, BLUE, RED, BLUE];
+const RANK = ['A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K'], SUIT = [['♠', COL.chalk], ['♥', COL.nat], ['♦', COL.nat], ['♣', COL.chalk]];
+const BEATS = [
+ ['intro', 'Compound events', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 7, Chapter 43', { x: 800, y: 330, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Compound Events', { x: 800, y: 430, size: 88, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = mline(scene, 'P(A and B)', 800, 600, m('sub'), COL.dim, 52);
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['compound', 'Two events at once', (m) => {
+ const p = panel(0), x0 = 420, y0 = 300, cw = 130, rh = 110;
+ text(p, 'flip a coin and roll a number cube', 800, 130, .2, { size: 30, fill: COL.dim, anchor: 'middle' });
+ for (let n = 1; n <= 6; n++) pop(die(p, n, x0 + (n - .5) * cw, 230, 64), .4 + n * .08);
+ coin(p, 'H', 340, y0 + rh * .5, .6); coin(p, 'T', 340, y0 + rh * 1.5, .7);
+ const cells = [];
+ ['H', 'T'].forEach((s, r) => { for (let n = 1; n <= 6; n++) {
+ const i = r * 6 + n - 1, t = m('grid', .5 + i * .22);
+ const box = put(mk('rect', { x: x0 + (n - 1) * cw + 5, y: y0 + r * rh + 5, width: cw - 10, height: rh - 10, rx: 12, fill: mix(COL.board, COL.chalk, .06), stroke: COL.faint, 'stroke-width': 2 }, p), { o: 0 });
+ show(box, t, .3);
+ cells.push(text(p, `${s}${n}`, x0 + (n - .5) * cw, y0 + r * rh + rh / 2 + 11, t + .1, { size: 30, fill: s === 'H' ? COL.int : COL.rat, anchor: 'middle', weight: 600 }));
+ } });
+ mline(p, '2 × 6 = 12 outcomes', 800, 600, m('grid', 3.4), COL.chalk, 44);
+ const hit = put(mk('rect', { x: x0 + 2 * cw + 2, y: y0 + rh + 2, width: cw - 4, height: rh - 4, rx: 14, fill: 'none', stroke: BOTH, 'stroke-width': 5 }, p), { o: 0 });
+ show(hit, m('ev'));
+ mline(p, ['P(tails and 3) = ', F(1, 12)], 800, 700, m('p'), BOTH, 48);
+ }],
+ ['multiply', 'Multiply for independent events', (m) => {
+ const p = panel(0), X0 = 420, Y0 = 180, W = 540, H = 540, A = area(p, X0, Y0, W, H, 6, 2, m('sq'));
+ for (let n = 1; n <= 6; n++) text(p, String(n), X0 + (n - .5) * A.cw, Y0 - 16, m('sq', .3), { size: 26, fill: COL.dim, anchor: 'middle' });
+ text(p, 'H', X0 - 30, Y0 + H / 4 + 10, m('sq', .3), { size: 28, fill: COL.int, anchor: 'middle', weight: 700 });
+ text(p, 'T', X0 - 30, Y0 + 3 * H / 4 + 10, m('sq', .3), { size: 28, fill: COL.rat, anchor: 'middle', weight: 700 });
+ text(p, 'area 1: every outcome', X0 + W / 2, Y0 + H + 50, m('sq'), { size: 24, fill: COL.dim, anchor: 'middle' });
+ A.col(2, CB, m('col'));
+ mline(p, ['P(3) = ', F(1, 6)], 1060, 260, m('col'), CB, 46, 'start');
+ A.row(1, CA, m('row'));
+ mline(p, ['P(tails) = ', F(1, 2)], 1060, 360, m('row'), CA, 46, 'start');
+ A.cell(2, 1, BOTH, m('both'));
+ mline(p, [F(1, 2), ' × ', F(1, 6), ' = ', F(1, 12)], 1060, 470, m('both', .5), BOTH, 50, 'start');
+ text(p, 'independent: the coin', 1060, 570, m('ind'), { size: 26, fill: COL.dim });
+ text(p, 'has no effect on the cube', 1060, 606, m('ind'), { size: 26, fill: COL.dim });
+ const r = G(p, { o: 0 });
+ mk('rect', { x: 1040, y: 650, width: 500, height: 80, rx: 16, fill: 'none', stroke: COL.task, 'stroke-width': 3 }, r);
+ M(r, ['P(A and B) = P(A) · P(B)'], { x: 1290, y: 703, size: 38, fill: COL.task });
+ show(r, m('rule'));
+ }],
+ ['q1', 'Quick check', () => {
+ const p = panel(0), X0 = 300, Y0 = 220, W = 520, H = 400;
+ S.qa = area(p, X0, Y0, W, H, 4, 2, .2);
+ [CA, CB, COL.irr, COL.int].forEach((c, i) => { const s = put(mk('rect', { x: X0 + i * W / 4 + 30, y: Y0 - 50, width: W / 4 - 60, height: 26, rx: 13, fill: c }, p), { o: 0 }); show(s, .3); });
+ text(p, 'spinner: 4 equal colors', X0 + W / 2, Y0 - 76, .2, { size: 24, fill: COL.dim, anchor: 'middle' });
+ text(p, 'H', X0 - 30, Y0 + H / 4 + 10, .3, { size: 28, fill: COL.int, anchor: 'middle', weight: 700 });
+ text(p, 'T', X0 - 30, Y0 + 3 * H / 4 + 10, .3, { size: 28, fill: COL.rat, anchor: 'middle', weight: 700 });
+ }, { ask: done => quiz({ x: 920, y: 220, w: 560, cls: 'side' }, [{
+ id: 'c-ind', prompt: ['Spin the spinner, then flip a coin. Find the probability of red and heads.'],
+ build: blanks([{ parts: ['P(red and heads) = ', { box: '1/8' }], why: '1/4 × 1/2 = 1/8: one cell of eight.', hint: 'Multiply P(red) by P(heads).',
+ fx: () => S.qa.cell(0, 0, COL.good, 0, fx, S.q || qlayer()) }]),
+ }], done) }],
+ ['dep', 'Dependent events', (m) => {
+ const p = panel(0), ms = bag(p, 140, 230, MARB, .2);
+ text(p, '4 red, 6 blue', 330, 200, .3, { size: 28, fill: COL.dim, anchor: 'middle' });
+ const reds = ms.filter(x => x.c === RED), blues = ms.filter(x => x.c === BLUE);
+ pulseAll(reds, m('first'));
+ mline(p, ['P(red) = ', F(4, 10)], 720, 260, m('first', .5), RED, 46, 'start');
+ arcTo(ms[0], 640, 700, m('keep'));
+ text(p, 'kept out', 640, 770, m('keep', .8), { size: 22, fill: COL.dim, anchor: 'middle' });
+ mline(p, '9 left: 3 red, 6 blue', 720, 360, m('now'), COL.chalk, 40, 'start');
+ pulseAll(blues, m('second'));
+ mline(p, ['P(blue after red) = ', F(6, 9)], 720, 460, m('second', .5), BLUE, 46, 'start');
+ text(p, 'The first pick changed the bag: dependent.', 720, 545, m('dep'), { size: 28, fill: COL.task, weight: 600 });
+ const row = tokens(p, [['P(red, then blue) = ', F(4, 10), ' × ', F(6, 9), ' = ', F(24, 90)], [' = ', F(4, 15)]], { x: 720, y: 640, size: 46, o: 0 });
+ show(row[0], m('mult')); show(row[1], m('simp'));
+ }],
+ ['replace', 'With or without replacement', (m) => {
+ const p = panel(0), ms = bag(p, 140, 230, MARB, 0);
+ text(p, '4 red, 6 blue', 330, 200, 0, { size: 28, fill: COL.dim, anchor: 'middle' });
+ arcTo(ms[0], 660, 330, m('back', -1.6), .7);
+ arcTo(ms[0], 215, 300, m('back'), .9);
+ text(p, 'put it back', 640, 250, m('back'), { size: 24, fill: COL.dim, anchor: 'middle' });
+ pulseAll(ms.filter(x => x.c === BLUE), m('ten'));
+ mline(p, ['with replacement: ', F(4, 10), ' × ', F(6, 10)], 720, 420, m('ind'), COL.good, 46, 'start');
+ text(p, 'independent: the bag is the same each time', 720, 480, m('ind', .5), { size: 24, fill: COL.dim });
+ mline(p, ['without replacement: ', F(4, 10), ' × ', F(6, 9)], 720, 620, m('diff'), COL.task, 46, 'start');
+ text(p, 'dependent: the second fraction changes', 720, 680, m('diff', .5), { size: 24, fill: COL.dim });
+ }],
+ ['q2', 'Quick check', () => {
+ const p = panel(0);
+ S.qm = bag(p, 160, 260, [COL.irr, COL.real, COL.irr, COL.real, COL.irr], .2, 3);
+ text(p, '3 green, 2 purple', 340, 230, .3, { size: 28, fill: COL.dim, anchor: 'middle' });
+ }, { ask: done => quiz({ x: 760, y: 220, w: 640, cls: 'side' }, [{
+ id: 'c-dep', prompt: ['Pick two marbles without replacement. Find the probability of green, then green.'],
+ build: blanks([{ parts: ['P(green, then green) = ', { box: '3/10' }], why: '3/5 × 2/4 = 6/20 = 3/10.', hint: 'After a green is taken out, 4 marbles are left and 2 are green.',
+ fx: () => { const g = S.qm[0]; const { x, y } = st(g); fxp(q => put(g, { x: x + (640 - x) * q, y: y + (700 - y) * q - Math.sin(Math.PI * q) * 120 }), 0, .9); S.qm.filter(e => e.c === COL.irr && e !== g).forEach((e, i) => pulseFx(e, 1.25)); } }]),
+ }], done) }],
+ ['cards', 'A deck of cards', (m) => {
+ const p = panel(0), cw = 76, chh = 100, x0 = 110, y0 = 170, cards = [];
+ SUIT.forEach(([s, c], r) => RANK.forEach((k, j) => {
+ const g = G(p, { x: x0 + j * (cw + 6) + cw / 2, y: y0 + r * (chh + 10) + chh / 2, o: 0 });
+ g._r = mk('rect', { x: -cw / 2, y: -chh / 2, width: cw, height: chh, rx: 8, fill: mix(COL.board, COL.chalk, .08), stroke: COL.faint, 'stroke-width': 2 }, g);
+ T(g, k, { x: 0, y: -8, size: 28, fill: c, anchor: 'middle', weight: 600 });
+ T(g, s, { x: 0, y: 30, size: 26, fill: c, anchor: 'middle' });
+ show(g, .2 + (r * 13 + j) * .012, .3);
+ cards.push(g);
+ }));
+ text(p, '52 cards', x0, 130, .3, { size: 28, fill: COL.dim });
+ const aces = [0, 13, 26, 39].map(i => cards[i]);
+ aces.forEach((a, i) => { tw(a._r, { c_stroke: BOTH, 'a_stroke-width': 5 }, m('aces', i * .2), .3); });
+ mline(p, ['P(ace) = ', F(4, 52)], 1200, 260, m('first'), BOTH, 46, 'start');
+ tw(aces[0], { x: 1300, y: 620, s: 1.4 }, m('out'), .8);
+ text(p, 'kept out', 1300, 720, m('out', .6), { size: 24, fill: COL.dim, anchor: 'middle' });
+ mline(p, ['P(ace after ace) = ', F(3, 51)], 1200, 380, m('left'), BOTH, 40, 'start');
+ text(p, '51 cards left, 3 aces', 1200, 430, m('left', .4), { size: 24, fill: COL.dim });
+ const row = tokens(p, [['P(ace, then ace) = ', F(4, 52), ' × ', F(3, 51), ' = ', F(12, 2652)], [' = ', F(1, 221), ' ≈ 0.45%']], { x: 110, y: 700, size: 44, o: 0 });
+ show(row[0], m('mult')); show(row[1], m('simp'));
+ }],
+ ['q3', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 300, y: 260, w: 1000, cls: 'side' }, [{
+ id: 'c-kind1', prompt: ['Roll a number cube, then spin a spinner.'],
+ build: choice([['Independent'], ['Dependent']], 0, 'The cube has no effect on the spinner.', [null, 'Nothing is taken away: the spinner is the same no matter what the cube shows.']),
+ }, {
+ id: 'c-kind2', prompt: ['Pick a name from a hat, keep it out, then pick another name.'],
+ build: choice([['Independent'], ['Dependent']], 1, 'The first name is gone, so the second pick has fewer names to choose from.', ['The first pick removes a name, which changes the second pick.', null]),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['A compound event combines two or more events.', 'w1', COL.irr], ['Independent: P(A and B) = P(A) · P(B).', 'w2', CB],
+ ['Dependent: P(A, then B) = P(A) · P(B after A).', 'w3', BOTH]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 260 + i * 140, o: 0 });
+ mk('circle', { cx: 200, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 200, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 260, size: 34, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-kind', prompt: ['Are the events independent or dependent?'],
+ build: grid(KINDQ, [['i', 'Independent', CB, 'I'], ['d', 'Dependent', BOTH, 'D']], { multi: false, text: true }),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-ind', prompt: ['Find each probability.'], build: blanks([
+ { parts: ['two coins: P(tails, tails) = ', { box: '1/4' }], why: '1/2 × 1/2 = 1/4.', hint: 'Each coin: 1/2.' },
+ { parts: ['coin and cube: P(heads and 6) = ', { box: '1/12' }], why: '1/2 × 1/6 = 1/12.', hint: 'Multiply P(heads) by P(6).' },
+ { parts: ['cube twice: P(even, then 5) = ', { box: '1/12' }], why: '3/6 × 1/6 = 3/36 = 1/12.', hint: 'P(even) = 3/6 and P(5) = 1/6.' },
+ { parts: ['coin and cube: P(tails and less than 3) = ', { box: '1/6' }], why: '1/2 × 2/6 = 2/12 = 1/6.', hint: 'Less than 3 means 1 or 2.' },
+ ]),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-dep', prompt: ['A case holds 2 red, 5 green, 1 yellow and 2 black markers. Pick two without replacement.'], build: blanks([
+ { parts: ['P(black, then black) = ', { box: '1/45' }], why: '2/10 × 1/9 = 2/90 = 1/45.', hint: 'After one black is taken, 9 markers are left and 1 is black.' },
+ { parts: ['P(red, then green) = ', { box: '1/9' }], why: '2/10 × 5/9 = 10/90 = 1/9.', hint: 'Taking a red leaves all 5 greens among 9 markers.' },
+ { parts: ['P(green, then green) = ', { box: '2/9' }], why: '5/10 × 4/9 = 20/90 = 2/9.', hint: 'After one green, 4 of the 9 left are green.' },
+ { parts: ['P(yellow, then yellow) = ', { box: '0' }], why: 'There is only one yellow marker, so a second yellow is impossible.', hint: 'How many yellow markers are left after the first one?' },
+ ]),
+ }], done, 'Chapter practice 3 of 3') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const KINDQ = [
+ { parts: ['Flip a coin, then roll a number cube.'], ans: ['i'], why: 'The coin has no effect on the cube.' },
+ { parts: ['Draw a marble, keep it, then draw another.'], ans: ['d'], why: 'The first marble is gone from the bag.' },
+ { parts: ['Draw a marble, put it back, then draw again.'], ans: ['i'], why: 'The bag is the same for both draws.' },
+ { parts: ['Pick a captain, then a co-captain from the rest of the team.'], ans: ['d'], why: 'The captain can’t be picked again.' },
+ { parts: ['Roll two number cubes at the same time.'], ans: ['i'], why: 'One cube has no effect on the other.' },
+ { parts: ['Deal two cards from a deck to the same player.'], ans: ['d'], why: 'The first card is no longer in the deck.' },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch44/audio/en/comb.mp3 b/site/ch44/audio/en/comb.mp3
new file mode 100644
index 0000000..698fd24
Binary files /dev/null and b/site/ch44/audio/en/comb.mp3 differ
diff --git a/site/ch44/audio/en/final1.mp3 b/site/ch44/audio/en/final1.mp3
new file mode 100644
index 0000000..eec5825
Binary files /dev/null and b/site/ch44/audio/en/final1.mp3 differ
diff --git a/site/ch44/audio/en/final2.mp3 b/site/ch44/audio/en/final2.mp3
new file mode 100644
index 0000000..0f5a2ff
Binary files /dev/null and b/site/ch44/audio/en/final2.mp3 differ
diff --git a/site/ch44/audio/en/final3.mp3 b/site/ch44/audio/en/final3.mp3
new file mode 100644
index 0000000..3c76279
Binary files /dev/null and b/site/ch44/audio/en/final3.mp3 differ
diff --git a/site/ch44/audio/en/finish.mp3 b/site/ch44/audio/en/finish.mp3
new file mode 100644
index 0000000..bc2fd59
Binary files /dev/null and b/site/ch44/audio/en/finish.mp3 differ
diff --git a/site/ch44/audio/en/groups.mp3 b/site/ch44/audio/en/groups.mp3
new file mode 100644
index 0000000..7e933ed
Binary files /dev/null and b/site/ch44/audio/en/groups.mp3 differ
diff --git a/site/ch44/audio/en/intro.mp3 b/site/ch44/audio/en/intro.mp3
new file mode 100644
index 0000000..5618f92
Binary files /dev/null and b/site/ch44/audio/en/intro.mp3 differ
diff --git a/site/ch44/audio/en/norep.mp3 b/site/ch44/audio/en/norep.mp3
new file mode 100644
index 0000000..1c650b1
Binary files /dev/null and b/site/ch44/audio/en/norep.mp3 differ
diff --git a/site/ch44/audio/en/npr.mp3 b/site/ch44/audio/en/npr.mp3
new file mode 100644
index 0000000..0573d33
Binary files /dev/null and b/site/ch44/audio/en/npr.mp3 differ
diff --git a/site/ch44/audio/en/order.mp3 b/site/ch44/audio/en/order.mp3
new file mode 100644
index 0000000..7bc9e90
Binary files /dev/null and b/site/ch44/audio/en/order.mp3 differ
diff --git a/site/ch44/audio/en/q1.mp3 b/site/ch44/audio/en/q1.mp3
new file mode 100644
index 0000000..a077320
Binary files /dev/null and b/site/ch44/audio/en/q1.mp3 differ
diff --git a/site/ch44/audio/en/q2.mp3 b/site/ch44/audio/en/q2.mp3
new file mode 100644
index 0000000..68ee30a
Binary files /dev/null and b/site/ch44/audio/en/q2.mp3 differ
diff --git a/site/ch44/audio/en/qp.mp3 b/site/ch44/audio/en/qp.mp3
new file mode 100644
index 0000000..50fbd4d
Binary files /dev/null and b/site/ch44/audio/en/qp.mp3 differ
diff --git a/site/ch44/audio/en/repeat.mp3 b/site/ch44/audio/en/repeat.mp3
new file mode 100644
index 0000000..e62d8a6
Binary files /dev/null and b/site/ch44/audio/en/repeat.mp3 differ
diff --git a/site/ch44/audio/en/timings.js b/site/ch44/audio/en/timings.js
new file mode 100644
index 0000000..5cfd685
--- /dev/null
+++ b/site/ch44/audio/en/timings.js
@@ -0,0 +1,374 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 7.008,
+ "marks": {
+ "sub": 1.719
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter forty-four."
+ ],
+ [
+ 1.719,
+ "How many ways can you arrange or choose things?"
+ ],
+ [
+ 4.818,
+ "It depends on whether order matters."
+ ]
+ ]
+ },
+ "order": {
+ "dur": 23.616,
+ "marks": {
+ "perm": 3.802,
+ "comb": 14.206
+ },
+ "cues": [
+ [
+ 0.156,
+ "Three friends: Ana, Ben, and Cal."
+ ],
+ [
+ 3.802,
+ "If you pick a president and a vice president, Ana then Ben is different from Ben then Ana."
+ ],
+ [
+ 10.391,
+ "Order matters, so each arrangement is a permutation."
+ ],
+ [
+ 14.206,
+ "If you just pick two of them for a committee, Ana and Ben is the same committee as Ben and Ana."
+ ],
+ [
+ 19.961,
+ "Order doesn't matter, so each group is a combination."
+ ]
+ ]
+ },
+ "repeat": {
+ "dur": 28.128,
+ "marks": {
+ "code": 3.359,
+ "s1": 9.18,
+ "s2": 11.562,
+ "s3": 13.359,
+ "mult": 15.052,
+ "gen": 22.604
+ },
+ "cues": [
+ [
+ 0.104,
+ "Start with permutations that allow repetition."
+ ],
+ [
+ 3.359,
+ "A lock code has three digits, each from zero to nine, and digits can repeat."
+ ],
+ [
+ 9.18,
+ "The first digit has ten choices."
+ ],
+ [
+ 11.562,
+ "The second still has ten, and so does the third."
+ ],
+ [
+ 15.052,
+ "By the counting principle, that's ten times ten times ten, or ten to the third power: one thousand codes."
+ ],
+ [
+ 22.604,
+ "In general, choosing r times from n options with repetition gives n to the r."
+ ]
+ ]
+ },
+ "norep": {
+ "dur": 26.376,
+ "marks": {
+ "books": 2.969,
+ "s1": 5.417,
+ "s2": 7.904,
+ "s3": 10.143,
+ "s4": 11.276,
+ "mult": 12.865,
+ "fact": 16.484,
+ "zero": 23.086
+ },
+ "cues": [
+ [
+ 0.117,
+ "Without repetition, the choices shrink."
+ ],
+ [
+ 2.969,
+ "Arrange four different books on a shelf."
+ ],
+ [
+ 5.417,
+ "Any of the four can go first."
+ ],
+ [
+ 7.904,
+ "Then three are left for the second spot, two for the third, and one for the last."
+ ],
+ [
+ 12.865,
+ "Four times three times two times one is twenty-four."
+ ],
+ [
+ 16.484,
+ "A product like this is called a factorial, written with an exclamation mark: four factorial."
+ ],
+ [
+ 23.086,
+ "By definition, zero factorial is one."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 2.688,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Count the arrangements."
+ ]
+ ]
+ },
+ "npr": {
+ "dur": 34.176,
+ "marks": {
+ "club": 3.281,
+ "s": 9.219,
+ "name": 14.31,
+ "form": 19.18,
+ "cancel": 23.438,
+ "left": 26.289,
+ "gen": 28.88
+ },
+ "cues": [
+ [
+ 0.104,
+ "Sometimes you arrange only some of the items."
+ ],
+ [
+ 3.281,
+ "A club has six members and needs a president, a vice president, and a secretary."
+ ],
+ [
+ 9.219,
+ "That's six choices, then five, then four: one hundred twenty."
+ ],
+ [
+ 14.31,
+ "This is called the number of permutations of six things taken three at a time."
+ ],
+ [
+ 19.18,
+ "As a formula, it's six factorial over three factorial."
+ ],
+ [
+ 23.438,
+ "The three times two times one cancels, leaving six times five times four."
+ ],
+ [
+ 28.88,
+ "In general, n factorial over the quantity n minus r, factorial."
+ ]
+ ]
+ },
+ "qp": {
+ "dur": 3.024,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.146,
+ "Arrange some of the items."
+ ]
+ ]
+ },
+ "comb": {
+ "dur": 19.44,
+ "marks": {
+ "menu": 2.253,
+ "ordered": 5.729,
+ "pairs": 9.544,
+ "twice": 14.115,
+ "div": 16.341
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now let order stop mattering."
+ ],
+ [
+ 2.253,
+ "A dessert plate lets you pick two of four desserts."
+ ],
+ [
+ 5.729,
+ "Counting ordered picks gives four times three, twelve."
+ ],
+ [
+ 9.544,
+ "But apple then berry, and berry then apple, are the same plate."
+ ],
+ [
+ 14.115,
+ "Every plate was counted twice."
+ ],
+ [
+ 16.341,
+ "So divide by two: six different plates."
+ ]
+ ]
+ },
+ "groups": {
+ "dur": 19.632,
+ "marks": {
+ "pick": 1.536,
+ "three": 4.948,
+ "each": 10.182,
+ "rule": 14.089
+ },
+ "cues": [
+ [
+ 0.104,
+ "Why divide by two?"
+ ],
+ [
+ 1.536,
+ "Two items can be ordered in two factorial ways."
+ ],
+ [
+ 4.948,
+ "A group of three can be ordered in three factorial, or six, ways."
+ ],
+ [
+ 10.182,
+ "Every group shows up that many times in the permutation count."
+ ],
+ [
+ 14.089,
+ "So the number of combinations is the number of permutations divided by r factorial."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 2.856,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "Does order matter here?"
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 25.68,
+ "marks": {
+ "w1": 0.99,
+ "w2": 6.068,
+ "w3": 10.43,
+ "w4": 19.076,
+ "end": 23.503
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.99,
+ "Order matters: permutations."
+ ],
+ [
+ 3.698,
+ "Order doesn't: combinations."
+ ],
+ [
+ 6.068,
+ "With repetition, n choices r times gives n to the r."
+ ],
+ [
+ 10.43,
+ "Without repetition, the permutations of n things taken r at a time are n factorial over n minus r factorial."
+ ],
+ [
+ 19.076,
+ "Combinations are those permutations divided by r factorial."
+ ],
+ [
+ 23.503,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 3.024,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.523,
+ "Does order matter?"
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 2.496,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, count the permutations."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 2.688,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.12,
+ "Count the combinations."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 4.824,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Excellent."
+ ],
+ [
+ 1.055,
+ "That's the end of chapter forty-four, and of unit seven."
+ ]
+ ]
+ }
+};
diff --git a/site/ch44/audio/en/wrap.mp3 b/site/ch44/audio/en/wrap.mp3
new file mode 100644
index 0000000..87da012
Binary files /dev/null and b/site/ch44/audio/en/wrap.mp3 differ
diff --git a/site/ch44/index.html b/site/ch44/index.html
new file mode 100644
index 0000000..bd13239
--- /dev/null
+++ b/site/ch44/index.html
@@ -0,0 +1,262 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Permutations and Combinations</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 44, title: 'Permutations and Combinations', minutes: 9, next: '../ch45/' };
+const PERM = COL.whole, COMB = COL.rat, PEOPLE = [COL.nat, COL.int, COL.irr, COL.whole, COL.real, COL.rat];
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+// A round token with a letter, centred on (x, y).
+function token(p, ch, color, x, y, t0, r = 40) {
+ const g = G(p, { x, y, s: 0, o: 0 });
+ mk('circle', { r, fill: mix(COL.board, color, .55), stroke: color, 'stroke-width': 3 }, g);
+ T(g, ch, { y: r * .36, size: r, fill: COL.chalk, weight: 700, anchor: 'middle' });
+ pop(g, t0);
+ return g;
+}
+// An empty slot with a label under it and a choice count above it.
+function spot(p, x, y, label, t0, w = 120, h = 120) {
+ const g = G(p, { o: 0 });
+ mk('rect', { x: x - w / 2, y: y - h / 2, width: w, height: h, rx: 16, fill: 'none', stroke: COL.dim, 'stroke-width': 3, 'stroke-dasharray': '9 7' }, g);
+ if (label) T(g, label, { x, y: y + h / 2 + 34, size: 22, fill: COL.dim, anchor: 'middle' });
+ show(g, t0);
+ return g;
+}
+function count(p, n, x, y, t0, color = COL.task) {
+ const e = M(p, [String(n)], { x, y, size: 48, fill: color, s: .5, o: 0 });
+ pop(e, t0);
+ return e;
+}
+function flyTo(e, x, y, t0, dur = .7, lift = 90) {
+ const { x: x0, y: y0 } = st(e);
+ prog(q => put(e, { x: x0 + (x - x0) * q, y: y0 + (y - y0) * q - Math.sin(Math.PI * q) * lift }), t0, dur);
+}
+function book(p, color, x, y, t0) {
+ const g = G(p, { x, y, s: .6, o: 0 });
+ mk('rect', { x: -32, y: -80, width: 64, height: 160, rx: 6, fill: mix(COL.board, color, .65), stroke: color, 'stroke-width': 3 }, g);
+ path(g, 'M-20 -50H20M-20 50H20', { stroke: COL.chalk, 'stroke-width': 3, 'stroke-opacity': .6 });
+ pop(g, t0);
+ return g;
+}
+const strikeTok = (p, e, t0, color = COL.bad) => {
+ const x = e._px, w = e._w, y = st(e).y;
+ draw(path(p, `M${x - w / 2 - 2} ${y + 8}L${x + w / 2 + 2} ${y - 38}`, { stroke: color, 'stroke-width': 4 }, { d: 0 }), t0, .3);
+};
+
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'Permutations and combinations', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 7, Chapter 44', { x: 800, y: 300, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Permutations and', { x: 800, y: 400, size: 80, weight: 600, anchor: 'middle' });
+ T(g, 'Combinations', { x: 800, y: 490, size: 80, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = text(scene, 'does order matter?', 800, 620, m('sub'), { size: 36, fill: COL.dim, anchor: 'middle' });
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['order', 'Does order matter?', (m) => {
+ const p = panel(0);
+ ['A', 'B', 'C'].forEach((c, i) => token(p, c, PEOPLE[i], 680 + i * 120, 150, .3 + i * .15));
+ text(p, 'Ana, Ben, Cal', 800, 230, .4, { size: 24, fill: COL.dim, anchor: 'middle' });
+ // Permutation: two labelled posts; then swap.
+ text(p, 'permutation: order matters', 400, 330, m('perm'), { size: 30, fill: PERM, anchor: 'middle', weight: 600 });
+ spot(p, 300, 440, 'president', m('perm')); spot(p, 500, 440, 'vice president', m('perm'));
+ token(p, 'A', PEOPLE[0], 300, 440, m('perm', .5)); token(p, 'B', PEOPLE[1], 500, 440, m('perm', .7));
+ token(p, 'B', PEOPLE[1], 300, 650, m('perm', 3)); token(p, 'A', PEOPLE[0], 500, 650, m('perm', 3.2));
+ spot(p, 300, 650, '', m('perm', 2.8)); spot(p, 500, 650, '', m('perm', 2.8));
+ mline(p, '≠', 400, 565, m('perm', 3.6), COL.bad, 64);
+ text(p, '2 different results', 400, 790, m('perm', 4.2), { size: 26, fill: PERM, anchor: 'middle' });
+ // Combination: one committee bubble, contents swap but stay equal.
+ text(p, 'combination: order doesn’t matter', 1200, 330, m('comb'), { size: 30, fill: COMB, anchor: 'middle', weight: 600 });
+ [440, 650].forEach((y, k) => {
+ const e = put(mk('ellipse', { rx: 170, ry: 80, fill: 'none', stroke: COL.dim, 'stroke-width': 3, 'stroke-dasharray': '9 7' }, p), { x: 1200, y, o: 0 });
+ show(e, m('comb', .3 + k * 2.5));
+ token(p, k ? 'B' : 'A', PEOPLE[k ? 1 : 0], 1140, y, m('comb', .6 + k * 2.5));
+ token(p, k ? 'A' : 'B', PEOPLE[k ? 0 : 1], 1260, y, m('comb', .8 + k * 2.5));
+ });
+ text(p, 'committee', 1200, 380, m('comb', .3), { size: 22, fill: COL.dim, anchor: 'middle' });
+ mline(p, '=', 1200, 565, m('comb', 3.6), COL.good, 64);
+ text(p, 'the same group', 1200, 790, m('comb', 4.2), { size: 26, fill: COMB, anchor: 'middle' });
+ }],
+ ['repeat', 'With repetition', (m) => {
+ const p = panel(0);
+ text(p, 'lock code: 3 digits, 0 to 9, repeats allowed', 800, 140, m('code'), { size: 30, fill: COL.dim, anchor: 'middle' });
+ const xs = [600, 800, 1000], marks = ['s1', 's2', 's3'], fin = ['7', '7', '2'];
+ xs.forEach((x, i) => {
+ spot(p, x, 360, `digit ${i + 1}`, m('code', .4));
+ count(p, 10, x, 250, m(marks[i]));
+ const d = T(p, '0', { x, y: 382, size: 64, font: MATH, anchor: 'middle', o: 0 });
+ show(d, m(marks[i]));
+ prog(q => { d.textContent = q < 1 ? String(Math.floor(q * 23) % 10) : fin[i]; }, m(marks[i]), 1.2, lin);
+ });
+ mline(p, ['10 × 10 × 10 = 10', E(3), ' = 1,000'], 800, 580, m('mult'), COL.good, 56);
+ const g = G(p, { o: 0 });
+ mk('rect', { x: 500, y: 650, width: 600, height: 110, rx: 18, fill: 'none', stroke: COL.task, 'stroke-width': 3 }, g);
+ M(g, ['n', E('r'), ': ', 'n choices, r times'], { x: 800, y: 722, size: 40, fill: COL.task });
+ show(g, m('gen'));
+ }],
+ ['norep', 'Without repetition', (m) => {
+ const p = panel(0), cols = [COL.nat, COL.int, COL.irr, COL.whole];
+ text(p, 'arrange 4 different books', 800, 120, m('books'), { size: 30, fill: COL.dim, anchor: 'middle' });
+ const bs = cols.map((c, i) => book(p, c, 260 + i * 100, 400, m('books', .3 + i * .12)));
+ path(p, 'M180 488H560', { stroke: COL.dim, 'stroke-width': 4 });
+ path(p, 'M760 488H1340', { stroke: COL.chalk, 'stroke-width': 6 });
+ const xs = [850, 990, 1130, 1270], marks = ['s1', 's2', 's3', 's4'];
+ xs.forEach((x, i) => {
+ spot(p, x, 400, `spot ${i + 1}`, m('books', .5), 100, 170);
+ count(p, 4 - i, x, 270, m(marks[i]));
+ flyTo(bs[[2, 0, 3, 1][i]], x, 400, m(marks[i], .4));
+ });
+ mline(p, '4 × 3 × 2 × 1 = 24', 800, 650, m('mult'), COL.chalk, 52);
+ mline(p, '4! = 24', 800, 740, m('fact'), COL.good, 56);
+ text(p, '“four factorial”', 990, 732, m('fact', .5), { size: 26, fill: COL.dim });
+ mline(p, '0! = 1', 1330, 740, m('zero'), COL.task, 44);
+ }],
+ ['q1', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 260, y: 220, w: 1080, cls: 'side' }, [{
+ id: 'c-arr', prompt: ['Count the arrangements.'],
+ build: blanks([
+ { parts: ['5 runners finish the race, no ties: ', { box: '120' }, ' orders'], why: '5! = 5 × 4 × 3 × 2 × 1 = 120.', hint: 'No repeats: 5 choices, then 4, then 3, …' },
+ { parts: ['4-digit code, digits 0 to 9, repeats allowed: ', { box: '10000' }, ' codes'], why: '10 × 10 × 10 × 10 = 10,000.', hint: 'Every digit has 10 choices.' },
+ ]),
+ }], done) }],
+ ['npr', 'Taking some of the items', (m) => {
+ const p = panel(0);
+ text(p, '6 members; choose a president, a vice president and a secretary', 800, 80, m('club'), { size: 28, fill: COL.dim, anchor: 'middle' });
+ const tk = 'ABCDEF'.split('').map((c, i) => token(p, c, PEOPLE[i], 300 + i * 90, 260, m('club', .4 + i * .1), 34));
+ const xs = [900, 1060, 1220];
+ ['president', 'vice pres.', 'secretary'].forEach((l, i) => {
+ spot(p, xs[i], 260, l, m('club', 1));
+ count(p, 6 - i, xs[i], 165, m('s', i * .5));
+ flyTo(tk[[3, 0, 5][i]], xs[i], 260, m('s', i * .5 + .2));
+ });
+ mline(p, '6 × 5 × 4 = 120', 1060, 430, m('s', 1.8), COL.chalk, 44);
+ const pl = mline(p, 'P(6, 3)', 200, 600, m('name'), PERM, 52, 'start');
+ text(p, 'permutations of 6 things taken 3 at a time', 200, 650, m('name', .3), { size: 24, fill: COL.dim });
+ const fx1 = mline(p, [' = ', F('6!', '3!'), ' = '], 200 + pl._w, 600, m('form'), COL.chalk, 52, 'start');
+ const num = tokens(p, ['6', ' × ', '5', ' × ', '4', ' × ', '3', ' × ', '2', ' × ', '1'], { x: 200 + pl._w + fx1._w + 10, y: 570, size: 44, o: 0 });
+ const den = tokens(p, ['3', ' × ', '2', ' × ', '1'], { x: num[6]._px - num[6]._w / 2, y: 650, size: 44, o: 0 });
+ const bar = path(p, `M${num[0]._px - 20} 588H${num[10]._px + 20}`, { stroke: COL.chalk, 'stroke-width': 3 }, { o: 0 });
+ [...num, ...den, bar].forEach(e => show(e, m('form', 1.2)));
+ [6, 8, 10].forEach((k, i) => strikeTok(p, num[k], m('cancel', i * .25)));
+ [0, 2, 4].forEach((k, i) => strikeTok(p, den[k], m('cancel', i * .25)));
+ mline(p, '= 6 × 5 × 4 = 120', num[10]._px + 40, 600, m('left'), COL.good, 48, 'start');
+ const g = G(p, { o: 0 });
+ mk('rect', { x: 520, y: 720, width: 560, height: 120, rx: 18, fill: 'none', stroke: COL.task, 'stroke-width': 3 }, g);
+ M(g, ['P(n, r) = ', F('n!', '(n − r)!')], { x: 800, y: 795, size: 46, fill: COL.task });
+ show(g, m('gen'));
+ }],
+ ['qp', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 260, y: 240, w: 1080, cls: 'side' }, [{
+ id: 'c-npr', prompt: ['Eight runners race. How many ways can the gold, silver and bronze medals be awarded?'],
+ build: blanks([{ parts: ['P(8, 3) = ', { box: '336' }], why: '8 × 7 × 6 = 336.', hint: '8 choices for gold, then 7 for silver, then 6 for bronze.' }]),
+ }], done) }],
+ ['comb', 'Combinations', (m) => {
+ const p = panel(0), names = ['A', 'B', 'C', 'D'], words = ['apple', 'berry', 'cake', 'donut'];
+ text(p, 'choose 2 of 4 desserts', 800, 110, m('menu'), { size: 30, fill: COL.dim, anchor: 'middle' });
+ names.forEach((c, i) => { token(p, c, PEOPLE[i], 560 + i * 160, 190, m('menu', .3 + i * .1), 34); text(p, words[i], 560 + i * 160, 255, m('menu', .3 + i * .1), { size: 20, fill: COL.dim, anchor: 'middle' }); });
+ const cells = {}, pairCol = {}, hue = [COL.nat, COL.int, COL.irr, COL.whole, COL.real, COL.rat];
+ let h = 0;
+ names.forEach((a, i) => names.filter(b => b !== a).forEach((b, j) => {
+ const key = a + b, x = 520 + j * 200, y = 330 + i * 90, t = m('ordered', (i * 3 + j) * .2);
+ const g = G(p, { x, y, o: 0 });
+ g._r = mk('rect', { x: -70, y: -34, width: 140, height: 68, rx: 14, fill: mix(COL.board, COL.chalk, .05), stroke: COL.faint, 'stroke-width': 2.5 }, g);
+ T(g, `${a} then ${b}`, { y: 9, size: 24, anchor: 'middle', weight: 600 });
+ show(g, t, .3);
+ cells[key] = g;
+ const u = [a, b].sort().join('');
+ if (!(u in pairCol)) pairCol[u] = hue[h++];
+ }));
+ mline(p, '4 × 3 = 12 ordered picks', 1230, 380, m('ordered', 2.6), COL.chalk, 36, 'start');
+ Object.entries(pairCol).forEach(([u, c], k) => {
+ const [a, b] = u;
+ [cells[a + b], cells[b + a]].forEach(g => tw(g._r, { c_stroke: c, 'a_stroke-width': 4 }, m('pairs', k * .35), .3));
+ });
+ Object.keys(pairCol).forEach((u, k) => tw(cells[u[1] + u[0]], { o: .25 }, m('twice', k * .15), .4));
+ text(p, 'each plate counted twice', 1230, 460, m('twice'), { size: 26, fill: COL.dim });
+ mline(p, '12 ÷ 2 = 6 plates', 1230, 560, m('div'), COL.good, 44, 'start');
+ }],
+ ['groups', 'Divide by r!', (m) => {
+ const p = panel(0);
+ const g2 = G(p, { o: 0 });
+ mk('ellipse', { cx: 300, cy: 260, rx: 120, ry: 60, fill: 'none', stroke: COL.dim, 'stroke-width': 3, 'stroke-dasharray': '8 6' }, g2);
+ T(g2, 'A B', { x: 300, y: 272, size: 34, anchor: 'middle', weight: 700 });
+ show(g2, m('pick'));
+ ['A B', 'B A'].forEach((s, i) => { draw(path(p, `M420 260L600 ${220 + i * 80}`, { stroke: COL.dim, 'stroke-width': 2.5 }, { d: 0 }), m('pick', .4 + i * .2), .4); text(p, s, 660, 230 + i * 80, m('pick', .7 + i * .2), { size: 30, weight: 600 }); });
+ mline(p, '2! = 2 orders', 900, 270, m('pick', 1.2), COL.chalk, 40, 'start');
+ const g3 = G(p, { o: 0 });
+ mk('ellipse', { cx: 300, cy: 600, rx: 140, ry: 66, fill: 'none', stroke: COL.dim, 'stroke-width': 3, 'stroke-dasharray': '8 6' }, g3);
+ T(g3, 'A B C', { x: 300, y: 612, size: 34, anchor: 'middle', weight: 700 });
+ show(g3, m('three'));
+ ['A B C', 'A C B', 'B A C', 'B C A', 'C A B', 'C B A'].forEach((s, i) => {
+ const y = 470 + i * 52;
+ draw(path(p, `M440 600L600 ${y - 10}`, { stroke: COL.dim, 'stroke-width': 2.5 }, { d: 0 }), m('three', .4 + i * .15), .4);
+ text(p, s, 660, y, m('three', .6 + i * .15), { size: 28, weight: 600 });
+ });
+ mline(p, '3! = 6 orders', 900, 610, m('three', 1.8), COL.chalk, 40, 'start');
+ text(p, 'one group appears 3! times among the permutations', 900, 680, m('each'), { size: 24, fill: COL.dim });
+ const r = G(p, { o: 0 });
+ mk('rect', { x: 880, y: 340, width: 600, height: 130, rx: 18, fill: 'none', stroke: COMB, 'stroke-width': 3 }, r);
+ M(r, ['C(n, r) = ', F('P(n, r)', 'r!')], { x: 1180, y: 420, size: 48, fill: COMB });
+ show(r, m('rule'));
+ }],
+ ['q2', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 260, y: 220, w: 1080, cls: 'side' }, [{
+ id: 'c-pc', prompt: ['Nia has 5 different T-shirts and won’t repeat one.'],
+ build: blanks([
+ { parts: ['wear one on Mon, Tue, Wed: ', { box: '60' }, ' ways'], why: 'Order matters: P(5, 3) = 5 × 4 × 3 = 60.', hint: 'Which shirt goes on which day matters.' },
+ { parts: ['pack 3 for the trip: ', { box: '10' }, ' ways'], why: 'Order doesn’t matter: 60 ÷ 3! = 60 ÷ 6 = 10.', hint: 'Same 3 shirts in any order is the same packing: divide by 3!.' },
+ ]),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['Order matters: permutation. Order doesn’t: combination.', 'w1', COL.task], ['With repetition: n choices, r times, gives nʳ.', 'w2', COL.irr],
+ ['Without: P(n, r) = n! ÷ (n − r)!', 'w3', PERM], ['C(n, r) = P(n, r) ÷ r!', 'w4', COMB]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 230 + i * 130, o: 0 });
+ mk('circle', { cx: 200, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 200, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 260, size: 34, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-kind', prompt: ['Does order matter? Choose permutation or combination.'],
+ build: grid(KINDQ, [['p', 'Permutation', PERM, 'P'], ['c', 'Combination', COMB, 'C']], { multi: false, text: true }),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [
+ { id: 'p-p1', prompt: ['How many ways can 6 photos be arranged in a row?'], build: blanks([{ parts: [{ box: '720' }, ' ways'], why: '6! = 720.', hint: '6 × 5 × 4 × 3 × 2 × 1.' }]) },
+ { id: 'p-p2', prompt: ['Nine students are on a debate team. How many ways can the coach choose the first, second and third speakers?'], build: blanks([{ parts: [{ box: '504' }, ' ways'], why: 'P(9, 3) = 9 × 8 × 7 = 504.', hint: '9 choices, then 8, then 7.' }]) },
+ { id: 'p-p3', prompt: ['How many 4-digit codes use the digits 0 to 9 with no digit repeated?'], build: blanks([{ parts: [{ box: '5040' }, ' codes'], why: '10 × 9 × 8 × 7 = 5,040.', hint: 'No repeats: 10, then 9, then 8, then 7.' }]) },
+ { id: 'p-p4', prompt: ['A license tag has 3 letters, and letters may repeat. How many tags are possible?'], build: blanks([{ parts: [{ box: '17576' }, ' tags'], why: '26 × 26 × 26 = 26³ = 17,576.', hint: '26 letters for each of 3 places.' }]) },
+ ], done, 'Chapter practice 2 of 3, question') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [
+ { id: 'p-c1', prompt: ['How many ways can you choose 2 beach balls from 20?'], build: blanks([{ parts: [{ box: '190' }, ' ways'], why: '(20 × 19) ÷ 2! = 380 ÷ 2 = 190.', hint: 'P(20, 2) ÷ 2!.' }]) },
+ { id: 'p-c2', prompt: ['A team picks 2 uniform colors from red, gold, black, green, purple, silver, blue, orange and white. How many pairs of colors?'], build: blanks([{ parts: [{ box: '36' }, ' pairs'], why: '9 colors: (9 × 8) ÷ 2 = 36.', hint: 'Count the colors first.' }]) },
+ { id: 'p-c3', prompt: ['A pizza comes with 3 different toppings chosen from 6. How many choices of toppings?'], build: blanks([{ parts: [{ box: '20' }, ' choices'], why: '(6 × 5 × 4) ÷ 3! = 120 ÷ 6 = 20.', hint: 'P(6, 3) ÷ 3!.' }]) },
+ { id: 'p-c4', prompt: ['How many committees of 4 can be chosen from 7 people?'], build: blanks([{ parts: [{ box: '35' }, ' committees'], why: '(7 × 6 × 5 × 4) ÷ 4! = 840 ÷ 24 = 35.', hint: 'P(7, 4) ÷ 4!.' }]) },
+ ], done, 'Chapter practice 3 of 3, question') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const KINDQ = [
+ { parts: ['award 1st, 2nd and 3rd place among 10 runners'], ans: ['p'], why: 'Gold then silver is different from silver then gold.' },
+ { parts: ['choose 3 toppings for a pizza'], ans: ['c'], why: 'The same toppings in any order make the same pizza.' },
+ { parts: ['make a 4-digit PIN'], ans: ['p'], why: '1234 and 4321 are different PINs.' },
+ { parts: ['pick 5 students to clean up after lunch'], ans: ['c'], why: 'The same 5 students form the same group.' },
+ { parts: ['arrange 6 photos in a row'], ans: ['p'], why: 'Positions in the row matter.' },
+ { parts: ['choose 2 books to borrow from a shelf of 12'], ans: ['c'], why: 'You take the same two books either way.' },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch45/audio/en/curves.mp3 b/site/ch45/audio/en/curves.mp3
new file mode 100644
index 0000000..314c48f
Binary files /dev/null and b/site/ch45/audio/en/curves.mp3 differ
diff --git a/site/ch45/audio/en/final1.mp3 b/site/ch45/audio/en/final1.mp3
new file mode 100644
index 0000000..6bf5c3b
Binary files /dev/null and b/site/ch45/audio/en/final1.mp3 differ
diff --git a/site/ch45/audio/en/final2.mp3 b/site/ch45/audio/en/final2.mp3
new file mode 100644
index 0000000..e998dfd
Binary files /dev/null and b/site/ch45/audio/en/final2.mp3 differ
diff --git a/site/ch45/audio/en/final3.mp3 b/site/ch45/audio/en/final3.mp3
new file mode 100644
index 0000000..cd51728
Binary files /dev/null and b/site/ch45/audio/en/final3.mp3 differ
diff --git a/site/ch45/audio/en/finish.mp3 b/site/ch45/audio/en/finish.mp3
new file mode 100644
index 0000000..a63bf00
Binary files /dev/null and b/site/ch45/audio/en/finish.mp3 differ
diff --git a/site/ch45/audio/en/forms.mp3 b/site/ch45/audio/en/forms.mp3
new file mode 100644
index 0000000..e4700d8
Binary files /dev/null and b/site/ch45/audio/en/forms.mp3 differ
diff --git a/site/ch45/audio/en/function.mp3 b/site/ch45/audio/en/function.mp3
new file mode 100644
index 0000000..e68d739
Binary files /dev/null and b/site/ch45/audio/en/function.mp3 differ
diff --git a/site/ch45/audio/en/intro.mp3 b/site/ch45/audio/en/intro.mp3
new file mode 100644
index 0000000..9790712
Binary files /dev/null and b/site/ch45/audio/en/intro.mp3 differ
diff --git a/site/ch45/audio/en/q1.mp3 b/site/ch45/audio/en/q1.mp3
new file mode 100644
index 0000000..ba903bb
Binary files /dev/null and b/site/ch45/audio/en/q1.mp3 differ
diff --git a/site/ch45/audio/en/q2.mp3 b/site/ch45/audio/en/q2.mp3
new file mode 100644
index 0000000..00e20b4
Binary files /dev/null and b/site/ch45/audio/en/q2.mp3 differ
diff --git a/site/ch45/audio/en/relation.mp3 b/site/ch45/audio/en/relation.mp3
new file mode 100644
index 0000000..fc06486
Binary files /dev/null and b/site/ch45/audio/en/relation.mp3 differ
diff --git a/site/ch45/audio/en/timings.js b/site/ch45/audio/en/timings.js
new file mode 100644
index 0000000..8a81f55
--- /dev/null
+++ b/site/ch45/audio/en/timings.js
@@ -0,0 +1,313 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 7.296,
+ "marks": {
+ "sub": 2.917
+ },
+ "cues": [
+ [
+ 0.104,
+ "Unit eight, chapter forty-five."
+ ],
+ [
+ 2.917,
+ "A function is a rule that gives exactly one output for each input."
+ ]
+ ]
+ },
+ "relation": {
+ "dur": 30.216,
+ "marks": {
+ "pairs": 6.211,
+ "dom": 8.607,
+ "ran": 15.703,
+ "map": 25.69
+ },
+ "cues": [
+ [
+ 0.078,
+ "A relation is a set of ordered pairs: each pair matches an input with an output."
+ ],
+ [
+ 6.211,
+ "Here's a relation with four pairs."
+ ],
+ [
+ 8.607,
+ "The set of all inputs, the x-values, is the domain: negative two, zero, one, and four."
+ ],
+ [
+ 15.703,
+ "The set of all outputs, the y-values, is the range: one, three, and six."
+ ],
+ [
+ 22.409,
+ "Three appears twice, but a set lists it once."
+ ],
+ [
+ 25.69,
+ "A mapping diagram draws an arrow from each input to its output."
+ ]
+ ]
+ },
+ "function": {
+ "dur": 27.6,
+ "marks": {
+ "one": 2.63,
+ "check": 5.456,
+ "share": 11.745,
+ "bad": 18.177,
+ "split": 19.961,
+ "not": 25.547
+ },
+ "cues": [
+ [
+ 0.104,
+ "A function is a special relation: every input has exactly one output."
+ ],
+ [
+ 5.456,
+ "In this diagram, each input sends out a single arrow, so the relation is a function."
+ ],
+ [
+ 11.745,
+ "Two inputs may share an output."
+ ],
+ [
+ 14.167,
+ "Zero and one both go to three, and that's fine."
+ ],
+ [
+ 18.177,
+ "Now look at this relation."
+ ],
+ [
+ 19.961,
+ "The input three goes to both one and five."
+ ],
+ [
+ 23.125,
+ "One input, two outputs: this relation is not a function."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 3.696,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.172,
+ "Find the relation that is not a function."
+ ]
+ ]
+ },
+ "forms": {
+ "dur": 21.48,
+ "marks": {
+ "vars": 3.203,
+ "rule": 9.115,
+ "table": 11.797,
+ "graph": 13.62,
+ "same": 15.443
+ },
+ "cues": [
+ [
+ 0.078,
+ "In a function, the output depends on the input."
+ ],
+ [
+ 3.203,
+ "The input x is the independent variable, and the output y is the dependent variable."
+ ],
+ [
+ 9.115,
+ "Take the rule: y is twice x."
+ ],
+ [
+ 11.797,
+ "You can show it as a table, or as points on a graph."
+ ],
+ [
+ 15.443,
+ "Words, table, diagram, or graph: they're four views of the same function."
+ ]
+ ]
+ },
+ "vlt": {
+ "dur": 26.4,
+ "marks": {
+ "pts": 3.854,
+ "sweep": 5.117,
+ "pass": 8.086,
+ "other": 15.651,
+ "hit": 17.201,
+ "fail": 21.732
+ },
+ "cues": [
+ [
+ 0.091,
+ "On a graph, the vertical line test checks for a function."
+ ],
+ [
+ 3.854,
+ "Plot the relation."
+ ],
+ [
+ 5.117,
+ "Slide a vertical line across the plane."
+ ],
+ [
+ 8.086,
+ "If it never touches more than one point at a time, every x has only one y: the relation is a function."
+ ],
+ [
+ 15.651,
+ "Try a second relation."
+ ],
+ [
+ 17.201,
+ "At x equals negative five, the line touches two points."
+ ],
+ [
+ 21.732,
+ "Two y-values for one x: it fails the test, so it's not a function."
+ ]
+ ]
+ },
+ "curves": {
+ "dur": 18.96,
+ "marks": {
+ "para": 2.018,
+ "circ": 7.214,
+ "side": 11.706,
+ "rule": 13.958
+ },
+ "cues": [
+ [
+ 0.117,
+ "The test works on curves too."
+ ],
+ [
+ 2.018,
+ "This U-shaped curve passes: any vertical line crosses it once."
+ ],
+ [
+ 7.214,
+ "A circle fails: most vertical lines cross it twice."
+ ],
+ [
+ 11.706,
+ "A U turned on its side fails too."
+ ],
+ [
+ 13.958,
+ "If any vertical line crosses the graph more than once, it's not a function."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 3.336,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.107,
+ "Use the vertical line test."
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 20.28,
+ "marks": {
+ "w1": 0.938,
+ "w2": 8.177,
+ "w3": 14.935,
+ "end": 18.086
+ },
+ "cues": [
+ [
+ 0.091,
+ "To sum up."
+ ],
+ [
+ 0.938,
+ "A relation is a set of ordered pairs; its inputs form the domain and its outputs form the range."
+ ],
+ [
+ 8.177,
+ "In a function, each input has exactly one output."
+ ],
+ [
+ 11.927,
+ "Outputs may repeat; inputs may not."
+ ],
+ [
+ 14.935,
+ "On a graph, use the vertical line test."
+ ],
+ [
+ 18.086,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 3.264,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.497,
+ "Is each relation a function?"
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 3.216,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, list the domain and the range."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 3.408,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.133,
+ "Does each graph show a function?"
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 5.76,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Great job."
+ ],
+ [
+ 1.133,
+ "That's the end of chapter forty-five, relations and functions."
+ ]
+ ]
+ }
+};
diff --git a/site/ch45/audio/en/vlt.mp3 b/site/ch45/audio/en/vlt.mp3
new file mode 100644
index 0000000..8d95541
Binary files /dev/null and b/site/ch45/audio/en/vlt.mp3 differ
diff --git a/site/ch45/audio/en/wrap.mp3 b/site/ch45/audio/en/wrap.mp3
new file mode 100644
index 0000000..d1f5236
Binary files /dev/null and b/site/ch45/audio/en/wrap.mp3 differ
diff --git a/site/ch45/index.html b/site/ch45/index.html
new file mode 100644
index 0000000..cfeb889
--- /dev/null
+++ b/site/ch45/index.html
@@ -0,0 +1,247 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Relations and Functions</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 45, title: 'Relations and Functions', minutes: 8, next: '../ch46/' };
+const DOM = COL.whole, RAN = COL.nat, OK = COL.good, NO = COL.bad;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+// Mapping diagram: domain oval at x1, range oval at x2, centred at height cy. pairs: [[input, output]].
+function mapping(p, x1, x2, cy, ins, outs, pairs, t0, { gap = 66, arrowsAt, labels = true, size = 34, vals = true } = {}) {
+ const h = Math.max(ins.length, outs.length) * gap + 50, g = G(p, { o: 0 });
+ mk('ellipse', { cx: x1, cy, rx: 62, ry: h / 2, fill: mix(COL.board, DOM, .1), stroke: DOM, 'stroke-width': 3 }, g);
+ mk('ellipse', { cx: x2, cy, rx: 62, ry: h / 2, fill: mix(COL.board, RAN, .1), stroke: RAN, 'stroke-width': 3 }, g);
+ if (labels) { T(g, 'domain', { x: x1, y: cy - h / 2 - 16, size: 22, fill: DOM, anchor: 'middle', weight: 600 }); T(g, 'range', { x: x2, y: cy - h / 2 - 16, size: 22, fill: RAN, anchor: 'middle', weight: 600 }); }
+ show(g, t0);
+ const iy = i => cy + (i - (ins.length - 1) / 2) * gap, oy = j => cy + (j - (outs.length - 1) / 2) * gap;
+ const inEl = ins.map((v, i) => { const e = M(p, [num(v)], { x: x1, y: iy(i) + size * .34, size, o: 0 }); if (vals) show(e, t0 + .2); return e; });
+ const outEl = outs.map((v, j) => { const e = M(p, [num(v)], { x: x2, y: oy(j) + size * .34, size, o: 0 }); if (vals) show(e, t0 + .2); return e; });
+ const arrows = pairs.map(([a, b], k) => {
+ const ya = iy(ins.indexOf(a)), yb = oy(outs.indexOf(b)), xa = x1 + 36, xb = x2 - 40, L = Math.hypot(xb - xa, yb - ya), ux = (xb - xa) / L, uy = (yb - ya) / L;
+ const ar = path(p, `M${xa} ${ya}L${xb} ${yb}M${xb - 13 * ux - 8 * uy} ${yb - 13 * uy + 8 * ux}L${xb} ${yb}L${xb - 13 * ux + 8 * uy} ${yb - 13 * uy - 8 * ux}`, { stroke: COL.chalk, 'stroke-width': 3 }, { d: 0 });
+ draw(ar, (arrowsAt ?? t0 + .5) + k * .3, .5);
+ return ar;
+ });
+ return { g, inEl, outEl, arrows, iy, oy, box: [x1 - 90, cy - h / 2 - 50, x2 - x1 + 180, h + 70] };
+}
+// Recolour arrows.
+const tintArrows = (arrs, color, t0, run = tw) => arrs.forEach((a, i) => { put(a, { c_stroke: COL.chalk }); run(a, { c_stroke: color, 'a_stroke-width': 5 }, t0 + i * .15, .3); });
+// A vertical scanning line across plane P, moving from x = a to x = b; returns the time it reaches x.
+function sweep(p, P, a, b, t0, dur, color = COL.task) {
+ const l = path(p, `M${P.PX(a)} ${P.PY(P.y1 + .4)}V${P.PY(P.y0 - .4)}`, { stroke: color, 'stroke-width': 4, 'stroke-opacity': .8 }, { o: 0 });
+ show(l, t0, .2);
+ tw(l, { x: P.PX(b) - P.PX(a) }, t0, dur, lin);
+ hide(l, t0 + dur, .3);
+ return x => t0 + dur * (x - a) / (b - a);
+}
+// Curve through x(t), y(t) on plane P, t from 0 to 1.
+const curve = (P, fx, fy, n = 80) => Array.from({ length: n + 1 }, (_, i) => `${i ? 'L' : 'M'}${P.PX(fx(i / n)).toFixed(1)} ${P.PY(fy(i / n)).toFixed(1)}`).join('');
+const CURVES = {
+ para: [t => -2.6 + 5.2 * t, t => { const x = -2.6 + 5.2 * t; return x * x / 2 - 2; }],
+ circle: [t => 2.6 * Math.cos(t * 2 * Math.PI), t => 2.6 * Math.sin(t * 2 * Math.PI)],
+ side: [t => { const y = -2.6 + 5.2 * t; return y * y / 2 - 2; }, t => -2.6 + 5.2 * t],
+ vee: [t => -3.4 + 6.8 * t, t => Math.abs(-3.4 + 6.8 * t) - 1.5],
+ wave: [t => -3.6 + 7.2 * t, t => 1.6 * Math.sin((-3.6 + 7.2 * t) * 1.4)],
+ sideL: [t => { const y = -2.6 + 5.2 * t; return 2 - y * y / 2; }, t => -2.6 + 5.2 * t],
+ line: [t => -3.5 + 7 * t, t => .6 * (-3.5 + 7 * t) + .5],
+ vert: [t => 1.2, t => -3.6 + 7.2 * t],
+};
+// A small inline graph (HTML) for practice rows.
+function miniSvg(kind) {
+ const svg = mk('svg', { viewBox: '-50 -38 100 76', width: 124, height: 94, class: 'm' });
+ svg.style.verticalAlign = 'middle';
+ mk('path', { d: 'M-46 0H46M0 -35V35', stroke: COL.dim, 'stroke-width': 1.5, fill: 'none' }, svg);
+ const [fx, fy] = CURVES[kind], P = { PX: x => x * 10, PY: y => -y * 10 };
+ mk('path', { d: curve(P, fx, fy), stroke: COL.task, 'stroke-width': 3, fill: 'none', 'stroke-linecap': 'round' }, svg);
+ return svg;
+}
+
+/* ---------- beats ---------- */
+const PAIRS = [[-2, 1], [0, 3], [1, 3], [4, 6]];
+const BEATS = [
+ ['intro', 'Relations and functions', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 8, Chapter 45', { x: 800, y: 300, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Relations and Functions', { x: 800, y: 410, size: 84, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = text(scene, 'one input → exactly one output', 800, 560, m('sub'), { size: 36, fill: COL.dim, anchor: 'middle' });
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['relation', 'Domain and range', (m) => {
+ const p = panel(0), X1 = 560, X2 = 1040, CY = 560;
+ text(p, 'relation: a set of ordered pairs', 800, 100, .2, { size: 28, fill: COL.dim, anchor: 'middle' });
+ const cx = i => 440 + i * 240;
+ PAIRS.forEach(([a, b], i) => pop(chip(p, [`(${num(a)}, ${num(b)})`], COL.chalk, { x: cx(i), y: 190, size: 38, s: 0, o: 0 }), m('pairs', i * .2)));
+ const ins = [-2, 0, 1, 4], outs = [1, 3, 6];
+ const D = mapping(p, X1, X2, CY, ins, outs, PAIRS, m('dom'), { arrowsAt: m('map'), vals: false });
+ // Inputs fly from the chips into the domain; outputs into the range (the two 3s land on one spot).
+ PAIRS.forEach(([a, b], i) => {
+ const ca = M(p, [num(a)], { x: cx(i) - 38, y: 202, size: 34, fill: DOM, o: 0 }), cb = M(p, [num(b)], { x: cx(i) + 38, y: 202, size: 34, fill: RAN, o: 0 });
+ const ta = m('dom', .6 + i * .35), tb = m('ran', .4 + i * .35);
+ show(ca, ta, .1); tw(ca, { x: X1, y: D.iy(ins.indexOf(a)) + 12 }, ta, .7); hide(ca, ta + .8, .2); show(D.inEl[ins.indexOf(a)], ta + .7, .2);
+ show(cb, tb, .1); tw(cb, { x: X2, y: D.oy(outs.indexOf(b)) + 12 }, tb, .7); hide(cb, tb + .8, .2); show(D.outEl[outs.indexOf(b)], tb + .7, .2);
+ });
+ mline(p, 'domain = {−2, 0, 1, 4}', 120, 420, m('dom', 2.4), DOM, 36, 'start');
+ mline(p, 'range = {1, 3, 6}', 1480, 420, m('ran', 2.2), RAN, 36, 'end');
+ text(p, '3 is listed once', 1480, 465, m('ran', 3.4), { size: 22, fill: COL.dim, anchor: 'end' });
+ }],
+ ['function', 'Functions', (m) => {
+ const p = panel(0);
+ text(p, 'function: each input has exactly one output', 800, 110, m('one'), { size: 32, fill: COL.task, anchor: 'middle', weight: 600 });
+ const A = mapping(p, 300, 620, 480, [-2, 0, 1, 4], [1, 3, 6], PAIRS, .2, { arrowsAt: .3 });
+ A.inEl.forEach((e, i) => pulse(e, m('check', i * .4), 1.4));
+ tintArrows(A.arrows, OK, m('check'));
+ tintArrows([A.arrows[1], A.arrows[2]], COL.int, m('share'));
+ text(p, 'outputs may repeat', 460, 770, m('share', .5), { size: 26, fill: COL.int, anchor: 'middle', weight: 600 });
+ text(p, 'a function', 460, 820, m('check', 2), { size: 30, fill: OK, anchor: 'middle', weight: 700 });
+ const B = mapping(p, 980, 1300, 480, [3, 5], [1, 5, 2], [[3, 1], [3, 5], [5, 2]], m('bad'), { arrowsAt: m('bad', .5) });
+ tintArrows([B.arrows[0], B.arrows[1]], NO, m('split'));
+ pulse(B.inEl[0], m('split'), 1.6);
+ text(p, 'one input, two outputs', 1140, 770, m('split', .8), { size: 26, fill: NO, anchor: 'middle', weight: 600 });
+ text(p, 'not a function', 1140, 820, m('not'), { size: 30, fill: NO, anchor: 'middle', weight: 700 });
+ }],
+ ['q1', 'Quick check', () => {
+ const p = panel(0);
+ S.maps = [[[1, 2, 3], [4, 7], [[1, 4], [2, 4], [3, 7]]], [[-1, 3], [0, 2, 5], [[-1, 0], [-1, 2], [3, 5]]], [[5, 6, 7], [1, 2, 3], [[5, 1], [6, 2], [7, 3]]]]
+ .map(([ins, outs, pr], i) => { text(p, 'ABC'[i], 290 + i * 510, 170, .2, { size: 32, anchor: 'middle', weight: 700 }); return mapping(p, 180 + i * 510, 400 + i * 510, 400, ins, outs, pr, .3 + i * .2, { labels: false }); });
+ }, { ask: done => quiz(BAND, [{
+ id: 'c-map', prompt: ['Click the relation that is not a function.'],
+ build: pickEls(S.maps.map((d, i) => ({ el: d.g, box: d.box, label: 'Relation ' + 'ABC'[i] })), 1, 'In B, the input −1 goes to both 0 and 2.',
+ i => i === 0 ? 'In A, 1 and 2 share the output 4, which is allowed. Each input still has one arrow.' : 'In C, each input has exactly one arrow.',
+ () => tintArrows(S.maps[1].arrows.slice(0, 2), NO, 0, fx)),
+ }], done) }],
+ ['forms', 'Four views', (m) => {
+ const p = panel(0);
+ text(p, 'x: input, the independent variable', 160, 130, m('vars'), { size: 28, fill: DOM, weight: 600 });
+ text(p, 'y: output, the dependent variable', 160, 180, m('vars', 1.5), { size: 28, fill: RAN, weight: 600 });
+ text(p, 'words', 300, 290, m('rule'), { size: 24, fill: COL.dim, anchor: 'middle' });
+ text(p, 'y is twice x', 300, 350, m('rule'), { size: 36, anchor: 'middle', weight: 600 });
+ mline(p, 'y = 2x', 300, 420, m('rule', .8), COL.task, 46);
+ text(p, 'table', 640, 290, m('table'), { size: 24, fill: COL.dim, anchor: 'middle' });
+ const rows = [[-1, -2], [0, 0], [1, 2], [2, 4]];
+ const tg = G(p, { o: 0 });
+ path(tg, 'M560 320H720M640 300V560', { stroke: COL.faint, 'stroke-width': 2 });
+ M(tg, ['x'], { x: 600, y: 315, size: 30, fill: DOM }); M(tg, ['y'], { x: 680, y: 315, size: 30, fill: RAN });
+ show(tg, m('table'));
+ rows.forEach(([x, y], i) => { mline(p, num(x), 600, 370 + i * 55, m('table', .3 + i * .15), COL.chalk, 32); mline(p, num(y), 680, 370 + i * 55, m('table', .3 + i * .15), COL.chalk, 32); });
+ const P = plane(p, { cx: 1160, cy: 500, u: 44, x0: -4, x1: 4, y0: -5, y1: 5, t0: m('graph') });
+ P.layer = p;
+ rows.forEach(([x, y], i) => {
+ const c = M(p, [`(${num(x)}, ${num(y)})`], { x: 640, y: 370 + i * 55, size: 28, fill: COL.task, o: 0 });
+ const t = m('graph', .4 + i * .35);
+ show(c, t, .1); tw(c, { x: P.PX(x) + 60, y: P.PY(y) - 14 }, t, .6); hide(c, t + .7, .2);
+ P.dot(x, y, COL.task, t + .5);
+ });
+ const fr = put(mk('rect', { x: 120, y: 250, width: 1360, height: 560, rx: 24, fill: 'none', stroke: COL.task, 'stroke-width': 3, 'stroke-dasharray': '10 8' }, p), { o: 0 });
+ show(fr, m('same'));
+ text(p, 'one function, several views', 800, 850, m('same', .3), { size: 28, fill: COL.task, anchor: 'middle', weight: 600 });
+ }],
+ ['vlt', 'Vertical line test', (m) => {
+ const p = panel(0);
+ const A = plane(p, { cx: 430, cy: 470, u: 36, x0: -6, x1: 6, y0: -9, y1: 9, t0: m('pts'), labels: false, step: 2 });
+ const B = plane(p, { cx: 1170, cy: 470, u: 36, x0: -6, x1: 6, y0: -9, y1: 9, t0: m('other'), labels: false, step: 2 });
+ A.layer = B.layer = p;
+ const ptsA = [[-4, 8], [-2, 4], [0, 0], [2, -4], [4, -8]], ptsB = [[-5, 3], [-5, 6], [-2, 3], [1, 5], [4, 2], [4, 6]];
+ const dA = ptsA.map(([x, y], i) => A.dot(x, y, COL.whole, m('pts', .3 + i * .1)));
+ const at = sweep(p, A, -6.5, 6.5, m('sweep'), 3.4);
+ ptsA.forEach(([x], i) => { tw(dA[i], { s: 1.6 }, at(x), .15); tw(dA[i], { s: 1 }, at(x) + .15, .3); });
+ text(p, 'one point at a time: function', 430, 860, m('pass'), { size: 26, fill: OK, anchor: 'middle', weight: 600 });
+ const dB = ptsB.map(([x, y], i) => B.dot(x, y, COL.whole, m('other', .3 + i * .1)));
+ const bt = sweep(p, B, -6.5, -5, m('hit', -.8), .8, NO);
+ const stop = path(p, `M${B.PX(-5)} ${B.PY(9.4)}V${B.PY(-9.4)}`, { stroke: NO, 'stroke-width': 4 }, { o: 0 });
+ show(stop, bt(-5), .1);
+ [0, 1].forEach(i => { tw(dB[i], { s: 1.8 }, bt(-5), .2); tw(dB[i], { s: 1.2 }, bt(-5) + .2, .3); });
+ const s2 = path(p, `M${B.PX(4)} ${B.PY(9.4)}V${B.PY(-9.4)}`, { stroke: NO, 'stroke-width': 4 }, { o: 0 });
+ show(s2, m('fail', -1));
+ [4, 5].forEach(i => tw(dB[i], { s: 1.4 }, m('fail', -1), .3));
+ text(p, 'two points on one vertical line: not a function', 1170, 860, m('fail'), { size: 26, fill: NO, anchor: 'middle', weight: 600 });
+ }],
+ ['curves', 'Curves', (m) => {
+ const p = panel(0);
+ [['para', 'passes', OK, [[1, .5 - 2]]], ['circle', 'fails', NO, [[1, Math.sqrt(2.6 * 2.6 - 1)], [1, -Math.sqrt(2.6 * 2.6 - 1)]]], ['side', 'fails', NO, [[1, Math.sqrt(6)], [1, -Math.sqrt(6)]]]]
+ .forEach(([k, verdict, col, hits], i) => {
+ const t0 = m(['para', 'circ', 'side'][i]), P = plane(p, { cx: 300 + i * 500, cy: 430, u: 44, x0: -4, x1: 4, y0: -4, y1: 4, t0, labels: false });
+ P.layer = p;
+ draw(path(p, curve(P, ...CURVES[k]), { stroke: COL.task, 'stroke-width': 4 }, { d: 0 }), t0 + .2, 1);
+ const at = sweep(p, P, -4.3, 1, t0 + 1.2, 1.6, col);
+ const keep = path(p, `M${P.PX(1)} ${P.PY(4.4)}V${P.PY(-4.4)}`, { stroke: col, 'stroke-width': 4 }, { o: 0 });
+ show(keep, at(1), .1);
+ hits.forEach(([x, y]) => P.dot(x, y, col, at(1) + .1));
+ text(p, verdict, 300 + i * 500, 690, at(1) + .3, { size: 32, fill: col, anchor: 'middle', weight: 700 });
+ });
+ text(p, 'Any vertical line crossing twice means not a function.', 800, 800, m('rule'), { size: 30, fill: COL.task, anchor: 'middle', weight: 600 });
+ }],
+ ['q2', 'Quick check', () => {
+ const p = panel(0);
+ S.gr = ['vee', 'wave', 'sideL'].map((k, i) => {
+ const P = plane(p, { cx: 300 + i * 500, cy: 380, u: 40, x0: -4, x1: 4, y0: -4, y1: 4, t0: .2, labels: false });
+ draw(path(p, curve(P, ...CURVES[k]), { stroke: COL.task, 'stroke-width': 4 }, { d: 0 }), .4 + i * .2, .8);
+ text(p, 'ABC'[i], 300 + i * 500, 150, .2, { size: 32, anchor: 'middle', weight: 700 });
+ return { P, box: [300 + i * 500 - 200, 170, 400, 400] };
+ });
+ }, { ask: done => quiz(BAND, [{
+ id: 'c-vlt', prompt: ['Click the graph that is not a function.'],
+ build: pickEls(S.gr.map((g, i) => ({ el: null, box: g.box, label: 'Graph ' + 'ABC'[i] })), 2, 'A vertical line through C crosses it twice.',
+ i => (i === 0 ? 'The V shape passes: every vertical line crosses it once.' : 'The wave goes up and down, but every vertical line still crosses it once.'),
+ () => { const P = S.gr[2].P, L = S.q || qlayer(); const l = path(L, `M${P.PX(0)} ${P.PY(4.4)}V${P.PY(-4.4)}`, { stroke: NO, 'stroke-width': 4 }, { o: 0 }); fx(l, { o: 1 }, 0, .3); [2, -2].forEach(y => P.dot(0, y, NO, .2, { run: fx, into: L })); }),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['A relation is a set of ordered pairs: inputs (domain), outputs (range).', 'w1', DOM], ['Function: each input has exactly one output.', 'w2', OK],
+ ['Vertical line test: no vertical line crosses the graph twice.', 'w3', COL.task]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 260 + i * 140, o: 0 });
+ mk('circle', { cx: 160, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 160, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 220, size: 32, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-rel', prompt: ['Is the relation a function?'],
+ build: grid(RELQ, [['y', 'Function', OK, 'Y'], ['n', 'Not a function', NO, 'N']], { multi: false, text: true }),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-dr', prompt: ['Relation: ', $m('(2, 5), (3, 7), (−1, 5), (0, 4)'), '. List each set from least to greatest.'], build: blanks([
+ { parts: ['domain = { ', { box: '-1' }, ', ', { box: '0' }, ', ', { box: '2' }, ', ', { box: '3' }, ' }'], why: 'The inputs are 2, 3, −1 and 0.', hint: 'The domain holds the first number of each pair.' },
+ { parts: ['range = { ', { box: '4' }, ', ', { box: '5' }, ', ', { box: '7' }, ' }'], why: 'The outputs are 5, 7, 5 and 4; 5 is listed once.', hint: 'The range holds the second numbers. List a repeated value once.' },
+ ]),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-graph', prompt: ['Does the graph show a function?'],
+ build: grid(GRAPHQ.map(([k, a, why]) => ({ parts: [miniSvg(k)], ans: [a], why })), [['y', 'Function', OK, 'Y'], ['n', 'Not a function', NO, 'N']], { multi: false, text: true }),
+ }], done, 'Chapter practice 3 of 3') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const RELQ = [
+ { parts: [$m('(3, 5), (2, 0), (7, 8), (12, 1)')], ans: ['y'], why: 'No x-value repeats.' },
+ { parts: [$m('(4, −9), (8, 7), (−5, 2), (8, 0)')], ans: ['n'], why: 'The input 8 has two outputs.' },
+ { parts: [$m('(1, 4), (2, 4), (3, 4), (4, 4)')], ans: ['y'], why: 'Outputs may repeat; each input has one output.' },
+ { parts: [$m('(0, −5), (8, −7), (0, 5)')], ans: ['n'], why: 'The input 0 has two outputs.' },
+ { parts: [$m('(−0.6, 3.7), (4.1, 5.9), (5.9, −2.8)')], ans: ['y'], why: 'No x-value repeats.' },
+ { parts: [$m('(2, 1), (1, 2), (2, 2)')], ans: ['n'], why: 'The input 2 has two outputs.' },
+];
+const GRAPHQ = [
+ ['para', 'y', 'Every vertical line crosses it once.'],
+ ['circle', 'n', 'Vertical lines cross a circle twice.'],
+ ['wave', 'y', 'It goes up and down, but every vertical line crosses it once.'],
+ ['vert', 'n', 'A vertical line has many y-values for one x.'],
+ ['side', 'n', 'A sideways U is crossed twice.'],
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch46/audio/en/eval.mp3 b/site/ch46/audio/en/eval.mp3
new file mode 100644
index 0000000..83a7773
Binary files /dev/null and b/site/ch46/audio/en/eval.mp3 differ
diff --git a/site/ch46/audio/en/expr.mp3 b/site/ch46/audio/en/expr.mp3
new file mode 100644
index 0000000..47f179e
Binary files /dev/null and b/site/ch46/audio/en/expr.mp3 differ
diff --git a/site/ch46/audio/en/final1.mp3 b/site/ch46/audio/en/final1.mp3
new file mode 100644
index 0000000..22befa9
Binary files /dev/null and b/site/ch46/audio/en/final1.mp3 differ
diff --git a/site/ch46/audio/en/final2.mp3 b/site/ch46/audio/en/final2.mp3
new file mode 100644
index 0000000..afb0f64
Binary files /dev/null and b/site/ch46/audio/en/final2.mp3 differ
diff --git a/site/ch46/audio/en/final3.mp3 b/site/ch46/audio/en/final3.mp3
new file mode 100644
index 0000000..939f851
Binary files /dev/null and b/site/ch46/audio/en/final3.mp3 differ
diff --git a/site/ch46/audio/en/finish.mp3 b/site/ch46/audio/en/finish.mp3
new file mode 100644
index 0000000..fb46a20
Binary files /dev/null and b/site/ch46/audio/en/finish.mp3 differ
diff --git a/site/ch46/audio/en/graph.mp3 b/site/ch46/audio/en/graph.mp3
new file mode 100644
index 0000000..31506ed
Binary files /dev/null and b/site/ch46/audio/en/graph.mp3 differ
diff --git a/site/ch46/audio/en/intro.mp3 b/site/ch46/audio/en/intro.mp3
new file mode 100644
index 0000000..144d975
Binary files /dev/null and b/site/ch46/audio/en/intro.mp3 differ
diff --git a/site/ch46/audio/en/notation.mp3 b/site/ch46/audio/en/notation.mp3
new file mode 100644
index 0000000..e3fa3d6
Binary files /dev/null and b/site/ch46/audio/en/notation.mp3 differ
diff --git a/site/ch46/audio/en/q1.mp3 b/site/ch46/audio/en/q1.mp3
new file mode 100644
index 0000000..9620b47
Binary files /dev/null and b/site/ch46/audio/en/q1.mp3 differ
diff --git a/site/ch46/audio/en/q2.mp3 b/site/ch46/audio/en/q2.mp3
new file mode 100644
index 0000000..8b0f254
Binary files /dev/null and b/site/ch46/audio/en/q2.mp3 differ
diff --git a/site/ch46/audio/en/q3.mp3 b/site/ch46/audio/en/q3.mp3
new file mode 100644
index 0000000..e49ed5c
Binary files /dev/null and b/site/ch46/audio/en/q3.mp3 differ
diff --git a/site/ch46/audio/en/solve.mp3 b/site/ch46/audio/en/solve.mp3
new file mode 100644
index 0000000..5ff8505
Binary files /dev/null and b/site/ch46/audio/en/solve.mp3 differ
diff --git a/site/ch46/audio/en/timings.js b/site/ch46/audio/en/timings.js
new file mode 100644
index 0000000..c8747b1
--- /dev/null
+++ b/site/ch46/audio/en/timings.js
@@ -0,0 +1,341 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 6.48,
+ "marks": {
+ "sub": 1.849
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter forty-six."
+ ],
+ [
+ 1.849,
+ "Function notation is a short way to name a function and say what goes into it."
+ ]
+ ]
+ },
+ "notation": {
+ "dur": 30.528,
+ "marks": {
+ "name": 3.255,
+ "input": 6.172,
+ "rule": 9.427,
+ "read": 13.333,
+ "warn": 15.404,
+ "mach": 17.812,
+ "in": 19.935,
+ "out": 21.706,
+ "other": 24.622
+ },
+ "cues": [
+ [
+ 0.117,
+ "Here's a function written in function notation."
+ ],
+ [
+ 3.255,
+ "The letter f is the name of the function."
+ ],
+ [
+ 6.172,
+ "The x inside the parentheses is the input."
+ ],
+ [
+ 9.427,
+ "The right side is the rule that turns the input into the output."
+ ],
+ [
+ 13.333,
+ "Read it as f of x."
+ ],
+ [
+ 15.404,
+ "It does not mean f times x."
+ ],
+ [
+ 17.812,
+ "Think of f as a machine: an input x goes in, and the output, f of x, comes out."
+ ],
+ [
+ 24.622,
+ "Any letter can name a function: g of x, or h of t, work the same way."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 2.712,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "What does f of three mean?"
+ ]
+ ]
+ },
+ "eval": {
+ "dur": 19.488,
+ "marks": {
+ "ask": 4.557,
+ "sub": 5.938,
+ "calc": 8.919,
+ "ans": 11.12,
+ "mach": 15.651
+ },
+ "cues": [
+ [
+ 0.104,
+ "Evaluating a function means finding the output for a given input."
+ ],
+ [
+ 4.557,
+ "Find f of three."
+ ],
+ [
+ 5.938,
+ "Replace every x in the rule with three."
+ ],
+ [
+ 8.919,
+ "Two times three is six, and six minus one is five."
+ ],
+ [
+ 13.151,
+ "So f of three equals five."
+ ],
+ [
+ 15.651,
+ "In the machine, three goes in and five comes out."
+ ]
+ ]
+ },
+ "graph": {
+ "dur": 24.216,
+ "marks": {
+ "pt": 4.401,
+ "more": 9.609,
+ "line": 12.201,
+ "read": 14.805,
+ "down": 19.232
+ },
+ "cues": [
+ [
+ 0.091,
+ "Every input and output pair is a point on the graph of the function."
+ ],
+ [
+ 4.401,
+ "f of three equals five means the point three, five is on the graph."
+ ],
+ [
+ 9.609,
+ "Other inputs give other points, and together they draw the graph of f."
+ ],
+ [
+ 14.805,
+ "You can read values off the graph, too."
+ ],
+ [
+ 17.148,
+ "Go to x equals zero, and the graph is at negative one, so f of zero is negative one."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 2.64,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.159,
+ "Pick a point on the graph."
+ ]
+ ]
+ },
+ "expr": {
+ "dur": 17.4,
+ "marks": {
+ "ask": 2.201,
+ "sub": 3.737,
+ "dist": 7.708,
+ "comb": 10.729,
+ "ans": 14.01
+ },
+ "cues": [
+ [
+ 0.104,
+ "The input can be an expression."
+ ],
+ [
+ 2.201,
+ "Find f of a plus two."
+ ],
+ [
+ 3.737,
+ "Put a plus two, in parentheses, everywhere x was."
+ ],
+ [
+ 7.708,
+ "Distribute the two: two a plus four, then combine like terms: two a plus three."
+ ],
+ [
+ 14.01,
+ "So f of a plus two equals two a plus three."
+ ]
+ ]
+ },
+ "solve": {
+ "dur": 29.136,
+ "marks": {
+ "ask": 3.828,
+ "set": 7.721,
+ "add": 13.19,
+ "div": 16.589,
+ "chk": 19.219,
+ "graph": 23.646
+ },
+ "cues": [
+ [
+ 0.143,
+ "Function notation can also ask the reverse question."
+ ],
+ [
+ 3.828,
+ "For what input does f of x equal seven?"
+ ],
+ [
+ 7.721,
+ "Set the rule equal to seven: two x minus one equals seven."
+ ],
+ [
+ 13.19,
+ "Add one to both sides: two x equals eight."
+ ],
+ [
+ 16.589,
+ "Divide by two: x equals four."
+ ],
+ [
+ 19.219,
+ "Check: f of four is eight minus one, which is seven."
+ ],
+ [
+ 23.646,
+ "On the graph, the height seven meets the line right above x equals four."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 2.304,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.198,
+ "Find the input."
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 23.472,
+ "marks": {
+ "w1": 1.016,
+ "w2": 7.656,
+ "w3": 12.305,
+ "w4": 16.849,
+ "end": 21.289
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.016,
+ "f of x names the output of the function f for the input x."
+ ],
+ [
+ 5.846,
+ "It's not multiplication."
+ ],
+ [
+ 7.656,
+ "To evaluate, replace every x with the input and calculate."
+ ],
+ [
+ 12.305,
+ "Each pair, x and f of x, is a point on the graph."
+ ],
+ [
+ 16.849,
+ "To find an input, set the rule equal to the output and solve."
+ ],
+ [
+ 21.289,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 3.6,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.523,
+ "Evaluate each function."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 2.52,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, find each input."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 3.072,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.12,
+ "The input is an expression."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 5.016,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Well done."
+ ],
+ [
+ 1.12,
+ "That's the end of chapter forty-six, function notation."
+ ]
+ ]
+ }
+};
diff --git a/site/ch46/audio/en/wrap.mp3 b/site/ch46/audio/en/wrap.mp3
new file mode 100644
index 0000000..9a3971c
Binary files /dev/null and b/site/ch46/audio/en/wrap.mp3 differ
diff --git a/site/ch46/index.html b/site/ch46/index.html
new file mode 100644
index 0000000..5e9ab8e
--- /dev/null
+++ b/site/ch46/index.html
@@ -0,0 +1,190 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Function Notation</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 46, title: 'Function Notation', minutes: 8, next: '../ch47/' };
+const IN = COL.whole, OUT = COL.nat, NAMEC = COL.int, RULE = COL.irr;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+// A function machine centred on (x, y): a box named f with an input chute on the left and an output on the right.
+function machine(p, x, y, t0, label = 'f') {
+ const g = G(p, { x, y, o: 0 });
+ path(g, 'M-260 0H-120M120 0H260', { stroke: COL.dim, 'stroke-width': 4, 'stroke-dasharray': '10 8' });
+ path(g, 'M246 -12L262 0L246 12', { stroke: COL.dim, 'stroke-width': 4 });
+ mk('rect', { x: -120, y: -80, width: 240, height: 160, rx: 24, fill: mix(COL.board, NAMEC, .2), stroke: NAMEC, 'stroke-width': 4 }, g);
+ M(g, [label], { y: 22, size: 72, fill: NAMEC });
+ show(g, t0);
+ return g;
+}
+// Send a value through a machine at (x, y): in from the left, out on the right as the output.
+function feed(p, x, y, inParts, outParts, t0) {
+ const a = chip(p, inParts, IN, { x: x - 330, y, size: 40, o: 0 });
+ show(a, t0, .3);
+ tw(a, { x: x - 60, s: .4 }, t0 + .3, .8); hide(a, t0 + 1, .2);
+ const b = chip(p, outParts, OUT, { x: x + 60, y, size: 40, o: 0, s: .4 });
+ tw(b, { o: 1 }, t0 + 1.3, .2); tw(b, { x: x + 330, s: 1 }, t0 + 1.3, .8);
+ return [a, b];
+}
+const F2 = x => 2 * x - 1;
+
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'Function notation', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 8, Chapter 46', { x: 800, y: 330, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Function Notation', { x: 800, y: 430, size: 88, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = mline(scene, 'f(x)', 800, 600, m('sub'), COL.dim, 60);
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['notation', 'Reading f(x)', (m) => {
+ const p = panel(0);
+ const row = tokens(p, [{ t: 'f', fill: NAMEC }, '(', { t: 'x', fill: IN }, ')', ' = ', { t: '2x − 1', fill: RULE }], { x: 800, y: 260, size: 96, anchor: 'middle', o: 0 });
+ row.forEach(e => show(e, .3));
+ const lab = (k, str, color, t0, dy = 90) => {
+ const e = row[k];
+ draw(path(p, `M${e._px} ${row.y + 20}V${row.y + dy - 30}`, { stroke: color, 'stroke-width': 3 }, { d: 0 }), t0, .3);
+ text(p, str, e._px, row.y + dy, t0 + .2, { size: 28, fill: color, anchor: 'middle', weight: 600 });
+ };
+ lab(0, 'name', NAMEC, m('name'), 150);
+ lab(2, 'input', IN, m('input'));
+ lab(5, 'rule for the output', RULE, m('rule'));
+ text(p, '“f of x”', 800, 120, m('read'), { size: 36, fill: COL.dim, anchor: 'middle' });
+ mline(p, 'f(x) ≠ f · x', 1340, 450, m('warn'), COL.bad, 40);
+ machine(p, 800, 600, m('mach'));
+ const a = chip(p, ['x'], IN, { x: 470, y: 600, size: 40, o: 0 });
+ show(a, m('in'), .3); tw(a, { x: 740, s: .4 }, m('in', .3), .8); hide(a, m('in', 1), .2);
+ const b = chip(p, ['f(x)'], OUT, { x: 860, y: 600, size: 40, o: 0, s: .4 });
+ tw(b, { o: 1 }, m('out'), .2); tw(b, { x: 1130, s: 1 }, m('out'), .8);
+ mline(p, 'g(x), h(t), …', 800, 790, m('other'), COL.dim, 40);
+ }],
+ ['q1', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 300, y: 260, w: 1000, cls: 'side' }, [{
+ id: 'c-mean', prompt: ['What does ', $m('f(3)'), ' mean?'],
+ build: choice([['f times 3'], ['the output of f when the input is 3'], ['the input of f when the output is 3']], 1, 'The number in the parentheses is the input; f(3) is what comes out.',
+ ['f(x) is not multiplication: f names the function.', null, 'The 3 is inside the parentheses, so it is the input, not the output.']),
+ }], done) }],
+ ['eval', 'Evaluating', (m) => {
+ const p = panel(0), X = 700;
+ eqLine(p, 'f(x)', '2x − 1', 160, .2, { xEq: X });
+ text(p, 'find f(3)', 1150, 150, m('ask'), { size: 30, fill: IN, weight: 600 });
+ const r = tokens(p, ['f(', { t: '3', fill: IN }, ') = 2(', { t: '3', fill: IN }, ') − 1'], { x: X - 116, y: 280, size: 50, o: 0 });
+ const src = chip(p, ['3'], IN, { x: 1230, y: 220, size: 36, o: 0 });
+ show(src, m('ask', .3), .3);
+ r.forEach(e => show(e, m('sub'), .3));
+ [1, 3].forEach((k, i) => { put(r[k], { x: 1230, y: 220 }); tw(r[k], { x: r[k]._px, y: 280 }, m('sub', .2 + i * .4), .7); });
+ hide(src, m('sub', 1.2), .3);
+ eqLine(p, 'f(3)', '6 − 1', 400, m('calc'), { xEq: X, note: '2 · 3 = 6' });
+ eqLine(p, 'f(3)', '5', 520, m('ans'), { xEq: X, fill: COL.good });
+ machine(p, 800, 720, m('mach'), 'f');
+ feed(p, 800, 720, ['3'], ['5'], m('mach', .3));
+ }],
+ ['graph', 'Points on the graph', (m) => {
+ const p = panel(0), P = S.P = plane(S.pg = G(scene), { cx: 1100, cy: 470, u: 40, x0: -4, x1: 5, y0: -7, y1: 9, t0: .2 });
+ P.layer = p;
+ eqLine(p, 'f(x)', '2x − 1', 160, .2, { xEq: 280, size: 46 });
+ mline(p, 'f(3) = 5', 160, 300, m('pt'), COL.chalk, 46, 'start');
+ mline(p, '→ (3, 5)', 360, 300, m('pt', .6), COL.task, 46, 'start');
+ P.walk(3, 5, m('pt', 1), { label: '(3, 5)' });
+ [[-2, 'more'], [0, 'more'], [1, 'more'], [4, 'more']].forEach(([x, k], i) => {
+ P.dot(x, F2(x), COL.task, m(k, i * .4));
+ mline(p, `f(${num(x)}) = ${num(F2(x))}`, 160, 380 + i * 60, m(k, i * .4), COL.dim, 36, 'start');
+ });
+ P.line(-3, F2(-3), 4.5, F2(4.5), COL.task, m('line'));
+ text(p, 'graph of f', P.PX(4.6), P.PY(F2(4.6)) - 24, m('line', .8), { size: 24, fill: COL.task, anchor: 'end', weight: 600 });
+ const v = path(p, `M${P.PX(0)} ${P.PY(0)}V${P.PY(-1)}`, { stroke: OUT, 'stroke-width': 5 }, { d: 0 });
+ P.dot(0, 0, IN, m('read'));
+ draw(v, m('down'), .5);
+ P.dot(0, -1, OUT, m('down', .4), { label: 'f(0) = −1', dx: 16, dy: 30 });
+ }],
+ ['q2', 'Quick check', () => { S.P.layer = panel(0); S.P.line(-3, F2(-3), 4.5, F2(4.5), COL.task, .2); eqLine(S.P.layer, 'f(x)', '2x − 1', 160, .2, { xEq: 280, size: 46 }); }, { ask: done => quiz({ x: 80, y: 300, w: 560, cls: 'side' }, [{
+ id: 'c-pt', prompt: ['Pick the point on the graph that shows ', $m('f(−2)'), '.'],
+ build: pickPoint(S.P, [-2, -5], 'f(−2) = 2(−2) − 1 = −5, so the point is (−2, −5).',
+ (x, y) => x !== -2 ? `The input is −2, so the point must have x = −2. You picked x = ${num(x)}.` : `x = −2 is right; now the height must be f(−2) = 2(−2) − 1.`),
+ }], done) }],
+ ['expr', 'An expression as input', (m) => {
+ const p = panel(0), X = 700;
+ hide(S.pg, 0, .4);
+ eqLine(p, 'f(x)', '2x − 1', 160, .2, { xEq: X });
+ text(p, 'find f(a + 2)', 1150, 150, m('ask'), { size: 30, fill: IN, weight: 600 });
+ const r = tokens(p, ['f(', { t: 'a + 2', fill: IN }, ') = 2(', { t: 'a + 2', fill: IN }, ') − 1'], { x: X - 190, y: 290, size: 50, o: 0 });
+ r.forEach(e => show(e, m('sub'), .3));
+ [1, 3].forEach((k, i) => { put(r[k], { x: 1240, y: 140 }); tw(r[k], { x: r[k]._px, y: 290 }, m('sub', .2 + i * .4), .7); });
+ eqLine(p, 'f(a + 2)', '2a + 4 − 1', 410, m('dist'), { xEq: X, note: 'distribute' });
+ eqLine(p, 'f(a + 2)', '2a + 3', 530, m('comb'), { xEq: X, note: 'combine like terms', fill: COL.good });
+ const box = put(mk('rect', { x: X - 260, y: 470, width: 520, height: 86, rx: 16, fill: 'none', stroke: COL.good, 'stroke-width': 3 }, p), { o: 0 });
+ show(box, m('ans'));
+ }],
+ ['solve', 'Finding the input', (m) => {
+ const p = panel(0), X = 360, P = plane(p, { cx: 1100, cy: 470, u: 40, x0: -4, x1: 5, y0: -7, y1: 9, t0: .2 });
+ P.layer = p;
+ P.line(-3, F2(-3), 4.5, F2(4.5), COL.task, .3);
+ eqLine(p, 'f(x)', '2x − 1', 160, .2, { xEq: X, size: 46 });
+ mline(p, 'f(x) = 7, x = ?', 160, 250, m('ask'), OUT, 42, 'start');
+ eqLine(p, '2x − 1', '7', 360, m('set'), { xEq: X, size: 46 });
+ eqLine(p, '2x', '8', 450, m('add'), { xEq: X, size: 46, note: '+1 both sides', noteX: 520 });
+ eqLine(p, 'x', '4', 540, m('div'), { xEq: X, size: 46, note: '÷2 both sides', noteX: 520, fill: COL.good });
+ mline(p, 'f(4) = 8 − 1 = 7 ✓', 160, 650, m('chk'), COL.dim, 38, 'start');
+ const h = path(p, `M${P.PX(-4)} ${P.PY(7)}H${P.PX(4)}`, { stroke: OUT, 'stroke-width': 4, 'stroke-dasharray': '10 8' }, { o: 0 });
+ show(h, m('graph'));
+ text(p, 'height 7', P.PX(-4) + 6, P.PY(7) - 12, m('graph'), { size: 22, fill: OUT, weight: 600 });
+ P.dot(4, 7, OUT, m('graph', .6));
+ draw(path(p, `M${P.PX(4)} ${P.PY(7)}V${P.PY(0)}`, { stroke: IN, 'stroke-width': 4 }, { d: 0 }), m('graph', 1), .6);
+ P.dot(4, 0, IN, m('graph', 1.6), { label: 'x = 4', dx: 14, dy: -16 });
+ }],
+ ['q3', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 300, y: 260, w: 1000, cls: 'side' }, [{
+ id: 'c-solve', prompt: [$m('g(x) = 4x + 6'), '. For what input does ', $m('g(x) = −2'), '?'],
+ build: blanks([{ parts: ['x = ', { box: '-2' }], why: '4x + 6 = −2, so 4x = −8 and x = −2.', hint: 'Set 4x + 6 equal to −2 and solve for x.' }]),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['f(x): the output of f for the input x. Not multiplication.', 'w1', NAMEC], ['Evaluate: replace every x with the input, then calculate.', 'w2', IN],
+ ['Each pair (x, f(x)) is a point on the graph.', 'w3', COL.task], ['Find an input: set the rule equal to the output and solve.', 'w4', OUT]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 230 + i * 130, o: 0 });
+ mk('circle', { cx: 170, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 170, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 230, size: 32, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-eval', prompt: ['Evaluate each function.'], build: blanks([
+ { parts: ['f(x) = x − 7: f(5) = ', { box: '-2' }], why: '5 − 7 = −2.', hint: 'Replace x with 5.' },
+ { parts: ['g(x) = −6x + 9: g(−2) = ', { box: '21' }], why: '−6(−2) + 9 = 12 + 9 = 21.', hint: 'A negative times a negative is positive.' },
+ { parts: ['h(a) = a', E(2), ' + 4: h(−3) = ', { box: '13' }], why: '(−3)² + 4 = 9 + 4 = 13.', hint: '(−3)² is 9, not −9.' },
+ { parts: ['k(p) = p', E(2), ' − 5p: k(6) = ', { box: '6' }], why: '36 − 30 = 6.', hint: 'Replace both p’s with 6.' },
+ { parts: ['j(x) = 9x', E(2), ' − 6x + 1: j(−2) = ', { box: '49' }], why: '9(4) + 12 + 1 = 49.', hint: '(−2)² = 4, and −6(−2) = 12.' },
+ ]),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-input', prompt: ['Find each input.'], build: blanks([
+ { parts: ['f(x) = x + 3, f(x) = −2: x = ', { box: '-5' }], why: 'x + 3 = −2, so x = −5.', hint: 'Subtract 3 from both sides.' },
+ { parts: ['m(n) = −9 + ', F(1, 2), 'n, m(n) = 3: n = ', { box: '24' }], why: '½n = 12, so n = 24.', hint: 'Add 9 to both sides, then multiply by 2.' },
+ { parts: ['p(t) = ', F('8t + 7', 3), ', p(t) = −3: t = ', { box: '-2' }], why: '8t + 7 = −9, so 8t = −16 and t = −2.', hint: 'Multiply both sides by 3 first.' },
+ { parts: ['g(x) = 3x + 5, g(x) = 12: x = ', { box: '7/3' }], why: '3x = 7, so x = 7/3.', hint: 'Subtract 5, then divide by 3. The answer may be a fraction.' },
+ ]),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-expr', prompt: ['Write each result in the form shown.'], build: blanks([
+ { parts: ['f(x) = 2x + 7: f(3a) = ', { box: '6' }, 'a + ', { box: '7' }], why: '2(3a) + 7 = 6a + 7.', hint: 'Replace x with 3a.' },
+ { parts: ['g(x) = 5x − 2: g(b + 1) = ', { box: '5' }, 'b + ', { box: '3' }], why: '5(b + 1) − 2 = 5b + 5 − 2 = 5b + 3.', hint: 'Distribute the 5, then combine.' },
+ { parts: ['h(x) = 4 − x: h(2c) = ', { box: '4' }, ' − ', { box: '2' }, 'c'], why: '4 − 2c.', hint: 'Replace x with 2c.' },
+ ]),
+ }], done, 'Chapter practice 3 of 3') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch47/audio/en/ball.mp3 b/site/ch47/audio/en/ball.mp3
new file mode 100644
index 0000000..f38f93f
Binary files /dev/null and b/site/ch47/audio/en/ball.mp3 differ
diff --git a/site/ch47/audio/en/cubic.mp3 b/site/ch47/audio/en/cubic.mp3
new file mode 100644
index 0000000..88de795
Binary files /dev/null and b/site/ch47/audio/en/cubic.mp3 differ
diff --git a/site/ch47/audio/en/final1.mp3 b/site/ch47/audio/en/final1.mp3
new file mode 100644
index 0000000..e794c8e
Binary files /dev/null and b/site/ch47/audio/en/final1.mp3 differ
diff --git a/site/ch47/audio/en/final2.mp3 b/site/ch47/audio/en/final2.mp3
new file mode 100644
index 0000000..ed88e1f
Binary files /dev/null and b/site/ch47/audio/en/final2.mp3 differ
diff --git a/site/ch47/audio/en/final3.mp3 b/site/ch47/audio/en/final3.mp3
new file mode 100644
index 0000000..db235b4
Binary files /dev/null and b/site/ch47/audio/en/final3.mp3 differ
diff --git a/site/ch47/audio/en/finish.mp3 b/site/ch47/audio/en/finish.mp3
new file mode 100644
index 0000000..4ce183c
Binary files /dev/null and b/site/ch47/audio/en/finish.mp3 differ
diff --git a/site/ch47/audio/en/intro.mp3 b/site/ch47/audio/en/intro.mp3
new file mode 100644
index 0000000..c8c8bc5
Binary files /dev/null and b/site/ch47/audio/en/intro.mp3 differ
diff --git a/site/ch47/audio/en/kinds.mp3 b/site/ch47/audio/en/kinds.mp3
new file mode 100644
index 0000000..9c694a5
Binary files /dev/null and b/site/ch47/audio/en/kinds.mp3 differ
diff --git a/site/ch47/audio/en/q1.mp3 b/site/ch47/audio/en/q1.mp3
new file mode 100644
index 0000000..a3ba685
Binary files /dev/null and b/site/ch47/audio/en/q1.mp3 differ
diff --git a/site/ch47/audio/en/q2.mp3 b/site/ch47/audio/en/q2.mp3
new file mode 100644
index 0000000..dc3567d
Binary files /dev/null and b/site/ch47/audio/en/q2.mp3 differ
diff --git a/site/ch47/audio/en/q3.mp3 b/site/ch47/audio/en/q3.mp3
new file mode 100644
index 0000000..ad94de9
Binary files /dev/null and b/site/ch47/audio/en/q3.mp3 differ
diff --git a/site/ch47/audio/en/table.mp3 b/site/ch47/audio/en/table.mp3
new file mode 100644
index 0000000..6186006
Binary files /dev/null and b/site/ch47/audio/en/table.mp3 differ
diff --git a/site/ch47/audio/en/timings.js b/site/ch47/audio/en/timings.js
new file mode 100644
index 0000000..c6c7268
--- /dev/null
+++ b/site/ch47/audio/en/timings.js
@@ -0,0 +1,347 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 6.96,
+ "marks": {
+ "sub": 1.992
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter forty-seven."
+ ],
+ [
+ 1.992,
+ "Not every function graphs as a straight line."
+ ],
+ [
+ 5.169,
+ "Let's put functions to work."
+ ]
+ ]
+ },
+ "kinds": {
+ "dur": 33.0,
+ "marks": {
+ "lin": 2.031,
+ "lsteps": 4.167,
+ "lline": 8.425,
+ "sq": 12.37,
+ "qsteps": 14.505,
+ "qcurve": 21.641,
+ "form": 26.432
+ },
+ "cues": [
+ [
+ 0.091,
+ "Compare two functions."
+ ],
+ [
+ 2.031,
+ "y equals two x plus one."
+ ],
+ [
+ 4.167,
+ "Each time x goes up by one, y goes up by the same amount, two."
+ ],
+ [
+ 8.425,
+ "Equal steps make a straight line: this is a linear function."
+ ],
+ [
+ 12.37,
+ "Now y equals x squared."
+ ],
+ [
+ 14.505,
+ "Going up by one in x, y changes by negative three, then negative one, then one, then three."
+ ],
+ [
+ 21.641,
+ "The steps change, so the graph bends: this is a nonlinear function."
+ ],
+ [
+ 26.432,
+ "A linear function can be written as y equals m x plus b."
+ ],
+ [
+ 31.211,
+ "A nonlinear one can't."
+ ]
+ ]
+ },
+ "table": {
+ "dur": 26.64,
+ "marks": {
+ "rows": 4.115,
+ "pts": 12.539,
+ "curve": 14.805,
+ "name": 19.258
+ },
+ "cues": [
+ [
+ 0.091,
+ "To graph a nonlinear function, make a table of values."
+ ],
+ [
+ 4.115,
+ "Pick some inputs, and find each output: negative three squared is nine, negative two squared is four, and so on."
+ ],
+ [
+ 12.539,
+ "Each row is a point."
+ ],
+ [
+ 13.828,
+ "Plot them all."
+ ],
+ [
+ 14.805,
+ "Then connect them with a smooth curve, not with straight segments."
+ ],
+ [
+ 19.258,
+ "The graph of y equals x squared is a U-shaped curve called a parabola."
+ ],
+ [
+ 23.88,
+ "You'll study parabolas in unit thirteen."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 2.664,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "Plot a point from the table."
+ ]
+ ]
+ },
+ "cubic": {
+ "dur": 21.984,
+ "marks": {
+ "cube": 2.773,
+ "vals": 4.831,
+ "s": 12.552,
+ "neg": 14.974,
+ "steep": 17.839
+ },
+ "cues": [
+ [
+ 0.104,
+ "Nonlinear functions come in many shapes."
+ ],
+ [
+ 2.773,
+ "Here's y equals x cubed."
+ ],
+ [
+ 4.831,
+ "Negative two cubed is negative eight, negative one cubed is negative one, zero, one, and eight."
+ ],
+ [
+ 12.552,
+ "The points make an S-shaped curve: negative inputs give negative outputs, and the curve grows steeper as x moves away from zero."
+ ]
+ ]
+ },
+ "walk": {
+ "dur": 36.648,
+ "marks": {
+ "story": 3.997,
+ "go": 9.453,
+ "stay": 14.375,
+ "back": 22.565,
+ "read": 28.307
+ },
+ "cues": [
+ [
+ 0.104,
+ "Graphs of functions also describe real situations."
+ ],
+ [
+ 3.997,
+ "Maya walks to a friend's house and back."
+ ],
+ [
+ 6.471,
+ "The graph shows her distance from home over time."
+ ],
+ [
+ 9.453,
+ "For the first twenty minutes, the distance grows: she's walking away."
+ ],
+ [
+ 14.375,
+ "From twenty to forty-five minutes the graph is flat."
+ ],
+ [
+ 18.307,
+ "Her distance doesn't change, so she's at her friend's house."
+ ],
+ [
+ 22.565,
+ "Then the distance drops to zero in ten minutes: she heads home, faster than she came."
+ ],
+ [
+ 28.307,
+ "To read the graph, go up from a time to the line, then across to the distance."
+ ],
+ [
+ 33.516,
+ "At ten minutes, she's one kilometer from home."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 2.28,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "Read the graph."
+ ]
+ ]
+ },
+ "ball": {
+ "dur": 24.84,
+ "marks": {
+ "toss": 2.188,
+ "tab": 9.635,
+ "curve": 10.508,
+ "twice": 17.031
+ },
+ "cues": [
+ [
+ 0.13,
+ "Here's a nonlinear situation."
+ ],
+ [
+ 2.188,
+ "A ball is tossed straight up."
+ ],
+ [
+ 3.841,
+ "Its height in meters after t seconds is twenty t minus five t squared."
+ ],
+ [
+ 9.635,
+ "Make a table: the points rise, peak at twenty meters after two seconds, and fall back to the ground at four seconds."
+ ],
+ [
+ 17.031,
+ "Notice the ball is fifteen meters high twice: once going up, at one second, and once coming down, at three seconds."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 2.88,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "When is the ball at its highest?"
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 20.472,
+ "marks": {
+ "w1": 0.99,
+ "w2": 6.888,
+ "w3": 12.682,
+ "end": 18.424
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.99,
+ "A linear function has equal steps and a straight-line graph."
+ ],
+ [
+ 4.922,
+ "A nonlinear function doesn't."
+ ],
+ [
+ 6.888,
+ "To graph any function, make a table, plot the points, and connect them smoothly."
+ ],
+ [
+ 12.682,
+ "In a real situation, read a graph by going up from the input and across to the output."
+ ],
+ [
+ 18.424,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 3.0,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.523,
+ "Complete the table."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 2.544,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, linear or nonlinear?"
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 2.328,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.133,
+ "Read the graph."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 5.04,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Great work."
+ ],
+ [
+ 1.25,
+ "That's the end of chapter forty-seven, and of unit eight."
+ ]
+ ]
+ }
+};
diff --git a/site/ch47/audio/en/walk.mp3 b/site/ch47/audio/en/walk.mp3
new file mode 100644
index 0000000..d975523
Binary files /dev/null and b/site/ch47/audio/en/walk.mp3 differ
diff --git a/site/ch47/audio/en/wrap.mp3 b/site/ch47/audio/en/wrap.mp3
new file mode 100644
index 0000000..6cea8da
Binary files /dev/null and b/site/ch47/audio/en/wrap.mp3 differ
diff --git a/site/ch47/index.html b/site/ch47/index.html
new file mode 100644
index 0000000..b5143ee
--- /dev/null
+++ b/site/ch47/index.html
@@ -0,0 +1,205 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Application of Functions</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 47, title: 'Application of Functions', minutes: 9, next: '../ch48/' };
+const LIN = COL.whole, NON = COL.nat, PT = COL.task;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+// An x/y table: rows of [x, y] at (x, y0); returns the row centres.
+function xyTable(p, rows, x, y0, t0, { gap = 54, w = 100, size = 32, head = ['x', 'y'], step = .25, color = COL.chalk } = {}) {
+ const g = G(p, { o: 0 });
+ path(g, `M${x - w} ${y0 + 16}H${x + w}M${x} ${y0 - 30}V${y0 + 16 + rows.length * gap}`, { stroke: COL.faint, 'stroke-width': 2 });
+ M(g, [head[0]], { x: x - w / 2, y: y0, size: 30, fill: COL.dim }); M(g, [head[1]], { x: x + w / 2, y: y0, size: 30, fill: COL.dim });
+ show(g, t0);
+ return rows.map(([a, b], i) => {
+ const y = y0 + 16 + (i + .7) * gap, t = t0 + .3 + i * step;
+ mline(p, typeof a === 'number' ? num(a) : a, x - w / 2, y, t, COL.chalk, size);
+ mline(p, typeof b === 'number' ? num(b) : b, x + w / 2, y, t + step * .5, color, size);
+ return y;
+ });
+}
+// A small number flies from (x1, y1) into a plotted point at (x2, y2).
+function flyPt(p, label, x1, y1, x2, y2, t0, color = PT) {
+ const c = M(p, [label], { x: x1, y: y1, size: 26, fill: color, o: 0 });
+ show(c, t0, .1); tw(c, { x: x2 - x1, y: y2 - y1 }, t0, .6); hide(c, t0 + .6, .2);
+}
+const sq = x => x * x, cube = x => x * x * x, ball = t => 20 * t - 5 * t * t;
+// Maya's walk: distance (km) from home after t minutes.
+const WALK = [[0, 0], [20, 2], [45, 2], [55, 0]];
+const walkAt = t => { for (let i = 1; i < WALK.length; i++) { const [a, da] = WALK[i - 1], [b, db] = WALK[i]; if (t <= b) return da + (db - da) * (t - a) / (b - a); } return 0; };
+
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'Using functions', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 8, Chapter 47', { x: 800, y: 330, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Application of Functions', { x: 800, y: 430, size: 84, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = text(scene, 'lines, curves, and real situations', 800, 580, m('sub'), { size: 34, fill: COL.dim, anchor: 'middle' });
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['kinds', 'Linear or nonlinear', (m) => {
+ const p = panel(0);
+ const A = plane(p, { cx: 400, cy: 520, u: 46, x0: -3, x1: 3, y0: -5, y1: 7, t0: m('lin') }), B = plane(p, { cx: 1200, cy: 520, u: 46, x0: -3, x1: 3, y0: -5, y1: 7, t0: m('sq') });
+ A.layer = B.layer = p;
+ mline(p, 'y = 2x + 1', 400, 100, m('lin'), LIN, 46);
+ mline(p, ['y = x', E(2)], 1200, 100, m('sq'), NON, 46);
+ [-2, -1, 0, 1, 2].forEach((x, i) => A.dot(x, 2 * x + 1, LIN, m('lsteps', i * .3)));
+ [-2, -1, 0, 1].forEach((x, i) => A.stair(x, 2 * x + 1, 2, 1, m('lsteps', 1.6 + i * .5), { labels: i === 0 }));
+ A.line(-2.8, -4.6, 2.8, 6.6, LIN, m('lline'));
+ text(p, 'equal steps: linear', 400, 860, m('lline', .5), { size: 28, fill: LIN, anchor: 'middle', weight: 600 });
+ [-2, -1, 0, 1, 2].forEach((x, i) => B.dot(x, sq(x), NON, m('sq', .6 + i * .2)));
+ [-2, -1, 0, 1].forEach((x, i) => {
+ const d = sq(x + 1) - sq(x);
+ B.arrow(x, sq(x), x, sq(x + 1), COL.irr, m('qsteps', i * 1.4), { label: (d > 0 ? '+' : '') + num(d) });
+ B.arrow(x, sq(x + 1), x + 1, sq(x + 1), COL.real, m('qsteps', i * 1.4 + .5));
+ });
+ B.fn(sq, -2.6, 2.6, NON, m('qcurve'));
+ text(p, 'changing steps: nonlinear', 1200, 860, m('qcurve', .5), { size: 28, fill: NON, anchor: 'middle', weight: 600 });
+ mline(p, 'linear: y = mx + b', 800, 520, m('form'), COL.task, 32);
+ }],
+ ['table', 'From a table to a curve', (m) => {
+ const p = panel(0), P = S.P = plane(S.pg = G(scene), { cx: 1050, cy: 640, u: 54, x0: -4, x1: 4, y0: -2, y1: 10, t0: .2 });
+ P.layer = p;
+ mline(p, ['y = x', E(2)], 300, 120, .2, NON, 50);
+ const xs = [-3, -2, -1, 0, 1, 2, 3], ys = xyTable(p, xs.map(x => [x, sq(x)]), 300, 210, m('rows'), { step: .9, color: NON });
+ xs.forEach((x, i) => { flyPt(p, `(${num(x)}, ${sq(x)})`, 300, ys[i], P.PX(x), P.PY(sq(x)), m('pts', i * .3)); P.dot(x, sq(x), PT, m('pts', .5 + i * .3)); });
+ P.fn(sq, -3.2, 3.2, NON, m('curve'), { dur: 1.6 });
+ text(p, 'parabola', P.PX(2.4) + 16, P.PY(sq(2.4)), m('name'), { size: 30, fill: NON, weight: 700 });
+ }],
+ ['q1', 'Quick check', () => {
+ S.P.layer = panel(0);
+ mline(S.P.layer, ['y = x', E(2), ' − 3'], 300, 120, .2, NON, 50);
+ xyTable(S.P.layer, [[-2, '?'], [-1, -2], [0, -3], [1, -2], [2, 1]], 300, 210, .3, { step: .1, color: NON });
+ }, { ask: done => quiz({ x: 80, y: 560, w: 500, cls: 'side' }, [{
+ id: 'c-plot', prompt: ['Plot the point for ', $m('x = −2'), '.'],
+ build: pickPoint(S.P, [-2, 1], '(−2)² − 3 = 4 − 3 = 1, so the point is (−2, 1).',
+ (x, y) => x !== -2 ? `The input is −2, so the point needs x = −2.` : y === -7 ? '(−2)² is 4, not −4.' : 'Find y: (−2)² − 3.'),
+ }], done) }],
+ ['cubic', 'Other shapes', (m) => {
+ const p = panel(0);
+ hide(S.pg, 0, .4);
+ const P = plane(p, { cx: 1100, cy: 470, u: 42, x0: -4, x1: 4, y0: -9, y1: 9, t0: .2, step: 2 });
+ P.layer = p;
+ mline(p, ['y = x', E(3)], 300, 140, m('cube'), COL.irr, 50);
+ const xs = [-2, -1, 0, 1, 2];
+ xyTable(p, xs.map(x => [x, cube(x)]), 300, 230, m('vals'), { step: 1.2, color: COL.irr });
+ xs.forEach((x, i) => P.dot(x, cube(x), PT, m('vals', .6 + i * 1.2)));
+ P.fn(cube, -2.1, 2.1, COL.irr, m('s'), { dur: 1.6 });
+ const ng = put(mk('rect', { x: P.PX(-4), y: P.PY(0), width: 4 * 42, height: 9 * 42, fill: COL.nat }, p), { o: 0 });
+ p.insertBefore(ng, p.firstChild);
+ tw(ng, { o: .12 }, m('neg'), .5);
+ text(p, 'negative in, negative out', P.PX(-4) - 24, P.PY(-5), m('neg', .3), { size: 26, fill: COL.nat, weight: 600, anchor: 'end' });
+ text(p, 'steeper and steeper', P.PX(2.1) + 16, P.PY(8), m('steep'), { size: 24, fill: COL.irr, weight: 600 });
+ }],
+ ['walk', 'Reading a real graph', (m) => {
+ const p = panel(0);
+ const A = S.wA = axes(S.wg = G(scene), { x0: 200, y0: 720, w: 900, h: 480, xs: [0, 60, 10], ys: [0, 3, 1], xl: 'minutes', yl: 'km from home', t0: m('story') });
+ const seg = (i, t0) => draw(path(p, `M${A.PX(WALK[i][0])} ${A.PY(WALK[i][1])}L${A.PX(WALK[i + 1][0])} ${A.PY(WALK[i + 1][1])}`, { stroke: PT, 'stroke-width': 5 }, { d: 0 }), t0, 1.2);
+ seg(0, m('go')); text(p, 'walking there', A.PX(4), A.PY(1.2), m('go', .8), { size: 24, fill: COL.dim });
+ seg(1, m('stay')); text(p, 'at her friend’s house', A.PX(32.5), A.PY(2) - 18, m('stay', .8), { size: 24, fill: COL.dim, anchor: 'middle' });
+ seg(2, m('back')); text(p, 'home, faster', A.PX(50) + 30, A.PY(1.2), m('back', .8), { size: 24, fill: COL.dim });
+ const r = path(p, `M${A.PX(10)} ${A.PY(0)}V${A.PY(1)}H${A.PX(0)}`, { stroke: COL.whole, 'stroke-width': 3, 'stroke-dasharray': '7 6' }, { d: 0 });
+ draw(r, m('read'), 1.2);
+ show(put(mk('circle', { r: 9, fill: COL.whole }, p), { x: A.PX(10), y: A.PY(1), o: 0 }), m('read', .6));
+ text(p, '10 minutes: 1 km', 1180, 300, m('read', 1.2), { size: 30, fill: COL.whole, weight: 600 });
+ }],
+ ['q2', 'Quick check', () => {
+ const p = panel(0), A = S.wA;
+ path(p, WALK.map(([t, d], i) => `${i ? 'L' : 'M'}${A.PX(t)} ${A.PY(d)}`).join(''), { stroke: PT, 'stroke-width': 5 });
+ }, { ask: done => quiz({ x: 1150, y: 160, w: 420, cls: 'side' }, [{
+ id: 'c-read', prompt: ['How far from home is Maya at 50 minutes? How long does she stay at her friend’s?'],
+ build: blanks([
+ { parts: ['distance: ', { box: '1' }], why: 'Halfway down the last segment: 1 kilometer.', hint: 'Go up from 50 minutes to the graph, then across.' },
+ { parts: ['stay: ', { box: '25' }, ' minutes'], why: 'From 20 to 45 minutes: 25 minutes.', hint: 'The flat part runs from 20 to 45 minutes.' },
+ ]),
+ }], done) }],
+ ['ball', 'A tossed ball', (m) => {
+ const p = panel(0);
+ hide(S.wg, 0, .4);
+ mline(p, ['h = 20t − 5t', E(2)], 280, 140, m('toss'), COL.irr, 46);
+ const ts = [0, 1, 2, 3, 4];
+ const A = axes(p, { x0: 680, y0: 740, w: 760, h: 520, xs: [0, 4, 1], ys: [0, 25, 5], xl: 'seconds', yl: 'meters high', t0: m('toss', .5) });
+ xyTable(p, ts.map(t => [t, ball(t)]), 280, 230, m('tab'), { head: ['t', 'h'], step: .25, color: COL.irr });
+ ts.forEach((t, i) => pop(put(mk('circle', { r: 10, fill: PT, stroke: COL.board, 'stroke-width': 2 }, p), { x: A.PX(t), y: A.PY(ball(t)), s: 0, o: 0 }), m('curve', i * .25)));
+ let d = '';
+ for (let i = 0; i <= 80; i++) { const t = 4 * i / 80; d += `${i ? 'L' : 'M'}${A.PX(t).toFixed(1)} ${A.PY(ball(t)).toFixed(1)}`; }
+ draw(path(p, d, { stroke: COL.irr, 'stroke-width': 4 }, { d: 0 }), m('curve', 1.4), 1.6);
+ const ball0 = put(mk('circle', { r: 16, fill: COL.int }, p), { x: 600, y: A.PY(0), o: 0 });
+ show(ball0, m('curve', 1.4), .2);
+ prog(q => put(ball0, { y: A.PY(ball(4 * q)) }), m('curve', 1.4), 3, lin);
+ hide(ball0, m('curve', 4.5), .4);
+ const h15 = path(p, `M${A.PX(0)} ${A.PY(15)}H${A.PX(4)}`, { stroke: COL.task, 'stroke-width': 3, 'stroke-dasharray': '9 7' }, { o: 0 });
+ show(h15, m('twice'));
+ [1, 3].forEach((t, i) => { draw(path(p, `M${A.PX(t)} ${A.PY(15)}V${A.PY(0)}`, { stroke: COL.task, 'stroke-width': 3 }, { d: 0 }), m('twice', 1.5 + i * 2), .5); text(p, `${t} s`, A.PX(t), A.PY(15) - 20, m('twice', 1.5 + i * 2), { size: 26, fill: COL.task, anchor: 'middle', weight: 700 }); });
+ text(p, '15 meters high twice', 280, 570, m('twice', 2), { size: 28, fill: COL.task, anchor: 'middle', weight: 600 });
+ }],
+ ['q3', 'Quick check', () => {}, { ask: done => quiz({ x: 60, y: 610, w: 560, cls: 'side' }, [{
+ id: 'c-top', prompt: ['When is the ball highest?'],
+ build: choice([[$m('t = 1')], [$m('t = 2')], [$m('t = 4')]], 1, 'h = 20 at t = 2, the top of the curve.',
+ ['At t = 1 the ball is 15 meters high and still rising.', null, 'At t = 4 the ball is back on the ground: h = 0.']),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['Linear: equal steps, straight line. Nonlinear: steps change, curved graph.', 'w1', LIN], ['Graph any function: table, points, smooth curve.', 'w2', NON],
+ ['Read a real graph: up from the input, across to the output.', 'w3', PT]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 260 + i * 140, o: 0 });
+ mk('circle', { cx: 150, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 150, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 210, size: 32, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-table', prompt: ['Complete the table for ', $m('y = ', F(1, 2), 'x', E(3), ' + 4'), '.'], build: blanks([
+ { parts: ['x = −2: y = ', { box: '0' }], why: '½(−8) + 4 = 0.', hint: '(−2)³ = −8.' },
+ { parts: ['x = −1: y = ', { box: '7/2' }], why: '½(−1) + 4 = 3½.', hint: '(−1)³ = −1. The answer may be a fraction.' },
+ { parts: ['x = 0: y = ', { box: '4' }], why: '½(0) + 4 = 4.', hint: '0³ = 0.' },
+ { parts: ['x = 1: y = ', { box: '9/2' }], why: '½(1) + 4 = 4½.', hint: '1³ = 1.' },
+ { parts: ['x = 2: y = ', { box: '8' }], why: '½(8) + 4 = 8.', hint: '2³ = 8.' },
+ ]),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-kind', prompt: ['Is the function linear or nonlinear?'],
+ build: grid(KINDQ, [['l', 'Linear', LIN, 'L'], ['n', 'Nonlinear', NON, 'N']], { multi: false, text: true }),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {
+ const p = panel(0), A = S.fA = axes(p, { x0: 900, y0: 700, w: 600, h: 440, xs: [0, 10, 1], ys: [0, 6, 1], xl: 'hours', yl: 'miles from home', t0: .2 });
+ path(p, [[0, 0], [4, 3], [9, 3], [10, 0]].map(([t, d], i) => `${i ? 'L' : 'M'}${A.PX(t)} ${A.PY(d)}`).join(''), { stroke: PT, 'stroke-width': 5 });
+ text(p, 'Tom bikes to a lake, fishes, and rides home.', 1200, 170, .2, { size: 22, fill: COL.dim, anchor: 'middle' });
+ }, { ask: done => quiz({ x: 0, y: 0, w: 860, cls: 'screen' }, [{
+ id: 'p-read', prompt: ['Read the graph.'], build: blanks([
+ { parts: ['miles from home after 2 hours: ', { box: '1.5' }], why: 'Halfway up the first segment: 1.5 miles.', hint: 'Go up from 2 hours to the line.' },
+ { parts: ['hours spent at the lake: ', { box: '5' }], why: 'From 4 to 9 hours.', hint: 'Find where the graph is flat.' },
+ { parts: ['Tom gets home after ', { box: '10' }, ' hours'], why: 'The distance returns to 0 at 10 hours.', hint: 'When is the distance 0 again?' },
+ ]),
+ }], done, 'Chapter practice 3 of 3') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const KINDQ = [
+ { parts: [$m('y = 3x − 4')], ans: ['l'], why: 'It has the form y = mx + b.' },
+ { parts: [$m('y = x', E(2), ' + 1')], ans: ['n'], why: 'x is squared: the graph is a parabola.' },
+ { parts: [$m('y = −', F(1, 2), 'x')], ans: ['l'], why: 'm = −½, b = 0.' },
+ { parts: [$m('y = x', E(3))], ans: ['n'], why: 'x is cubed: an S-shaped curve.' },
+ { parts: ['x: 0, 1, 2, 3 y: 5, 8, 11, 14'], ans: ['l'], why: 'y goes up by 3 every time.' },
+ { parts: ['x: 0, 1, 2, 3 y: 1, 2, 4, 8'], ans: ['n'], why: 'The steps are 1, 2, 4: they change.' },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch48/audio/en/add.mp3 b/site/ch48/audio/en/add.mp3
new file mode 100644
index 0000000..97e5780
Binary files /dev/null and b/site/ch48/audio/en/add.mp3 differ
diff --git a/site/ch48/audio/en/final1.mp3 b/site/ch48/audio/en/final1.mp3
new file mode 100644
index 0000000..87dfe22
Binary files /dev/null and b/site/ch48/audio/en/final1.mp3 differ
diff --git a/site/ch48/audio/en/final2.mp3 b/site/ch48/audio/en/final2.mp3
new file mode 100644
index 0000000..c585400
Binary files /dev/null and b/site/ch48/audio/en/final2.mp3 differ
diff --git a/site/ch48/audio/en/final3.mp3 b/site/ch48/audio/en/final3.mp3
new file mode 100644
index 0000000..f76cb98
Binary files /dev/null and b/site/ch48/audio/en/final3.mp3 differ
diff --git a/site/ch48/audio/en/finish.mp3 b/site/ch48/audio/en/finish.mp3
new file mode 100644
index 0000000..89ed3e7
Binary files /dev/null and b/site/ch48/audio/en/finish.mp3 differ
diff --git a/site/ch48/audio/en/intro.mp3 b/site/ch48/audio/en/intro.mp3
new file mode 100644
index 0000000..de4326f
Binary files /dev/null and b/site/ch48/audio/en/intro.mp3 differ
diff --git a/site/ch48/audio/en/like.mp3 b/site/ch48/audio/en/like.mp3
new file mode 100644
index 0000000..e6212ca
Binary files /dev/null and b/site/ch48/audio/en/like.mp3 differ
diff --git a/site/ch48/audio/en/names.mp3 b/site/ch48/audio/en/names.mp3
new file mode 100644
index 0000000..f371e00
Binary files /dev/null and b/site/ch48/audio/en/names.mp3 differ
diff --git a/site/ch48/audio/en/perim.mp3 b/site/ch48/audio/en/perim.mp3
new file mode 100644
index 0000000..3facd65
Binary files /dev/null and b/site/ch48/audio/en/perim.mp3 differ
diff --git a/site/ch48/audio/en/q1.mp3 b/site/ch48/audio/en/q1.mp3
new file mode 100644
index 0000000..332ae3a
Binary files /dev/null and b/site/ch48/audio/en/q1.mp3 differ
diff --git a/site/ch48/audio/en/q2.mp3 b/site/ch48/audio/en/q2.mp3
new file mode 100644
index 0000000..612e012
Binary files /dev/null and b/site/ch48/audio/en/q2.mp3 differ
diff --git a/site/ch48/audio/en/q3.mp3 b/site/ch48/audio/en/q3.mp3
new file mode 100644
index 0000000..f5968d0
Binary files /dev/null and b/site/ch48/audio/en/q3.mp3 differ
diff --git a/site/ch48/audio/en/subtract.mp3 b/site/ch48/audio/en/subtract.mp3
new file mode 100644
index 0000000..d660d56
Binary files /dev/null and b/site/ch48/audio/en/subtract.mp3 differ
diff --git a/site/ch48/audio/en/timings.js b/site/ch48/audio/en/timings.js
new file mode 100644
index 0000000..85143e0
--- /dev/null
+++ b/site/ch48/audio/en/timings.js
@@ -0,0 +1,308 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 8.568,
+ "marks": {
+ "sub": 2.604
+ },
+ "cues": [
+ [
+ 0.104,
+ "Unit nine, chapter forty-eight."
+ ],
+ [
+ 2.604,
+ "Polynomials are built from terms, and adding them comes down to combining like terms."
+ ]
+ ]
+ },
+ "names": {
+ "dur": 31.632,
+ "marks": {
+ "poly": 7.357,
+ "bi": 10.885,
+ "tri": 13.112,
+ "sub": 16.055,
+ "order": 24.544,
+ "sort": 29.557
+ },
+ "cues": [
+ [
+ 0.091,
+ "A monomial is a single term: a number, a variable, or a product of them, like thirty-eight m."
+ ],
+ [
+ 7.357,
+ "A polynomial is one monomial or a sum of several."
+ ],
+ [
+ 10.885,
+ "With two terms it's a binomial, and with three terms, a trinomial."
+ ],
+ [
+ 16.055,
+ "Subtracting a term counts as adding a negative one, so three x squared minus two x is still a sum of two terms."
+ ],
+ [
+ 24.544,
+ "We usually write a polynomial in descending order: the highest power of x first, down to the number with no x."
+ ]
+ ]
+ },
+ "like": {
+ "dur": 23.136,
+ "marks": {
+ "tiles": 3.984,
+ "same": 12.865,
+ "not": 16.172
+ },
+ "cues": [
+ [
+ 0.091,
+ "Like terms have the same variables raised to the same powers."
+ ],
+ [
+ 3.984,
+ "With algebra tiles, each kind of term has its own shape: big squares for x squared, long strips for x, small squares for ones."
+ ],
+ [
+ 12.865,
+ "Only tiles of the same shape can be counted together."
+ ],
+ [
+ 16.172,
+ "Three x squared and three x look alike, but the tiles show they are different sizes: they're not like terms."
+ ]
+ ]
+ },
+ "add": {
+ "dur": 28.56,
+ "marks": {
+ "p1": 3.372,
+ "p2": 6.654,
+ "group": 9.609,
+ "cancel": 11.914,
+ "count": 16.823,
+ "cols": 21.758
+ },
+ "cues": [
+ [
+ 0.104,
+ "To add polynomials, combine like terms."
+ ],
+ [
+ 3.372,
+ "Here's two x squared plus three x plus one, plus x squared minus x plus two."
+ ],
+ [
+ 9.609,
+ "Slide the tiles together by kind."
+ ],
+ [
+ 11.914,
+ "A positive x and a negative x make zero, so that pair cancels."
+ ],
+ [
+ 16.823,
+ "Count what's left: three x squared, plus two x, plus three."
+ ],
+ [
+ 21.758,
+ "Lining the polynomials up in columns, like terms over like terms, does the same job without tiles."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 2.664,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.172,
+ "Add the polynomials."
+ ]
+ ]
+ },
+ "subtract": {
+ "dur": 32.904,
+ "marks": {
+ "q": 4.779,
+ "flip": 12.708,
+ "opp": 18.047,
+ "add": 24.427,
+ "cancel": 26.081,
+ "ans": 28.451
+ },
+ "cues": [
+ [
+ 0.104,
+ "Subtracting a polynomial means subtracting every one of its terms."
+ ],
+ [
+ 4.779,
+ "Take three x squared plus two x minus one, minus the quantity x squared plus four x minus three."
+ ],
+ [
+ 12.708,
+ "The minus sign in front of the parentheses flips the sign of every term inside: x squared becomes negative, four x becomes negative, and minus three becomes plus three."
+ ],
+ [
+ 24.427,
+ "Now add, as before."
+ ],
+ [
+ 26.081,
+ "Opposite tiles cancel in pairs."
+ ],
+ [
+ 28.451,
+ "What's left is two x squared minus two x plus two."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 2.208,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.146,
+ "Subtract."
+ ]
+ ]
+ },
+ "perim": {
+ "dur": 23.712,
+ "marks": {
+ "rect": 2.812,
+ "walk": 8.633,
+ "sum": 14.102,
+ "nums": 19.284,
+ "ans": 20.833
+ },
+ "cues": [
+ [
+ 0.104,
+ "Polynomials can describe measurements."
+ ],
+ [
+ 2.812,
+ "A rectangle is three x plus two units long and x minus one units wide."
+ ],
+ [
+ 8.633,
+ "Its perimeter is the distance around: length plus width plus length plus width."
+ ],
+ [
+ 14.102,
+ "Add all four sides and combine like terms: the x terms make eight x, and the numbers make two."
+ ],
+ [
+ 20.833,
+ "The perimeter is eight x plus two."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 2.4,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.159,
+ "Find the perimeter."
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 18.672,
+ "marks": {
+ "w1": 0.99,
+ "w2": 6.328,
+ "w3": 11.211,
+ "end": 16.497
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.99,
+ "A polynomial is a monomial or a sum of monomials, written in descending order."
+ ],
+ [
+ 6.328,
+ "To add, combine like terms: same variables, same powers."
+ ],
+ [
+ 11.211,
+ "To subtract, change the sign of every term being subtracted, then add."
+ ],
+ [
+ 16.497,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 4.824,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.536,
+ "Monomial, binomial, or trinomial?"
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 2.136,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, add the polynomials."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 2.184,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.133,
+ "Subtract."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 6.24,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Well done."
+ ],
+ [
+ 1.081,
+ "That's the end of chapter forty-eight, adding and subtracting polynomials."
+ ]
+ ]
+ }
+};
diff --git a/site/ch48/audio/en/wrap.mp3 b/site/ch48/audio/en/wrap.mp3
new file mode 100644
index 0000000..13323f1
Binary files /dev/null and b/site/ch48/audio/en/wrap.mp3 differ
diff --git a/site/ch48/index.html b/site/ch48/index.html
new file mode 100644
index 0000000..c6ebb15
--- /dev/null
+++ b/site/ch48/index.html
@@ -0,0 +1,217 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Adding and Subtracting Polynomials</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 48, title: 'Adding and Subtracting Polynomials', minutes: 9, next: '../ch49/' };
+const CX2 = TS.x2[2], CX = TS.x[2], C1 = TS.one[2];
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+const KINDS = ['x2', 'x', 'one'], STEP = { x2: 132, x: 42, one: 42 };
+// Tiles for a·x² + b·x + c in one row starting at x (negative counts give dashed tiles). Each tile knows its kind and sign.
+function polyTiles(p, coef, x, y) {
+ const out = [];
+ KINDS.forEach((k, j) => {
+ const n = coef[j];
+ for (let i = 0; i < Math.abs(n); i++) { const t = atile(p, k, x, y + (k === 'one' ? 45 : 0), n < 0); t.k = k; t.n = n < 0; out.push(t); x += STEP[k]; }
+ if (n) x += 34;
+ });
+ return out;
+}
+// Zones for sorting tiles by kind, and where the i-th positive / negative tile of a kind goes.
+const ZONE = { x2: 230, x: 760, one: 1170 }, ZY = 600;
+const slotIn = (k, i, neg) => [ZONE[k] + i * STEP[k], ZY + (neg ? (k === 'one' ? 50 : 136) : 0) + (k === 'one' ? 45 : 0)];
+// Slide every tile into its zone; then cancel opposite pairs. Returns the time the cancelling finishes.
+function sortAndCancel(tiles, t0, tc) {
+ const by = {};
+ KINDS.forEach(k => { by[k] = { pos: tiles.filter(t => t.k === k && !t.n), neg: tiles.filter(t => t.k === k && t.n) }; });
+ KINDS.forEach(k => ['pos', 'neg'].forEach(s => by[k][s].forEach((t, i) => tw(t, { x: slotIn(k, i, s === 'neg')[0], y: slotIn(k, i, s === 'neg')[1] }, t0 + i * .06, .8))));
+ KINDS.forEach((k, j) => { const n = Math.min(by[k].pos.length, by[k].neg.length); cancel(by[k].pos.slice(0, n), by[k].neg.slice(0, n), tc + j * .4); });
+ return by;
+}
+const zoneLabel = (p, k, parts, t0, fill) => mline(p, parts, ZONE[k] + (k === 'x2' ? 60 : 40), 872, t0, fill || TS[k][2], 40);
+
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'Polynomials', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 9, Chapter 48', { x: 800, y: 300, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Adding and Subtracting', { x: 800, y: 400, size: 80, weight: 600, anchor: 'middle' });
+ T(g, 'Polynomials', { x: 800, y: 490, size: 80, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = mline(scene, ['3x', E(2), ' + 2x − 1'], 800, 630, m('sub'), COL.dim, 52);
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['names', 'Monomials and polynomials', (m) => {
+ const p = panel(0);
+ const row = (parts, label, y, t0, n) => {
+ mline(p, parts, 360, y, t0, COL.chalk, 48, 'start');
+ text(p, label, 300, y - 6, t0, { size: 28, fill: COL.task, weight: 600, anchor: 'end' });
+ text(p, `${n} term${n > 1 ? 's' : ''}`, 1000, y - 6, t0 + .3, { size: 26, fill: COL.dim });
+ };
+ row(['38m'], 'monomial', 170, .3, 1);
+ text(p, 'polynomial: one monomial, or a sum of monomials', 800, 260, m('poly'), { size: 28, fill: COL.dim, anchor: 'middle' });
+ row(['−7y + ', F(1, 2)], 'binomial', 350, m('bi'), 2);
+ row(['8a', E(2), ' − ', F(3, 5), 'ab + 6b', E(2)], 'trinomial', 460, m('tri'), 3);
+ mline(p, ['3x', E(2), ' − 2x = 3x', E(2), ' + (−2x)'], 800, 570, m('sub'), COL.dim, 40);
+ text(p, 'descending order:', 160, 720, m('order'), { size: 28, fill: COL.dim });
+ const tk = tokens(p, ['22x', ' + ', ['5x', E(3)], ' + ', '6'], { x: 460, y: 730, size: 54, o: 0 });
+ tk.forEach(e => show(e, m('order')));
+ // Swap 22x and 5x³: the highest power moves to the front.
+ const a = tk[0], b = tk[2], w = a._w, wb = b._w;
+ tw(b, { x: 460 + wb / 2, y: 730 }, m('sort'), .8);
+ tw(a, { x: 460 + wb + tk[1]._w + w / 2 }, m('sort'), .8);
+ tw(tk[1], { x: 460 + wb + tk[1]._w / 2 }, m('sort'), .8);
+ text(p, 'x³, then x, then the number', 1050, 722, m('sort', .8), { size: 26, fill: COL.task });
+ }],
+ ['like', 'Like terms and tiles', (m) => {
+ const p = panel(0);
+ [['x2', 380, ['x', E(2)]], ['x', 800, ['x']], ['one', 1150, ['1']]].forEach(([k, x, lab], i) => {
+ const t = atile(p, k, x, 330); tw(t, { o: 1, s: 1 }, m('tiles', 1 + i * 1.6), .4, back);
+ mline(p, lab, x, 470, m('tiles', 1.3 + i * 1.6), TS[k][2], 46);
+ });
+ text(p, 'Count tiles of one shape at a time.', 800, 560, m('same'), { size: 30, fill: COL.task, anchor: 'middle', weight: 600 });
+ const a = tileRow(p, 'x2', 3, 260, 720, false, 12), b = tileRow(p, 'x', 3, 900, 720, false, 12);
+ popIn(a, m('not')); popIn(b, m('not', .5));
+ mline(p, ['3x', E(2)], 390, 830, m('not', .8), CX2, 40);
+ mline(p, '3x', 942, 830, m('not', 1), CX, 40);
+ text(p, 'not like terms', 1200, 730, m('not', 2), { size: 30, fill: COL.bad, weight: 600 });
+ }],
+ ['add', 'Adding', (m) => {
+ const p = panel(0);
+ mline(p, ['(2x', E(2), ' + 3x + 1)'], 40, 165, m('p1'), COL.chalk, 40, 'start');
+ const A = polyTiles(p, [2, 3, 1], 420, 160);
+ popIn(A, m('p1', .3), .06);
+ mline(p, ['+ (x', E(2), ' − x + 2)'], 40, 375, m('p2'), COL.chalk, 40, 'start');
+ const B = polyTiles(p, [1, -1, 2], 420, 370);
+ popIn(B, m('p2', .3), .06);
+ KINDS.forEach(k => text(p, { x2: 'x² tiles', x: 'x tiles', one: 'ones' }[k], ZONE[k] - 20, 512, m('group'), { size: 24, fill: TS[k][2], weight: 600 }));
+ sortAndCancel([...A, ...B], m('group'), m('cancel'));
+ zoneLabel(p, 'x2', ['3x', E(2)], m('count'));
+ zoneLabel(p, 'x', ['+ 2x'], m('count', .6));
+ zoneLabel(p, 'one', ['+ 3'], m('count', 1.2));
+ const cols = G(p, { o: 0 });
+ M(cols, [' 2x', E(2), ' + 3x + 1'], { x: 1500, y: 150, size: 34, anchor: 'end' });
+ M(cols, ['+ x', E(2), ' − x + 2'], { x: 1500, y: 200, size: 34, anchor: 'end' });
+ path(cols, 'M1240 218H1500', { stroke: COL.chalk, 'stroke-width': 2.5 });
+ M(cols, ['3x', E(2), ' + 2x + 3'], { x: 1500, y: 262, size: 34, anchor: 'end', fill: COL.good });
+ show(cols, m('cols'));
+ }],
+ ['q1', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 260, y: 260, w: 1080, cls: 'side' }, [{
+ id: 'c-add', prompt: ['Add and simplify.'],
+ build: blanks([{ parts: ['(3x', E(2), ' − 6x) + (4x', E(2), ' − 11x) = ', { box: '7' }, 'x', E(2), ' − ', { box: '17' }, 'x'],
+ why: '3x² + 4x² = 7x², and −6x − 11x = −17x.', hint: 'Combine the x² terms, then the x terms. −6 − 11 = −17.' }]),
+ }], done) }],
+ ['subtract', 'Subtracting', (m) => {
+ const p = panel(0);
+ mline(p, ['(3x', E(2), ' + 2x − 1)'], 40, 165, m('q'), COL.chalk, 40, 'start');
+ const A = polyTiles(p, [3, 2, -1], 420, 160);
+ popIn(A, m('q', .3), .05);
+ const minus = mline(p, ['− (x', E(2), ' + 4x − 3)'], 40, 375, m('q', 2.4), COL.chalk, 40, 'start');
+ const B = polyTiles(p, [1, 4, -3], 420, 370);
+ popIn(B, m('q', 2.7), .05);
+ // The minus sign flips every tile in the second group.
+ mline(p, ['+ (−x', E(2), ' − 4x + 3)'], 40, 375, m('opp', 5), COL.task, 40, 'start');
+ hide(minus, m('opp', 4.9), .3);
+ const when = { x2: 0, x: 1.6, one: 3.6 }, seen = { x2: 0, x: 0, one: 0 };
+ B.forEach((t, i) => {
+ const at = m('opp', when[t.k] + seen[t.k]++ * .15);
+ tw(t, { s: .05 }, at, .2);
+ const nt = atile(p, t.k, st(t).x, st(t).y, !t.n); nt.k = t.k; nt.n = !t.n;
+ put(nt, { o: 0, s: .05 }); tw(nt, { o: 1 }, at + .2, .01); tw(nt, { s: 1 }, at + .2, .25, back);
+ hide(t, at + .2, .01);
+ B[i] = nt;
+ });
+ sortAndCancel([...A, ...B], m('add'), m('cancel'));
+ zoneLabel(p, 'x2', ['2x', E(2)], m('ans'));
+ zoneLabel(p, 'x', ['− 2x'], m('ans', .6));
+ zoneLabel(p, 'one', ['+ 2'], m('ans', 1.2));
+ }],
+ ['q2', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 260, y: 260, w: 1080, cls: 'side' }, [{
+ id: 'c-sub', prompt: ['Simplify ', $m('(5x − 2) − (3x − 4)'), '.'],
+ build: choice([[$m('2x − 6')], [$m('2x + 2')], [$m('8x − 6')]], 1, '5x − 2 − 3x + 4 = 2x + 2.',
+ ['The minus sign flips −4 to +4 too: −2 + 4 = 2.', null, 'Subtracting 3x gives 5x − 3x = 2x, not 8x.']),
+ }], done) }],
+ ['perim', 'Perimeter', (m) => {
+ const p = panel(0), x0 = 300, y0 = 220, W = 600, H = 300;
+ const r = path(p, `M${x0} ${y0}H${x0 + W}V${y0 + H}H${x0}Z`, { stroke: COL.irr, 'stroke-width': 4, fill: mix(COL.board, COL.irr, .12) }, { d: 0 });
+ draw(r, m('rect'), 1);
+ mline(p, '3x + 2', x0 + W / 2, y0 - 20, m('rect', .6), COL.whole, 40);
+ mline(p, 'x − 1', x0 + W + 20, y0 + H / 2 + 12, m('rect', 1), COL.nat, 40, 'start');
+ const bug = put(mk('circle', { r: 12, fill: COL.task }, p), { x: x0, y: y0, o: 0 });
+ show(bug, m('walk'), .2);
+ prog(q => { const s = q * 2 * (W + H); const pt = s < W ? [x0 + s, y0] : s < W + H ? [x0 + W, y0 + s - W] : s < 2 * W + H ? [x0 + W - (s - W - H), y0 + H] : [x0, y0 + H - (s - 2 * W - H)]; put(bug, { x: pt[0], y: pt[1] }); }, m('walk', .3), 3.5, lin);
+ hide(bug, m('walk', 4), .3);
+ const rows = [['3x + 2', COL.whole], ['x − 1', COL.nat], ['3x + 2', COL.whole], ['x − 1', COL.nat]];
+ rows.forEach(([s, c], i) => mline(p, (i ? '+ ' : ' ') + s, 1350, 220 + i * 60, m('walk', .6 + i * .9), c, 40, 'end'));
+ show(path(p, 'M1120 445H1360', { stroke: COL.chalk, 'stroke-width': 2.5 }, { o: 0 }), m('sum'));
+ mline(p, '3x + x + 3x + x = 8x', 1350, 520, m('sum', .5), COL.chalk, 34, 'end');
+ mline(p, '2 − 1 + 2 − 1 = 2', 1350, 580, m('nums'), COL.chalk, 34, 'end');
+ mline(p, 'perimeter = 8x + 2', 600, 680, m('ans'), COL.good, 52);
+ }],
+ ['q3', 'Quick check', () => {
+ const p = panel(0), A = [300, 620], B = [800, 620], C = [520, 260];
+ draw(path(p, `M${A}L${B}L${C}Z`, { stroke: COL.irr, 'stroke-width': 4, fill: mix(COL.board, COL.irr, .12) }, { d: 0 }), .2, .8);
+ mline(p, '2a + 1', 550, 680, .5, COL.whole, 38);
+ mline(p, 'a + 3', 700, 430, .6, COL.nat, 38, 'start');
+ mline(p, '3a − 2', 380, 430, .7, COL.int, 38, 'end');
+ }, { ask: done => quiz({ x: 960, y: 260, w: 560, cls: 'side' }, [{
+ id: 'c-per', prompt: ['Find the perimeter of the triangle.'],
+ build: blanks([{ parts: ['perimeter = ', { box: '6' }, 'a + ', { box: '2' }], why: '2a + a + 3a = 6a, and 1 + 3 − 2 = 2.', hint: 'Add the three sides: the a terms, then the numbers.' }]),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['Polynomial: a monomial or a sum of monomials, in descending order.', 'w1', CX2], ['Add: combine like terms (same variables, same powers).', 'w2', CX],
+ ['Subtract: flip the sign of every subtracted term, then add.', 'w3', COL.bad]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 260 + i * 140, o: 0 });
+ mk('circle', { cx: 150, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 150, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 210, size: 32, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-name', prompt: ['How many terms? Name each polynomial.'],
+ build: grid(NAMEQ, [['m', 'Monomial', CX2, '1'], ['b', 'Binomial', CX, '2'], ['t', 'Trinomial', C1, '3']], { multi: false, text: true }),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-add', prompt: ['Add and simplify.'], build: blanks([
+ { parts: ['(3k', E(2), ' − 8) + (−4k − 5) = 3k', E(2), ' − ', { box: '4' }, 'k − ', { box: '13' }], why: '−8 − 5 = −13; −4k has no like term.', hint: 'Only the numbers combine; −4k stays.' },
+ { parts: ['(9a + 10b) + (8a + 2b) = ', { box: '17' }, 'a + ', { box: '12' }, 'b'], why: '9a + 8a = 17a, 10b + 2b = 12b.', hint: 'a terms with a terms, b terms with b terms.' },
+ { parts: ['(x', E(2), ' + 5x − 2) + (2x', E(2), ' − 5x + 7) = ', { box: '3' }, 'x', E(2), ' + ', { box: '5' }], why: '5x − 5x = 0, so the x terms vanish.', hint: 'The x terms cancel.' },
+ ]),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-sub', prompt: ['Subtract and simplify.'], build: blanks([
+ { parts: ['(8x − 5y) − (7x − 9y) = x + ', { box: '4' }, 'y'], why: '8x − 7x = x; −5y + 9y = 4y.', hint: '−(−9y) = +9y.' },
+ { parts: ['(8a', E(2), ' + 11a) − (19a − 5) = 8a', E(2), ' − ', { box: '8' }, 'a + ', { box: '5' }], why: '11a − 19a = −8a; −(−5) = +5.', hint: 'Flip both signs inside the second parentheses.' },
+ { parts: ['(3m', E(2), ' + n) − (5n − 6m', E(2), ') = ', { box: '9' }, 'm', E(2), ' − ', { box: '4' }, 'n'], why: '3m² + 6m² = 9m²; n − 5n = −4n.', hint: '−(−6m²) = +6m².' },
+ ]),
+ }], done, 'Chapter practice 3 of 3') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const NAMEQ = [
+ { parts: [$m('4x', E(2), ' − 9')], ans: ['b'], why: 'Two terms.' },
+ { parts: [$m('−12ab')], ans: ['m'], why: 'One term: a product of a number and variables.' },
+ { parts: [$m('x', E(2), ' + 3x − 10')], ans: ['t'], why: 'Three terms.' },
+ { parts: [$m('7')], ans: ['m'], why: 'A number alone is a monomial.' },
+ { parts: [$m('5m', E(3), ' + 2m')], ans: ['b'], why: 'Two terms.' },
+ { parts: [$m(F(1, 2), 'y', E(2), ' − y + 8')], ans: ['t'], why: 'Three terms.' },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch49/audio/en/chain.mp3 b/site/ch49/audio/en/chain.mp3
new file mode 100644
index 0000000..3ccd9de
Binary files /dev/null and b/site/ch49/audio/en/chain.mp3 differ
diff --git a/site/ch49/audio/en/div.mp3 b/site/ch49/audio/en/div.mp3
new file mode 100644
index 0000000..75dac82
Binary files /dev/null and b/site/ch49/audio/en/div.mp3 differ
diff --git a/site/ch49/audio/en/final1.mp3 b/site/ch49/audio/en/final1.mp3
new file mode 100644
index 0000000..b06fedd
Binary files /dev/null and b/site/ch49/audio/en/final1.mp3 differ
diff --git a/site/ch49/audio/en/final2.mp3 b/site/ch49/audio/en/final2.mp3
new file mode 100644
index 0000000..fd64b9a
Binary files /dev/null and b/site/ch49/audio/en/final2.mp3 differ
diff --git a/site/ch49/audio/en/final3.mp3 b/site/ch49/audio/en/final3.mp3
new file mode 100644
index 0000000..67ff975
Binary files /dev/null and b/site/ch49/audio/en/final3.mp3 differ
diff --git a/site/ch49/audio/en/finish.mp3 b/site/ch49/audio/en/finish.mp3
new file mode 100644
index 0000000..1f3e9ff
Binary files /dev/null and b/site/ch49/audio/en/finish.mp3 differ
diff --git a/site/ch49/audio/en/intro.mp3 b/site/ch49/audio/en/intro.mp3
new file mode 100644
index 0000000..e3adbdb
Binary files /dev/null and b/site/ch49/audio/en/intro.mp3 differ
diff --git a/site/ch49/audio/en/mult.mp3 b/site/ch49/audio/en/mult.mp3
new file mode 100644
index 0000000..5457b40
Binary files /dev/null and b/site/ch49/audio/en/mult.mp3 differ
diff --git a/site/ch49/audio/en/neg.mp3 b/site/ch49/audio/en/neg.mp3
new file mode 100644
index 0000000..8bf7d38
Binary files /dev/null and b/site/ch49/audio/en/neg.mp3 differ
diff --git a/site/ch49/audio/en/one.mp3 b/site/ch49/audio/en/one.mp3
new file mode 100644
index 0000000..8fd2230
Binary files /dev/null and b/site/ch49/audio/en/one.mp3 differ
diff --git a/site/ch49/audio/en/q1.mp3 b/site/ch49/audio/en/q1.mp3
new file mode 100644
index 0000000..2c403c3
Binary files /dev/null and b/site/ch49/audio/en/q1.mp3 differ
diff --git a/site/ch49/audio/en/q2.mp3 b/site/ch49/audio/en/q2.mp3
new file mode 100644
index 0000000..d37b866
Binary files /dev/null and b/site/ch49/audio/en/q2.mp3 differ
diff --git a/site/ch49/audio/en/q3.mp3 b/site/ch49/audio/en/q3.mp3
new file mode 100644
index 0000000..25ae26f
Binary files /dev/null and b/site/ch49/audio/en/q3.mp3 differ
diff --git a/site/ch49/audio/en/same.mp3 b/site/ch49/audio/en/same.mp3
new file mode 100644
index 0000000..1e33ac7
Binary files /dev/null and b/site/ch49/audio/en/same.mp3 differ
diff --git a/site/ch49/audio/en/timings.js b/site/ch49/audio/en/timings.js
new file mode 100644
index 0000000..b8a1cba
--- /dev/null
+++ b/site/ch49/audio/en/timings.js
@@ -0,0 +1,331 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 8.88,
+ "marks": {
+ "sub": 1.589
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter forty-nine."
+ ],
+ [
+ 1.589,
+ "When powers share a base, multiplying and dividing them comes down to adding and subtracting exponents."
+ ]
+ ]
+ },
+ "mult": {
+ "dur": 24.792,
+ "marks": {
+ "expand": 3.568,
+ "expand2": 7.708,
+ "join": 10.352,
+ "count": 13.099,
+ "ans": 16.523,
+ "rule": 19.492
+ },
+ "cues": [
+ [
+ 0.091,
+ "Multiply five squared by five to the fourth."
+ ],
+ [
+ 3.568,
+ "Write out every factor."
+ ],
+ [
+ 5.586,
+ "Five squared is two fives, and five to the fourth is four more fives."
+ ],
+ [
+ 10.352,
+ "Multiplying puts them all in one row."
+ ],
+ [
+ 13.099,
+ "Count the fives: two plus four makes six."
+ ],
+ [
+ 16.523,
+ "So the product is five to the sixth."
+ ],
+ [
+ 19.492,
+ "Multiplying powers with the same base: keep the base, add the exponents."
+ ]
+ ]
+ },
+ "same": {
+ "dur": 26.592,
+ "marks": {
+ "ok": 1.797,
+ "no": 7.5,
+ "warn": 16.003
+ },
+ "cues": [
+ [
+ 0.117,
+ "The base must be the same."
+ ],
+ [
+ 1.797,
+ "Three squared times three to the ninth simplifies to three to the eleventh."
+ ],
+ [
+ 7.5,
+ "Eight to the fifth times seven to the fourth can't be combined: the factors are eights and sevens, so there's nothing to count together."
+ ],
+ [
+ 16.003,
+ "And keep the base as it is."
+ ],
+ [
+ 17.786,
+ "Three to the fifth times three to the seventh is three to the twelfth, not nine to the twelfth and not three to the thirty-fifth."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 2.736,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "Multiply the powers."
+ ]
+ ]
+ },
+ "div": {
+ "dur": 21.84,
+ "marks": {
+ "frac": 3.555,
+ "cancel": 6.862,
+ "left": 9.714,
+ "ans": 11.341,
+ "rule": 16.133
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now divide eight to the seventh by eight cubed."
+ ],
+ [
+ 3.555,
+ "Write it as a fraction, with every factor showing."
+ ],
+ [
+ 6.862,
+ "Each eight on the bottom cancels one eight on the top, three pairs in all."
+ ],
+ [
+ 11.341,
+ "Seven eights minus three eights leaves four: eight to the fourth."
+ ],
+ [
+ 16.133,
+ "Dividing powers with the same base: keep the base, subtract the exponents."
+ ]
+ ]
+ },
+ "one": {
+ "dur": 15.768,
+ "marks": {
+ "ex": 3.112,
+ "one": 7.083,
+ "ans": 12.096
+ },
+ "cues": [
+ [
+ 0.104,
+ "When an exponent isn't written, it's one."
+ ],
+ [
+ 3.112,
+ "Negative two to the ninth, divided by negative two, is negative two to the ninth divided by negative two to the first."
+ ],
+ [
+ 12.096,
+ "Nine minus one: negative two to the eighth."
+ ]
+ ]
+ },
+ "neg": {
+ "dur": 18.312,
+ "marks": {
+ "ex": 1.849,
+ "sub": 5.286,
+ "why": 7.969,
+ "ans": 12.995
+ },
+ "cues": [
+ [
+ 0.104,
+ "The difference can be negative."
+ ],
+ [
+ 1.849,
+ "Six to the fifth divided by six to the seventh."
+ ],
+ [
+ 5.286,
+ "Five minus seven is negative two."
+ ],
+ [
+ 7.969,
+ "In the fraction, five sixes cancel, and two are left on the bottom."
+ ],
+ [
+ 12.995,
+ "So six to the negative two is one over six squared, one thirty-sixth."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 2.568,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.146,
+ "Divide the powers."
+ ]
+ ]
+ },
+ "chain": {
+ "dur": 25.824,
+ "marks": {
+ "ex": 5.052,
+ "step1": 9.87,
+ "step2": 14.141,
+ "ans": 17.201,
+ "quick": 19.714
+ },
+ "cues": [
+ [
+ 0.13,
+ "For a longer chain, work left to right, just like the order of operations."
+ ],
+ [
+ 5.052,
+ "Nine to the seventh, times nine cubed, divided by nine squared."
+ ],
+ [
+ 9.87,
+ "Multiply first: add seven and three to get ten."
+ ],
+ [
+ 14.141,
+ "Then divide: ten minus two is eight."
+ ],
+ [
+ 17.201,
+ "The result is nine to the eighth."
+ ],
+ [
+ 19.714,
+ "In one line: add the exponents you multiply by, subtract the ones you divide by."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 2.808,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.159,
+ "Who simplified correctly?"
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 15.216,
+ "marks": {
+ "w1": 3.203,
+ "w2": 6.211,
+ "w3": 9.245,
+ "end": 13.034
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up, for powers with the same base: to multiply, add the exponents."
+ ],
+ [
+ 6.211,
+ "To divide, subtract the exponents."
+ ],
+ [
+ 9.245,
+ "The base doesn't change, and different bases don't combine."
+ ],
+ [
+ 13.034,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 2.88,
+ "marks": {},
+ "cues": [
+ [
+ 0.117,
+ "Chapter practice."
+ ],
+ [
+ 1.562,
+ "Find the exponent."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 1.872,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, longer chains."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 3.432,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.133,
+ "Can it be combined into one power?"
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 6.072,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Nice work."
+ ],
+ [
+ 1.185,
+ "That's the end of chapter forty-nine, multiplying and dividing powers."
+ ]
+ ]
+ }
+};
diff --git a/site/ch49/audio/en/wrap.mp3 b/site/ch49/audio/en/wrap.mp3
new file mode 100644
index 0000000..9a678ff
Binary files /dev/null and b/site/ch49/audio/en/wrap.mp3 differ
diff --git a/site/ch49/index.html b/site/ch49/index.html
new file mode 100644
index 0000000..623fee2
--- /dev/null
+++ b/site/ch49/index.html
@@ -0,0 +1,198 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Multiplying and Dividing Powers</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 49, title: 'Multiplying and Dividing Powers', minutes: 8, next: '../ch50/' };
+const CA = COL.whole, CB = COL.nat, KEEP = COL.task;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+// n copies of the base as separate factor tokens, centred on x at height y. Returns the tokens (dots between them are separate).
+function factors(p, base, n, x, y, color, t0, { size = 56, gap = 84, step = .12 } = {}) {
+ const x0 = x - (n - 1) * gap / 2, out = [];
+ out.dots = [];
+ for (let i = 0; i < n; i++) {
+ const e = M(p, [base], { x: x0 + i * gap, y, size, fill: color, o: 0, s: .6 });
+ tw(e, { o: 1, s: 1 }, t0 + i * step, .35, back);
+ out.push(e);
+ if (i < n - 1) { const d = M(p, ['·'], { x: x0 + (i + .5) * gap, y, size: size * .8, fill: COL.dim, o: 0 }); show(d, t0 + i * step); out.dots.push(d); }
+ }
+ return out;
+}
+const dotsBetween = (p, xs, y, t0, size = 44) => xs.slice(1).forEach((x, i) => show(M(p, ['·'], { x: (xs[i] + x) / 2, y, size, fill: COL.dim, o: 0 }), t0));
+// Slash a factor token out.
+function slash(p, e, t0, color = COL.bad, run = tw) {
+ const { x, y } = st(e);
+ const l = path(p, `M${x - 22} ${y + 8}L${x + 22} ${y - 44}`, { stroke: color, 'stroke-width': 4 }, { d: 0 });
+ run(l, { d: 1 }, t0, .25);
+ run(e, { o: .35 }, t0 + .1, .3);
+}
+const pow = (b, e) => [b, E(e)];
+
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'Powers with the same base', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 9, Chapter 49', { x: 800, y: 300, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Multiplying and Dividing', { x: 800, y: 400, size: 80, weight: 600, anchor: 'middle' });
+ T(g, 'Powers', { x: 800, y: 490, size: 80, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = mline(scene, ['x', E('a'), ' · x', E('b'), ' = x', E('a + b')], 800, 630, m('sub'), COL.dim, 52);
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['mult', 'Multiplying: add', (m) => {
+ const p = panel(0);
+ mline(p, [...pow('5', 2), ' · ', ...pow('5', 4)], 800, 140, .2, COL.chalk, 64);
+ const a = factors(p, '5', 2, 380, 330, CA, m('expand'));
+ const b = factors(p, '5', 4, 1050, 330, CB, m('expand2'));
+ text(p, '2 fives', 380, 410, m('expand', .4), { size: 26, fill: CA, anchor: 'middle' });
+ text(p, '4 fives', 1050, 410, m('expand2', .4), { size: 26, fill: CB, anchor: 'middle' });
+ // All six join one row.
+ const all = [...a, ...b], xs = all.map((_, i) => 800 + (i - 2.5) * 100);
+ [...a.dots, ...b.dots].forEach(d => hide(d, m('join'), .3));
+ all.forEach((e, i) => tw(e, { x: xs[i], y: 540 }, m('join', i * .08), .8));
+ dotsBetween(p, xs, 540, m('join', 1));
+ all.forEach((e, i) => { tw(e, { s: 1.35 }, m('count', i * .3), .15); tw(e, { s: 1 }, m('count', i * .3 + .15), .25); show(T(p, String(i + 1), { x: xs[i], y: 610, size: 24, fill: KEEP, anchor: 'middle', weight: 700, o: 0 }), m('count', i * .3)); });
+ mline(p, [...pow('5', '2 + 4'), ' = ', ...pow('5', 6)], 800, 720, m('ans'), COL.good, 60);
+ const r = G(p, { o: 0 });
+ mk('rect', { x: 430, y: 770, width: 740, height: 86, rx: 16, fill: 'none', stroke: KEEP, 'stroke-width': 3 }, r);
+ M(r, ['x', E('a'), ' · x', E('b'), ' = x', E('a + b')], { x: 800, y: 828, size: 44, fill: KEEP });
+ show(r, m('rule'));
+ }],
+ ['same', 'Same base only', (m) => {
+ const p = panel(0);
+ mline(p, [...pow('3', 2), ' · ', ...pow('3', 9), ' = ', ...pow('3', 11)], 160, 190, m('ok'), COL.chalk, 52, 'start');
+ text(p, '✓ same base', 1000, 180, m('ok', .8), { size: 30, fill: COL.good, weight: 600 });
+ mline(p, [...pow('8', 5), ' · ', ...pow('7', 4)], 160, 330, m('no'), COL.chalk, 52, 'start');
+ text(p, '✗ different bases: leave it', 1000, 320, m('no', .8), { size: 30, fill: COL.bad, weight: 600 });
+ factors(p, '8', 5, 420, 430, CA, m('no', 1.4), { size: 36, gap: 50 });
+ factors(p, '7', 4, 830, 430, CB, m('no', 1.6), { size: 36, gap: 50 });
+ const rows = [[[...pow('3', 5), ' · ', ...pow('3', 7), ' = ', ...pow('3', 12)], '✓', COL.good], [[...pow('9', 12)], '✗ multiplied the bases', COL.bad], [[...pow('3', 35)], '✗ multiplied the exponents', COL.bad]];
+ rows.forEach(([parts, note, c], i) => {
+ const y = 580 + i * 90;
+ mline(p, parts, i ? 560 : 160, y, m('warn', i * 1.8), i ? c : COL.chalk, 48, 'start');
+ text(p, note, 1000, y - 10, m('warn', i * 1.8 + .5), { size: 28, fill: c, weight: 600 });
+ });
+ }],
+ ['q1', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 260, y: 260, w: 1080, cls: 'side' }, [{
+ id: 'c-mult', prompt: ['Write each as one power: find n.'],
+ build: blanks([
+ { parts: [...pow('7', 2), ' · ', ...pow('7', 8), ' = 7', E('n'), ', n = ', { box: '10' }], why: '2 + 8 = 10.', hint: 'Add the exponents.' },
+ { parts: [...pow('x', 4), ' · x = x', E('n'), ', n = ', { box: '5' }], why: 'x is x¹, so 4 + 1 = 5.', hint: 'A lone x has exponent 1.' },
+ ]),
+ }], done) }],
+ ['div', 'Dividing: subtract', (m) => {
+ const p = panel(0);
+ mline(p, [...pow('8', 7), ' ÷ ', ...pow('8', 3)], 800, 140, .2, COL.chalk, 64);
+ const top = factors(p, '8', 7, 800, 360, CA, m('frac'), { gap: 96 });
+ const bot = factors(p, '8', 3, 800, 520, CB, m('frac', .6), { gap: 96 });
+ show(path(p, 'M440 410H1160', { stroke: COL.chalk, 'stroke-width': 4 }, { o: 0 }), m('frac'));
+ const pairs = [[2, 0], [3, 1], [4, 2]];
+ pairs.forEach(([t, b], i) => { slash(p, top[t], m('cancel', i * .9)); slash(p, bot[b], m('cancel', i * .9 + .2)); });
+ text(p, '3 pairs cancel', 1260, 450, m('left'), { size: 28, fill: COL.bad, weight: 600 });
+ mline(p, [...pow('8', '7 − 3'), ' = ', ...pow('8', 4)], 800, 680, m('ans'), COL.good, 60);
+ const r = G(p, { o: 0 });
+ mk('rect', { x: 430, y: 740, width: 740, height: 86, rx: 16, fill: 'none', stroke: KEEP, 'stroke-width': 3 }, r);
+ M(r, ['x', E('a'), ' ÷ x', E('b'), ' = x', E('a − b')], { x: 800, y: 798, size: 44, fill: KEEP });
+ show(r, m('rule'));
+ }],
+ ['one', 'An unwritten exponent', (m) => {
+ const p = panel(0);
+ const row = tokens(p, [[...pow('(−2)', 9)], ' ÷ ', '(−2)'], { x: 800, y: 300, size: 64, anchor: 'middle', o: 0 });
+ row.forEach(e => show(e, m('ex')));
+ const one = M(p, ['1'], { x: row[2]._px + row[2]._w / 2 + 14, y: 300 - 30, size: 40, fill: KEEP, o: 0 });
+ tw(one, { o: 1 }, m('one'), .4); pulse(one, m('one', .5), 1.6);
+ text(p, 'no exponent written: exponent 1', 800, 400, m('one', .8), { size: 28, fill: KEEP, anchor: 'middle', weight: 600 });
+ mline(p, [...pow('(−2)', '9 − 1'), ' = ', ...pow('(−2)', 8)], 800, 560, m('ans'), COL.good, 60);
+ }],
+ ['neg', 'A negative result', (m) => {
+ const p = panel(0);
+ mline(p, [...pow('6', 5), ' ÷ ', ...pow('6', 7)], 800, 140, m('ex'), COL.chalk, 64);
+ mline(p, [...pow('6', '5 − 7'), ' = ', ...pow('6', '−2')], 800, 250, m('sub'), COL.chalk, 52);
+ const top = factors(p, '6', 5, 800, 420, CA, m('why'), { gap: 90, step: .05 });
+ const bot = factors(p, '6', 7, 800, 570, CB, m('why', .2), { gap: 90, step: .05 });
+ show(path(p, 'M490 470H1110', { stroke: COL.chalk, 'stroke-width': 4 }, { o: 0 }), m('why'));
+ top.forEach((e, i) => { slash(p, e, m('why', 1 + i * .3)); slash(p, bot[i + 1], m('why', 1.1 + i * .3)); });
+ mline(p, ['= ', F(1, '6²'), ' = ', F(1, 36)], 800, 740, m('ans'), COL.good, 60);
+ text(p, 'two 6s left on the bottom', 1150, 590, m('why', 2.8), { size: 26, fill: CB, weight: 600 });
+ }],
+ ['q2', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 260, y: 260, w: 1080, cls: 'side' }, [{
+ id: 'c-div', prompt: ['Write each as one power: find n.'],
+ build: blanks([
+ { parts: [...pow('9', 3), ' ÷ 9 = 9', E('n'), ', n = ', { box: '2' }], why: '3 − 1 = 2.', hint: '9 means 9¹.' },
+ { parts: [...pow('(−12)', 2), ' ÷ ', ...pow('(−12)', '−9'), ' = (−12)', E('n'), ', n = ', { box: '11' }], why: '2 − (−9) = 11.', hint: 'Subtracting −9 is adding 9.' },
+ ]),
+ }], done) }],
+ ['chain', 'Longer chains', (m) => {
+ const p = panel(0);
+ const L = (parts, note, y, t0, fill = COL.chalk) => eqLine(p, [], parts, y, t0, { xEq: 360, fill, note, noteX: 1080, size: 54 });
+ mline(p, [...pow('9', 7), ' · ', ...pow('9', 3), ' ÷ ', ...pow('9', 2)], 800, 160, m('ex'), COL.chalk, 60);
+ L([...pow('9', '7 + 3'), ' ÷ ', ...pow('9', 2)], 'multiply: add', 330, m('step1'));
+ L([...pow('9', 10), ' ÷ ', ...pow('9', 2)], '', 440, m('step1', 1.5));
+ L([...pow('9', '10 − 2')], 'divide: subtract', 550, m('step2'));
+ L([...pow('9', 8)], '', 660, m('ans'), COL.good);
+ mline(p, ['7 + 3 − 2 = 8'], 800, 800, m('quick'), KEEP, 44);
+ }],
+ ['q3', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 260, y: 220, w: 1080, cls: 'side' }, [{
+ id: 'c-who', prompt: ['Four students simplified ', $m(...pow('3', 5), ' · ', ...pow('3', 7)), '. Who is correct?'],
+ build: choice([['Ahmed: ', $m(...pow('6', 12))], ['Brian: ', $m(...pow('9', 12))], ['Celia: ', $m(...pow('3', 12))], ['Dee: ', $m(...pow('3', 35))]], 2, 'Same base, so keep the 3 and add 5 + 7.',
+ ['The base stays 3; it is not 3 + 3.', 'The base stays 3; it is not 3 · 3.', null, 'Multiplying powers adds the exponents; it doesn’t multiply them.']),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['Multiply powers with the same base: add the exponents.', 'w1', CA], ['Divide powers with the same base: subtract the exponents.', 'w2', CB],
+ ['The base stays the same; different bases don’t combine.', 'w3', KEEP]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 260 + i * 140, o: 0 });
+ mk('circle', { cx: 170, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 170, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 230, size: 32, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-exp', prompt: ['Write each as one power: find n.'], build: blanks([
+ { parts: [...pow('4', 6), ' · ', ...pow('4', 3), ' = 4', E('n'), ', n = ', { box: '9' }], why: '6 + 3 = 9.', hint: 'Add.' },
+ { parts: [...pow('a', 10), ' ÷ ', ...pow('a', 4), ' = a', E('n'), ', n = ', { box: '6' }], why: '10 − 4 = 6.', hint: 'Subtract.' },
+ { parts: [...pow('(−5)', 3), ' · (−5) = (−5)', E('n'), ', n = ', { box: '4' }], why: '3 + 1 = 4.', hint: '(−5) is (−5)¹.' },
+ { parts: [...pow('2', 3), ' ÷ ', ...pow('2', 8), ' = 2', E('n'), ', n = ', { box: '-5' }], why: '3 − 8 = −5.', hint: 'The result can be negative.' },
+ { parts: [...pow('y', '−2'), ' · ', ...pow('y', 6), ' = y', E('n'), ', n = ', { box: '4' }], why: '−2 + 6 = 4.', hint: 'Add −2 and 6.' },
+ ]),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-chain', prompt: ['Simplify each chain: find n.'], build: blanks([
+ { parts: [...pow('3', 8), ' · ', ...pow('3', 6), ' ÷ ', ...pow('3', 9), ' = 3', E('n'), ', n = ', { box: '5' }], why: '8 + 6 − 9 = 5.', hint: 'Add, then subtract.' },
+ { parts: [...pow('(−5)', 7), ' ÷ ', ...pow('(−5)', 6), ' · ', ...pow('(−5)', 3), ' = (−5)', E('n'), ', n = ', { box: '4' }], why: '7 − 6 + 3 = 4.', hint: 'Left to right: subtract, then add.' },
+ { parts: [...pow('6', 12), ' ÷ ', ...pow('6', 9), ' ÷ ', ...pow('6', 5), ' = 6', E('n'), ', n = ', { box: '-2' }], why: '12 − 9 − 5 = −2.', hint: 'Subtract both.' },
+ ]),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-can', prompt: ['Can the expression be written as a single power?'],
+ build: grid(CANQ, [['y', 'Yes', COL.good, 'Y'], ['n', 'No', COL.bad, 'N']], { multi: false, text: true }),
+ }], done, 'Chapter practice 3 of 3') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const CANQ = [
+ { parts: [$m(...pow('3', 2), ' · ', ...pow('3', 9))], ans: ['y'], why: 'Same base: 3¹¹.' },
+ { parts: [$m(...pow('8', 5), ' · ', ...pow('7', 4))], ans: ['n'], why: 'Different bases.' },
+ { parts: [$m(...pow('4', 5), ' ÷ ', ...pow('3', 5))], ans: ['n'], why: 'The exponents match, but the bases differ.' },
+ { parts: [$m(...pow('x', 3), ' · ', ...pow('x', 3))], ans: ['y'], why: 'x⁶.' },
+ { parts: [$m(...pow('x', 4), ' · ', ...pow('y', 4))], ans: ['n'], why: 'x and y are different bases.' },
+ { parts: [$m(...pow('10', 9), ' ÷ ', ...pow('10', 9))], ans: ['y'], why: '10⁰, which is 1.' },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch50/audio/en/combo.mp3 b/site/ch50/audio/en/combo.mp3
new file mode 100644
index 0000000..7bdb323
Binary files /dev/null and b/site/ch50/audio/en/combo.mp3 differ
diff --git a/site/ch50/audio/en/div.mp3 b/site/ch50/audio/en/div.mp3
new file mode 100644
index 0000000..a5d5fb6
Binary files /dev/null and b/site/ch50/audio/en/div.mp3 differ
diff --git a/site/ch50/audio/en/final1.mp3 b/site/ch50/audio/en/final1.mp3
new file mode 100644
index 0000000..76311d6
Binary files /dev/null and b/site/ch50/audio/en/final1.mp3 differ
diff --git a/site/ch50/audio/en/final2.mp3 b/site/ch50/audio/en/final2.mp3
new file mode 100644
index 0000000..8c03aea
Binary files /dev/null and b/site/ch50/audio/en/final2.mp3 differ
diff --git a/site/ch50/audio/en/final3.mp3 b/site/ch50/audio/en/final3.mp3
new file mode 100644
index 0000000..61fae07
Binary files /dev/null and b/site/ch50/audio/en/final3.mp3 differ
diff --git a/site/ch50/audio/en/finish.mp3 b/site/ch50/audio/en/finish.mp3
new file mode 100644
index 0000000..b603a4d
Binary files /dev/null and b/site/ch50/audio/en/finish.mp3 differ
diff --git a/site/ch50/audio/en/intro.mp3 b/site/ch50/audio/en/intro.mp3
new file mode 100644
index 0000000..726e7eb
Binary files /dev/null and b/site/ch50/audio/en/intro.mp3 differ
diff --git a/site/ch50/audio/en/mult.mp3 b/site/ch50/audio/en/mult.mp3
new file mode 100644
index 0000000..935c7ae
Binary files /dev/null and b/site/ch50/audio/en/mult.mp3 differ
diff --git a/site/ch50/audio/en/negdiv.mp3 b/site/ch50/audio/en/negdiv.mp3
new file mode 100644
index 0000000..98773fc
Binary files /dev/null and b/site/ch50/audio/en/negdiv.mp3 differ
diff --git a/site/ch50/audio/en/parts.mp3 b/site/ch50/audio/en/parts.mp3
new file mode 100644
index 0000000..5c7afb1
Binary files /dev/null and b/site/ch50/audio/en/parts.mp3 differ
diff --git a/site/ch50/audio/en/power.mp3 b/site/ch50/audio/en/power.mp3
new file mode 100644
index 0000000..32072d5
Binary files /dev/null and b/site/ch50/audio/en/power.mp3 differ
diff --git a/site/ch50/audio/en/powmono.mp3 b/site/ch50/audio/en/powmono.mp3
new file mode 100644
index 0000000..da77d1f
Binary files /dev/null and b/site/ch50/audio/en/powmono.mp3 differ
diff --git a/site/ch50/audio/en/q1.mp3 b/site/ch50/audio/en/q1.mp3
new file mode 100644
index 0000000..ca30c58
Binary files /dev/null and b/site/ch50/audio/en/q1.mp3 differ
diff --git a/site/ch50/audio/en/q2.mp3 b/site/ch50/audio/en/q2.mp3
new file mode 100644
index 0000000..d096794
Binary files /dev/null and b/site/ch50/audio/en/q2.mp3 differ
diff --git a/site/ch50/audio/en/q3.mp3 b/site/ch50/audio/en/q3.mp3
new file mode 100644
index 0000000..796e85b
Binary files /dev/null and b/site/ch50/audio/en/q3.mp3 differ
diff --git a/site/ch50/audio/en/timings.js b/site/ch50/audio/en/timings.js
new file mode 100644
index 0000000..aa1e145
--- /dev/null
+++ b/site/ch50/audio/en/timings.js
@@ -0,0 +1,383 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 7.536,
+ "marks": {
+ "sub": 1.354
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter fifty."
+ ],
+ [
+ 1.354,
+ "Multiplying and dividing monomials uses the power rules you just learned, one base at a time."
+ ]
+ ]
+ },
+ "parts": {
+ "dur": 14.304,
+ "marks": {
+ "ex": 4.206,
+ "expand": 5.221,
+ "coef": 9.193,
+ "bases": 11.914
+ },
+ "cues": [
+ [
+ 0.078,
+ "A monomial is a number times some powers of variables."
+ ],
+ [
+ 4.206,
+ "Three x squared y means three, times x times x, times y."
+ ],
+ [
+ 9.193,
+ "The number in front is the coefficient."
+ ],
+ [
+ 11.914,
+ "Each variable is its own base."
+ ]
+ ]
+ },
+ "mult": {
+ "dur": 29.232,
+ "marks": {
+ "sort": 6.341,
+ "lanes": 10.729,
+ "nums": 14.675,
+ "xs": 18.607,
+ "ys": 23.49,
+ "ans": 25.99
+ },
+ "cues": [
+ [
+ 0.091,
+ "Multiply four x cubed y by five x squared y to the fourth."
+ ],
+ [
+ 6.341,
+ "Since you can multiply in any order, sort the factors by kind: numbers together, x's together, y's together."
+ ],
+ [
+ 14.675,
+ "Multiply the numbers: four times five is twenty."
+ ],
+ [
+ 18.607,
+ "For x, add the exponents: three plus two is five."
+ ],
+ [
+ 23.49,
+ "For y, one plus four is five."
+ ],
+ [
+ 25.99,
+ "The product is twenty x to the fifth y to the fifth."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 3.072,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.107,
+ "Multiply the monomials."
+ ]
+ ]
+ },
+ "div": {
+ "dur": 25.224,
+ "marks": {
+ "ex": 1.927,
+ "frac": 8.112,
+ "nums": 11.289,
+ "xs": 14.232,
+ "ys": 18.021,
+ "ans": 21.263
+ },
+ "cues": [
+ [
+ 0.117,
+ "Dividing works the same way."
+ ],
+ [
+ 1.927,
+ "Twenty-one x to the sixth y to the tenth, divided by seven x to the fourth y cubed."
+ ],
+ [
+ 8.112,
+ "Write it as a fraction, and split it by kind."
+ ],
+ [
+ 11.289,
+ "Twenty-one divided by seven is three."
+ ],
+ [
+ 14.232,
+ "For x, subtract: six minus four is two."
+ ],
+ [
+ 18.021,
+ "For y, ten minus three is seven."
+ ],
+ [
+ 21.263,
+ "The quotient is three x squared y to the seventh."
+ ]
+ ]
+ },
+ "negdiv": {
+ "dur": 23.88,
+ "marks": {
+ "ex": 3.151,
+ "nums": 6.953,
+ "xs": 9.297,
+ "pos": 13.021,
+ "ans": 19.818
+ },
+ "cues": [
+ [
+ 0.117,
+ "Sometimes the bottom has the bigger exponent."
+ ],
+ [
+ 3.151,
+ "Three a to the fifth divided by ten a to the ninth."
+ ],
+ [
+ 6.953,
+ "Three tenths can't be simplified."
+ ],
+ [
+ 9.297,
+ "For a, five minus nine is negative four."
+ ],
+ [
+ 13.021,
+ "To write it with a positive exponent, a to the negative four moves to the bottom as a to the fourth."
+ ],
+ [
+ 19.818,
+ "So the result is three over ten a to the fourth."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 2.928,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.159,
+ "Divide the monomials."
+ ]
+ ]
+ },
+ "power": {
+ "dur": 20.856,
+ "marks": {
+ "ex": 2.292,
+ "copies": 4.232,
+ "expand": 7.669,
+ "ans": 13.242,
+ "rule": 16.562
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now a power raised to a power."
+ ],
+ [
+ 2.292,
+ "x cubed, squared, means two copies of x cubed multiplied together."
+ ],
+ [
+ 7.669,
+ "Each copy is three x's, so there are two times three, six x's."
+ ],
+ [
+ 13.242,
+ "x cubed, squared, is x to the sixth."
+ ],
+ [
+ 16.562,
+ "To raise a power to a power, multiply the exponents."
+ ]
+ ]
+ },
+ "powmono": {
+ "dur": 36.216,
+ "marks": {
+ "ex": 6.094,
+ "arrows": 10.039,
+ "each": 16.393,
+ "ans": 25.521,
+ "warn": 29.661
+ },
+ "cues": [
+ [
+ 0.104,
+ "When a whole monomial is raised to a power, the power goes to every factor inside."
+ ],
+ [
+ 6.094,
+ "Three a to the seventh b to the fourth, all squared."
+ ],
+ [
+ 10.039,
+ "The outside two reaches the three, the a to the seventh, and the b to the fourth."
+ ],
+ [
+ 16.393,
+ "Three squared is nine, a to the seven times two is a to the fourteenth, and b to the four times two is b to the eighth."
+ ],
+ [
+ 25.521,
+ "The result is nine a to the fourteenth b to the eighth."
+ ],
+ [
+ 29.661,
+ "A common slip is to forget the coefficient and write three a to the fourteenth b to the eighth."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 2.208,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Who is correct?"
+ ]
+ ]
+ },
+ "combo": {
+ "dur": 29.16,
+ "marks": {
+ "ex": 1.484,
+ "pow": 7.253,
+ "mult": 16.745,
+ "ans": 25.599
+ },
+ "cues": [
+ [
+ 0.104,
+ "Put it all together."
+ ],
+ [
+ 1.484,
+ "Five a cubed b to the fourth, squared, times two a to the fifth b, cubed."
+ ],
+ [
+ 7.253,
+ "First, raise each monomial to its power: twenty-five a to the sixth b to the eighth, and eight a to the fifteenth b cubed."
+ ],
+ [
+ 16.745,
+ "Then multiply: twenty-five times eight is two hundred, a to the six plus fifteen, and b to the eight plus three."
+ ],
+ [
+ 25.599,
+ "Two hundred a to the twenty-first b to the eleventh."
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 23.544,
+ "marks": {
+ "w1": 1.003,
+ "w2": 7.773,
+ "w3": 12.8,
+ "end": 21.367
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.003,
+ "To multiply monomials, multiply the coefficients and add the exponents of each base."
+ ],
+ [
+ 7.773,
+ "To divide, divide the coefficients and subtract the exponents."
+ ],
+ [
+ 12.8,
+ "To raise a power to a power, multiply the exponents, and apply the power to every factor, coefficient included."
+ ],
+ [
+ 21.367,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 3.168,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.51,
+ "Multiply and divide."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 2.568,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Next, powers of monomials."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 2.616,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.159,
+ "True or false?"
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 5.976,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Well done."
+ ],
+ [
+ 1.068,
+ "That's the end of chapter fifty, multiplying and dividing monomials."
+ ]
+ ]
+ }
+};
diff --git a/site/ch50/audio/en/wrap.mp3 b/site/ch50/audio/en/wrap.mp3
new file mode 100644
index 0000000..14ec7e9
Binary files /dev/null and b/site/ch50/audio/en/wrap.mp3 differ
diff --git a/site/ch50/index.html b/site/ch50/index.html
new file mode 100644
index 0000000..c7abcea
--- /dev/null
+++ b/site/ch50/index.html
@@ -0,0 +1,217 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Multiplying and Dividing Monomials</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 50, title: 'Multiplying and Dividing Monomials', minutes: 9, next: '../ch51/' };
+const LANE = [COL.int, COL.whole, COL.nat], LX = [420, 800, 1180], KEEP = COL.task;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+// A row of math items laid out as tokens; returns { row, items } so pieces can be copied out later.
+function mrow(p, items, x, y, t0, size = 64) {
+ const row = tokens(p, items, { x, y, size, anchor: 'middle', o: 0 });
+ row.forEach(e => show(e, t0));
+ return { row, items, y, size };
+}
+// Copy item k of a row and fly the copy to (x, y), recoloured; the original dims.
+function fly(p, R, k, x, y, t0, color, size = 56) {
+ const c = M(p, [].concat(R.items[k]), { x: R.row[k]._px, y: R.y, size: R.size, fill: color, o: 0 });
+ show(c, t0, .1);
+ tw(c, { x, y, s: size / R.size }, t0, .8);
+ tw(R.row[k], { o: .3 }, t0, .4);
+ return c;
+}
+const laneHeads = (p, names, t0, y = 300) => names.forEach((n, i) => text(p, n, LX[i], y, t0 + i * .15, { size: 26, fill: LANE[i], anchor: 'middle', weight: 600 }));
+const laneBox = (p, t0, y = 330, h = 380) => LX.forEach((x, i) => { const r = put(mk('rect', { x: x - 160, y, width: 320, height: h, rx: 18, fill: mix(COL.board, LANE[i], .08), stroke: mix(COL.board, LANE[i], .5), 'stroke-width': 2 }, p), { o: 0 }); p.insertBefore(r, p.firstChild); show(r, t0); });
+function resultBox(p, parts, x, y, t0, w = 520) {
+ const g = G(p, { o: 0, s: .7, x, y });
+ mk('rect', { x: -w / 2, y: -56, width: w, height: 84, rx: 18, fill: 'none', stroke: COL.good, 'stroke-width': 3 }, g);
+ M(g, parts, { y: 4, size: 56, fill: COL.good });
+ tw(g, { o: 1, s: 1 }, t0, .5, back);
+ return g;
+}
+const pw = (b, e) => [b, E(e)];
+
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'Monomials', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 9, Chapter 50', { x: 800, y: 300, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Multiplying and Dividing', { x: 800, y: 400, size: 80, weight: 600, anchor: 'middle' });
+ T(g, 'Monomials', { x: 800, y: 490, size: 80, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = mline(scene, ['(4x', E(3), 'y)(5x', E(2), 'y', E(4), ') = 20x', E(5), 'y', E(5)], 800, 630, m('sub'), COL.dim, 50);
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['parts', 'Inside a monomial', (m) => {
+ const p = panel(0);
+ const R = mrow(p, ['3', ['x', E(2)], 'y'], 800, 260, m('ex'), 96);
+ const ex = tokens(p, [{ t: '3', fill: LANE[0] }, ' · ', { t: 'x', fill: LANE[1] }, ' · ', { t: 'x', fill: LANE[1] }, ' · ', { t: 'y', fill: LANE[2] }], { x: 800, y: 450, size: 80, anchor: 'middle', o: 0 });
+ ex.forEach((e, i) => show(e, m('expand', i * .15)));
+ show(M(p, ['3'], { x: R.row[0]._px, y: 260, size: 96, fill: LANE[0], o: 0 }), m('coef'), .3);
+ text(p, 'coefficient', ex[0]._px, 560, m('coef'), { size: 30, fill: LANE[0], anchor: 'end', weight: 600 });
+ draw(path(p, `M${ex[0]._px - 70} 530L${ex[0]._px - 10} 480`, { stroke: LANE[0], 'stroke-width': 3 }, { d: 0 }), m('coef'), .3);
+ text(p, 'base x', ex[3]._px, 560, m('bases'), { size: 30, fill: LANE[1], anchor: 'middle', weight: 600 });
+ text(p, 'base y', ex[6]._px + 50, 560, m('bases', .4), { size: 30, fill: LANE[2], anchor: 'start', weight: 600 });
+ }],
+ ['mult', 'Multiplying', (m) => {
+ const p = panel(0);
+ const R = mrow(p, ['(', '4', pw('x', 3), 'y', ')(', '5', pw('x', 2), pw('y', 4), ')'], 800, 170, .2);
+ laneBox(p, m('lanes'));
+ laneHeads(p, ['numbers', 'x', 'y'], m('lanes'));
+ [[1, 0, 0], [2, 1, 0], [3, 2, 0], [5, 0, 1], [6, 1, 1], [7, 2, 1]].forEach(([k, lane, r], i) => {
+ fly(p, R, k, LX[lane], 410 + r * 100, m('sort', 1 + i * .45), LANE[lane]);
+ if (r) show(M(p, ['·'], { x: LX[lane], y: 455, size: 44, fill: COL.dim, o: 0 }), m('sort', 1 + i * .45));
+ });
+ mline(p, '4 · 5 = 20', LX[0], 640, m('nums'), LANE[0], 46);
+ mline(p, [...pw('x', '3 + 2'), ' = ', ...pw('x', 5)], LX[1], 640, m('xs'), LANE[1], 46);
+ mline(p, [...pw('y', '1 + 4'), ' = ', ...pw('y', 5)], LX[2], 640, m('ys'), LANE[2], 46);
+ text(p, 'y means y¹', LX[2], 690, m('ys', .6), { size: 22, fill: COL.dim, anchor: 'middle' });
+ resultBox(p, ['20x', E(5), 'y', E(5)], 800, 800, m('ans'));
+ }],
+ ['q1', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 240, w: 1160, cls: 'side' }, [{
+ id: 'c-mult', prompt: ['Multiply ', $m('3a', E(4), 'b', E(2), 'c', E(6), ' · (−2a', E(5), 'b)'), '.'],
+ build: blanks([{ parts: [{ box: '-6' }, 'a', E('p'), 'b', E('q'), 'c', E('r'), ': p = ', { box: '9' }, ', q = ', { box: '3' }, ', r = ', { box: '6' }],
+ why: '3 · (−2) = −6; a: 4 + 5 = 9; b: 2 + 1 = 3; c stays 6.', hint: 'Multiply the numbers (watch the sign). Add exponents base by base; b alone is b¹, and c appears only once.' }]),
+ }], done) }],
+ ['div', 'Dividing', (m) => {
+ const p = panel(0);
+ mline(p, ['21x', E(6), 'y', E(10), ' ÷ 7x', E(4), 'y', E(3)], 800, 130, m('ex'), COL.chalk, 52);
+ const N = mrow(p, ['21', pw('x', 6), pw('y', 10)], 800, 250, m('frac'), 56), D = mrow(p, ['7', pw('x', 4), pw('y', 3)], 800, 340, m('frac'), 56);
+ show(path(p, 'M640 275H960', { stroke: COL.chalk, 'stroke-width': 3.5 }, { o: 0 }), m('frac'));
+ laneBox(p, m('frac', 1.2), 380, 330);
+ [0, 1, 2].forEach(i => {
+ fly(p, N, i, LX[i], 480, m('frac', 1.4 + i * .3), LANE[i], 52);
+ fly(p, D, i, LX[i], 570, m('frac', 1.5 + i * .3), LANE[i], 52);
+ show(path(p, `M${LX[i] - 70} 505H${LX[i] + 70}`, { stroke: LANE[i], 'stroke-width': 3 }, { o: 0 }), m('frac', 1.6 + i * .3));
+ });
+ mline(p, '21 ÷ 7 = 3', LX[0], 670, m('nums'), LANE[0], 44);
+ mline(p, [...pw('x', '6 − 4'), ' = ', ...pw('x', 2)], LX[1], 670, m('xs'), LANE[1], 44);
+ mline(p, [...pw('y', '10 − 3'), ' = ', ...pw('y', 7)], LX[2], 670, m('ys'), LANE[2], 44);
+ resultBox(p, ['3x', E(2), 'y', E(7)], 800, 800, m('ans'));
+ }],
+ ['negdiv', 'A negative exponent', (m) => {
+ const p = panel(0);
+ mline(p, ['3a', E(5), ' ÷ 10a', E(9)], 800, 130, m('ex'), COL.chalk, 56);
+ mline(p, F(3, 10), 560, 330, m('nums'), LANE[0], 64);
+ text(p, 'already in lowest terms', 560, 420, m('nums', .5), { size: 24, fill: COL.dim, anchor: 'middle' });
+ const am = mline(p, [...pw('a', '5 − 9'), ' = ', ...pw('a', '−4')], 1000, 330, m('xs'), LANE[1], 60);
+ const g = G(p, { o: 0 });
+ M(g, ['3'], { x: 800, y: 600, size: 72, fill: COL.good });
+ path(g, 'M650 625H950', { stroke: COL.good, 'stroke-width': 4 });
+ M(g, ['10'], { x: 775, y: 710, size: 72, fill: COL.good });
+ show(g, m('pos'));
+ const mv = M(p, pw('a', '−4'), { x: 1100, y: 330, size: 60, fill: LANE[1], o: 0 });
+ show(mv, m('pos', .2), .1);
+ tw(mv, { x: 850, y: 710, s: 1.2 }, m('pos', .4), 1.2);
+ hide(mv, m('pos', 1.6), .2);
+ show(M(p, pw('a', '4'), { x: 850, y: 710, size: 72, fill: COL.good, o: 0 }), m('pos', 1.6));
+ text(p, 'negative exponent on top = positive exponent on the bottom', 800, 820, m('pos', 2.2), { size: 26, fill: KEEP, anchor: 'middle', weight: 600 });
+ tw(am, { o: .5 }, m('ans'), .4);
+ }],
+ ['q2', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 240, w: 1160, cls: 'side' }, [{
+ id: 'c-div', prompt: ['Divide ', $m('12x', E(5), 'y', E(2), ' ÷ (−4x', E(2), 'y', E(5), ')'), '. Exponents may be negative.'],
+ build: blanks([{ parts: [{ box: '-3' }, 'x', E('m'), 'y', E('n'), ': m = ', { box: '3' }, ', n = ', { box: '-3' }],
+ why: '12 ÷ (−4) = −3; x: 5 − 2 = 3; y: 2 − 5 = −3. With positive exponents: −3x³ / y³.', hint: 'Divide the numbers, then subtract the exponents for x and for y.' }]),
+ }], done) }],
+ ['power', 'A power of a power', (m) => {
+ const p = panel(0);
+ mline(p, ['(x', E(3), ')', E(2)], 800, 170, m('ex'), COL.chalk, 80);
+ const cp = tokens(p, [{ t: ['x', E(3)], fill: LANE[1] }, ' · ', { t: ['x', E(3)], fill: LANE[2] }], { x: 800, y: 330, size: 72, anchor: 'middle', o: 0 });
+ cp.forEach(e => show(e, m('copies')));
+ text(p, 'two copies', 800, 400, m('copies', .5), { size: 26, fill: COL.dim, anchor: 'middle' });
+ const ex = tokens(p, ['x', ' · ', 'x', ' · ', 'x', ' ', 'x', ' · ', 'x', ' · ', 'x'].map((t, i) => ({ t, fill: i < 5 ? LANE[1] : i > 5 ? LANE[2] : COL.chalk })), { x: 800, y: 520, size: 64, anchor: 'middle', o: 0 });
+ ex.forEach((e, i) => show(e, m('expand', i * .08)));
+ [0, 2, 4, 6, 8, 10].forEach((k, i) => show(T(p, String(i + 1), { x: ex[k]._px, y: 580, size: 24, fill: KEEP, anchor: 'middle', weight: 700, o: 0 }), m('expand', 1.5 + i * .25)));
+ mline(p, ['(x', E(3), ')', E(2), ' = x', E('3 · 2'), ' = x', E(6)], 800, 700, m('ans'), COL.good, 60);
+ const r = G(p, { o: 0 });
+ mk('rect', { x: 500, y: 760, width: 600, height: 86, rx: 16, fill: 'none', stroke: KEEP, 'stroke-width': 3 }, r);
+ M(r, ['(x', E('a'), ')', E('b'), ' = x', E('ab')], { x: 800, y: 818, size: 44, fill: KEEP });
+ show(r, m('rule'));
+ }],
+ ['powmono', 'Power of a monomial', (m) => {
+ const p = panel(0);
+ const R = mrow(p, ['(', '3', pw('a', 7), pw('b', 4), ')', E(2)], 800, 270, m('ex'), 84);
+ const src = R.row[5], sx = src._px + 6, sy = 196;
+ [1, 2, 3].forEach((k, i) => {
+ const tx = R.row[k]._px, l = path(p, `M${sx} ${sy}Q${(sx + tx) / 2} ${70 + i * 20} ${tx} ${sy - 4}`, { stroke: KEEP, 'stroke-width': 3.5 }, { d: 0 });
+ draw(l, m('arrows', i * .7), .5);
+ });
+ [[['3', E(2)], ' = 9', LANE[0]], [['a', E('7 · 2')], ['= a', E(14)], LANE[1]], [['b', E('4 · 2')], ['= b', E(8)], LANE[2]]].forEach(([a, b, c], i) => {
+ mline(p, a, LX[i], 430, m('each', i * 3), c, 52);
+ mline(p, [].concat(b), LX[i], 510, m('each', i * 3 + 1.2), c, 52);
+ });
+ resultBox(p, ['9a', E(14), 'b', E(8)], 800, 650, m('ans'));
+ mline(p, ['3a', E(14), 'b', E(8)], 800, 800, m('warn'), COL.bad, 52);
+ draw(path(p, 'M680 790H920', { stroke: COL.bad, 'stroke-width': 4 }, { d: 0 }), m('warn', 1.5), .4);
+ text(p, 'forgot to square the 3', 1000, 790, m('warn', 1.8), { size: 26, fill: COL.bad, weight: 600 });
+ }],
+ ['q3', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 240, w: 1160, cls: 'side' }, [{
+ id: 'c-who', prompt: ['Simplify ', $m('(5a', E(2), ')', E(3)), '.'],
+ build: choice([[$m('125a', E(8))], [$m('125a', E(6))], [$m('5a', E(6))], [$m('15a', E(6))]], 1, '5³ = 125 and (a²)³ = a⁶.',
+ ['(a²)³ multiplies the exponents: 2 · 3 = 6, not 2³.', null, 'The power reaches the 5 too: 5³ = 125.', '5³ is 5 · 5 · 5 = 125, not 5 · 3.']),
+ }], done) }],
+ ['combo', 'Putting it together', (m) => {
+ const p = panel(0), X = 300;
+ mline(p, ['(5a', E(3), 'b', E(4), ')', E(2), ' · (2a', E(5), 'b)', E(3)], 800, 150, m('ex'), COL.chalk, 56);
+ eqLine(p, [], ['25a', E(6), 'b', E(8), ' · 8a', E(15), 'b', E(3)], 300, m('pow'), { xEq: X, note: 'powers first', noteX: 1100 });
+ eqLine(p, [], ['25 · 8 · a', E('6 + 15'), ' · b', E('8 + 3')], 430, m('mult'), { xEq: X, note: 'then multiply', noteX: 1100 });
+ eqLine(p, [], ['200a', E(21), 'b', E(11)], 560, m('ans'), { xEq: X, fill: COL.good });
+ }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['Multiply: multiply coefficients, add exponents base by base.', 'w1', LANE[1]], ['Divide: divide coefficients, subtract exponents.', 'w2', LANE[2]],
+ ['Power of a power: multiply exponents; the power reaches every factor.', 'w3', KEEP]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 260 + i * 140, o: 0 });
+ mk('circle', { cx: 150, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 150, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 210, size: 32, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-md', prompt: ['Simplify. Exponents may be negative.'], build: blanks([
+ { parts: ['x', E(4), 'y', E(7), ' · x', E(3), 'y', E(5), ' = x', E('m'), 'y', E('n'), ': m = ', { box: '7' }, ', n = ', { box: '12' }], why: '4 + 3 = 7; 7 + 5 = 12.', hint: 'Add the exponents base by base.' },
+ { parts: ['2m', E(3), ' · 6m', E(2), ' = ', { box: '12' }, 'm', E('n'), ': n = ', { box: '5' }], why: '2 · 6 = 12; 3 + 2 = 5.', hint: 'Multiply 2 and 6, add 3 and 2.' },
+ { parts: ['18a', E(7), ' ÷ 6a', E(2), ' = ', { box: '3' }, 'a', E('n'), ': n = ', { box: '5' }], why: '18 ÷ 6 = 3; 7 − 2 = 5.', hint: 'Divide 18 by 6, subtract 2 from 7.' },
+ { parts: ['12x', E(5), 'y', E('−8'), ' ÷ (−15x', E(9), 'y', E(3), ') = ', { box: '-4/5' }, 'x', E('m'), 'y', E('n'), ': m = ', { box: '-4' }, ', n = ', { box: '-11' }], why: '12 ÷ (−15) = −4/5; 5 − 9 = −4; −8 − 3 = −11.', hint: 'Reduce 12/15; subtract the exponents.' },
+ ]),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-pow', prompt: ['Simplify each power. Exponents may be negative.'], build: blanks([
+ { parts: ['(3x', E(3), ')', E(2), ' = ', { box: '9' }, 'x', E('n'), ': n = ', { box: '6' }], why: '3² = 9; 3 · 2 = 6.', hint: 'Square the 3 as well.' },
+ { parts: ['(−2y', E(4), ')', E(3), ' = ', { box: '-8' }, 'y', E('n'), ': n = ', { box: '12' }], why: '(−2)³ = −8; 4 · 3 = 12.', hint: 'An odd power of a negative is negative.' },
+ { parts: ['(a', E(2), 'b', E(5), ')', E(4), ' = a', E('m'), 'b', E('n'), ': m = ', { box: '8' }, ', n = ', { box: '20' }], why: '2 · 4 = 8; 5 · 4 = 20.', hint: 'Multiply each exponent by 4.' },
+ { parts: ['(8m', E('−3'), 'n', E('−4'), ')', E(2), ' ÷ (4m', E('−5'), 'n', E(2), ')', E(3), ' = m', E('p'), 'n', E('q'), ': p = ', { box: '9' }, ', q = ', { box: '-14' }], why: '64m⁻⁶n⁻⁸ ÷ 64m⁻¹⁵n⁶: p = −6 − (−15) = 9, q = −8 − 6 = −14.', hint: 'Do both powers first: 64m⁻⁶n⁻⁸ and 64m⁻¹⁵n⁶.' },
+ ]),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-tf', prompt: ['True or false?'], build: grid(TFQ, TF, { multi: false, text: true }),
+ }], done, 'Chapter practice 3 of 3') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const TFQ = [
+ { parts: [$m('(x', E(2), ')', E(3), ' = x', E(5))], ans: ['f'], why: 'Multiply the exponents: x⁶.' },
+ { parts: [$m('(2x)', E(3), ' = 2x', E(3))], ans: ['f'], why: 'The 2 is cubed too: 8x³.' },
+ { parts: [$m('x', E(2), ' · x', E(3), ' = x', E(5))], ans: ['t'], why: 'Add the exponents.' },
+ { parts: [$m('(ab)', E(2), ' = a', E(2), 'b', E(2))], ans: ['t'], why: 'The power reaches every factor.' },
+ { parts: [$m('6x', E(4), ' ÷ 2x = 3x', E(3))], ans: ['t'], why: '6 ÷ 2 = 3; 4 − 1 = 3.' },
+ { parts: [$m('4a', E(2), ' · 3a', E(2), ' = 7a', E(4))], ans: ['f'], why: 'Multiply the coefficients: 12a⁴.' },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch51/audio/en/big.mp3 b/site/ch51/audio/en/big.mp3
new file mode 100644
index 0000000..0ceee51
Binary files /dev/null and b/site/ch51/audio/en/big.mp3 differ
diff --git a/site/ch51/audio/en/binom.mp3 b/site/ch51/audio/en/binom.mp3
new file mode 100644
index 0000000..0a8db48
Binary files /dev/null and b/site/ch51/audio/en/binom.mp3 differ
diff --git a/site/ch51/audio/en/div.mp3 b/site/ch51/audio/en/div.mp3
new file mode 100644
index 0000000..176d770
Binary files /dev/null and b/site/ch51/audio/en/div.mp3 differ
diff --git a/site/ch51/audio/en/final1.mp3 b/site/ch51/audio/en/final1.mp3
new file mode 100644
index 0000000..f869c4f
Binary files /dev/null and b/site/ch51/audio/en/final1.mp3 differ
diff --git a/site/ch51/audio/en/final2.mp3 b/site/ch51/audio/en/final2.mp3
new file mode 100644
index 0000000..c8d70b2
Binary files /dev/null and b/site/ch51/audio/en/final2.mp3 differ
diff --git a/site/ch51/audio/en/final3.mp3 b/site/ch51/audio/en/final3.mp3
new file mode 100644
index 0000000..a09bfce
Binary files /dev/null and b/site/ch51/audio/en/final3.mp3 differ
diff --git a/site/ch51/audio/en/finish.mp3 b/site/ch51/audio/en/finish.mp3
new file mode 100644
index 0000000..841611d
Binary files /dev/null and b/site/ch51/audio/en/finish.mp3 differ
diff --git a/site/ch51/audio/en/foil.mp3 b/site/ch51/audio/en/foil.mp3
new file mode 100644
index 0000000..7d2462e
Binary files /dev/null and b/site/ch51/audio/en/foil.mp3 differ
diff --git a/site/ch51/audio/en/intro.mp3 b/site/ch51/audio/en/intro.mp3
new file mode 100644
index 0000000..10d586d
Binary files /dev/null and b/site/ch51/audio/en/intro.mp3 differ
diff --git a/site/ch51/audio/en/mono.mp3 b/site/ch51/audio/en/mono.mp3
new file mode 100644
index 0000000..83fd0d5
Binary files /dev/null and b/site/ch51/audio/en/mono.mp3 differ
diff --git a/site/ch51/audio/en/neg.mp3 b/site/ch51/audio/en/neg.mp3
new file mode 100644
index 0000000..e8f6729
Binary files /dev/null and b/site/ch51/audio/en/neg.mp3 differ
diff --git a/site/ch51/audio/en/q1.mp3 b/site/ch51/audio/en/q1.mp3
new file mode 100644
index 0000000..c0a3449
Binary files /dev/null and b/site/ch51/audio/en/q1.mp3 differ
diff --git a/site/ch51/audio/en/q2.mp3 b/site/ch51/audio/en/q2.mp3
new file mode 100644
index 0000000..966e0fd
Binary files /dev/null and b/site/ch51/audio/en/q2.mp3 differ
diff --git a/site/ch51/audio/en/q3.mp3 b/site/ch51/audio/en/q3.mp3
new file mode 100644
index 0000000..31acf86
Binary files /dev/null and b/site/ch51/audio/en/q3.mp3 differ
diff --git a/site/ch51/audio/en/q4.mp3 b/site/ch51/audio/en/q4.mp3
new file mode 100644
index 0000000..be48e8f
Binary files /dev/null and b/site/ch51/audio/en/q4.mp3 differ
diff --git a/site/ch51/audio/en/timings.js b/site/ch51/audio/en/timings.js
new file mode 100644
index 0000000..2cfe4f9
--- /dev/null
+++ b/site/ch51/audio/en/timings.js
@@ -0,0 +1,405 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 7.944,
+ "marks": {
+ "sub": 1.732
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter fifty-one."
+ ],
+ [
+ 1.732,
+ "To multiply polynomials, every term in one must multiply every term in the other."
+ ]
+ ]
+ },
+ "mono": {
+ "dur": 33.624,
+ "marks": {
+ "dist": 6.484,
+ "box": 11.107,
+ "c1": 18.346,
+ "c2": 21.888,
+ "ans": 26.341
+ },
+ "cues": [
+ [
+ 0.104,
+ "Start with a monomial times a binomial: x squared, times x cubed plus seven y."
+ ],
+ [
+ 6.484,
+ "The distributive property sends x squared to each term inside."
+ ],
+ [
+ 11.107,
+ "An area model shows the same thing: a rectangle x squared tall, split into two parts across."
+ ],
+ [
+ 18.346,
+ "x squared times x cubed is x to the fifth."
+ ],
+ [
+ 21.888,
+ "x squared times seven y is seven x squared y."
+ ],
+ [
+ 26.341,
+ "Add the parts: x to the fifth plus seven x squared y."
+ ],
+ [
+ 30.846,
+ "They aren't like terms, so that's the final answer."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 3.192,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.185,
+ "Distribute the monomial."
+ ]
+ ]
+ },
+ "binom": {
+ "dur": 36.072,
+ "marks": {
+ "rect": 4.167,
+ "split": 9.948,
+ "c1": 15.677,
+ "c2": 18.047,
+ "c3": 20.456,
+ "c4": 22.982,
+ "like": 25.794,
+ "ans": 31.068
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now two binomials: x plus nine, times x plus seven."
+ ],
+ [
+ 4.167,
+ "Picture a rectangle x plus nine wide and x plus seven tall."
+ ],
+ [
+ 9.948,
+ "Split each side into its two terms, and the rectangle splits into four parts."
+ ],
+ [
+ 15.677,
+ "x times x is x squared."
+ ],
+ [
+ 18.047,
+ "x times nine is nine x."
+ ],
+ [
+ 20.456,
+ "Seven times x is seven x."
+ ],
+ [
+ 22.982,
+ "Seven times nine is sixty-three."
+ ],
+ [
+ 25.794,
+ "The two x strips are like terms: seven x plus nine x is sixteen x."
+ ],
+ [
+ 31.068,
+ "So the product is x squared plus sixteen x plus sixty-three."
+ ]
+ ]
+ },
+ "foil": {
+ "dur": 26.496,
+ "marks": {
+ "f": 4.01,
+ "o": 7.409,
+ "i": 10.664,
+ "l": 13.841,
+ "word": 15.794,
+ "same": 19.974
+ },
+ "cues": [
+ [
+ 0.143,
+ "For two binomials, the four products have names."
+ ],
+ [
+ 4.01,
+ "First: the first terms, a times c."
+ ],
+ [
+ 7.409,
+ "Outer: the outside terms, a times d."
+ ],
+ [
+ 10.664,
+ "Inner: the inside terms, b times c."
+ ],
+ [
+ 13.841,
+ "Last: b times d."
+ ],
+ [
+ 15.794,
+ "That's the FOIL method, first, outer, inner, last."
+ ],
+ [
+ 19.974,
+ "It finds exactly the four cells of the area model, so it's the distributive property in a fixed order."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 3.144,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.172,
+ "Multiply the binomials."
+ ]
+ ]
+ },
+ "neg": {
+ "dur": 31.656,
+ "marks": {
+ "q": 1.51,
+ "cells": 5.964,
+ "c1": 9.792,
+ "c2": 12.943,
+ "c3": 15.508,
+ "c4": 18.867,
+ "like": 22.24,
+ "ans": 27.031
+ },
+ "cues": [
+ [
+ 0.104,
+ "Watch the signs."
+ ],
+ [
+ 1.51,
+ "Multiply two x minus three, times x plus five."
+ ],
+ [
+ 5.964,
+ "Treat minus three as negative three in its own column."
+ ],
+ [
+ 9.792,
+ "Two x times x is two x squared, two x times five is ten x, negative three times x is negative three x, and negative three times five is negative fifteen."
+ ],
+ [
+ 22.24,
+ "Combine the like terms: ten x minus three x is seven x."
+ ],
+ [
+ 27.031,
+ "The product is two x squared plus seven x minus fifteen."
+ ]
+ ]
+ },
+ "big": {
+ "dur": 27.888,
+ "marks": {
+ "q": 3.841,
+ "grid": 8.75,
+ "fill": 12.357,
+ "diag": 13.997,
+ "ans": 22.37
+ },
+ "cues": [
+ [
+ 0.104,
+ "Longer polynomials work the same way, with a bigger grid."
+ ],
+ [
+ 3.841,
+ "x plus two, times x squared plus three x minus one: two rows and three columns make six products."
+ ],
+ [
+ 12.357,
+ "Fill every cell."
+ ],
+ [
+ 13.997,
+ "Like terms line up along the diagonals: three x squared and two x squared, then negative x and six x."
+ ],
+ [
+ 22.37,
+ "The product is x cubed plus five x squared plus five x minus two."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 2.376,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.237,
+ "Fill in the grid."
+ ]
+ ]
+ },
+ "div": {
+ "dur": 33.72,
+ "marks": {
+ "q": 5.065,
+ "split": 12.826,
+ "t1": 16.641,
+ "t2": 22.096,
+ "ans": 27.904
+ },
+ "cues": [
+ [
+ 0.104,
+ "To divide a polynomial by a monomial, divide every term by the monomial."
+ ],
+ [
+ 5.065,
+ "Take a to the tenth b to the fourth, minus a to the eighth b to the fifth, divided by a squared b cubed."
+ ],
+ [
+ 12.826,
+ "Split it into two fractions, one for each term."
+ ],
+ [
+ 16.641,
+ "a to the ten minus two, b to the four minus three: a to the eighth b."
+ ],
+ [
+ 22.096,
+ "a to the eight minus two, b to the five minus three: a to the sixth b squared."
+ ],
+ [
+ 27.904,
+ "The quotient is a to the eighth b, minus a to the sixth b squared."
+ ]
+ ]
+ },
+ "q4": {
+ "dur": 2.76,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.146,
+ "Divide by the monomial."
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 23.712,
+ "marks": {
+ "w1": 1.042,
+ "w2": 9.323,
+ "w3": 15.898,
+ "w4": 17.63,
+ "end": 21.497
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.042,
+ "To multiply polynomials, multiply every term of one by every term of the other."
+ ],
+ [
+ 6.836,
+ "An area grid keeps track."
+ ],
+ [
+ 9.323,
+ "For two binomials, FOIL lists the four products: first, outer, inner, last."
+ ],
+ [
+ 15.898,
+ "Then combine like terms."
+ ],
+ [
+ 17.63,
+ "To divide by a monomial, divide each term separately."
+ ],
+ [
+ 21.497,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 2.496,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.497,
+ "Multiply."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 2.904,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, multiply the binomials."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 2.76,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.146,
+ "Divide by the monomial."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 4.944,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Great job."
+ ],
+ [
+ 1.198,
+ "That's the end of chapter fifty-one, and of unit nine."
+ ]
+ ]
+ }
+};
diff --git a/site/ch51/audio/en/wrap.mp3 b/site/ch51/audio/en/wrap.mp3
new file mode 100644
index 0000000..0be0d5c
Binary files /dev/null and b/site/ch51/audio/en/wrap.mp3 differ
diff --git a/site/ch51/index.html b/site/ch51/index.html
new file mode 100644
index 0000000..9226857
--- /dev/null
+++ b/site/ch51/index.html
@@ -0,0 +1,187 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Multiplying and Dividing Polynomials</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 51, title: 'Multiplying and Dividing Polynomials', minutes: 10, next: '../ch52/' };
+const CX2 = TS.x2[2], CX = TS.x[2], C1 = TS.one[2], TOP = COL.whole, SIDE = COL.nat;
+const FO = [COL.nat, COL.int, COL.irr, COL.rat]; // first, outer, inner, last
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+const pw = (b, e) => [b, E(e)];
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'Multiplying polynomials', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 9, Chapter 51', { x: 800, y: 300, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Multiplying and Dividing', { x: 800, y: 400, size: 80, weight: 600, anchor: 'middle' });
+ T(g, 'Polynomials', { x: 800, y: 490, size: 80, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = text(scene, 'every term times every term', 800, 620, m('sub'), { size: 34, fill: COL.dim, anchor: 'middle' });
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['mono', 'Monomial times binomial', (m) => {
+ const p = panel(0);
+ const row = tokens(p, [{ t: pw('x', 2), fill: SIDE }, '(', { t: pw('x', 3), fill: TOP }, ' + ', { t: '7y', fill: TOP }, ')'], { x: 800, y: 230, size: 72, anchor: 'middle', o: 0 });
+ row.forEach(e => show(e, .2));
+ arc(p, row[0]._px, 160, row[2]._px, 158, -70, COL.task, m('dist'));
+ arc(p, row[0]._px - 8, 162, row[4]._px, 158, -130, COL.task, m('dist', .5));
+ const A = areaGrid(p, 520, 400, [300, 300], [170], [pw('x', 3), '7y'], [pw('x', 2)], m('box'), { size: 46 });
+ A.cell(0, 0, pw('x', 5), m('c1'), { tint: CX2 });
+ A.cell(0, 1, ['7x', E(2), 'y'], m('c2'), { tint: CX });
+ mline(p, ['x', E(2), '(x', E(3), ' + 7y) = x', E(5), ' + 7x', E(2), 'y'], 800, 720, m('ans'), COL.good, 56);
+ text(p, 'not like terms: done', 800, 790, m('ans', 1.5), { size: 26, fill: COL.dim, anchor: 'middle' });
+ }],
+ ['q1', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 260, w: 1160, cls: 'side' }, [{
+ id: 'c-mono', prompt: ['Multiply ', $m('3m', E(2), 'n', E(3), '(−5m + 7m', E(6), 'n', E(4), ')'), '.'],
+ build: blanks([{ parts: ['= ', { box: '-15' }, 'm', E(3), 'n', E(3), ' + ', { box: '21' }, 'm', E(8), 'n', E(7)], why: '3 · (−5) = −15 and 3 · 7 = 21; add the exponents of m and n.', hint: 'Multiply 3 by −5, then 3 by 7.' }]),
+ }], done) }],
+ ['binom', 'Two binomials', (m) => {
+ const p = panel(0), U = 24, XW = 260;
+ mline(p, '(x + 9)(x + 7)', 1150, 160, .2, COL.chalk, 60);
+ const A = S.bA = areaGrid(p, 260, 230, [XW, 9 * U], [XW, 7 * U], ['x', '9'], ['x', '7'], m('rect'));
+ text(p, 'drawn with x as an unknown length', 497, 850, m('split'), { size: 22, fill: COL.dim, anchor: 'middle' });
+ A.cell(0, 0, ['x', E(2)], m('c1'), { tint: CX2 });
+ A.cell(0, 1, '9x', m('c2'), { tint: CX });
+ A.cell(1, 0, '7x', m('c3'), { tint: CX });
+ A.cell(1, 1, '63', m('c4'), { tint: C1 });
+ A.ring(0, 1, COL.task, m('like')); A.ring(1, 0, COL.task, m('like'));
+ mline(p, ['x', E(2), ' + 9x + 7x + 63'], 1150, 420, m('c4', .6), COL.chalk, 48);
+ mline(p, '7x + 9x = 16x', 1150, 520, m('like', .5), COL.task, 44);
+ mline(p, ['x', E(2), ' + 16x + 63'], 1150, 650, m('ans'), COL.good, 60);
+ }],
+ ['foil', 'FOIL', (m) => {
+ const p = panel(0);
+ const row = tokens(p, ['(', 'a', ' + ', 'b', ')(', 'c', ' + ', 'd', ')'], { x: 560, y: 330, size: 84, anchor: 'middle', o: 0 });
+ row.forEach(e => show(e, .2));
+ const X = k => row[k]._px;
+ const pairs = [[1, 5, -120, 'f'], [1, 7, -220, 'o'], [3, 5, 110, 'i'], [3, 7, 200, 'l']];
+ pairs.forEach(([a, b, h, mk2], i) => { const y = h < 0 ? 262 : 350; arc(p, X(a), y, X(b), y, h, FO[i], m(mk2)); });
+ const prod = tokens(p, [{ t: 'ac', fill: FO[0] }, ' + ', { t: 'ad', fill: FO[1] }, ' + ', { t: 'bc', fill: FO[2] }, ' + ', { t: 'bd', fill: FO[3] }], { x: 560, y: 640, size: 64, anchor: 'middle', o: 0 });
+ ['f', 'o', 'i', 'l'].forEach((k, i) => {
+ show(prod[i * 2], m(k, .5)); if (i) show(prod[i * 2 - 1], m(k, .5));
+ text(p, ['First', 'Outer', 'Inner', 'Last'][i], prod[i * 2]._px, 700, m(k, .5), { size: 24, fill: FO[i], anchor: 'middle', weight: 700 });
+ });
+ text(p, 'FOIL', 560, 790, m('word'), { size: 32, fill: COL.task, anchor: 'middle', weight: 600 });
+ const A = areaGrid(p, 1100, 360, [170, 170], [150, 150], ['c', 'd'], ['a', 'b'], m('same'), { size: 44 });
+ [[0, 0, 'ac'], [0, 1, 'ad'], [1, 0, 'bc'], [1, 1, 'bd']].forEach(([i, j, s], k) => A.cell(i, j, s, m('same', .8 + k * .3), { fill: FO[k], tint: FO[k] }));
+ text(p, 'the same four products', 1270, 720, m('same', 2.2), { size: 26, fill: COL.dim, anchor: 'middle' });
+ }],
+ ['q2', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 260, w: 1160, cls: 'side' }, [{
+ id: 'c-foil', prompt: ['Multiply ', $m('(x + 2y)(3x − 4y)'), '.'],
+ build: blanks([{ parts: ['= 3x', E(2), ' + ', { box: '2' }, 'xy − ', { box: '8' }, 'y', E(2)], why: 'F: 3x². O: −4xy. I: 6xy. L: −8y². −4xy + 6xy = 2xy.', hint: 'Outer is x · (−4y) = −4xy and inner is 2y · 3x = 6xy. Combine them.' }]),
+ }], done) }],
+ ['neg', 'Negative terms', (m) => {
+ const p = panel(0);
+ mline(p, '(2x − 3)(x + 5)', 800, 140, m('q'), COL.chalk, 60);
+ const A = areaGrid(p, 380, 300, [260, 260], [170, 170], ['x', '+5'], ['2x', '−3'], m('cells'), { size: 46 });
+ A.cell(0, 0, ['2x', E(2)], m('c1'), { tint: CX2 });
+ A.cell(0, 1, '10x', m('c2'), { tint: CX });
+ A.cell(1, 0, '−3x', m('c3'), { tint: COL.bad, fill: COL.bad });
+ A.cell(1, 1, '−15', m('c4'), { tint: COL.bad, fill: COL.bad });
+ A.ring(0, 1, COL.task, m('like')); A.ring(1, 0, COL.task, m('like'));
+ mline(p, '10x − 3x = 7x', 1260, 420, m('like', .5), COL.task, 44);
+ mline(p, ['2x', E(2), ' + 7x − 15'], 1260, 560, m('ans'), COL.good, 56);
+ }],
+ ['big', 'A bigger grid', (m) => {
+ const p = panel(0);
+ mline(p, ['(x + 2)(x', E(2), ' + 3x − 1)'], 800, 140, m('q'), COL.chalk, 60);
+ const A = S.gA = areaGrid(p, 300, 300, [230, 230, 230], [160, 160], [pw('x', 2), '+3x', '−1'], ['x', '+2'], m('grid'), { size: 44 });
+ const cells = [[0, 0, pw('x', 3), CX2], [0, 1, ['3x', E(2)], CX], [0, 2, '−x', COL.bad], [1, 0, ['2x', E(2)], CX], [1, 1, '6x', C1], [1, 2, '−2', COL.bad]];
+ cells.forEach(([i, j, s], k) => A.cell(i, j, s, m('fill', k * .25)));
+ [[0, 1], [1, 0]].forEach(([i, j]) => A.ring(i, j, COL.int, m('diag', .5)));
+ [[0, 2], [1, 1]].forEach(([i, j]) => A.ring(i, j, COL.irr, m('diag', 3.5)));
+ mline(p, ['3x', E(2), ' + 2x', E(2), ' = 5x', E(2)], 1260, 360, m('diag', 1.5), COL.int, 40);
+ mline(p, '−x + 6x = 5x', 1260, 450, m('diag', 4.5), COL.irr, 40);
+ mline(p, ['x', E(3), ' + 5x', E(2), ' + 5x − 2'], 800, 720, m('ans'), COL.good, 56);
+ }],
+ ['q3', 'Quick check', () => {
+ const p = panel(0);
+ mline(p, '(x − 4)(x + 6)', 420, 160, .2, COL.chalk, 56);
+ const A = S.qA = areaGrid(p, 200, 280, [230, 230], [150, 150], ['x', '+6'], ['x', '−4'], .3, { size: 42 });
+ A.cell(0, 0, ['x', E(2)], .6, { tint: CX2 });
+ }, { ask: done => quiz({ x: 760, y: 240, w: 780, cls: 'side' }, [{
+ id: 'c-grid', prompt: ['Fill in the three cells, then combine.'],
+ build: blanks([
+ { parts: ['cells: ', { box: '6' }, 'x, ', { box: '-4' }, 'x, ', { box: '-24' }], why: 'x · 6 = 6x, −4 · x = −4x, −4 · 6 = −24.', hint: 'Multiply each column term by each row term. Keep the sign of −4.',
+ fx: () => { const L = S.q || qlayer(); [[0, 1, '6x'], [1, 0, '−4x'], [1, 1, '−24']].forEach(([i, j, s], k) => S.qA.cell(i, j, s, k * .2, { run: fx, into: L, tint: CX })); } },
+ { parts: ['product: x', E(2), ' + ', { box: '2' }, 'x − ', { box: '24' }], why: '6x − 4x = 2x.', hint: 'Combine 6x and −4x.' },
+ ]),
+ }], done) }],
+ ['div', 'Dividing by a monomial', (m) => {
+ const p = panel(0);
+ mline(p, ['(a', E(10), 'b', E(4), ' − a', E(8), 'b', E(5), ') ÷ a', E(2), 'b', E(3)], 800, 140, m('q'), COL.chalk, 52);
+ const one = G(p, { o: 0 });
+ M(one, ['a', E(10), 'b', E(4), ' − a', E(8), 'b', E(5)], { x: 800, y: 290, size: 52 });
+ path(one, 'M600 312H1000', { stroke: COL.chalk, 'stroke-width': 3.5 });
+ M(one, ['a', E(2), 'b', E(3)], { x: 800, y: 380, size: 52, fill: COL.task });
+ show(one, m('q', 2)); hide(one, m('split'), .4);
+ const half = (x, top, col, t0) => {
+ const g = G(p, { o: 0 });
+ M(g, top, { x, y: 290, size: 52, fill: col });
+ path(g, `M${x - 110} 312H${x + 110}`, { stroke: COL.chalk, 'stroke-width': 3.5 });
+ M(g, ['a', E(2), 'b', E(3)], { x, y: 380, size: 52, fill: COL.task });
+ show(g, t0);
+ };
+ half(560, ['a', E(10), 'b', E(4)], TOP, m('split', .2));
+ mline(p, '−', 800, 330, m('split', .2), COL.chalk, 60);
+ half(1040, ['a', E(8), 'b', E(5)], SIDE, m('split', .4));
+ mline(p, ['a', E('10 − 2'), 'b', E('4 − 3'), ' = a', E(8), 'b'], 560, 520, m('t1'), TOP, 44);
+ mline(p, ['a', E('8 − 2'), 'b', E('5 − 3'), ' = a', E(6), 'b', E(2)], 1040, 520, m('t2'), SIDE, 44);
+ mline(p, ['a', E(8), 'b − a', E(6), 'b', E(2)], 800, 680, m('ans'), COL.good, 60);
+ }],
+ ['q4', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 260, w: 1160, cls: 'side' }, [{
+ id: 'c-div', prompt: ['Simplify ', $m('(x', E(5), 'y', E(3), ' + x', E(9), 'y', E(6), ') ÷ xy'), '.'],
+ build: choice([[$m('x', E(4), 'y', E(2), ' + x', E(8), 'y', E(5))], [$m('x', E(4), 'y', E(2), ' + x', E(9), 'y', E(6))], [$m('x', E(5), 'y', E(3), ' + x', E(8), 'y', E(5))]], 0, 'Divide each term by xy: subtract 1 from every exponent.',
+ ['Divide the second term by xy too.', null, 'Divide the first term by xy too.']),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['Multiply every term by every term; an area grid keeps track.', 'w1', TOP], ['Two binomials: FOIL, first, outer, inner, last.', 'w2', FO[1]],
+ ['Then combine like terms.', 'w3', COL.task], ['Divide by a monomial: divide each term separately.', 'w4', SIDE]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 230 + i * 130, o: 0 });
+ mk('circle', { cx: 170, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 170, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 230, size: 32, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-mono', prompt: ['Multiply. Fill in the coefficients.'], build: blanks([
+ { parts: ['xy(x', E(3), 'y', E(5), ' − x', E(7), ') = ', { box: '1' }, 'x', E(4), 'y', E(6), ' − ', { box: '1' }, 'x', E(8), 'y'], why: 'xy · x³y⁵ = x⁴y⁶ and xy · x⁷ = x⁸y. The coefficients are 1.', hint: 'A term with no number in front has coefficient 1.' },
+ { parts: ['4a(2a', E(2), ' − 3a + 5) = ', { box: '8' }, 'a', E(3), ' − ', { box: '12' }, 'a', E(2), ' + ', { box: '20' }, 'a'], why: '4a · 2a² = 8a³, 4a · 3a = 12a², 4a · 5 = 20a.', hint: 'Multiply 4a by each of the three terms.' },
+ { parts: ['−2x', E(2), '(x', E(2), ' − 6) = ', { box: '-2' }, 'x', E(4), ' + ', { box: '12' }, 'x', E(2)], why: '−2x² · x² = −2x⁴ and −2x² · (−6) = 12x².', hint: 'Negative times negative is positive.' },
+ ]),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-bin', prompt: ['Multiply the binomials.'], build: blanks([
+ { parts: ['(x + 3)(x + 5) = x', E(2), ' + ', { box: '8' }, 'x + ', { box: '15' }], why: 'Outer 5x + inner 3x = 8x; last 3 · 5 = 15.', hint: 'FOIL, then combine 5x and 3x.' },
+ { parts: ['(x − 7)(x + 2) = x', E(2), ' − ', { box: '5' }, 'x − ', { box: '14' }], why: '2x − 7x = −5x; −7 · 2 = −14.', hint: 'Combine 2x and −7x.' },
+ { parts: ['(3p', E(3), ' − 2q', E(5), ')(2p', E(6), ' + 5q', E(8), ') = ', { box: '6' }, 'p', E(9), ' + ', { box: '15' }, 'p', E(3), 'q', E(8), ' − ', { box: '4' }, 'p', E(6), 'q', E(5), ' − ', { box: '10' }, 'q', E(13)], why: 'F 6p⁹, O 15p³q⁸, I −4p⁶q⁵, L −10q¹³: no like terms.', hint: 'Four products; none of them combine.' },
+ { parts: ['(2x + 1)(2x − 1) = ', { box: '4' }, 'x', E(2), ' − ', { box: '1' }], why: 'Outer −2x and inner 2x cancel.', hint: 'The middle terms cancel.' },
+ ]),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-div', prompt: ['Divide. Write the coefficients and exponents.'], build: blanks([
+ { parts: ['(a', E(13), 'b', E(4), ' + a', E(8), 'b', E(10), ') ÷ a', E(6), 'b', E(3), ' = a', E('p'), 'b + a', E(2), 'b', E('q'), ': p = ', { box: '7' }, ', q = ', { box: '7' }], why: 'a¹³⁻⁶b⁴⁻³ = a⁷b and a⁸⁻⁶b¹⁰⁻³ = a²b⁷.', hint: 'Subtract the exponents in each term.' },
+ { parts: ['(6m', E(10), 'n', E(3), ' − 8m', E(2), 'n) ÷ 2m', E(8), 'n = ', { box: '3' }, 'm', E(2), 'n', E(2), ' − ', { box: '4' }, 'm', E('k'), ': k = ', { box: '-6' }], why: '6 ÷ 2 = 3 and 8 ÷ 2 = 4; m: 2 − 8 = −6, so the last term is 4/m⁶.', hint: 'In the second term, n cancels and m has exponent 2 − 8.' },
+ { parts: ['(12x', E(4), ' + 9x', E(3), ' − 3x', E(2), ') ÷ 3x', E(2), ' = ', { box: '4' }, 'x', E(2), ' + ', { box: '3' }, 'x − ', { box: '1' }], why: '12 ÷ 3 = 4, 9 ÷ 3 = 3, 3 ÷ 3 = 1.', hint: 'Divide each of the three terms by 3x².' },
+ ]),
+ }], done, 'Chapter practice 3 of 3') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch52/audio/en/big.mp3 b/site/ch52/audio/en/big.mp3
new file mode 100644
index 0000000..a8ea6a3
Binary files /dev/null and b/site/ch52/audio/en/big.mp3 differ
diff --git a/site/ch52/audio/en/factor.mp3 b/site/ch52/audio/en/factor.mp3
new file mode 100644
index 0000000..855e0c4
Binary files /dev/null and b/site/ch52/audio/en/factor.mp3 differ
diff --git a/site/ch52/audio/en/factors.mp3 b/site/ch52/audio/en/factors.mp3
new file mode 100644
index 0000000..4918150
Binary files /dev/null and b/site/ch52/audio/en/factors.mp3 differ
diff --git a/site/ch52/audio/en/final1.mp3 b/site/ch52/audio/en/final1.mp3
new file mode 100644
index 0000000..aa99eb2
Binary files /dev/null and b/site/ch52/audio/en/final1.mp3 differ
diff --git a/site/ch52/audio/en/final2.mp3 b/site/ch52/audio/en/final2.mp3
new file mode 100644
index 0000000..59a7e96
Binary files /dev/null and b/site/ch52/audio/en/final2.mp3 differ
diff --git a/site/ch52/audio/en/final3.mp3 b/site/ch52/audio/en/final3.mp3
new file mode 100644
index 0000000..ed8d4e6
Binary files /dev/null and b/site/ch52/audio/en/final3.mp3 differ
diff --git a/site/ch52/audio/en/finish.mp3 b/site/ch52/audio/en/finish.mp3
new file mode 100644
index 0000000..552e3f8
Binary files /dev/null and b/site/ch52/audio/en/finish.mp3 differ
diff --git a/site/ch52/audio/en/full.mp3 b/site/ch52/audio/en/full.mp3
new file mode 100644
index 0000000..29f10bb
Binary files /dev/null and b/site/ch52/audio/en/full.mp3 differ
diff --git a/site/ch52/audio/en/gcf.mp3 b/site/ch52/audio/en/gcf.mp3
new file mode 100644
index 0000000..6c6f42b
Binary files /dev/null and b/site/ch52/audio/en/gcf.mp3 differ
diff --git a/site/ch52/audio/en/intro.mp3 b/site/ch52/audio/en/intro.mp3
new file mode 100644
index 0000000..7c5afb2
Binary files /dev/null and b/site/ch52/audio/en/intro.mp3 differ
diff --git a/site/ch52/audio/en/mono.mp3 b/site/ch52/audio/en/mono.mp3
new file mode 100644
index 0000000..cc39fdf
Binary files /dev/null and b/site/ch52/audio/en/mono.mp3 differ
diff --git a/site/ch52/audio/en/one.mp3 b/site/ch52/audio/en/one.mp3
new file mode 100644
index 0000000..f10dcf3
Binary files /dev/null and b/site/ch52/audio/en/one.mp3 differ
diff --git a/site/ch52/audio/en/q1.mp3 b/site/ch52/audio/en/q1.mp3
new file mode 100644
index 0000000..04e1758
Binary files /dev/null and b/site/ch52/audio/en/q1.mp3 differ
diff --git a/site/ch52/audio/en/q2.mp3 b/site/ch52/audio/en/q2.mp3
new file mode 100644
index 0000000..d3aa057
Binary files /dev/null and b/site/ch52/audio/en/q2.mp3 differ
diff --git a/site/ch52/audio/en/q3.mp3 b/site/ch52/audio/en/q3.mp3
new file mode 100644
index 0000000..05c50b2
Binary files /dev/null and b/site/ch52/audio/en/q3.mp3 differ
diff --git a/site/ch52/audio/en/timings.js b/site/ch52/audio/en/timings.js
new file mode 100644
index 0000000..5ce12e0
--- /dev/null
+++ b/site/ch52/audio/en/timings.js
@@ -0,0 +1,395 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 8.952,
+ "marks": {
+ "sub": 2.786
+ },
+ "cues": [
+ [
+ 0.104,
+ "Unit ten, chapter fifty-two."
+ ],
+ [
+ 2.786,
+ "Factoring runs multiplication backward: you start with the product and find what was multiplied."
+ ]
+ ]
+ },
+ "factors": {
+ "dur": 26.928,
+ "marks": {
+ "dots": 3.776,
+ "r1": 7.148,
+ "r2": 8.633,
+ "r3": 10.078,
+ "list": 11.758,
+ "mono": 18.854
+ },
+ "cues": [
+ [
+ 0.156,
+ "Factors are numbers you multiply to get a given number."
+ ],
+ [
+ 3.776,
+ "Twelve dots can be arranged into rectangles."
+ ],
+ [
+ 7.148,
+ "One row of twelve, two rows of six, or three rows of four."
+ ],
+ [
+ 11.758,
+ "The side lengths are the factors of twelve: one, two, three, four, six, and twelve."
+ ],
+ [
+ 18.854,
+ "Monomials have factors too."
+ ],
+ [
+ 20.846,
+ "Six x is two times three x, or three times two x, or six times x."
+ ]
+ ]
+ },
+ "gcf": {
+ "dur": 24.912,
+ "marks": {
+ "ex": 6.211,
+ "primes": 7.773,
+ "match": 17.031,
+ "gcf": 20.911
+ },
+ "cues": [
+ [
+ 0.104,
+ "The greatest common factor, or GCF, is the largest factor two numbers share."
+ ],
+ [
+ 6.211,
+ "Take twelve and twenty."
+ ],
+ [
+ 7.773,
+ "Break each into prime factors: twelve is two times two times three, and twenty is two times two times five."
+ ],
+ [
+ 17.031,
+ "Match the primes they share: a two, and another two."
+ ],
+ [
+ 20.911,
+ "Multiply the shared primes: the GCF is four."
+ ]
+ ]
+ },
+ "mono": {
+ "dur": 28.44,
+ "marks": {
+ "ex": 4.076,
+ "expand": 9.987,
+ "match": 11.875,
+ "nums": 13.32,
+ "xs": 14.857,
+ "ys": 15.885,
+ "gcf": 17.357,
+ "rule": 21.38
+ },
+ "cues": [
+ [
+ 0.117,
+ "The same idea finds the GCF of monomials."
+ ],
+ [
+ 4.076,
+ "Take twelve x cubed y squared and eighteen x squared y to the fourth."
+ ],
+ [
+ 9.987,
+ "Write out every factor."
+ ],
+ [
+ 11.875,
+ "Match what they share: a two and a three, two x's, and two y's."
+ ],
+ [
+ 17.357,
+ "So the GCF is six x squared y squared."
+ ],
+ [
+ 21.38,
+ "In short: the GCF of the coefficients, times each shared variable to its smallest exponent."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 2.736,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.198,
+ "Find the GCF."
+ ]
+ ]
+ },
+ "factor": {
+ "dur": 39.744,
+ "marks": {
+ "ex": 5.117,
+ "area": 9.193,
+ "gcf": 13.06,
+ "w1": 17.214,
+ "w2": 21.419,
+ "ans": 24.57,
+ "chk": 31.393
+ },
+ "cues": [
+ [
+ 0.104,
+ "To factor a polynomial, pull its GCF out of every term."
+ ],
+ [
+ 5.117,
+ "Factor six x squared plus nine x."
+ ],
+ [
+ 9.193,
+ "Think of it as the area of a rectangle made of two parts."
+ ],
+ [
+ 13.06,
+ "The GCF, three x, is the height they share."
+ ],
+ [
+ 17.214,
+ "Six x squared divided by three x is two x, and nine x divided by three x is three."
+ ],
+ [
+ 24.57,
+ "So six x squared plus nine x equals three x times the quantity two x plus three."
+ ],
+ [
+ 31.393,
+ "Check by multiplying back: three x times two x is six x squared, and three x times three is nine x."
+ ]
+ ]
+ },
+ "big": {
+ "dur": 31.92,
+ "marks": {
+ "ex": 2.943,
+ "gcf": 10.391,
+ "d1": 16.12,
+ "d2": 20.885,
+ "ans": 24.01
+ },
+ "cues": [
+ [
+ 0.104,
+ "The steps don't change for bigger exponents."
+ ],
+ [
+ 2.943,
+ "Factor six x to the ninth y to the seventh minus ten x to the fourth y to the fifteenth."
+ ],
+ [
+ 10.391,
+ "The GCF is two, times x to the fourth, times y to the seventh."
+ ],
+ [
+ 16.12,
+ "Divide the first term by the GCF: three x to the fifth."
+ ],
+ [
+ 20.885,
+ "Divide the second: five y to the eighth."
+ ],
+ [
+ 24.01,
+ "The factored form is two x to the fourth y to the seventh, times three x to the fifth minus five y to the eighth."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 3.264,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.185,
+ "Factor out the GCF."
+ ]
+ ]
+ },
+ "one": {
+ "dur": 19.848,
+ "marks": {
+ "ex": 2.839,
+ "div": 5.156,
+ "ans": 10.469,
+ "warn": 13.398
+ },
+ "cues": [
+ [
+ 0.091,
+ "Watch out when the GCF is a whole term."
+ ],
+ [
+ 2.839,
+ "Factor five a plus five."
+ ],
+ [
+ 5.156,
+ "Five a divided by five is a, and five divided by five is one."
+ ],
+ [
+ 10.469,
+ "So the answer is five times a plus one."
+ ],
+ [
+ 13.398,
+ "The one must stay."
+ ],
+ [
+ 14.701,
+ "Without it, five times a is only five a, and the plus five is lost."
+ ]
+ ]
+ },
+ "full": {
+ "dur": 39.792,
+ "marks": {
+ "ex": 4.596,
+ "chk": 19.232,
+ "left": 21.367,
+ "ans": 25.716,
+ "test": 33.841
+ },
+ "cues": [
+ [
+ 0.091,
+ "Use the greatest common factor, not just any common factor."
+ ],
+ [
+ 4.596,
+ "Someone factors twelve x to the seventh y to the ninth minus sixteen x to the tenth y to the fourth as two x to the seventh y squared, times six y to the seventh minus eight x cubed y squared."
+ ],
+ [
+ 19.232,
+ "It multiplies back correctly, but the terms inside still share a factor, two y squared."
+ ],
+ [
+ 25.716,
+ "Factoring completely gives four x to the seventh y to the fourth, times three y to the fifth minus four x cubed."
+ ],
+ [
+ 33.841,
+ "A quick test: if the terms inside the parentheses still have a common factor, keep going."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 2.664,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Is it fully factored?"
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 23.232,
+ "marks": {
+ "w1": 0.99,
+ "w2": 10.182,
+ "w3": 16.328,
+ "end": 21.068
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.99,
+ "The GCF is the product of the shared factors: the GCF of the coefficients, and each shared variable to its smallest exponent."
+ ],
+ [
+ 10.182,
+ "To factor, divide every term by the GCF and write the GCF times what's left."
+ ],
+ [
+ 16.328,
+ "Check by multiplying back, and make sure nothing common is left inside."
+ ],
+ [
+ 21.068,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 3.6,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.536,
+ "Find each GCF."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 2.616,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, factor each polynomial."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 3.384,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.185,
+ "Fully factored, or not yet?"
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 5.256,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Well done."
+ ],
+ [
+ 1.081,
+ "That's the end of chapter fifty-two, factoring with the GCF."
+ ]
+ ]
+ }
+};
diff --git a/site/ch52/audio/en/wrap.mp3 b/site/ch52/audio/en/wrap.mp3
new file mode 100644
index 0000000..4fae235
Binary files /dev/null and b/site/ch52/audio/en/wrap.mp3 differ
diff --git a/site/ch52/index.html b/site/ch52/index.html
new file mode 100644
index 0000000..8b2ea48
--- /dev/null
+++ b/site/ch52/index.html
@@ -0,0 +1,188 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Factoring Polynomials Using GCF</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 52, title: 'Factoring Polynomials Using GCF', minutes: 10, next: '../ch53/' };
+const GCFC = COL.task, CN = COL.int, CXC = COL.whole, CYC = COL.nat;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+const pw = (b, e) => [b, E(e)];
+// A row of factor chips starting at x (left edge); items: [label, color]. Returns chips with their centres.
+function chipRow(p, items, x, y, t0, gap = 86) {
+ return items.map(([s, c], i) => { const ch = chip(p, [s], c, { x: x + i * gap, y, size: 34, s: 0, o: 0 }); ch.cx = x + i * gap; ch.lab = s; pop(ch, t0 + i * .08); return ch; });
+}
+// Link matched chips in two rows with a line and a glow ring.
+function link(p, a, b, t0, color = GCFC) {
+ draw(path(p, `M${a.cx} ${st(a).y + 30}L${b.cx} ${st(b).y - 30}`, { stroke: color, 'stroke-width': 3.5 }, { d: 0 }), t0, .35);
+ [a, b].forEach(c => { put(c._rect, { c_stroke: c._rect.getAttribute('stroke') }); tw(c._rect, { c_stroke: color, 'a_stroke-width': 5 }, t0, .3); });
+}
+// 12 dots that rearrange into r rows.
+const DOT0 = [800, 280];
+function dotPos(r, i, gap = 46) { const c = 12 / r; return [DOT0[0] + (i % c - (c - 1) / 2) * gap, DOT0[1] + (Math.floor(i / c) - (r - 1) / 2) * gap]; }
+
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'Factoring with the GCF', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 10, Chapter 52', { x: 800, y: 300, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Factoring Polynomials', { x: 800, y: 400, size: 80, weight: 600, anchor: 'middle' });
+ T(g, 'Using the GCF', { x: 800, y: 490, size: 80, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = mline(scene, ['6x', E(2), ' + 9x = 3x(2x + 3)'], 800, 630, m('sub'), COL.dim, 50);
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['factors', 'Factors', (m) => {
+ const p = panel(0);
+ const ds = Array.from({ length: 12 }, (_, i) => { const d = put(mk('circle', { r: 15, fill: COL.int }, p), { x: dotPos(1, i)[0], y: dotPos(1, i)[1], s: 0, o: 0 }); pop(d, m('dots', i * .05)); return d; });
+ const lab = (r, t0) => { const t = mline(p, `${r} × ${12 / r}`, 800, 470, t0, COL.chalk, 44); hide(t, t0 + 1.3, .2); };
+ [['r1', 1], ['r2', 2], ['r3', 3]].forEach(([k, r], j) => { ds.forEach((d, i) => tw(d, { x: dotPos(r, i)[0], y: dotPos(r, i)[1] }, m(k), .6)); if (j < 2) lab(r, m(k, .3)); else mline(p, '3 × 4', 800, 470, m(k, .3), COL.chalk, 44); });
+ mline(p, 'factors of 12: 1, 2, 3, 4, 6, 12', 800, 580, m('list'), COL.task, 46);
+ mline(p, '6x = 2 · 3x = 3 · 2x = 6 · x', 800, 720, m('mono'), COL.chalk, 46);
+ }],
+ ['gcf', 'Greatest common factor', (m) => {
+ const p = panel(0);
+ mline(p, '12', 300, 320, m('ex'), COL.chalk, 60, 'end'); mline(p, '20', 300, 520, m('ex'), COL.chalk, 60, 'end');
+ const a = chipRow(p, [['2', CN], ['2', CN], ['3', CN]], 420, 300, m('primes', .5)), b = chipRow(p, [['2', CN], ['2', CN], ['5', CN]], 420, 540, m('primes', 4));
+ link(p, a[0], b[0], m('match')); link(p, a[1], b[1], m('match', .9));
+ const r = G(p, { o: 0, x: 1150, y: 430 });
+ mk('rect', { x: -170, y: -60, width: 340, height: 92, rx: 18, fill: 'none', stroke: GCFC, 'stroke-width': 3 }, r);
+ M(r, ['GCF = 2 · 2 = 4'], { y: 4, size: 44, fill: GCFC });
+ show(r, m('gcf'));
+ }],
+ ['mono', 'GCF of monomials', (m) => {
+ const p = panel(0);
+ mline(p, ['12x', E(3), 'y', E(2)], 270, 280, m('ex'), COL.chalk, 52, 'end');
+ mline(p, ['18x', E(2), 'y', E(4)], 270, 520, m('ex', .5), COL.chalk, 52, 'end');
+ const A = chipRow(p, [['2', CN], ['2', CN], ['3', CN], ['x', CXC], ['x', CXC], ['x', CXC], ['y', CYC], ['y', CYC]], 380, 270, m('expand'), 80);
+ const B = chipRow(p, [['2', CN], ['3', CN], ['3', CN], ['x', CXC], ['x', CXC], ['y', CYC], ['y', CYC], ['y', CYC], ['y', CYC]], 380, 530, m('expand', .4), 80);
+ link(p, A[0], B[0], m('nums')); link(p, A[2], B[1], m('nums', .4));
+ link(p, A[3], B[3], m('xs')); link(p, A[4], B[4], m('xs', .3));
+ link(p, A[6], B[5], m('ys')); link(p, A[7], B[6], m('ys', .3));
+ const r = G(p, { o: 0, x: 800, y: 690 });
+ mk('rect', { x: -330, y: -62, width: 660, height: 96, rx: 18, fill: 'none', stroke: GCFC, 'stroke-width': 3 }, r);
+ M(r, ['GCF = 2 · 3 · x', E(2), ' · y', E(2), ' = 6x', E(2), 'y', E(2)], { y: 4, size: 46, fill: GCFC });
+ show(r, m('gcf'));
+ text(p, 'GCF of the numbers × each shared variable to its smallest exponent', 800, 820, m('rule'), { size: 28, fill: COL.dim, anchor: 'middle' });
+ }],
+ ['q1', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 260, w: 1160, cls: 'side' }, [{
+ id: 'c-gcf', prompt: ['Find the GCF of ', $m('10a', E(2), 'b'), ' and ', $m('8a', E(3), 'b', E(2)), '.'],
+ build: blanks([{ parts: ['GCF = ', { box: '2' }, 'a', E('m'), 'b', E('n'), ': m = ', { box: '2' }, ', n = ', { box: '1' }], why: 'GCF of 10 and 8 is 2; smallest powers are a² and b¹: 2a²b.', hint: 'Use the smaller exponent of each variable. b alone means b¹.' }]),
+ }], done) }],
+ ['factor', 'Pulling out the GCF', (m) => {
+ const p = panel(0);
+ mline(p, ['6x', E(2), ' + 9x'], 800, 140, m('ex'), COL.chalk, 64);
+ const A = areaGrid(p, 460, 300, [340, 240], [200], ['', ''], [''], m('area'), { size: 48 });
+ A.cell(0, 0, ['6x', E(2)], m('area', .6), { tint: CXC });
+ A.cell(0, 1, '9x', m('area', .8), { tint: CXC });
+ // Replace the question marks one by one: height first, then widths.
+ const swap = (parts, x, y, anchor, t0, fill) => { const q = mline(p, '?', x, y, m('area', .4), COL.dim, 48, anchor); hide(q, t0, .2); show(M(p, [parts], { x, y, size: 48, fill, anchor, o: 0 }), t0 + .2); };
+ swap('3x', 436, 417, 'end', m('gcf'), GCFC);
+ swap('2x', 630, 278, 'middle', m('w1', 1.2), COL.whole);
+ swap('3', 920, 278, 'middle', m('w2', 1.2), COL.whole);
+ mline(p, [F('6x²', '3x'), ' = 2x'], 400, 640, m('w1'), COL.whole, 44);
+ mline(p, [F('9x', '3x'), ' = 3'], 760, 640, m('w2'), COL.whole, 44);
+ const r = G(p, { o: 0, x: 800, y: 770 });
+ mk('rect', { x: -330, y: -62, width: 660, height: 96, rx: 18, fill: 'none', stroke: COL.good, 'stroke-width': 3 }, r);
+ M(r, ['6x', E(2), ' + 9x = 3x(2x + 3)'], { y: 4, size: 50, fill: COL.good });
+ show(r, m('ans'));
+ mline(p, ['3x · 2x = 6x', E(2), ', 3x · 3 = 9x ✓'], 1250, 640, m('chk'), COL.dim, 36);
+ }],
+ ['big', 'Bigger exponents', (m) => {
+ const p = panel(0), X = 470;
+ mline(p, ['6x', E(9), 'y', E(7), ' − 10x', E(4), 'y', E(15)], 800, 140, m('ex'), COL.chalk, 58);
+ eqLine(p, 'GCF', ['2x', E(4), 'y', E(7)], 270, m('gcf'), { xEq: X, fill: GCFC, note: 'GCF(6, 10) = 2; smaller exponents', noteX: 900 });
+ eqLine(p, [F('6x⁹y⁷', '2x⁴y⁷')], ['3x', E(5)], 400, m('d1'), { xEq: X });
+ eqLine(p, [F('10x⁴y¹⁵', '2x⁴y⁷')], ['5y', E(8)], 530, m('d2'), { xEq: X });
+ const r = G(p, { o: 0, x: 800, y: 690 });
+ mk('rect', { x: -420, y: -62, width: 840, height: 96, rx: 18, fill: 'none', stroke: COL.good, 'stroke-width': 3 }, r);
+ M(r, ['= 2x', E(4), 'y', E(7), '(3x', E(5), ' − 5y', E(8), ')'], { y: 4, size: 52, fill: COL.good });
+ show(r, m('ans'));
+ }],
+ ['q2', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 260, w: 1160, cls: 'side' }, [{
+ id: 'c-fac', prompt: ['Factor ', $m('30x', E(5), ' − 12x', E(3)), ' completely.'],
+ build: blanks([{ parts: ['= ', { box: '6' }, 'x', E('n'), '(', { box: '5' }, 'x', E(2), ' − ', { box: '2' }, '), n = ', { box: '3' }], why: 'GCF = 6x³; 30x⁵ ÷ 6x³ = 5x², 12x³ ÷ 6x³ = 2.', hint: 'GCF of 30 and 12 is 6; the smaller power of x is x³.' }]),
+ }], done) }],
+ ['one', 'Keep the 1', (m) => {
+ const p = panel(0);
+ mline(p, '5a + 5', 800, 180, m('ex'), COL.chalk, 72);
+ mline(p, [F('5a', 5), ' = a, ', F(5, 5), ' = 1'], 800, 340, m('div'), COL.chalk, 56);
+ mline(p, '5a + 5 = 5(a + 1)', 800, 500, m('ans'), COL.good, 64);
+ mline(p, '5(a)', 800, 660, m('warn'), COL.bad, 56);
+ draw(path(p, 'M730 645H870', { stroke: COL.bad, 'stroke-width': 4 }, { d: 0 }), m('warn', 1), .3);
+ text(p, '= 5a only: the + 5 is lost', 900, 650, m('warn', 1.4), { size: 28, fill: COL.bad, weight: 600 });
+ }],
+ ['full', 'Factor completely', (m) => {
+ const p = panel(0);
+ mline(p, ['12x', E(7), 'y', E(9), ' − 16x', E(10), 'y', E(4)], 800, 140, m('ex'), COL.chalk, 54);
+ const t = tokens(p, [['2x', E(7), 'y', E(2), '('], ['6y', E(7)], ' − ', ['8x', E(3), 'y', E(2)], ')'], { x: 800, y: 280, size: 54, anchor: 'middle', o: 0 });
+ t.forEach(e => show(e, m('ex', 3)));
+ text(p, 'multiplies back correctly ✓', 800, 360, m('chk'), { size: 26, fill: COL.dim, anchor: 'middle' });
+ [1, 3].forEach(k => { const e = t[k], r = put(mk('rect', { x: e._px - e._w / 2 - 8, y: 230, width: e._w + 16, height: 70, rx: 12, fill: 'none', stroke: COL.bad, 'stroke-width': 3.5 }, p), { o: 0 }); show(r, m('left')); });
+ text(p, 'both still contain 2y²', 800, 430, m('left', .6), { size: 28, fill: COL.bad, anchor: 'middle', weight: 600 });
+ const r = G(p, { o: 0, x: 800, y: 590 });
+ mk('rect', { x: -410, y: -62, width: 820, height: 96, rx: 18, fill: 'none', stroke: COL.good, 'stroke-width': 3 }, r);
+ M(r, ['= 4x', E(7), 'y', E(4), '(3y', E(5), ' − 4x', E(3), ')'], { y: 4, size: 52, fill: COL.good });
+ show(r, m('ans'));
+ text(p, 'Inside the parentheses, nothing common should remain.', 800, 760, m('test'), { size: 30, fill: COL.task, anchor: 'middle', weight: 600 });
+ }],
+ ['q3', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 260, w: 1160, cls: 'side' }, [{
+ id: 'c-full', prompt: ['Is ', $m('4(2x + 6)'), ' factored completely?'],
+ build: choice([['Yes'], ['No: 2x and 6 still share a 2']], 1, 'The GCF of 8x + 24 is 8: 8(x + 3).', ['2x and 6 are both even, so a factor of 2 is still inside.', null]),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['GCF: GCF of the numbers × shared variables to their smallest exponents.', 'w1', GCFC], ['Factor: divide every term by the GCF; write GCF(…what’s left).', 'w2', COL.whole],
+ ['Check by multiplying back; nothing common should be left inside.', 'w3', COL.good]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 260 + i * 140, o: 0 });
+ mk('circle', { cx: 140, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 140, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 200, size: 32, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [
+ { id: 'p-g1', prompt: ['GCF of ', $m('cx + cy'), '?'], build: choice([[$m('c')], [$m('cx')], [$m('xy')]], 0, 'Both terms share only c.', [null, 'cy has no x.', 'Neither term has both x and y.']) },
+ { id: 'p-g2', prompt: ['GCF of ', $m('8m − 6n'), '?'], build: choice([[$m('2')], [$m('2m')], [$m('48')]], 0, 'GCF of 8 and 6 is 2; no shared variable.', [null, '6n has no m.', '48 is a common multiple, not a common factor.']) },
+ { id: 'p-g3', prompt: ['GCF of ', $m('10a', E(2), 'b + 8a', E(3), 'b', E(2)), '?'], build: choice([[$m('2a', E(3), 'b', E(2))], [$m('2a', E(2), 'b')], [$m('a', E(2), 'b')]], 1, 'GCF(10, 8) = 2, with the smaller powers a² and b.', ['Use the smaller exponents, not the larger.', null, 'Both coefficients are even: include the 2.']) },
+ { id: 'p-g4', prompt: ['GCF of ', $m('12m', E(2), 'n', E(5), 'p', E(4), ' − 8mn', E(3), 'p', E(5), ' + 20mp', E(2)), '?'], build: choice([[$m('4mnp')], [$m('4mp', E(2))], [$m('2mp', E(2))]], 1, 'GCF(12, 8, 20) = 4; m¹, p², and no n (the last term has none).', ['The last term has no n.', null, '4 divides 12, 8 and 20.']) },
+ ], done, 'Chapter practice 1 of 3, question') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-fac', prompt: ['Factor completely.'], build: blanks([
+ { parts: ['16a', E(3), 'b', E(7), ' − 12a', E(2), 'b', E(6), ' = ', { box: '4' }, 'a', E(2), 'b', E(6), '(', { box: '4' }, 'ab − ', { box: '3' }, ')'], why: 'GCF = 4a²b⁶.', hint: 'GCF(16, 12) = 4.' },
+ { parts: ['9y', E(2), ' + 6y = ', { box: '3' }, 'y(', { box: '3' }, 'y + ', { box: '2' }, ')'], why: 'GCF = 3y.', hint: 'GCF(9, 6) = 3, and both terms have y.' },
+ { parts: ['7a + 7 = 7(a + ', { box: '1' }, ')'], why: '7 ÷ 7 = 1.', hint: 'Keep the 1.' },
+ { parts: ['18f', E(20), 'g', E(12), ' − 15f', E(4), 'g', E(8), ' = ', { box: '3' }, 'f', E(4), 'g', E(8), '(', { box: '6' }, 'f', E(16), 'g', E(4), ' − ', { box: '5' }, ')'], why: 'GCF = 3f⁴g⁸.', hint: 'GCF(18, 15) = 3.' },
+ ]),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-full', prompt: ['Is it factored completely?'],
+ build: grid(FULLQ, [['y', 'Completely', COL.good, 'Y'], ['n', 'Not yet', COL.bad, 'N']], { multi: false, text: true }),
+ }], done, 'Chapter practice 3 of 3') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const FULLQ = [
+ { parts: [$m('3x(x + 5)')], ans: ['y'], why: 'x and 5 share no factor.' },
+ { parts: [$m('2(6y + 4)')], ans: ['n'], why: '6y and 4 still share a 2: 4(3y + 2).' },
+ { parts: [$m('x(4x', E(2), ' − 8x)')], ans: ['n'], why: '4x² and 8x share 4x: 4x²(x − 2).' },
+ { parts: [$m('7(a + 1)')], ans: ['y'], why: 'a and 1 share nothing.' },
+ { parts: [$m('5ab(2a − 3b)')], ans: ['y'], why: '2a and 3b share nothing.' },
+ { parts: [$m('2x', E(7), 'y', E(2), '(6y', E(7), ' − 8x', E(3), 'y', E(2), ')')], ans: ['n'], why: '6y⁷ and 8x³y² still share 2y².' },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch53/audio/en/area.mp3 b/site/ch53/audio/en/area.mp3
new file mode 100644
index 0000000..e4d65de
Binary files /dev/null and b/site/ch53/audio/en/area.mp3 differ
diff --git a/site/ch53/audio/en/ex.mp3 b/site/ch53/audio/en/ex.mp3
new file mode 100644
index 0000000..a068fab
Binary files /dev/null and b/site/ch53/audio/en/ex.mp3 differ
diff --git a/site/ch53/audio/en/final1.mp3 b/site/ch53/audio/en/final1.mp3
new file mode 100644
index 0000000..b82d79c
Binary files /dev/null and b/site/ch53/audio/en/final1.mp3 differ
diff --git a/site/ch53/audio/en/final2.mp3 b/site/ch53/audio/en/final2.mp3
new file mode 100644
index 0000000..bfcab43
Binary files /dev/null and b/site/ch53/audio/en/final2.mp3 differ
diff --git a/site/ch53/audio/en/final3.mp3 b/site/ch53/audio/en/final3.mp3
new file mode 100644
index 0000000..bffcdfc
Binary files /dev/null and b/site/ch53/audio/en/final3.mp3 differ
diff --git a/site/ch53/audio/en/finish.mp3 b/site/ch53/audio/en/finish.mp3
new file mode 100644
index 0000000..d726318
Binary files /dev/null and b/site/ch53/audio/en/finish.mp3 differ
diff --git a/site/ch53/audio/en/gcf.mp3 b/site/ch53/audio/en/gcf.mp3
new file mode 100644
index 0000000..92c5267
Binary files /dev/null and b/site/ch53/audio/en/gcf.mp3 differ
diff --git a/site/ch53/audio/en/idea.mp3 b/site/ch53/audio/en/idea.mp3
new file mode 100644
index 0000000..5a9a706
Binary files /dev/null and b/site/ch53/audio/en/idea.mp3 differ
diff --git a/site/ch53/audio/en/intro.mp3 b/site/ch53/audio/en/intro.mp3
new file mode 100644
index 0000000..03b2e4e
Binary files /dev/null and b/site/ch53/audio/en/intro.mp3 differ
diff --git a/site/ch53/audio/en/neg.mp3 b/site/ch53/audio/en/neg.mp3
new file mode 100644
index 0000000..8a6b861
Binary files /dev/null and b/site/ch53/audio/en/neg.mp3 differ
diff --git a/site/ch53/audio/en/q1.mp3 b/site/ch53/audio/en/q1.mp3
new file mode 100644
index 0000000..53882bb
Binary files /dev/null and b/site/ch53/audio/en/q1.mp3 differ
diff --git a/site/ch53/audio/en/q2.mp3 b/site/ch53/audio/en/q2.mp3
new file mode 100644
index 0000000..6d48f51
Binary files /dev/null and b/site/ch53/audio/en/q2.mp3 differ
diff --git a/site/ch53/audio/en/q3.mp3 b/site/ch53/audio/en/q3.mp3
new file mode 100644
index 0000000..050b5bc
Binary files /dev/null and b/site/ch53/audio/en/q3.mp3 differ
diff --git a/site/ch53/audio/en/timings.js b/site/ch53/audio/en/timings.js
new file mode 100644
index 0000000..b3068ca
--- /dev/null
+++ b/site/ch53/audio/en/timings.js
@@ -0,0 +1,330 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 6.888,
+ "marks": {
+ "sub": 1.719
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter fifty-three."
+ ],
+ [
+ 1.719,
+ "When four terms share no common factor, try factoring them in pairs."
+ ]
+ ]
+ },
+ "idea": {
+ "dur": 26.352,
+ "marks": {
+ "none": 3.294,
+ "group": 6.237,
+ "f1": 10.052,
+ "f2": 14.089,
+ "same": 17.708,
+ "pull": 21.849,
+ "ans": 23.789
+ },
+ "cues": [
+ [
+ 0.117,
+ "Take a x plus a y plus b x plus b y."
+ ],
+ [
+ 3.294,
+ "No factor is shared by all four terms."
+ ],
+ [
+ 6.237,
+ "So group them in pairs: the first two, and the last two."
+ ],
+ [
+ 10.052,
+ "Factor a out of the first pair: a times x plus y."
+ ],
+ [
+ 14.089,
+ "Factor b out of the second: b times x plus y."
+ ],
+ [
+ 17.708,
+ "Now both parts share the same factor, x plus y."
+ ],
+ [
+ 21.849,
+ "Pull it out, just like a GCF: x plus y, times a plus b."
+ ]
+ ]
+ },
+ "area": {
+ "dur": 22.584,
+ "marks": {
+ "tiles": 1.979,
+ "rows": 5.586,
+ "rows2": 8.672,
+ "cols": 12.175,
+ "sides": 14.87,
+ "ans": 19.141
+ },
+ "cues": [
+ [
+ 0.078,
+ "An area model shows why."
+ ],
+ [
+ 1.979,
+ "Arrange the four terms as the parts of one rectangle: a x and a y share the height a, and b x and b y share the height b."
+ ],
+ [
+ 12.175,
+ "The columns share the widths x and y."
+ ],
+ [
+ 14.87,
+ "So the whole rectangle is a plus b tall and x plus y wide: its area is the product of those two factors."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 2.472,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.237,
+ "Factor by grouping."
+ ]
+ ]
+ },
+ "ex": {
+ "dur": 27.144,
+ "marks": {
+ "group": 4.779,
+ "f1": 7.734,
+ "f2": 12.109,
+ "same": 16.992,
+ "ans": 19.193,
+ "chk": 23.32
+ },
+ "cues": [
+ [
+ 0.104,
+ "Try p q minus three q plus four p minus twelve."
+ ],
+ [
+ 4.779,
+ "Group the first two terms and the last two."
+ ],
+ [
+ 7.734,
+ "The first pair has a common q: q times p minus three."
+ ],
+ [
+ 12.109,
+ "The second pair has a common four: four times p minus three."
+ ],
+ [
+ 16.992,
+ "Both share p minus three, so the factored form is p minus three, times q plus four."
+ ],
+ [
+ 23.32,
+ "Multiply back to check: you get all four terms again."
+ ]
+ ]
+ },
+ "neg": {
+ "dur": 30.264,
+ "marks": {
+ "q": 3.229,
+ "f1": 7.279,
+ "f2": 10.859,
+ "flip": 13.932,
+ "same": 19.701,
+ "ans": 22.565,
+ "warn": 26.419
+ },
+ "cues": [
+ [
+ 0.104,
+ "Watch the signs when the third term is negative."
+ ],
+ [
+ 3.229,
+ "Factor m x minus m y minus n x plus n y."
+ ],
+ [
+ 7.279,
+ "The first pair gives m times x minus y."
+ ],
+ [
+ 10.859,
+ "For the second pair, factor out negative n, and the signs inside both flip: negative n times x minus y."
+ ],
+ [
+ 19.701,
+ "Now both parts share x minus y, so the answer is x minus y, times m minus n."
+ ],
+ [
+ 26.419,
+ "If the parentheses don't match, check the signs before giving up."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 2.424,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "Mind the signs."
+ ]
+ ]
+ },
+ "gcf": {
+ "dur": 32.928,
+ "marks": {
+ "q": 3.698,
+ "out": 7.344,
+ "left": 8.841,
+ "pairs": 16.979,
+ "ans": 24.661
+ },
+ "cues": [
+ [
+ 0.104,
+ "Always look for a GCF of all the terms first."
+ ],
+ [
+ 3.698,
+ "Here, every term has m squared n squared."
+ ],
+ [
+ 7.344,
+ "Factor it out first."
+ ],
+ [
+ 8.841,
+ "Inside, twelve m cubed minus eight m squared plus nine m n cubed minus six n cubed."
+ ],
+ [
+ 16.979,
+ "Now group: four m squared times three m minus two, plus three n cubed times three m minus two."
+ ],
+ [
+ 24.661,
+ "The result is m squared n squared, times three m minus two, times four m squared plus three n cubed."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 2.376,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.198,
+ "Find the mistake."
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 16.896,
+ "marks": {
+ "w1": 1.042,
+ "w2": 4.974,
+ "w3": 8.763,
+ "w4": 12.083,
+ "end": 14.727
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.042,
+ "Factor out any GCF of all the terms first."
+ ],
+ [
+ 4.974,
+ "Group the four terms in pairs, and factor each pair."
+ ],
+ [
+ 8.763,
+ "If the two parts share a binomial, factor it out."
+ ],
+ [
+ 12.083,
+ "Watch the signs when you factor out a negative."
+ ],
+ [
+ 14.727,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 2.904,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.615,
+ "Factor by grouping."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 3.336,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, is each factorization correct?"
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 3.696,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.237,
+ "Factor out the GCF first."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 5.112,
+ "marks": {},
+ "cues": [
+ [
+ 0.078,
+ "Nice work."
+ ],
+ [
+ 1.185,
+ "That's the end of chapter fifty-three, factoring by grouping."
+ ]
+ ]
+ }
+};
diff --git a/site/ch53/audio/en/wrap.mp3 b/site/ch53/audio/en/wrap.mp3
new file mode 100644
index 0000000..392a703
Binary files /dev/null and b/site/ch53/audio/en/wrap.mp3 differ
diff --git a/site/ch53/index.html b/site/ch53/index.html
new file mode 100644
index 0000000..c24f793
--- /dev/null
+++ b/site/ch53/index.html
@@ -0,0 +1,165 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Factoring by Grouping</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 53, title: 'Factoring by Grouping', minutes: 8, next: '../ch54/' };
+const G1 = COL.whole, G2 = COL.nat, BIN = COL.task;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+// A rounded bracket under tokens i..j of a row: marks a group.
+function under(p, row, i, j, color, t0, label) {
+ const x1 = row[i]._px - row[i]._w / 2, x2 = row[j]._px + row[j]._w / 2, y = row.y + 22;
+ draw(path(p, `M${x1} ${y}Q${x1} ${y + 18} ${x1 + 18} ${y + 18}H${x2 - 18}Q${x2} ${y + 18} ${x2} ${y}`, { stroke: color, 'stroke-width': 4 }, { d: 0 }), t0, .5);
+ if (label) mline(p, label, (x1 + x2) / 2, y + 72, t0 + .4, color, 44);
+}
+// A highlight box around token k of a row.
+function boxTok(p, row, k, color, t0, pad = 2) {
+ const e = row[k], r = put(mk('rect', { x: e._px - e._w / 2 - pad, y: row.y - row.size * .9, width: e._w + 2 * pad, height: row.size * 1.25, rx: 12, fill: 'none', stroke: color, 'stroke-width': 3.5 }, p), { o: 0 });
+ show(r, t0, .3);
+ return r;
+}
+const step = (p, parts, y, t0, note, fill = COL.chalk, X = 330) => eqLine(p, [], parts, y, t0, { xEq: X, fill, note, noteX: 1080, size: 50 });
+
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'Factoring by grouping', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 10, Chapter 53', { x: 800, y: 330, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Factoring by Grouping', { x: 800, y: 430, size: 88, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = mline(scene, 'ax + ay + bx + b\u200By = (x + y)(a + b)', 800, 600, m('sub'), COL.dim, 46);
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['idea', 'Pairs', (m) => {
+ const p = panel(0);
+ const row = tokens(p, [{ t: 'ax', fill: G1 }, ' + ', { t: 'ay', fill: G1 }, ' + ', { t: 'bx', fill: G2 }, ' + ', { t: 'b\u200By', fill: G2 }], { x: 800, y: 190, size: 72, anchor: 'middle', o: 0 });
+ row.forEach(e => show(e, .2));
+ text(p, 'no factor shared by all four terms', 800, 290, m('none'), { size: 28, fill: COL.dim, anchor: 'middle' });
+ under(p, row, 0, 2, G1, m('group'));
+ under(p, row, 4, 6, G2, m('group', .4));
+ const r2 = tokens(p, [{ t: 'a', fill: G1 }, '(x + y)', ' + ', { t: 'b', fill: G2 }, '(x + y)'], { x: 800, y: 440, size: 72, anchor: 'middle', o: 0 });
+ [0, 1].forEach(k => show(r2[k], m('f1'))); [2, 3, 4].forEach(k => show(r2[k], m('f2')));
+ boxTok(p, r2, 1, BIN, m('same')); boxTok(p, r2, 4, BIN, m('same', .3));
+ const pulled = M(p, ['(x + y)'], { x: r2[1]._px, y: 440, size: 72, fill: BIN, o: 0 });
+ show(pulled, m('pull'), .1); tw(pulled, { x: 640, y: 640 }, m('pull'), .9);
+ mline(p, '(a + b)', 920, 640, m('ans'), COL.chalk, 72);
+ const res = put(mk('rect', { x: 470, y: 570, width: 640, height: 100, rx: 18, fill: 'none', stroke: COL.good, 'stroke-width': 3 }, p), { o: 0 });
+ show(res, m('ans', .6));
+ }],
+ ['area', 'An area picture', (m) => {
+ const p = panel(0);
+ const A = areaGrid(p, 520, 260, [280, 220], [220, 180], ['x', 'y'], ['a', 'b'], m('tiles'), { size: 50 });
+ [[0, 0, 'ax', G1], [0, 1, 'ay', G1], [1, 0, 'bx', G2], [1, 1, 'b\u200By', G2]].forEach(([i, j, s, c], k) => A.cell(i, j, s, m('tiles', .6 + k * .3), { tint: c }));
+ A.ring(0, 0, G1, m('rows')); A.ring(0, 1, G1, m('rows'));
+ A.ring(1, 0, G2, m('rows2')); A.ring(1, 1, G2, m('rows2'));
+ const xs = A.xs, ys = A.ys;
+ draw(path(p, `M${xs[0]} ${ys[2] + 40}H${xs[2]}`, { stroke: BIN, 'stroke-width': 4 }, { d: 0 }), m('sides'), .5);
+ mline(p, 'x + y', (xs[0] + xs[2]) / 2, ys[2] + 96, m('sides', .3), BIN, 46);
+ draw(path(p, `M${xs[2] + 40} ${ys[0]}V${ys[2]}`, { stroke: COL.irr, 'stroke-width': 4 }, { d: 0 }), m('sides', .8), .5);
+ mline(p, 'a + b', xs[2] + 60, (ys[0] + ys[2]) / 2 + 16, m('sides', 1.1), COL.irr, 46, 'start');
+ mline(p, 'area = (a + b)(x + y)', 800, 160, m('ans'), COL.good, 50);
+ }],
+ ['q1', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 260, w: 1160, cls: 'side' }, [{
+ id: 'c-grp', prompt: ['Factor ', $m('x', E(2), ' + 5x + xy + 5y'), ' by grouping.'],
+ build: blanks([{ parts: ['x(x + ', { box: '5' }, ') + y(x + ', { box: '5' }, ') = (x + 5)(x + y)'], why: 'x is common to x² + 5x, and y to xy + 5y. Both leave x + 5.', hint: 'Factor x out of x² + 5x, and y out of xy + 5y.' }]),
+ }], done) }],
+ ['ex', 'Another example', (m) => {
+ const p = panel(0);
+ mline(p, 'pq − 3q + 4p − 12', 800, 130, .2, COL.chalk, 60);
+ step(p, '(pq − 3q) + (4p − 12)', 270, m('group'));
+ step(p, 'q(p − 3) + 4(p − 3)', 380, m('f1'), 'q and 4 come out');
+ step(p, '(p − 3)(q + 4)', 490, m('ans'), 'p − 3 is shared', COL.good);
+ mline(p, '(p − 3)(q + 4) = pq + 4p − 3q − 12 ✓', 800, 650, m('chk'), COL.dim, 40);
+ }],
+ ['neg', 'Watch the signs', (m) => {
+ const p = panel(0);
+ mline(p, 'mx − m\u200By − nx + ny', 800, 130, m('q'), COL.chalk, 60);
+ step(p, 'm(x − y) − nx + ny', 270, m('f1'));
+ tokens(p, ['= m(x − y)', { t: ' − n', fill: COL.bad }, '(x', { t: ' − ', fill: COL.bad }, 'y)'], { x: 300, y: 380, size: 50, o: 0 }).forEach(e => show(e, m('f2', .5)));
+ text(p, '−n · x = −nx, −n · (−y) = +ny', 1080, 372, m('flip'), { size: 26, fill: COL.bad, weight: 600 });
+ step(p, '(x − y)(m − n)', 490, m('ans'), '', COL.good);
+ text(p, 'Parentheses don’t match? Check the signs.', 800, 680, m('warn'), { size: 30, fill: COL.task, anchor: 'middle', weight: 600 });
+ }],
+ ['q2', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 260, w: 1160, cls: 'side' }, [{
+ id: 'c-sign', prompt: ['Factor ', $m('5ac − 15ad − bc + 3bd'), '.'],
+ build: choice([[$m('(c − 3d)(5a + b)')], [$m('(c − 3d)(5a − b)')], [$m('(c + 3d)(5a − b)')]], 1, '5a(c − 3d) − b(c − 3d) = (c − 3d)(5a − b).',
+ ['Factor −b out of −bc + 3bd: −b(c − 3d), so the second factor has −b.', null, '−15ad = 5a · (−3d), so the binomial is c − 3d.']),
+ }], done) }],
+ ['gcf', 'GCF first', (m) => {
+ const p = panel(0), X = 250;
+ mline(p, ['12m', E(5), 'n', E(2), ' − 8m', E(4), 'n', E(2), ' + 9m', E(3), 'n', E(5), ' − 6m', E(2), 'n', E(5)], 800, 130, m('q'), COL.chalk, 50);
+ eqLine(p, [], ['m', E(2), 'n', E(2), '(12m', E(3), ' − 8m', E(2), ' + 9mn', E(3), ' − 6n', E(3), ')'], 270, m('out'), { xEq: X, size: 46, note: 'GCF of all four terms', noteX: 1130 });
+ eqLine(p, [], ['m', E(2), 'n', E(2), '[4m', E(2), '(3m − 2) + 3n', E(3), '(3m − 2)]'], 400, m('pairs'), { xEq: X, size: 46, note: 'group inside', noteX: 1130 });
+ eqLine(p, [], ['m', E(2), 'n', E(2), '(3m − 2)(4m', E(2), ' + 3n', E(3), ')'], 530, m('ans'), { xEq: X, size: 46, fill: COL.good });
+ }],
+ ['q3', 'Quick check', () => {
+ const p = panel(0), X = 250;
+ mline(p, ['8x', E(5), 'y', E(6), ' − 2x', E(3), 'y', E(9), ' − 24x', E(5), 'y', E(4), ' + 6x', E(3), 'y', E(7)], 800, 120, .2, COL.chalk, 44);
+ [[['(8x', E(5), 'y', E(6), ' − 2x', E(3), 'y', E(9), ') − (24x', E(5), 'y', E(4), ' + 6x', E(3), 'y', E(7), ')'], 'line 1'],
+ [['2x', E(3), 'y', E(6), '(4x', E(2), ' − y', E(3), ') − 6x', E(3), 'y', E(4), '(4x', E(2), ' + y', E(3), ')'], 'line 2'],
+ ['no common binomial, so it can’t be factored', 'line 3']].forEach(([parts, lab], i) => {
+ text(p, lab, 120, 250 + i * 100, .3 + i * .2, { size: 24, fill: COL.dim, weight: 600 });
+ if (typeof parts === 'string') text(p, parts, 260, 252 + i * 100, .3 + i * .2, { size: 34 });
+ else mline(p, parts, 260, 255 + i * 100, .3 + i * .2, COL.chalk, 40, 'start');
+ });
+ }, { ask: done => quiz({ x: 220, y: 560, w: 1160, cls: 'side' }, [{
+ id: 'c-chuck', prompt: ['Where is the first mistake?'],
+ build: choice([['line 1'], ['line 2'], ['line 3'], ['no mistake']], 0, '−24x⁵y⁴ + 6x³y⁷ = −(24x⁵y⁴ − 6x³y⁷): the sign of 6x³y⁷ must flip inside.',
+ [null, 'Line 2 follows from line 1, but line 1 already has a sign error.', 'The conclusion is wrong because of an earlier sign error.', 'With the signs fixed, both groups share 4x² − y³.']),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['First, factor out any GCF of all the terms.', 'w1', COL.task], ['Group the terms in pairs; factor each pair.', 'w2', G1],
+ ['If the pairs share a binomial, factor it out.', 'w3', BIN], ['Factoring out a negative flips the signs inside.', 'w4', COL.bad]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 230 + i * 130, o: 0 });
+ mk('circle', { cx: 200, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 200, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 260, size: 34, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-grp', prompt: ['Factor by grouping.'], build: blanks([
+ { parts: ['3fm − gm + 6fn − 2gn = (3f − g)(m + ', { box: '2' }, 'n)'], why: 'm(3f − g) + 2n(3f − g).', hint: 'Factor m from the first pair and 2n from the second.' },
+ { parts: ['10a', E(2), ' + 14a − 15ab − 21b = (5a + ', { box: '7' }, ')(2a − ', { box: '3' }, 'b)'], why: '2a(5a + 7) − 3b(5a + 7).', hint: 'Factor 2a from the first pair and −3b from the second.' },
+ { parts: ['2m + 7am − 6n − 21a\u200Bn = (2 + ', { box: '7' }, 'a)(m − ', { box: '3' }, 'n)'], why: 'm(2 + 7a) − 3n(2 + 7a).', hint: 'Factor −3n from the second pair.' },
+ { parts: ['x', E(2), ' + 3x + 2x + 6 = (x + ', { box: '3' }, ')(x + ', { box: '2' }, ')'], why: 'x(x + 3) + 2(x + 3).', hint: 'Factor x from the first pair and 2 from the second.' },
+ ]),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-tf', prompt: ['Is the factorization correct?'], build: grid(TFQ, TF, { multi: false, text: true }),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-gcf', prompt: ['Factor completely: GCF first, then grouping.'], build: blanks([
+ { parts: ['30am', E(2), ' − 40amn + 16bmn − 12bm', E(2), ' = ', { box: '2' }, 'm(3m − 4n)(5a − ', { box: '2' }, 'b)'], why: '2m(15am − 20an + 8bn − 6bm) = 2m[5a(3m − 4n) − 2b(3m − 4n)].', hint: 'Every term has 2m. Then group inside.' },
+ { parts: ['2x', E(3), ' + 4x', E(2), ' + 6x + 12 = ', { box: '2' }, '(x + ', { box: '2' }, ')(x', E(2), ' + 3)'], why: '2(x³ + 2x² + 3x + 6) = 2[x²(x + 2) + 3(x + 2)].', hint: 'Every term is even: take out 2 first.' },
+ ]),
+ }], done, 'Chapter practice 3 of 3') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const TFQ = [
+ { parts: [$m('ax − ay − bx + b\u200By = (x − y)(a − b)')], ans: ['t'], why: 'a(x − y) − b(x − y).' },
+ { parts: [$m('mx − m\u200By − nx + ny = (x − y)(m + n)')], ans: ['f'], why: 'It is (x − y)(m − n).' },
+ { parts: [$m('pq − 3q + 4p − 12 = (p − 3)(q + 4)')], ans: ['t'], why: 'q(p − 3) + 4(p − 3).' },
+ { parts: [$m('x', E(2), ' + 2x + 3x + 6 = (x + 2)(x + 6)')], ans: ['f'], why: 'x(x + 2) + 3(x + 2) = (x + 2)(x + 3).' },
+ { parts: [$m('2x', E(3), ' + 4x', E(2), ' + 3x + 6 = (x + 2)(2x', E(2), ' + 3)')], ans: ['t'], why: '2x²(x + 2) + 3(x + 2).' },
+ { parts: [$m('ab + 2a + 5b + 10 = (a + 5)(b + 2)')], ans: ['t'], why: 'a(b + 2) + 5(b + 2).' },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch54/audio/en/careful.mp3 b/site/ch54/audio/en/careful.mp3
new file mode 100644
index 0000000..3b8cd6e
Binary files /dev/null and b/site/ch54/audio/en/careful.mp3 differ
diff --git a/site/ch54/audio/en/final1.mp3 b/site/ch54/audio/en/final1.mp3
new file mode 100644
index 0000000..9f45087
Binary files /dev/null and b/site/ch54/audio/en/final1.mp3 differ
diff --git a/site/ch54/audio/en/final2.mp3 b/site/ch54/audio/en/final2.mp3
new file mode 100644
index 0000000..c59773e
Binary files /dev/null and b/site/ch54/audio/en/final2.mp3 differ
diff --git a/site/ch54/audio/en/final3.mp3 b/site/ch54/audio/en/final3.mp3
new file mode 100644
index 0000000..62287f6
Binary files /dev/null and b/site/ch54/audio/en/final3.mp3 differ
diff --git a/site/ch54/audio/en/finish.mp3 b/site/ch54/audio/en/finish.mp3
new file mode 100644
index 0000000..318a98a
Binary files /dev/null and b/site/ch54/audio/en/finish.mp3 differ
diff --git a/site/ch54/audio/en/intro.mp3 b/site/ch54/audio/en/intro.mp3
new file mode 100644
index 0000000..ecb1988
Binary files /dev/null and b/site/ch54/audio/en/intro.mp3 differ
diff --git a/site/ch54/audio/en/none.mp3 b/site/ch54/audio/en/none.mp3
new file mode 100644
index 0000000..a3f8baa
Binary files /dev/null and b/site/ch54/audio/en/none.mp3 differ
diff --git a/site/ch54/audio/en/q1.mp3 b/site/ch54/audio/en/q1.mp3
new file mode 100644
index 0000000..a730337
Binary files /dev/null and b/site/ch54/audio/en/q1.mp3 differ
diff --git a/site/ch54/audio/en/q2.mp3 b/site/ch54/audio/en/q2.mp3
new file mode 100644
index 0000000..8dc7713
Binary files /dev/null and b/site/ch54/audio/en/q2.mp3 differ
diff --git a/site/ch54/audio/en/q3.mp3 b/site/ch54/audio/en/q3.mp3
new file mode 100644
index 0000000..fc49272
Binary files /dev/null and b/site/ch54/audio/en/q3.mp3 differ
diff --git a/site/ch54/audio/en/signs.mp3 b/site/ch54/audio/en/signs.mp3
new file mode 100644
index 0000000..06105c5
Binary files /dev/null and b/site/ch54/audio/en/signs.mp3 differ
diff --git a/site/ch54/audio/en/table.mp3 b/site/ch54/audio/en/table.mp3
new file mode 100644
index 0000000..a7f79cf
Binary files /dev/null and b/site/ch54/audio/en/table.mp3 differ
diff --git a/site/ch54/audio/en/tiles.mp3 b/site/ch54/audio/en/tiles.mp3
new file mode 100644
index 0000000..70ec7cb
Binary files /dev/null and b/site/ch54/audio/en/tiles.mp3 differ
diff --git a/site/ch54/audio/en/timings.js b/site/ch54/audio/en/timings.js
new file mode 100644
index 0000000..6ea0885
--- /dev/null
+++ b/site/ch54/audio/en/timings.js
@@ -0,0 +1,340 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 9.96,
+ "marks": {
+ "sub": 1.81
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter fifty-four."
+ ],
+ [
+ 1.81,
+ "Some trinomials, like x squared plus five x plus six, are the product of two binomials."
+ ],
+ [
+ 8.854,
+ "Here's how to find them."
+ ]
+ ]
+ },
+ "tiles": {
+ "dur": 31.584,
+ "marks": {
+ "sq": 4.909,
+ "xs": 6.146,
+ "ones": 7.305,
+ "try": 9.05,
+ "corner": 13.529,
+ "side": 15.43,
+ "fill": 18.19,
+ "dims": 20.482,
+ "ans": 24.961
+ },
+ "cues": [
+ [
+ 0.117,
+ "Build x squared plus five x plus six with algebra tiles: one x squared, five x strips, and six unit squares."
+ ],
+ [
+ 9.05,
+ "Factoring means arranging all of them into one rectangle."
+ ],
+ [
+ 13.529,
+ "Put the big square in the corner, the x strips along two sides, and the ones fill the corner that's left."
+ ],
+ [
+ 20.482,
+ "The rectangle is x plus two tall and x plus three wide."
+ ],
+ [
+ 24.961,
+ "So x squared plus five x plus six equals x plus two, times x plus three."
+ ]
+ ]
+ },
+ "why": {
+ "dur": 24.264,
+ "marks": {
+ "foil": 1.497,
+ "mid": 5.208,
+ "last": 11.315,
+ "rule": 16.732
+ },
+ "cues": [
+ [
+ 0.104,
+ "Why those numbers?"
+ ],
+ [
+ 1.497,
+ "Multiply x plus d by x plus e with FOIL: the outer and inner terms give d x plus e x, so d plus e must equal b."
+ ],
+ [
+ 11.315,
+ "The last terms give d times e, so d times e must equal c."
+ ],
+ [
+ 16.732,
+ "To factor x squared plus b x plus c, look for two numbers that multiply to c and add to b."
+ ]
+ ]
+ },
+ "table": {
+ "dur": 22.344,
+ "marks": {
+ "list": 3.984,
+ "sums": 9.023,
+ "hit": 12.695,
+ "ans": 15.82,
+ "order": 19.766
+ },
+ "cues": [
+ [
+ 0.143,
+ "Factor x squared plus eight x plus fifteen."
+ ],
+ [
+ 3.984,
+ "List the factor pairs of fifteen: one and fifteen, three and five."
+ ],
+ [
+ 9.023,
+ "Check each sum: one plus fifteen is sixteen, three plus five is eight."
+ ],
+ [
+ 14.844,
+ "That's b."
+ ],
+ [
+ 15.82,
+ "So the answer is x plus three, times x plus five."
+ ],
+ [
+ 19.766,
+ "The order of the two factors doesn't matter."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 2.136,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.094,
+ "Pick the pair."
+ ]
+ ]
+ },
+ "signs": {
+ "dur": 30.888,
+ "marks": {
+ "pp": 1.628,
+ "nn": 6.146,
+ "mix": 17.031,
+ "ex": 21.211,
+ "ans": 27.799
+ },
+ "cues": [
+ [
+ 0.104,
+ "Signs tell you where to look."
+ ],
+ [
+ 1.628,
+ "If c is positive and b is positive, both numbers are positive."
+ ],
+ [
+ 6.146,
+ "If c is positive but b is negative, both numbers are negative: x squared minus ten x plus twenty-one is x minus three, times x minus seven."
+ ],
+ [
+ 17.031,
+ "If c is negative, the numbers have opposite signs."
+ ],
+ [
+ 21.211,
+ "For x squared plus two x minus thirty-five, the pair is negative five and seven: x minus five, times x plus seven."
+ ]
+ ]
+ },
+ "careful": {
+ "dur": 15.624,
+ "marks": {
+ "a": 2.578,
+ "b": 7.175,
+ "diff": 11.784
+ },
+ "cues": [
+ [
+ 0.104,
+ "Be careful which number gets the minus sign."
+ ],
+ [
+ 2.578,
+ "x plus seven, times x minus five, gives plus two x."
+ ],
+ [
+ 7.175,
+ "x minus seven, times x plus five, gives minus two x."
+ ],
+ [
+ 11.784,
+ "They're different trinomials, so check the middle term every time."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 2.664,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.211,
+ "Factor the trinomial."
+ ]
+ ]
+ },
+ "none": {
+ "dur": 19.8,
+ "marks": {
+ "ex": 3.164,
+ "pairs": 6.263,
+ "sums": 13.099,
+ "nf": 16.471
+ },
+ "cues": [
+ [
+ 0.104,
+ "Not every trinomial can be factored this way."
+ ],
+ [
+ 3.164,
+ "Take x squared plus five x plus three."
+ ],
+ [
+ 6.263,
+ "The only integer pairs that multiply to three are one and three, and negative one and negative three."
+ ],
+ [
+ 13.099,
+ "Their sums are four and negative four, never five."
+ ],
+ [
+ 16.471,
+ "So it doesn't factor into binomials with integers."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 2.208,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Who is correct?"
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 21.96,
+ "marks": {
+ "w1": 0.99,
+ "w2": 8.698,
+ "w3": 12.708,
+ "w4": 15.586,
+ "end": 19.766
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 0.99,
+ "To factor x squared plus b x plus c, find two numbers that multiply to c and add to b."
+ ],
+ [
+ 8.698,
+ "The signs of b and c tell you the signs of the two numbers."
+ ],
+ [
+ 12.708,
+ "Check the middle term by multiplying back."
+ ],
+ [
+ 15.586,
+ "If no pair works, the trinomial can't be factored with integers."
+ ],
+ [
+ 19.766,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 3.504,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.562,
+ "Factor each trinomial."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 2.064,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, can it be factored?"
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 2.88,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Last one."
+ ],
+ [
+ 1.094,
+ "More practice with signs."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 5.472,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Great work."
+ ],
+ [
+ 1.211,
+ "That's the end of chapter fifty-four, factoring trinomials."
+ ]
+ ]
+ }
+};
diff --git a/site/ch54/audio/en/why.mp3 b/site/ch54/audio/en/why.mp3
new file mode 100644
index 0000000..5a2af3e
Binary files /dev/null and b/site/ch54/audio/en/why.mp3 differ
diff --git a/site/ch54/audio/en/wrap.mp3 b/site/ch54/audio/en/wrap.mp3
new file mode 100644
index 0000000..1fa7e9d
Binary files /dev/null and b/site/ch54/audio/en/wrap.mp3 differ
diff --git a/site/ch54/index.html b/site/ch54/index.html
new file mode 100644
index 0000000..71a90b0
--- /dev/null
+++ b/site/ch54/index.html
@@ -0,0 +1,185 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Factoring Trinomials When a = 1</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 54, title: 'Factoring Trinomials When a = 1', minutes: 9, next: '../ch55/' };
+const CB = COL.whole, CC = COL.nat, HIT = COL.good;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+const tri = (b, c, v = 'x') => [`${v}`, E(2), ` ${b < 0 ? '−' : '+'} ${Math.abs(b) === 1 ? '' : Math.abs(b)}${v} ${c < 0 ? '−' : '+'} ${Math.abs(c)}`];
+// Accept the two numbers in either order.
+const pair = (d, e) => ([a, b]) => (a === d && b === e) || (a === e && b === d);
+// A table of factor pairs of c with their sums; returns the row boxes for picking. The matching row can be marked.
+function pairTable(p, c, pairs, x, y, t0, { sums = true, b, sumAt } = {}) {
+ const g = G(p, { o: 0 }), rowH = 66;
+ T(g, `factor pairs of ${num(c)}`, { x: x + 10, y: y - 20, size: 24, fill: CC, weight: 600 });
+ if (sums) T(g, 'sum', { x: x + 330, y: y - 20, size: 24, fill: CB, weight: 600, anchor: 'middle' });
+ show(g, t0);
+ return pairs.map(([d, e], i) => {
+ const yy = y + 20 + i * rowH;
+ const r = G(p, { o: 0 });
+ M(r, [`${num(d)} × ${num(e)}`], { x: x + 10, y: yy + 30, size: 40, anchor: 'start' });
+ show(r, t0 + .2 + i * .25);
+ const s = sums ? mline(p, num(d + e), x + 330, yy + 30, (sumAt ?? t0 + .5) + i * .4, d + e === b ? HIT : COL.dim, 40) : null;
+ return { r, s, box: [x - 10, yy - 10, 420, rowH - 6], d, e, y: yy };
+ });
+}
+function markRow(p, row, t0, color = HIT, run = tw) {
+ const [x, y, w, h] = row.box, r = put(mk('rect', { x, y, width: w, height: h, rx: 12, fill: 'none', stroke: color, 'stroke-width': 3.5 }, p), { o: 0 });
+ run(r, { o: 1 }, t0, .3);
+ return r;
+}
+
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'Trinomials', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 10, Chapter 54', { x: 800, y: 300, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Factoring Trinomials', { x: 800, y: 400, size: 80, weight: 600, anchor: 'middle' });
+ M(g, ['When a = 1'], { x: 800, y: 490, size: 80, fill: COL.chalk });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = mline(scene, ['x', E(2), ' + 5x + 6 = (x + 2)(x + 3)'], 800, 630, m('sub'), COL.dim, 50);
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['tiles', 'A rectangle of tiles', (m) => {
+ const p = panel(0), K = 1.9, g = G(p, { x: 360, y: 230, s: K }); // tile units scaled up
+ mline(p, ['x', E(2), ' + 5x + 6'], 800, 130, .2, COL.chalk, 60);
+ const sq = atile(g, 'x2', 60, 60); const xs = Array.from({ length: 5 }, (_, i) => atile(g, 'x', 230 + i * 40, 60)); const ones = Array.from({ length: 6 }, (_, i) => atile(g, 'one', 470 + (i % 3) * 36, 30 + Math.floor(i / 3) * 36));
+ popIn([sq], m('sq')); popIn(xs, m('xs'), .1); popIn(ones, m('ones'), .08);
+ text(p, 'one rectangle, every tile used', 800, 820, m('try'), { size: 28, fill: COL.dim, anchor: 'middle' });
+ // Target layout: x² at the top-left, three strips to its right, two strips (turned) below, ones in the corner.
+ const X0 = 0, Y0 = 0;
+ tw(sq, { x: X0 + 60, y: Y0 + 60 }, m('corner'), .8);
+ xs.slice(0, 3).forEach((t, i) => tw(t, { x: X0 + 135 + i * 30, y: Y0 + 60 }, m('side', i * .2), .8));
+ xs.slice(3).forEach((t, j) => tw(t, { x: X0 + 60, y: Y0 + 135 + j * 30, r: 90 }, m('side', .7 + j * .2), .8));
+ ones.forEach((t, i) => tw(t, { x: X0 + 135 + (i % 3) * 30, y: Y0 + 135 + Math.floor(i / 3) * 30 }, m('fill', i * .12), .7));
+ const L = 360, T0 = 230;
+ draw(path(p, `M${L} ${T0 - 24}H${L + 210 * K}`, { stroke: CB, 'stroke-width': 4 }, { d: 0 }), m('dims'), .5);
+ mline(p, 'x + 3', L + 105 * K, T0 - 40, m('dims', .3), CB, 46);
+ draw(path(p, `M${L - 24} ${T0}V${T0 + 180 * K}`, { stroke: CC, 'stroke-width': 4 }, { d: 0 }), m('dims', .8), .5);
+ mline(p, 'x + 2', L - 40, T0 + 90 * K + 14, m('dims', 1.1), CC, 46, 'end');
+ const r = G(p, { o: 0, x: 1180, y: 520 });
+ mk('rect', { x: -330, y: -62, width: 660, height: 96, rx: 18, fill: 'none', stroke: HIT, 'stroke-width': 3 }, r);
+ M(r, ['x', E(2), ' + 5x + 6 = (x + 2)(x + 3)'], { y: 4, size: 46, fill: HIT });
+ show(r, m('ans'));
+ }],
+ ['why', 'Multiply to c, add to b', (m) => {
+ const p = panel(0);
+ const row = tokens(p, ['(x + ', { t: 'd', fill: CB }, ')(x + ', { t: 'e', fill: CC }, ') = x', E(2), ' + ', { t: ['dx + ex'], fill: COL.int }, ' + ', { t: 'de', fill: COL.irr }], { x: 800, y: 220, size: 60, anchor: 'middle', o: 0 });
+ row.forEach(e => show(e, m('foil')));
+ const mid = row.at(-3), last = row.at(-1);
+ mline(p, ['= (d + e)x'], mid._px, 330, m('mid', 1.2), COL.int, 44);
+ mline(p, ['d + e = b'], 560, 430, m('mid', 2.4), COL.int, 54);
+ mline(p, ['d · e = c'], 1040, 430, m('last', .8), COL.irr, 54);
+ draw(path(p, `M${last._px} 250Q${last._px + 40} 340 1040 380`, { stroke: COL.irr, 'stroke-width': 3 }, { d: 0 }), m('last', .4), .5);
+ draw(path(p, `M${mid._px - 90} 345Q${mid._px - 200} 380 680 405`, { stroke: COL.int, 'stroke-width': 3 }, { d: 0 }), m('mid', 2), .5);
+ mline(p, ['x', E(2), ' + ', 'bx', ' + ', 'c'], 800, 560, m('rule'), COL.chalk, 60);
+ const r = G(p, { o: 0, x: 800, y: 690 });
+ mk('rect', { x: -380, y: -60, width: 760, height: 90, rx: 18, fill: 'none', stroke: COL.task, 'stroke-width': 3 }, r);
+ T(r, 'two numbers that multiply to c and add to b', { y: 0, size: 32, fill: COL.task, weight: 600, anchor: 'middle' });
+ show(r, m('rule', .8));
+ }],
+ ['table', 'Search the factor pairs', (m) => {
+ const p = panel(0);
+ mline(p, tri(8, 15), 800, 130, .2, COL.chalk, 60);
+ text(p, 'multiply to 15, add to 8', 800, 190, .4, { size: 26, fill: COL.dim, anchor: 'middle' });
+ const rows = pairTable(p, 15, [[1, 15], [3, 5]], 300, 330, m('list'), { b: 8, sumAt: m('sums') });
+ markRow(p, rows[1], m('hit'));
+ mline(p, '(x + 3)(x + 5)', 1150, 420, m('ans'), HIT, 60);
+ mline(p, '= (x + 5)(x + 3)', 1150, 520, m('order'), COL.dim, 46);
+ }],
+ ['q1', 'Quick check', () => {
+ const p = panel(0);
+ mline(p, tri(9, 14), 800, 130, .2, COL.chalk, 60);
+ S.rows = pairTable(p, 14, [[1, 14], [2, 7]], 300, 330, .3, { sums: false });
+ }, { ask: done => quiz({ x: 820, y: 300, w: 640, cls: 'side' }, [{
+ id: 'c-pair', prompt: ['Click the pair that adds to 9.'],
+ build: pickEls(S.rows.map(r => ({ el: r.r, box: r.box, label: `${r.d} times ${r.e}` })), 1, '2 · 7 = 14 and 2 + 7 = 9: (x + 2)(x + 7).',
+ () => '1 + 14 = 15, not 9.',
+ () => S.rows.forEach((r, i) => { const L = S.q || qlayer(); const t = M(L, [String(r.d + r.e)], { x: 630, y: r.y + 30, size: 40, fill: i ? HIT : COL.dim, o: 0 }); fx(t, { o: 1 }, i * .2, .3); })),
+ }], done) }],
+ ['signs', 'Reading the signs', (m) => {
+ const p = panel(0);
+ const rows = [['c > 0, b > 0', 'both numbers positive', 'pp'], ['c > 0, b < 0', 'both numbers negative', 'nn'], ['c < 0', 'one positive, one negative', 'mix']];
+ rows.forEach(([a, b, k], i) => { mline(p, a, 200, 170 + i * 80, m(k), COL.chalk, 40, 'start'); text(p, b, 560, 160 + i * 80, m(k, .3), { size: 30, fill: COL.task, weight: 600 }); });
+ mline(p, [...tri(-10, 21), ' = (x − 3)(x − 7)'], 1000, 250, m('nn', 4), COL.dim, 34, 'start');
+ mline(p, tri(2, -35), 800, 470, m('ex'), COL.chalk, 52);
+ const t = pairTable(p, -35, [[-1, 35], [-5, 7], [-7, 5], [1, -35]], 300, 560, m('ex', .5), { b: 2, sumAt: m('ex', 1.5) });
+ markRow(p, t[1], m('ans', -1));
+ mline(p, '(x − 5)(x + 7)', 1150, 700, m('ans'), HIT, 56);
+ }],
+ ['careful', 'Which one is negative?', (m) => {
+ const p = panel(0);
+ mline(p, ['(x + 7)(x − 5) = x', E(2), ' + 2x − 35'], 800, 280, m('a'), COL.chalk, 56);
+ mline(p, ['(x − 7)(x + 5) = x', E(2), ' − 2x − 35'], 800, 430, m('b'), COL.chalk, 56);
+ text(p, 'different middle terms: check by multiplying back', 800, 600, m('diff'), { size: 30, fill: COL.task, anchor: 'middle', weight: 600 });
+ }],
+ ['q2', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 260, w: 1160, cls: 'side' }, [{
+ id: 'c-fac', prompt: ['Factor ', $m(...tri(-13, -48)), ' as ', $m('(x + d)(x + e)'), '.'],
+ build: blanks([{ parts: ['d = ', { box: '3' }, ', e = ', { box: '-16' }], test: pair(3, -16), why: '3 · (−16) = −48 and 3 + (−16) = −13: (x + 3)(x − 16).', hint: 'c is negative, so one number is negative. Their product is −48 and their sum is −13.' }]),
+ }], done) }],
+ ['none', 'When nothing works', (m) => {
+ const p = panel(0);
+ mline(p, tri(5, 3), 800, 130, m('ex'), COL.chalk, 60);
+ pairTable(p, 3, [[1, 3], [-1, -3]], 300, 300, m('pairs'), { b: 5, sumAt: m('sums') });
+ text(p, 'no pair adds to 5', 1150, 380, m('nf'), { size: 32, fill: COL.bad, weight: 600, anchor: 'middle' });
+ text(p, 'not factorable with integers', 1150, 440, m('nf', .5), { size: 28, fill: COL.dim, anchor: 'middle' });
+ }],
+ ['q3', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 220, w: 1160, cls: 'side' }, [{
+ id: 'c-who', prompt: ['Who factored ', $m(...tri(-3, -28)), ' correctly?'],
+ build: choice([['Linda: ', $m('(x − 7)(x + 4)'), ' or ', $m('(x + 7)(x − 4)')], ['Maleek: ', $m('(x − 7)(x + 4)'), ' or ', $m('(x + 4)(x − 7)')]], 1,
+ '−7 · 4 = −28 and −7 + 4 = −3. Maleek wrote the same factors in two orders.', ['(x + 7)(x − 4) = x² + 3x − 28: the middle sign is wrong.', null]),
+ }], done) }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['Find two numbers that multiply to c and add to b.', 'w1', COL.task], ['The signs of b and c tell you their signs.', 'w2', CB],
+ ['Check the middle term by multiplying back.', 'w3', HIT], ['No pair? It doesn’t factor with integers.', 'w4', COL.bad]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 230 + i * 130, o: 0 });
+ mk('circle', { cx: 200, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 200, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 260, size: 34, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-fac', prompt: ['Write each as ', $m('(x + d)(x + e)'), '. Either order works.'], build: blanks(FACQ),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-can', prompt: ['Can it be factored with integers?'],
+ build: grid(CANQ, [['y', 'Yes', HIT, 'Y'], ['n', 'No', COL.bad, 'N']], { multi: false, text: true }),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-sign', prompt: ['Find d and e. Watch the signs.'], build: blanks(SIGNQ),
+ }], done, 'Chapter practice 3 of 3') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const prow = (b, c, d, e, v = 'x') => ({ parts: [...tri(b, c, v), ': d = ', { box: String(d) }, ', e = ', { box: String(e) }], test: pair(d, e),
+ why: `${num(d)} · ${num(e)} = ${num(c)} and ${num(d)} + ${num(e)} = ${num(b)}.`, hint: `Two numbers that multiply to ${num(c)} and add to ${num(b)}.` });
+const FACQ = [prow(9, 14, 2, 7), prow(13, 30, 3, 10), prow(-7, 6, -1, -6), prow(-17, 60, -5, -12), prow(-1, -6, 2, -3), prow(-3, -54, -9, 6)];
+const SIGNQ = [prow(8, -48, -4, 12, 'y'), prow(-18, 32, -16, -2, 'a'), prow(-12, 11, -1, -11), prow(-2, -35, 5, -7)];
+const CANQ = [
+ { parts: [$m(...tri(-5, 16))], ans: ['n'], why: 'Pairs of 16 add to ±17, ±10, ±8; none is −5.' },
+ { parts: [$m(...tri(7, 12))], ans: ['y'], why: '3 · 4 = 12, 3 + 4 = 7.' },
+ { parts: [$m(...tri(13, -24))], ans: ['n'], why: 'Pairs of −24 add to ±23, ±10, ±5, ±2.' },
+ { parts: [$m(...tri(-1, -12))], ans: ['y'], why: '3 · (−4) = −12, 3 − 4 = −1.' },
+ { parts: [$m(...tri(10, -16))], ans: ['n'], why: 'Pairs of −16 add to ±15, ±6, 0.' },
+ { parts: [$m(...tri(-11, 30))], ans: ['y'], why: '(−5)(−6) = 30, −5 − 6 = −11.' },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch55/audio/en/ac.mp3 b/site/ch55/audio/en/ac.mp3
new file mode 100644
index 0000000..1113c8c
Binary files /dev/null and b/site/ch55/audio/en/ac.mp3 differ
diff --git a/site/ch55/audio/en/box.mp3 b/site/ch55/audio/en/box.mp3
new file mode 100644
index 0000000..e0ee7a3
Binary files /dev/null and b/site/ch55/audio/en/box.mp3 differ
diff --git a/site/ch55/audio/en/final1.mp3 b/site/ch55/audio/en/final1.mp3
new file mode 100644
index 0000000..da373ae
Binary files /dev/null and b/site/ch55/audio/en/final1.mp3 differ
diff --git a/site/ch55/audio/en/final2.mp3 b/site/ch55/audio/en/final2.mp3
new file mode 100644
index 0000000..e4ce753
Binary files /dev/null and b/site/ch55/audio/en/final2.mp3 differ
diff --git a/site/ch55/audio/en/final3.mp3 b/site/ch55/audio/en/final3.mp3
new file mode 100644
index 0000000..1e51aeb
Binary files /dev/null and b/site/ch55/audio/en/final3.mp3 differ
diff --git a/site/ch55/audio/en/finish.mp3 b/site/ch55/audio/en/finish.mp3
new file mode 100644
index 0000000..6349609
Binary files /dev/null and b/site/ch55/audio/en/finish.mp3 differ
diff --git a/site/ch55/audio/en/form.mp3 b/site/ch55/audio/en/form.mp3
new file mode 100644
index 0000000..7248e74
Binary files /dev/null and b/site/ch55/audio/en/form.mp3 differ
diff --git a/site/ch55/audio/en/intro.mp3 b/site/ch55/audio/en/intro.mp3
new file mode 100644
index 0000000..2245751
Binary files /dev/null and b/site/ch55/audio/en/intro.mp3 differ
diff --git a/site/ch55/audio/en/neg.mp3 b/site/ch55/audio/en/neg.mp3
new file mode 100644
index 0000000..ec2a47d
Binary files /dev/null and b/site/ch55/audio/en/neg.mp3 differ
diff --git a/site/ch55/audio/en/negc.mp3 b/site/ch55/audio/en/negc.mp3
new file mode 100644
index 0000000..272e25e
Binary files /dev/null and b/site/ch55/audio/en/negc.mp3 differ
diff --git a/site/ch55/audio/en/none.mp3 b/site/ch55/audio/en/none.mp3
new file mode 100644
index 0000000..31e37c6
Binary files /dev/null and b/site/ch55/audio/en/none.mp3 differ
diff --git a/site/ch55/audio/en/q1.mp3 b/site/ch55/audio/en/q1.mp3
new file mode 100644
index 0000000..fe376ea
Binary files /dev/null and b/site/ch55/audio/en/q1.mp3 differ
diff --git a/site/ch55/audio/en/q2.mp3 b/site/ch55/audio/en/q2.mp3
new file mode 100644
index 0000000..637cdb0
Binary files /dev/null and b/site/ch55/audio/en/q2.mp3 differ
diff --git a/site/ch55/audio/en/timings.js b/site/ch55/audio/en/timings.js
new file mode 100644
index 0000000..f36d8e3
--- /dev/null
+++ b/site/ch55/audio/en/timings.js
@@ -0,0 +1,352 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 9.264,
+ "marks": {
+ "sub": 1.953
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter fifty-five."
+ ],
+ [
+ 1.953,
+ "When the x squared term has a coefficient other than one, one extra step turns factoring back into a grouping problem."
+ ]
+ ]
+ },
+ "form": {
+ "dur": 28.296,
+ "marks": {
+ "goal": 7.175,
+ "foil": 14.518,
+ "a": 16.055,
+ "c": 17.591,
+ "b": 19.596,
+ "hard": 22.539
+ },
+ "cues": [
+ [
+ 0.104,
+ "Trinomials like two x squared plus seven x plus five have a leading coefficient a that isn't one."
+ ],
+ [
+ 7.175,
+ "We still want two binomials, now in the form d x plus e, times f x plus g."
+ ],
+ [
+ 14.518,
+ "Multiplying them out: d times f gives a, e times g gives c, and the outer and inner products add up to b."
+ ],
+ [
+ 22.539,
+ "Four numbers at once is a lot to guess, so here's a method that finds them step by step."
+ ]
+ ]
+ },
+ "ac": {
+ "dur": 29.736,
+ "marks": {
+ "mult": 1.992,
+ "pair": 6.289,
+ "split": 12.721,
+ "four": 18.034,
+ "group": 19.753,
+ "ans": 25.69
+ },
+ "cues": [
+ [
+ 0.104,
+ "It's called the a c method."
+ ],
+ [
+ 1.992,
+ "First, multiply a by c: two times five is ten."
+ ],
+ [
+ 6.289,
+ "Find two numbers that multiply to ten and add to b, seven."
+ ],
+ [
+ 11.159,
+ "Two and five."
+ ],
+ [
+ 12.721,
+ "Split the middle term with them: seven x becomes two x plus five x."
+ ],
+ [
+ 18.034,
+ "Now there are four terms, so factor by grouping: two x times x plus one, plus five times x plus one."
+ ],
+ [
+ 25.69,
+ "The answer is x plus one, times two x plus five."
+ ]
+ ]
+ },
+ "box": {
+ "dur": 28.056,
+ "marks": {
+ "cells": 2.396,
+ "rows": 9.727,
+ "cols": 14.792,
+ "ans": 18.854,
+ "chk": 24.766
+ },
+ "cues": [
+ [
+ 0.091,
+ "A grid shows the same thing."
+ ],
+ [
+ 2.396,
+ "Put two x squared and five in opposite corners, and the split terms, two x and five x, in the other two."
+ ],
+ [
+ 9.727,
+ "Each row's common factor goes on the left: x for the top row, one for the bottom."
+ ],
+ [
+ 14.792,
+ "Each column's common factor goes on top: two x, and five."
+ ],
+ [
+ 18.854,
+ "The left side and the top are the two factors: x plus one, times two x plus five."
+ ],
+ [
+ 24.766,
+ "Multiply back, and every cell checks out."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 3.432,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.224,
+ "Find the pair for the a c method."
+ ]
+ ]
+ },
+ "neg": {
+ "dur": 30.48,
+ "marks": {
+ "q": 1.758,
+ "ac": 6.589,
+ "pair": 10.872,
+ "split": 15.156,
+ "group": 20.482,
+ "ans": 26.693
+ },
+ "cues": [
+ [
+ 0.104,
+ "Signs work as before."
+ ],
+ [
+ 1.758,
+ "Factor three x squared minus ten x plus eight."
+ ],
+ [
+ 6.589,
+ "a times c is twenty-four, and b is negative ten."
+ ],
+ [
+ 10.872,
+ "Both numbers are negative: negative four and negative six."
+ ],
+ [
+ 15.156,
+ "Split: three x squared minus four x minus six x plus eight."
+ ],
+ [
+ 20.482,
+ "Group: x times three x minus four, minus two times three x minus four."
+ ],
+ [
+ 26.693,
+ "So it's three x minus four, times x minus two."
+ ]
+ ]
+ },
+ "negc": {
+ "dur": 30.84,
+ "marks": {
+ "q": 4.427,
+ "ac": 9.023,
+ "pair": 13.425,
+ "split": 20.859,
+ "ans": 26.693
+ },
+ "cues": [
+ [
+ 0.091,
+ "When c is negative, the two numbers have opposite signs."
+ ],
+ [
+ 4.427,
+ "Factor five x squared minus twenty-eight x minus twelve."
+ ],
+ [
+ 9.023,
+ "a c is negative sixty, and b is negative twenty-eight."
+ ],
+ [
+ 13.425,
+ "Two and negative thirty work: their product is negative sixty, and their sum is negative twenty-eight."
+ ],
+ [
+ 20.859,
+ "Split and group: x times five x plus two, minus six times five x plus two."
+ ],
+ [
+ 26.693,
+ "The answer is five x plus two, times x minus six."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 2.664,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.211,
+ "Factor the trinomial."
+ ]
+ ]
+ },
+ "none": {
+ "dur": 24.648,
+ "marks": {
+ "q": 2.5,
+ "ac": 7.175,
+ "list": 14.74,
+ "nf": 20.339
+ },
+ "cues": [
+ [
+ 0.104,
+ "Some trinomials don't factor."
+ ],
+ [
+ 2.5,
+ "Try six x squared minus five x plus fourteen."
+ ],
+ [
+ 7.175,
+ "a c is eighty-four, so we need two negative numbers that multiply to eighty-four and add to negative five."
+ ],
+ [
+ 14.74,
+ "Check every pair."
+ ],
+ [
+ 16.276,
+ "Their sums run from negative eighty-five up to negative nineteen."
+ ],
+ [
+ 20.339,
+ "None is negative five, so it can't be factored with integers."
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 17.544,
+ "marks": {
+ "w1": 1.003,
+ "w2": 3.073,
+ "w3": 7.253,
+ "w4": 10.898,
+ "end": 15.378
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.003,
+ "Multiply a times c."
+ ],
+ [
+ 3.073,
+ "Find two numbers that multiply to a c and add to b."
+ ],
+ [
+ 7.253,
+ "Use them to split the middle term, then factor by grouping."
+ ],
+ [
+ 10.898,
+ "If no pair works, the trinomial doesn't factor with integers."
+ ],
+ [
+ 15.378,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 3.504,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice."
+ ],
+ [
+ 1.562,
+ "Factor each trinomial."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 2.064,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, can it be factored?"
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 2.76,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Last one."
+ ],
+ [
+ 1.12,
+ "Pick the factorization."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 6.408,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Well done."
+ ],
+ [
+ 1.12,
+ "That's the end of chapter fifty-five, factoring trinomials when a isn't one."
+ ]
+ ]
+ }
+};
diff --git a/site/ch55/audio/en/wrap.mp3 b/site/ch55/audio/en/wrap.mp3
new file mode 100644
index 0000000..4c98e36
Binary files /dev/null and b/site/ch55/audio/en/wrap.mp3 differ
diff --git a/site/ch55/index.html b/site/ch55/index.html
new file mode 100644
index 0000000..adb2efe
--- /dev/null
+++ b/site/ch55/index.html
@@ -0,0 +1,178 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Factoring Trinomials When a ≠ 1</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 55, title: 'Factoring Trinomials When a ≠ 1', minutes: 9, next: '../ch56/' };
+const CA = COL.int, CB = COL.whole, CC = COL.nat, HIT = COL.good;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+const sgn = (v, first) => first ? num(v) : (v < 0 ? ' − ' : ' + ') + Math.abs(v);
+const term = (k, v, first) => { const s = sgn(k, first); return (Math.abs(k) === 1 ? s.replace(/1$/, '') : s) + v; };
+const tri = (a, b, c) => [term(a, 'x', true), E(2), term(b, 'x'), sgn(c)];
+// The four numbers of (dx + e)(fx + g) must rebuild ax² + bx + c; order and matching sign flips are all fine.
+const fac = (a, b, c) => ([d, e, f, g]) => d * f === a && d * g + e * f === b && e * g === c;
+// Worked steps, left-aligned at X, each with a short note on the right.
+const steps = (p, lines, X, y0, t0s, gap = 96, size = 48) => lines.forEach(([parts, note, fill], i) => {
+ mline(p, parts, X, y0 + i * gap, t0s[i], fill || COL.chalk, size, 'start');
+ if (note) text(p, note, 1200, y0 + i * gap - 8, t0s[i], { size: 26, fill: COL.task, weight: 600 });
+});
+
+/* ---------- beats ---------- */
+const BEATS = [
+ ['intro', 'When a is not 1', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 10, Chapter 55', { x: 800, y: 300, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Factoring Trinomials', { x: 800, y: 400, size: 80, weight: 600, anchor: 'middle' });
+ M(g, ['When a ≠ 1'], { x: 800, y: 490, size: 80, fill: COL.chalk });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = mline(scene, [...tri(2, 7, 5), ' = (x + 1)(2x + 5)'], 800, 630, m('sub'), COL.dim, 50);
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['form', 'Four unknown numbers', (m) => {
+ const p = panel(0);
+ const t = tokens(p, [{ t: '2', fill: CA }, ['x', E(2), ' + '], { t: '7', fill: CB }, 'x + ', { t: '5', fill: CC }], { x: 800, y: 150, size: 64, anchor: 'middle', o: 0 });
+ t.forEach(e => show(e, .2));
+ mline(p, '(dx + e)(fx + g)', 800, 290, m('goal'), COL.chalk, 60);
+ mline(p, ['= df\u200Bx', E(2), ' + (dg + ef)x + eg'], 800, 400, m('foil'), COL.chalk, 52);
+ mline(p, 'a = df', 450, 530, m('a'), CA, 50);
+ mline(p, 'c = eg', 800, 530, m('c'), CC, 50);
+ mline(p, 'b = dg + ef', 1150, 530, m('b'), CB, 50);
+ text(p, 'four numbers at once: hard to guess', 800, 680, m('hard'), { size: 30, fill: COL.dim, anchor: 'middle' });
+ }],
+ ['ac', 'The ac method', (m) => {
+ const p = panel(0);
+ mline(p, tri(2, 7, 5), 800, 120, .2, COL.chalk, 60);
+ steps(p, [
+ [['a · c = 2 · 5 = 10'], '1. multiply a and c'],
+ [['2 · 5 = 10, 2 + 5 = 7'], '2. multiply to ac, add to b'],
+ [['2x', E(2), ' + 7x + 5 = 2x', E(2), ' + 2x + 5x + 5'], '3. split the middle term'],
+ [['= 2x(x + 1) + 5(x + 1)'], '4. factor by grouping'],
+ [['= (x + 1)(2x + 5)'], '', HIT],
+ ], 300, 240, [m('mult'), m('pair'), m('split'), m('group'), m('ans')], 110);
+ const pre = M(p, ['2x', E(2), ' + 7x + 5 = 2x', E(2), ' + '], { size: 48, o: 0 })._w, mid = M(p, ['2x + 5x'], { size: 48, o: 0 })._w; // measure only
+ const sp = put(mk('rect', { x: 300 + pre - 10, y: 412, width: mid + 20, height: 64, rx: 14, fill: 'none', stroke: COL.task, 'stroke-width': 3 }, p), { o: 0 });
+ show(sp, m('split', .5)); hide(sp, m('four', 1));
+ }],
+ ['box', 'The grid', (m) => {
+ const p = panel(0);
+ mline(p, tri(2, 7, 5), 800, 120, .2, COL.chalk, 56);
+ const A = areaGrid(p, 560, 280, [260, 260], [170, 170], ['', ''], ['', ''], m('cells'), { size: 48 });
+ A.cell(0, 0, ['2x', E(2)], m('cells', .4), { tint: CA });
+ A.cell(1, 1, '5', m('cells', .9), { tint: CC });
+ A.cell(0, 1, '5x', m('cells', 3.2), { tint: CB });
+ A.cell(1, 0, '2x', m('cells', 3.6), { tint: CB });
+ mline(p, 'x', 536, 381, m('rows'), CC, 48, 'end'); mline(p, '1', 536, 551, m('rows', 1.2), CC, 48, 'end');
+ mline(p, '2x', 690, 258, m('cols'), CB, 48); mline(p, '5', 950, 258, m('cols', 1.2), CB, 48);
+ const r = G(p, { o: 0, x: 800, y: 730 });
+ mk('rect', { x: -330, y: -62, width: 660, height: 96, rx: 18, fill: 'none', stroke: HIT, 'stroke-width': 3 }, r);
+ M(r, ['(x + 1)(2x + 5)'], { y: 4, size: 52, fill: HIT });
+ show(r, m('ans'));
+ [[0, 0], [0, 1], [1, 0], [1, 1]].forEach(([i, j], k) => A.ring(i, j, HIT, m('chk', k * .25)));
+ }],
+ ['q1', 'Quick check', () => {
+ const p = panel(0);
+ mline(p, tri(3, 16, 5), 800, 160, .2, COL.chalk, 60);
+ text(p, 'a · c = 15, b = 16', 800, 240, .4, { size: 30, fill: COL.dim, anchor: 'middle' });
+ }, { ask: done => quiz({ x: 260, y: 320, w: 1080, cls: 'side' }, [{
+ id: 'c-pair', prompt: ['Which two numbers multiply to 15 and add to 16?'],
+ build: choice([[$m('3 and 5')], [$m('1 and 15')], [$m('−1 and −15')]], 1, '1 · 15 = 15 and 1 + 15 = 16: 3x² + x + 15x + 5 = (3x + 1)(x + 5).',
+ ['3 + 5 = 8, not 16.', null, 'Their sum is −16; b is +16.']),
+ }], done) }],
+ ['neg', 'Negative b', (m) => {
+ const p = panel(0);
+ mline(p, tri(3, -10, 8), 800, 120, m('q'), COL.chalk, 60);
+ steps(p, [
+ [['ac = 24, b = −10'], ''],
+ [['(−4)(−6) = 24, −4 + (−6) = −10'], 'both negative'],
+ [['= 3x', E(2), ' − 4x − 6x + 8'], 'split'],
+ [['= x(3x − 4) − 2(3x − 4)'], 'group'],
+ [['= (3x − 4)(x − 2)'], '', HIT],
+ ], 300, 240, [m('ac'), m('pair'), m('split'), m('group'), m('ans')], 110);
+ }],
+ ['negc', 'Negative c', (m) => {
+ const p = panel(0);
+ mline(p, tri(5, -28, -12), 800, 120, m('q'), COL.chalk, 60);
+ steps(p, [
+ [['ac = −60, b = −28'], ''],
+ [['2 · (−30) = −60, 2 + (−30) = −28'], 'opposite signs'],
+ [['= 5x', E(2), ' + 2x − 30x − 12'], 'split'],
+ [['= x(5x + 2) − 6(5x + 2)'], 'group'],
+ [['= (5x + 2)(x − 6)'], '', HIT],
+ ], 300, 250, [m('ac'), m('pair'), m('split'), m('split', 2.5), m('ans')], 110);
+ }],
+ ['q2', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 260, w: 1160, cls: 'side' }, [{
+ id: 'c-fac', prompt: ['Factor ', $m(...tri(6, 17, 5)), ' as ', $m('(dx + e)(fx + g)'), '.'],
+ build: blanks([{ parts: ['(', { box: '2' }, 'x + ', { box: '5' }, ')(', { box: '3' }, 'x + ', { box: '1' }, ')'], test: fac(6, 17, 5),
+ why: 'ac = 30: 2 · 15 = 30 and 2 + 15 = 17. 6x² + 2x + 15x + 5 = 2x(3x + 1) + 5(3x + 1).', hint: 'ac = 30. Find two numbers that multiply to 30 and add to 17, then split and group.' }]),
+ }], done) }],
+ ['none', 'When nothing works', (m) => {
+ const p = panel(0);
+ mline(p, tri(6, -5, 14), 800, 120, m('q'), COL.chalk, 60);
+ mline(p, 'ac = 84, b = −5', 800, 210, m('ac'), COL.dim, 40);
+ const pairs = [[-1, -84], [-2, -42], [-3, -28], [-4, -21], [-6, -14], [-7, -12]];
+ pairs.forEach(([d, e], i) => {
+ const x = 330 + (i % 3) * 470, y = 340 + Math.floor(i / 3) * 140;
+ mline(p, `(${num(d)})(${num(e)})`, x, y, m('list', i * .7), COL.chalk, 40);
+ mline(p, `sum ${num(d + e)}`, x, y + 50, m('list', i * .7 + .3), COL.bad, 34);
+ });
+ text(p, 'no pair adds to −5: not factorable with integers', 800, 700, m('nf'), { size: 32, fill: COL.bad, anchor: 'middle', weight: 600 });
+ }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['Multiply a · c.', 'w1', CA], ['Find two numbers: product ac, sum b.', 'w2', CB],
+ ['Split the middle term with them; factor by grouping.', 'w3', COL.task], ['No pair? Not factorable with integers.', 'w4', COL.bad]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 230 + i * 130, o: 0 });
+ mk('circle', { cx: 200, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 200, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ T(g, str, { x: 260, size: 34, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-fac', prompt: ['Factor as ', $m('(dx + e)(fx + g)'), '. Any correct order works.'], build: blanks(FACQ),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-can', prompt: ['Can it be factored with integers?'],
+ build: grid(CANQ, [['y', 'Yes', HIT, 'Y'], ['n', 'No', COL.bad, 'N']], { multi: false, text: true }),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [
+ { id: 'p-c1', prompt: ['Factor ', $m(...tri(20, -44, -15)), '.'], build: choice([[$m('(10x − 3)(2x + 5)')], [$m('(10x + 3)(2x − 5)')], [$m('(4x − 3)(5x + 5)')]], 1, 'ac = −300: 6 · (−50); 20x² + 6x − 50x − 15 = 2x(10x + 3) − 5(10x + 3).', ['That gives +44x in the middle.', null, 'That gives +5x in the middle.']) },
+ { id: 'p-c2', prompt: ['Factor ', $m(...tri(4, -16, 15)), '.'], build: choice([[$m('(2x − 3)(2x − 5)')], [$m('(4x − 3)(x − 5)')], [$m('(2x + 3)(2x + 5)')]], 0, 'ac = 60: (−6)(−10); 4x² − 6x − 10x + 15.', [null, 'That gives −23x in the middle.', 'That gives +16x in the middle.']) },
+ { id: 'p-c3', prompt: ['Factor ', $m(...tri(2, -15, 28)), '.'], build: choice([[$m('(2x − 4)(x − 7)')], [$m('(x − 4)(2x − 7)')], [$m('(2x − 7)(x + 4)')]], 1, 'ac = 56: (−7)(−8); 2x² − 7x − 8x + 28 = x(2x − 7) − 4(2x − 7).', ['That gives −18x in the middle.', null, 'That gives +x in the middle and −28 at the end.']) },
+ ], done, 'Chapter practice 3 of 3, question') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const frow = (a, b, c, [d, e, f, g], why) => ({ parts: [...tri(a, b, c), ' = (', { box: String(d) }, 'x + ', { box: String(e) }, ')(', { box: String(f) }, 'x + ', { box: String(g) }, ')'],
+ test: fac(a, b, c), why, hint: `ac = ${num(a * c)}. Find two numbers with product ${num(a * c)} and sum ${num(b)}, split, and group. Type negative numbers like −4.` });
+const FACQ = [
+ frow(3, 16, 5, [1, 5, 3, 1], '(x + 5)(3x + 1).'),
+ frow(7, 17, 6, [7, 3, 1, 2], '(7x + 3)(x + 2).'),
+ frow(6, 31, 35, [3, 5, 2, 7], '(3x + 5)(2x + 7).'),
+ frow(3, -10, 8, [3, -4, 1, -2], '(3x − 4)(x − 2).'),
+];
+const CANQ = [
+ { parts: [$m(...tri(6, -5, 14))], ans: ['n'], why: 'ac = 84; no pair adds to −5.' },
+ { parts: [$m(...tri(2, 7, 3))], ans: ['y'], why: '(2x + 1)(x + 3).' },
+ { parts: [$m(...tri(3, 4, 2))], ans: ['n'], why: 'ac = 6; pairs add to 7 or 5, never 4.' },
+ { parts: [$m(...tri(4, 4, 1))], ans: ['y'], why: '(2x + 1)(2x + 1).' },
+ { parts: [$m(...tri(5, 3, 1))], ans: ['n'], why: 'ac = 5; only 1 + 5 = 6.' },
+ { parts: [$m(...tri(6, 1, -2))], ans: ['y'], why: '(3x + 2)(2x − 1).' },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/ch56/audio/en/combo.mp3 b/site/ch56/audio/en/combo.mp3
new file mode 100644
index 0000000..1447e71
Binary files /dev/null and b/site/ch56/audio/en/combo.mp3 differ
diff --git a/site/ch56/audio/en/cubes.mp3 b/site/ch56/audio/en/cubes.mp3
new file mode 100644
index 0000000..d42497b
Binary files /dev/null and b/site/ch56/audio/en/cubes.mp3 differ
diff --git a/site/ch56/audio/en/dos.mp3 b/site/ch56/audio/en/dos.mp3
new file mode 100644
index 0000000..bfe3c6f
Binary files /dev/null and b/site/ch56/audio/en/dos.mp3 differ
diff --git a/site/ch56/audio/en/dosex.mp3 b/site/ch56/audio/en/dosex.mp3
new file mode 100644
index 0000000..3b99707
Binary files /dev/null and b/site/ch56/audio/en/dosex.mp3 differ
diff --git a/site/ch56/audio/en/final1.mp3 b/site/ch56/audio/en/final1.mp3
new file mode 100644
index 0000000..598a9da
Binary files /dev/null and b/site/ch56/audio/en/final1.mp3 differ
diff --git a/site/ch56/audio/en/final2.mp3 b/site/ch56/audio/en/final2.mp3
new file mode 100644
index 0000000..f733d33
Binary files /dev/null and b/site/ch56/audio/en/final2.mp3 differ
diff --git a/site/ch56/audio/en/final3.mp3 b/site/ch56/audio/en/final3.mp3
new file mode 100644
index 0000000..69f27b0
Binary files /dev/null and b/site/ch56/audio/en/final3.mp3 differ
diff --git a/site/ch56/audio/en/finish.mp3 b/site/ch56/audio/en/finish.mp3
new file mode 100644
index 0000000..ec79db2
Binary files /dev/null and b/site/ch56/audio/en/finish.mp3 differ
diff --git a/site/ch56/audio/en/intro.mp3 b/site/ch56/audio/en/intro.mp3
new file mode 100644
index 0000000..1d756fb
Binary files /dev/null and b/site/ch56/audio/en/intro.mp3 differ
diff --git a/site/ch56/audio/en/pst.mp3 b/site/ch56/audio/en/pst.mp3
new file mode 100644
index 0000000..c959640
Binary files /dev/null and b/site/ch56/audio/en/pst.mp3 differ
diff --git a/site/ch56/audio/en/pstex.mp3 b/site/ch56/audio/en/pstex.mp3
new file mode 100644
index 0000000..3553ce3
Binary files /dev/null and b/site/ch56/audio/en/pstex.mp3 differ
diff --git a/site/ch56/audio/en/q1.mp3 b/site/ch56/audio/en/q1.mp3
new file mode 100644
index 0000000..55bcd86
Binary files /dev/null and b/site/ch56/audio/en/q1.mp3 differ
diff --git a/site/ch56/audio/en/q2.mp3 b/site/ch56/audio/en/q2.mp3
new file mode 100644
index 0000000..2d8a28c
Binary files /dev/null and b/site/ch56/audio/en/q2.mp3 differ
diff --git a/site/ch56/audio/en/q3.mp3 b/site/ch56/audio/en/q3.mp3
new file mode 100644
index 0000000..4be58c7
Binary files /dev/null and b/site/ch56/audio/en/q3.mp3 differ
diff --git a/site/ch56/audio/en/timings.js b/site/ch56/audio/en/timings.js
new file mode 100644
index 0000000..78cdb9e
--- /dev/null
+++ b/site/ch56/audio/en/timings.js
@@ -0,0 +1,360 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 6.96,
+ "marks": {
+ "sub": 1.94
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter fifty-six."
+ ],
+ [
+ 1.94,
+ "A few patterns show up so often that it pays to recognize them on sight."
+ ]
+ ]
+ },
+ "dos": {
+ "dur": 30.504,
+ "marks": {
+ "sq": 5.0,
+ "cut": 8.216,
+ "slice": 14.44,
+ "move": 17.839,
+ "rect": 20.208,
+ "ans": 25.221
+ },
+ "cues": [
+ [
+ 0.104,
+ "The first pattern is a difference of two squares: a squared minus b squared."
+ ],
+ [
+ 5.0,
+ "Start with a big square, a by a."
+ ],
+ [
+ 8.216,
+ "Cut a small b by b square out of its corner."
+ ],
+ [
+ 11.172,
+ "The area left is a squared minus b squared."
+ ],
+ [
+ 14.44,
+ "Slice the leftover shape into two rectangles, and swing one of them around to the side."
+ ],
+ [
+ 20.208,
+ "Now it's one rectangle: a plus b long, and a minus b wide."
+ ],
+ [
+ 25.221,
+ "So a squared minus b squared equals a plus b, times a minus b."
+ ]
+ ]
+ },
+ "dosex": {
+ "dur": 25.128,
+ "marks": {
+ "ex": 4.05,
+ "sq": 7.057,
+ "ans": 13.607,
+ "no": 18.359
+ },
+ "cues": [
+ [
+ 0.104,
+ "To use it, ask: is each term a perfect square?"
+ ],
+ [
+ 4.05,
+ "Take a squared minus eighty-one b squared."
+ ],
+ [
+ 7.057,
+ "a squared is a, squared, and eighty-one b squared is nine b, squared."
+ ],
+ [
+ 13.607,
+ "So it factors into a plus nine b, times a minus nine b."
+ ],
+ [
+ 18.359,
+ "There's no such pattern for a sum of two squares: a squared plus b squared doesn't factor with real numbers."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 3.192,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.198,
+ "Factor the difference of squares."
+ ]
+ ]
+ },
+ "pst": {
+ "dur": 37.128,
+ "marks": {
+ "sq": 3.906,
+ "parts": 8.75,
+ "sum": 15.0,
+ "minus": 21.055,
+ "test": 27.578
+ },
+ "cues": [
+ [
+ 0.104,
+ "The second pattern is a perfect square trinomial."
+ ],
+ [
+ 3.906,
+ "Picture a plus b, squared, as a square with side a plus b."
+ ],
+ [
+ 8.75,
+ "It splits into an a squared square, a b squared square, and two a b rectangles."
+ ],
+ [
+ 15.0,
+ "So a plus b, squared, equals a squared plus two a b plus b squared."
+ ],
+ [
+ 21.055,
+ "And a minus b, squared, equals a squared minus two a b plus b squared."
+ ],
+ [
+ 27.578,
+ "To spot one, check three things: the first and last terms are perfect squares, and the middle term is twice the product of their square roots."
+ ]
+ ]
+ },
+ "pstex": {
+ "dur": 20.328,
+ "marks": {
+ "ends": 5.143,
+ "mid": 9.362,
+ "sign": 14.727,
+ "ans": 16.888
+ },
+ "cues": [
+ [
+ 0.104,
+ "Try four m squared minus twenty m n plus twenty-five n squared."
+ ],
+ [
+ 5.143,
+ "The ends are two m, squared, and five n, squared."
+ ],
+ [
+ 9.362,
+ "Twice two m times five n is twenty m n: that matches the middle term."
+ ],
+ [
+ 14.727,
+ "The middle sign is minus, so it's two m minus five n, squared."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 2.736,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Is it a perfect square?"
+ ]
+ ]
+ },
+ "cubes": {
+ "dur": 40.056,
+ "marks": {
+ "sum": 2.422,
+ "diff": 10.495,
+ "soap": 19.01,
+ "ex": 28.398,
+ "cube": 31.862,
+ "ans": 34.388
+ },
+ "cues": [
+ [
+ 0.104,
+ "Two more patterns work with cubes."
+ ],
+ [
+ 2.422,
+ "A sum of two cubes: a cubed plus b cubed equals a plus b, times a squared minus a b plus b squared."
+ ],
+ [
+ 10.495,
+ "A difference of two cubes: a cubed minus b cubed equals a minus b, times a squared plus a b plus b squared."
+ ],
+ [
+ 19.01,
+ "Notice the signs."
+ ],
+ [
+ 20.56,
+ "The first sign matches the original, the middle sign is the opposite, and the last sign is always positive."
+ ],
+ [
+ 28.398,
+ "For example, a cubed plus eight b cubed."
+ ],
+ [
+ 31.862,
+ "Eight b cubed is two b, cubed."
+ ],
+ [
+ 34.388,
+ "So it's a plus two b, times a squared minus two a b plus four b squared."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 2.88,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.25,
+ "Factor the sum of cubes."
+ ]
+ ]
+ },
+ "combo": {
+ "dur": 23.016,
+ "marks": {
+ "ex": 2.357,
+ "gcf": 6.719,
+ "left": 8.698,
+ "dos": 12.096,
+ "ans": 17.435
+ },
+ "cues": [
+ [
+ 0.104,
+ "Always look for a GCF first."
+ ],
+ [
+ 2.357,
+ "Factor eighteen a x squared minus thirty-two a."
+ ],
+ [
+ 6.719,
+ "Both terms share two a."
+ ],
+ [
+ 8.698,
+ "What's left is nine x squared minus sixteen, a difference of squares: three x, squared, minus four, squared."
+ ],
+ [
+ 17.435,
+ "So the answer is two a, times three x plus four, times three x minus four."
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 24.456,
+ "marks": {
+ "w1": 1.003,
+ "w2": 7.188,
+ "w3": 15.768,
+ "w4": 19.193,
+ "end": 22.357
+ },
+ "cues": [
+ [
+ 0.104,
+ "To sum up."
+ ],
+ [
+ 1.003,
+ "Difference of squares: a squared minus b squared is a plus b, times a minus b."
+ ],
+ [
+ 7.188,
+ "Perfect square trinomial: a squared plus or minus two a b plus b squared is a plus or minus b, squared."
+ ],
+ [
+ 15.768,
+ "Sum and difference of cubes follow their own patterns."
+ ],
+ [
+ 19.193,
+ "Take out a GCF first, then look for a pattern."
+ ],
+ [
+ 22.357,
+ "Now try the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 3.0,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Chapter practice."
+ ],
+ [
+ 1.471,
+ "Which pattern fits?"
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 2.664,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Next, factor using the patterns."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 3.576,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Last one."
+ ],
+ [
+ 1.094,
+ "GCF first, then a pattern."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 4.992,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Great work."
+ ],
+ [
+ 1.237,
+ "That's the end of chapter fifty-six, and of unit ten."
+ ]
+ ]
+ }
+};
diff --git a/site/ch56/audio/en/wrap.mp3 b/site/ch56/audio/en/wrap.mp3
new file mode 100644
index 0000000..a523c4a
Binary files /dev/null and b/site/ch56/audio/en/wrap.mp3 differ
diff --git a/site/ch56/index.html b/site/ch56/index.html
new file mode 100644
index 0000000..8eae519
--- /dev/null
+++ b/site/ch56/index.html
@@ -0,0 +1,184 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Factoring Using Special Formulas</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render"><!-- hold the first frame until the player exists, so the page transition can run -->
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="audio/en/timings.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 56, title: 'Factoring Using Special Formulas', minutes: 10 };
+const CA = COL.whole, CB = COL.nat, CAB = COL.int, HIT = COL.good;
+const SAME = COL.whole, OPP = COL.nat, POSC = COL.irr;
+
+/* ---------- chapter drawing helpers ---------- */
+const mline = (p, parts, x, y, t0, fill = COL.chalk, size = 48, anchor = 'middle') => { const e = M(p, [].concat(parts), { x, y, size, fill, anchor, o: 0 }); show(e, t0); return e; };
+const text = (p, str, x, y, t0, { size = 30, fill = COL.chalk, anchor = 'start', weight = 500 } = {}) => { const e = T(p, str, { x, y, size, fill, anchor, weight, o: 0 }); show(e, t0); return e; };
+// A rectangle piece drawn around its own centre, so it can turn in place.
+function piece(p, cx, cy, w, h, color, o = 1) {
+ const g = G(p, { x: cx, y: cy, o });
+ mk('rect', { x: -w / 2, y: -h / 2, width: w, height: h, fill: mix(COL.board, color, .45), stroke: color, 'stroke-width': 3 }, g);
+ return g;
+}
+// A measured side: a line with its length label; returns the group so it can be hidden later.
+const side = (p, x1, y1, x2, y2, label, color, t0, off = 34) => {
+ const g = G(p);
+ draw(path(g, `M${x1} ${y1}L${x2} ${y2}`, { stroke: color, 'stroke-width': 4 }, { d: 0 }), t0, .4);
+ const vert = x1 === x2;
+ mline(g, label, (x1 + x2) / 2 + (vert ? off : 0), (y1 + y2) / 2 + (vert ? 14 : off), t0 + .2, color, 40, vert ? (off > 0 ? 'start' : 'end') : 'middle');
+ return g;
+};
+// The two numbers of (dx + e)(fx − g) rebuild ax² + c (difference of squares, any order).
+const dsq = (a, c) => ([d, e, f, g]) => d * f === a && e * f - d * g === 0 && -e * g === c;
+const pw = (b, e) => [b, E(e)];
+
+/* ---------- beats ---------- */
+const SA = 420, SB = 160, SX = 260, SY = 220; // the big square: side, cut corner, top-left
+const BEATS = [
+ ['intro', 'Special patterns', (m, D) => {
+ const g = G(scene, { o: 0, y: 24 });
+ T(g, 'Unit 10, Chapter 56', { x: 800, y: 300, size: 28, fill: COL.dim, anchor: 'middle' });
+ T(g, 'Factoring Using', { x: 800, y: 400, size: 80, weight: 600, anchor: 'middle' });
+ T(g, 'Special Formulas', { x: 800, y: 490, size: 80, weight: 600, anchor: 'middle' });
+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);
+ const r = mline(scene, ['a', E(2), ' − b', E(2), ' = (a + b)(a − b)'], 800, 630, m('sub'), COL.dim, 50);
+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);
+ }],
+ ['dos', 'Difference of squares', (m) => {
+ const p = panel(0);
+ const top = piece(p, SX + SA / 2, SY + (SA - SB) / 2, SA, SA - SB, CA, 0);
+ const low = piece(p, SX + (SA - SB) / 2, SY + SA - SB / 2, SA - SB, SB, CA, 0);
+ const cut = piece(p, SX + SA - SB / 2, SY + SA - SB / 2, SB, SB, CB, 0);
+ [top, low, cut].forEach(e => show(e, m('sq'), .5));
+ const s1 = side(p, SX, SY - 30, SX + SA, SY - 30, 'a', CA, m('sq', .4), -18);
+ const s2 = side(p, SX - 30, SY, SX - 30, SY + SA, 'a', CA, m('sq', .7), -18);
+ show(M(cut, ['b', E(2)], { y: 14, size: 40, o: 0 }), m('cut'));
+ tw(cut, { x: SX + SA - SB / 2 + 40, y: SY + SA - SB / 2 + 40 }, m('cut', 1), .8);
+ hide(cut, m('cut', 2.4), .6);
+ mline(p, ['a', E(2), ' − b', E(2)], 1200, 300, m('cut', 2.6), COL.chalk, 56);
+ // The cut line between the two pieces, then the lower piece turns and moves to the right.
+ const sl = path(p, `M${SX} ${SY + SA - SB}H${SX + SA - SB}`, { stroke: COL.task, 'stroke-width': 4, 'stroke-dasharray': '10 8' }, { o: 0 });
+ show(sl, m('slice'), .4);
+ [s1, s2, sl].forEach(e => hide(e, m('move'), .4));
+ tw(low, { x: SX + SA + SB / 2 + 4, y: SY + (SA - SB) / 2, r: 90 }, m('move'), 1.4);
+ const fy = SY + SA - SB;
+ side(p, SX, fy + 34, SX + SA + SB + 4, fy + 34, 'a + b', COL.task, m('rect'), 40);
+ side(p, SX + SA + SB + 40, SY, SX + SA + SB + 40, fy, 'a − b', COL.task, m('rect', .8), 20);
+ const r = G(p, { o: 0, x: 1200, y: 600 });
+ mk('rect', { x: -330, y: -62, width: 660, height: 96, rx: 18, fill: 'none', stroke: HIT, 'stroke-width': 3 }, r);
+ M(r, ['a', E(2), ' − b', E(2), ' = (a + b)(a − b)'], { y: 4, size: 48, fill: HIT });
+ show(r, m('ans'));
+ }],
+ ['dosex', 'Spotting the squares', (m) => {
+ const p = panel(0);
+ mline(p, ['a', E(2), ' − 81b', E(2)], 800, 170, m('ex'), COL.chalk, 64);
+ mline(p, ['= (a)', E(2), ' − (9b)', E(2)], 800, 300, m('sq'), COL.chalk, 56);
+ mline(p, '= (a + 9b)(a − 9b)', 800, 430, m('ans'), HIT, 60);
+ mline(p, ['a', E(2), ' + b', E(2)], 800, 620, m('no'), COL.bad, 56);
+ text(p, 'a sum of squares does not factor with real numbers', 800, 690, m('no', .5), { size: 28, fill: COL.bad, anchor: 'middle', weight: 600 });
+ }],
+ ['q1', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 260, w: 1160, cls: 'side' }, [{
+ id: 'c-dos', prompt: ['Factor ', $m('49x', E(2), ' − 25'), '.'],
+ build: blanks([{ parts: ['(', { box: '7' }, 'x + ', { box: '5' }, ')(', { box: '7' }, 'x − ', { box: '5' }, ')'], test: dsq(49, -25), why: '49x² = (7x)² and 25 = 5².', hint: 'What squared gives 49x²? What squared gives 25?' }]),
+ }], done) }],
+ ['pst', 'Perfect square trinomials', (m) => {
+ const p = panel(0);
+ const G2 = areaGrid(p, 300, 260, [300, 150], [300, 150], ['a', 'b'], ['a', 'b'], m('sq'), { size: 46 });
+ G2.cell(0, 0, ['a', E(2)], m('parts'), { tint: CA });
+ G2.cell(1, 1, ['b', E(2)], m('parts', 1.2), { tint: CB });
+ G2.cell(0, 1, 'ab', m('parts', 2.4), { tint: CAB }); G2.cell(1, 0, 'ab', m('parts', 2.8), { tint: CAB });
+ mline(p, ['(a + b)', E(2), ' = a', E(2), ' + 2ab + b', E(2)], 1150, 330, m('sum'), COL.chalk, 46);
+ mline(p, ['(a − b)', E(2), ' = a', E(2), ' − 2ab + b', E(2)], 1150, 430, m('minus'), COL.chalk, 46);
+ ['first term: a perfect square', 'last term: a perfect square', 'middle term: 2 × (root × root)'].forEach((s, i) => text(p, s, 860, 560 + i * 54, m('test', i * 1.6), { size: 28, fill: COL.task, weight: 600 }));
+ }],
+ ['pstex', 'Checking the middle', (m) => {
+ const p = panel(0);
+ const t = tokens(p, [['4m', E(2)], ' − ', '20mn', ' + ', ['25n', E(2)]], { x: 800, y: 170, size: 64, anchor: 'middle', o: 0 });
+ t.forEach(e => show(e, .2));
+ mline(p, ['(2m)', E(2)], t[0]._px, 270, m('ends'), CA, 46);
+ mline(p, ['(5n)', E(2)], t[4]._px, 270, m('ends', 1), CB, 46);
+ mline(p, '2 · 2m · 5n = 20mn ✓', 800, 400, m('mid'), CAB, 50);
+ const sg = put(mk('circle', { cx: t[1]._px, cy: 155, r: 32, fill: 'none', stroke: COL.task, 'stroke-width': 3.5 }, p), { o: 0 });
+ show(sg, m('sign'));
+ mline(p, ['(2m − 5n)', E(2)], 800, 560, m('ans'), HIT, 64);
+ }],
+ ['q2', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 260, w: 1160, cls: 'side' }, [{
+ id: 'c-pst', prompt: ['Is ', $m('25p', E(2), ' − 15pq + 9q', E(2)), ' a perfect square trinomial?'],
+ build: choice([['Yes: ', $m('(5p − 3q)', E(2))], ['No']], 1, '2 · 5p · 3q = 30pq, not 15pq, so the middle term doesn’t match.', ['(5p − 3q)² = 25p² − 30pq + 9q²: the middle term would be 30pq.', null]),
+ }], done) }],
+ ['cubes', 'Sum and difference of cubes', (m) => {
+ const p = panel(0);
+ const sgn = (s, c) => ({ t: s, fill: c });
+ const r1 = tokens(p, [['a', E(3), ' + b', E(3), ' = (a '], sgn('+', SAME), [' b)(a', E(2), ' '], sgn('−', OPP), ' ab ', sgn('+', POSC), [' b', E(2)], ')'], { x: 800, y: 190, size: 52, anchor: 'middle', o: 0 });
+ r1.forEach(e => show(e, m('sum')));
+ const r2 = tokens(p, [['a', E(3), ' − b', E(3), ' = (a '], sgn('−', SAME), [' b)(a', E(2), ' '], sgn('+', OPP), ' ab ', sgn('+', POSC), [' b', E(2)], ')'], { x: 800, y: 300, size: 52, anchor: 'middle', o: 0 });
+ r2.forEach(e => show(e, m('diff')));
+ [['same sign', SAME], ['opposite sign', OPP], ['always positive', POSC]].forEach(([s, c], i) => text(p, s, 520 + i * 280, 400, m('soap', i * 1.8), { size: 28, fill: c, anchor: 'middle', weight: 700 }));
+ mline(p, ['a', E(3), ' + 8b', E(3)], 800, 520, m('ex'), COL.chalk, 52);
+ mline(p, ['= (a)', E(3), ' + (2b)', E(3)], 800, 610, m('cube'), COL.chalk, 48);
+ mline(p, ['= (a + 2b)(a', E(2), ' − 2ab + 4b', E(2), ')'], 800, 720, m('ans'), HIT, 52);
+ }],
+ ['q3', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 260, w: 1160, cls: 'side' }, [{
+ id: 'c-cube', prompt: ['Factor ', $m('x', E(3), ' − 27'), '.'],
+ build: choice([[$m('(x − 3)(x', E(2), ' + 3x + 9)')], [$m('(x − 3)(x', E(2), ' − 3x + 9)')], [$m('(x + 3)(x', E(2), ' − 3x + 9)')]], 0, '27 = 3³. Same sign (−), opposite (+), always positive (+).',
+ [null, 'The middle sign is the opposite of the minus: it should be +3x.', 'For a difference of cubes, the binomial has a minus: x − 3.']),
+ }], done) }],
+ ['combo', 'GCF first', (m) => {
+ const p = panel(0), X = 300;
+ mline(p, ['18ax', E(2), ' − 32a'], 800, 140, m('ex'), COL.chalk, 60);
+ [[['= 2a(9x', E(2), ' − 16)'], m('gcf'), 'GCF: 2a'], [['= 2a[(3x)', E(2), ' − 4', E(2), ']'], m('dos'), 'difference of squares'], [['= 2a(3x + 4)(3x − 4)'], m('ans'), '']].forEach(([parts, t0, note], i) => {
+ mline(p, parts, X, 290 + i * 130, t0, i === 2 ? HIT : COL.chalk, 54, 'start');
+ if (note) text(p, note, 1100, 280 + i * 130, t0, { size: 28, fill: COL.task, weight: 600 });
+ });
+ }],
+ ['wrap', 'Summary', (m) => {
+ const p = panel(0);
+ [['a² − b² = (a + b)(a − b)', 'w1', CA], ['a² ± 2ab + b² = (a ± b)²', 'w2', CAB],
+ ['a³ ± b³ = (a ± b)(a² ∓ ab + b²)', 'w3', POSC], ['GCF first, then look for a pattern.', 'w4', COL.task]].forEach(([str, mark, c], i) => {
+ const g = G(p, { x: -16, y: 230 + i * 130, o: 0 });
+ mk('circle', { cx: 300, cy: -12, r: 26, fill: c }, g);
+ T(g, String(i + 1), { x: 300, y: -1, size: 30, fill: COL.board, weight: 700, anchor: 'middle' });
+ if (i < 3) M(g, [str], { x: 360, size: 46, anchor: 'start' }); else T(g, str, { x: 360, size: 34, weight: 600 });
+ tw(g, { o: 1, x: 0 }, m(mark), .6);
+ });
+ }],
+ ['final1', 'Chapter practice', () => { panel(0); }, { ask: done => quiz(SCREEN, [{
+ id: 'p-kind', prompt: ['Which pattern fits?'],
+ build: grid(KINDQ, [['d', 'Diff. of squares', CA, '1'], ['p', 'Perfect square', CAB, '2'], ['s', 'Sum of cubes', POSC, '3'], ['c', 'Diff. of cubes', CB, '4'], ['n', 'None', null, '5']], { multi: false, text: true }),
+ }], done, 'Chapter practice 1 of 3') }],
+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-fac', prompt: ['Fill in the missing numbers.'], build: blanks([
+ { parts: ['m', E(2), ' − 121 = (m + ', { box: '11' }, ')(m − ', { box: '11' }, ')'], why: '121 = 11².', hint: 'What squared is 121?' },
+ { parts: ['9x', E(2), ' + 6xy + y', E(2), ' = (', { box: '3' }, 'x + y)', E(2)], why: '9x² = (3x)², and 2 · 3x · y = 6xy.', hint: 'What squared is 9x²?' },
+ { parts: ['25f', E(16), ' − 36g', E(36), ' = (5f', E(8), ' + ', { box: '6' }, 'g', E(18), ')(5f', E(8), ' − ', { box: '6' }, 'g', E(18), ')'], why: '36g³⁶ = (6g¹⁸)².', hint: 'Halve the exponent; take the square root of 36.' },
+ { parts: ['64 − a', E(3), 'b', E(6), ' = (4 − ab', E(2), ')(', { box: '16' }, ' + 4ab', E(2), ' + a', E(2), 'b', E(4), ')'], why: '64 = 4³, so the first term of the trinomial is 4² = 16.', hint: 'Difference of cubes: the trinomial starts with the square of 4.' },
+ ]),
+ }], done, 'Chapter practice 2 of 3') }],
+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{
+ id: 'p-gcf', prompt: ['Factor completely: GCF first.'], build: blanks([
+ { parts: ['4m', E(2), 'n', E(8), ' − 36n', E(2), 'p', E(8), ' = 4n', E(2), '(mn', E(3), ' − ', { box: '3' }, 'p', E(4), ')(mn', E(3), ' + ', { box: '3' }, 'p', E(4), ')'], why: '4n²(m²n⁶ − 9p⁸), a difference of squares.', hint: 'After the GCF 4n², what is left is m²n⁶ − 9p⁸.' },
+ { parts: ['8a', E(8), 'b', E(4), ' − 40a', E(5), 'b', E(6), ' + 50a', E(2), 'b', E(8), ' = 2a', E(2), 'b', E(4), '(2a', E(3), ' − ', { box: '5' }, 'b', E(2), ')', E(2)], why: '2a²b⁴(4a⁶ − 20a³b² + 25b⁴), a perfect square.', hint: '25b⁴ = (5b²)².' },
+ { parts: ['16a', E(6), 'b', E(3), ' + 54b', E(18), 'c', E(3), ' = 2b', E(3), '(2a', E(2), ' + 3b', E(5), 'c)(', { box: '4' }, 'a', E(4), ' − 6a', E(2), 'b', E(5), 'c + ', { box: '9' }, 'b', E(10), 'c', E(2), ')'], why: '2b³(8a⁶ + 27b¹⁵c³), a sum of cubes.', hint: 'Square 2a² and 3b⁵c for the first and last terms.' },
+ ]),
+ }], done, 'Chapter practice 3 of 3') }],
+ ['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- chapter practice data ---------- */
+const KINDQ = [
+ { parts: [$m('m', E(2), ' − 121')], ans: ['d'], why: 'm² − 11².' },
+ { parts: [$m('9x', E(2), ' + 6xy + y', E(2))], ans: ['p'], why: '(3x + y)².' },
+ { parts: [$m('64 − a', E(3), 'b', E(6))], ans: ['c'], why: '4³ − (ab²)³.' },
+ { parts: [$m('27a', E(6), ' + 64b', E(3), 'c', E(15))], ans: ['s'], why: '(3a²)³ + (4bc⁵)³.' },
+ { parts: [$m('x', E(2), ' + 49')], ans: ['n'], why: 'A sum of squares doesn’t factor.' },
+ { parts: [$m('121p', E(4), ' − 66p', E(2), 'r + 9r', E(2))], ans: ['p'], why: '(11p² − 3r)².' },
+];
+boot();
+</script>
+</body>
+</html>
diff --git a/site/index.html b/site/index.html
index ae4437f..8137e58 100644
--- a/site/index.html
+++ b/site/index.html
@@ -163,7 +163,10 @@ const UNITS = [
['Solving compound inequalities', 7], ['Rewriting formulas', 5], ['Solving systems by substitution', 7], ['Solving systems by elimination', 6]]],
['Graphing linear equations and inequalities', [['Points and lines', 5], ['Graphing a line from a table', 5], ['Slope', 5], ['Slope-intercept form', 6],
['Point-slope form', 7], ['Solving systems by graphing', 6], ['Graphing linear inequalities', 6], ['Systems of inequalities by graphing', 6]]],
- ['Statistics and probability', [['Introduction to statistics', 6]]],
+ ['Statistics and probability', [['Introduction to statistics', 6], ['Measures of center and variation', 8], ['Displaying data', 10], ['Probability', 10], ['Compound events', 8], ['Permutations and combinations', 9]]],
+ ['Functions', [['Relations and functions', 8], ['Function notation', 8], ['Application of functions', 9]]],
+ ['Polynomial operations', [['Adding and subtracting polynomials', 9], ['Multiplying and dividing powers', 8], ['Multiplying and dividing monomials', 9], ['Multiplying and dividing polynomials', 10]]],
+ ['Factoring polynomials', [['Factoring with the GCF', 10], ['Factoring by grouping', 8], ['Factoring trinomials when a = 1', 9], ['Factoring trinomials when a ≠ 1', 9], ['Special factoring patterns', 10]]],
];
const HUES = ['#f4a48c', '#86c9e8', '#f3c95c', '#e8a0c8', '#8fd6b0', '#bba8ee', '#f0b45a'];
const id = n => 'ch' + String(n).padStart(2, '0');
diff --git a/site/lib/engine.js b/site/lib/engine.js
index d5355c6..a7ba88e 100644
--- a/site/lib/engine.js
+++ b/site/lib/engine.js
@@ -397,6 +397,136 @@ function eqLine(p, L, R, y, t0, { xEq = 760, fill = COL.chalk, size = 50, note,
show(g, t0);
return g;
}
+/* ---------- data on a number line: dot plots (unit 7) ---------- */
+// Axis for data from lo to hi drawn between x0 and x1 at baseline y; every: label every n-th tick.
+// shape 'x' draws line-plot crosses instead of dots.
+// Returns D: D.V(value) -> x; D.dot(v, color, t0) stacks a dot above v; D.mark(v, color, t0, label) is a
+// balance triangle under the axis that can slide with D.slide(mark, v, t0).
+function dataLine(p, { lo, hi, x0 = 200, x1 = 1400, y = 600, step = 1, every = 1, t0 = .1, r = 13, size = 22, shape = 'dot' }) {
+ const V = v => x0 + (v - lo) / (hi - lo) * (x1 - x0), g = G(p, { o: 0 });
+ path(g, `M${x0 - 24} ${y}H${x1 + 24}`, { stroke: COL.dim, 'stroke-width': 3 });
+ for (let v = lo, i = 0; v <= hi + 1e-9; v += step, i++) {
+ path(g, `M${V(v)} ${y - 7}V${y + 7}`, { stroke: COL.dim, 'stroke-width': 2 });
+ if (i % every === 0) T(g, num(+v.toFixed(6)), { x: V(v), y: y + 26 + size, size, fill: COL.dim, font: MATH, anchor: 'middle' });
+ }
+ show(g, t0);
+ const D = {
+ g, V, y, r, count: {},
+ top: v => y - 6 - r - ((D.count[v] || 1) - 1) * (2 * r + 5),
+ dot(v, color, t0, { run = tw, into = p, from } = {}) {
+ D.count[v] = (D.count[v] || 0) + 1;
+ let d;
+ if (shape === 'x') { d = G(into); path(d, `M${-r * .75} ${-r * .75}L${r * .75} ${r * .75}M${r * .75} ${-r * .75}L${-r * .75} ${r * .75}`, { stroke: color, 'stroke-width': 5 }); }
+ else d = mk('circle', { r, fill: color, stroke: COL.board, 'stroke-width': 2 }, into);
+ put(d, { x: V(v), y: D.top(v), s: 0, o: 0 });
+ if (from !== undefined) { put(d, { y: from, s: 1 }); run(d, { o: 1 }, t0, .2); run(d, { y: D.top(v) }, t0, .7, back); }
+ else run(d, { s: 1, o: 1 }, t0, .45, back);
+ return d;
+ },
+ dots: (vals, color, t0, gap = .15, opts) => vals.map((v, i) => D.dot(v, color, t0 + i * gap, opts)),
+ mark(v, color, t0, label, { run = tw, into = p } = {}) {
+ const m = G(into, { x: V(v), y, o: 0 });
+ path(m, 'M0 4L-17 30H17Z', { fill: color, stroke: COL.board, 'stroke-width': 2 });
+ if (label) T(m, label, { y: 64 + size, size: 24, fill: color, weight: 600, anchor: 'middle' });
+ run(m, { o: 1 }, t0, .4);
+ return m;
+ },
+ slide: (m, v, t0, run = tw, dur = 1.2) => run(m, { x: V(v) }, t0, dur),
+ // Bracket above the data from a to b at height yb, with a label.
+ span(a, b, yb, label, color, t0, { run = tw, into = p } = {}) {
+ const g = G(into), l = path(g, `M${V(a)} ${yb + 12}V${yb}H${V(b)}V${yb + 12}`, { stroke: color, 'stroke-width': 3 }, { d: 0 });
+ run(l, { d: 1 }, t0, .6);
+ const t = M(g, [label], { x: (V(a) + V(b)) / 2, y: yb - 14, size: 28, fill: color, o: 0 });
+ run(t, { o: 1 }, t0 + .4, .4);
+ return g;
+ },
+ };
+ return D;
+}
+/* ---------- chance: number cubes, coins, spinners (unit 7) ---------- */
+// A number cube face showing n pips, centred on (x, y).
+const PIPS = { 1: [[0, 0]], 2: [[-1, -1], [1, 1]], 3: [[-1, -1], [0, 0], [1, 1]], 4: [[-1, -1], [1, -1], [-1, 1], [1, 1]],
+ 5: [[-1, -1], [1, -1], [0, 0], [-1, 1], [1, 1]], 6: [[-1, -1], [1, -1], [-1, 0], [1, 0], [-1, 1], [1, 1]] };
+function die(p, n, x, y, s = 96, o = 0) {
+ const g = G(p, { x, y, o, s: o ? 1 : .6 });
+ g._box = mk('rect', { x: -s / 2, y: -s / 2, width: s, height: s, rx: s * .18, fill: mix(COL.board, COL.chalk, .1), stroke: COL.chalk, 'stroke-width': 3 }, g);
+ PIPS[n].forEach(([a, b]) => mk('circle', { cx: a * s * .26, cy: b * s * .26, r: s * .085, fill: COL.chalk }, g));
+ return g;
+}
+// Spinner with equal sections; pointer starts straight up. land(k) is the rotation that points at section k.
+const SPIN = [COL.whole, COL.nat, COL.int, COL.whole, COL.irr, COL.nat, COL.whole, COL.int];
+function spinner(p, cx, cy, r, t0, cols = SPIN) {
+ const g = G(p, { x: cx, y: cy, o: 0 }), n = cols.length, secs = [];
+ cols.forEach((c, i) => {
+ const a1 = (-90 + i * 360 / n) * Math.PI / 180, a2 = (-90 + (i + 1) * 360 / n) * Math.PI / 180;
+ secs.push(path(g, `M0 0L${r * Math.cos(a1)} ${r * Math.sin(a1)}A${r} ${r} 0 0 1 ${r * Math.cos(a2)} ${r * Math.sin(a2)}Z`,
+ { fill: mix(COL.board, c, .7), stroke: COL.board, 'stroke-width': 3 }));
+ });
+ mk('circle', { r, fill: 'none', stroke: COL.chalk, 'stroke-width': 3 }, g);
+ const ptr = G(g);
+ path(ptr, `M0 ${r * .12}V${-r * .78}M-14 ${-r * .66}L0 ${-r * .8}L14 ${-r * .66}`, { stroke: COL.chalk, 'stroke-width': 7 });
+ mk('circle', { r: 12, fill: COL.chalk }, g);
+ show(g, t0);
+ return { g, secs, ptr, land: k => (k + .5) * 360 / n };
+}
+// Outline some spinner sections: a bright border that fades in.
+function outline(p, sp, ks, color, t0, run = tw) {
+ return ks.map(k => { const e = sp.secs[k].cloneNode(); e.setAttribute('fill', 'none'); e.setAttribute('stroke', color); e.setAttribute('stroke-width', 7); sp.g.insertBefore(e, sp.ptr); put(e, { o: 0 }); run(e, { o: 1 }, t0, .4); return e; });
+}
+// A coin face.
+function coin(p, side, x, y, t0, r = 34, run = tw) {
+ const g = G(p, { x, y, s: .5, o: 0 });
+ mk('circle', { r, fill: mix(COL.board, side === 'H' ? COL.int : COL.rat, .5), stroke: side === 'H' ? COL.int : COL.rat, 'stroke-width': 3 }, g);
+ T(g, side, { y: r * .36, size: r, fill: COL.chalk, weight: 700, anchor: 'middle' });
+ run(g, { s: 1, o: 1 }, t0, .45, back);
+ return g;
+}
+/* ---------- scaled axes for data and real-world graphs (ch41 onward) ---------- */
+// Axes with a scale on each; returns value -> pixel maps. ybreak draws a zigzag when y does not start at 0.
+function axes(p, { x0, y0, w, h, xs: [xlo, xhi, xst], ys: [ylo, yhi, yst], xl, yl, t0, ybreak }) {
+ const PX = v => x0 + (v - xlo) / (xhi - xlo) * w, PY = v => y0 - (v - ylo) / (yhi - ylo) * h, g = G(p, { o: 0 });
+ let d = '';
+ for (let v = xlo + xst; v <= xhi + 1e-9; v += xst) d += `M${PX(v)} ${y0}V${y0 - h}`;
+ for (let v = ylo + yst; v <= yhi + 1e-9; v += yst) d += `M${x0} ${PY(v)}H${x0 + w}`;
+ mk('path', { d, stroke: COL.chalk, 'stroke-opacity': .1, 'stroke-width': 1.5, fill: 'none' }, g);
+ path(g, `M${x0} ${y0 - h - 20}V${y0}H${x0 + w + 20}`, { stroke: COL.chalk, 'stroke-width': 3 });
+ if (ybreak) path(g, `M${x0 - 10} ${y0 - 22}L${x0 + 10} ${y0 - 30}M${x0 - 10} ${y0 - 34}L${x0 + 10} ${y0 - 42}`, { stroke: COL.chalk, 'stroke-width': 3 });
+ for (let v = xlo; v <= xhi + 1e-9; v += xst) T(g, String(v), { x: PX(v), y: y0 + 30, size: 20, fill: COL.dim, font: MATH, anchor: 'middle' });
+ for (let v = ylo; v <= yhi + 1e-9; v += yst) T(g, String(v), { x: x0 - 14, y: PY(v) + 7, size: 20, fill: COL.dim, font: MATH, anchor: 'end' });
+ T(g, xl, { x: x0 + w / 2, y: y0 + 66, size: 24, fill: COL.dim, anchor: 'middle' });
+ T(g, yl, { x: x0, y: y0 - h - 36, size: 24, fill: COL.dim, anchor: 'middle' });
+ show(g, t0);
+ return { PX, PY };
+}
+/* ---------- area grids for multiplying and factoring polynomials (ch51 onward) ---------- */
+// Area grid from (x0, y0): column widths ws, row heights hs, factor terms along the top and the left side.
+function areaGrid(p, x0, y0, ws, hs, colLab, rowLab, t0, { size = 40 } = {}) {
+ const xs = [x0], ys = [y0];
+ ws.forEach(w => xs.push(xs.at(-1) + w)); hs.forEach(h => ys.push(ys.at(-1) + h));
+ let d = '';
+ xs.forEach(x => { d += `M${x} ${y0}V${ys.at(-1)}`; }); ys.forEach(y => { d += `M${x0} ${y}H${xs.at(-1)}`; });
+ draw(path(p, d, { stroke: COL.chalk, 'stroke-width': 3 }, { d: 0 }), t0, .9);
+ colLab.forEach((l, j) => show(M(p, [].concat(l), { x: (xs[j] + xs[j + 1]) / 2, y: y0 - 22, size, fill: COL.whole, o: 0 }), t0 + .3 + j * .15));
+ rowLab.forEach((l, i) => show(M(p, [].concat(l), { x: x0 - 24, y: (ys[i] + ys[i + 1]) / 2 + size * .35, size, fill: COL.nat, anchor: 'end', o: 0 }), t0 + .3 + i * .15));
+ const box = (i, j, pad) => ({ x: xs[j] + pad, y: ys[i] + pad, width: xs[j + 1] - xs[j] - 2 * pad, height: ys[i + 1] - ys[i] - 2 * pad });
+ return {
+ xs, ys,
+ cell(i, j, parts, t0, { fill = COL.chalk, tint, run = tw, into = p } = {}) {
+ if (tint) { const r = put(mk('rect', { ...box(i, j, 3), fill: tint }, into), { o: 0 }); into.insertBefore(r, into.firstChild); run(r, { o: .3 }, t0, .4); }
+ const e = M(into, [].concat(parts), { x: (xs[j] + xs[j + 1]) / 2, y: (ys[i] + ys[i + 1]) / 2 + size * .35, size, fill, o: 0, s: .6 });
+ run(e, { o: 1, s: 1 }, t0, .4, back);
+ return e;
+ },
+ ring(i, j, color, t0, run = tw, into = p) { const r = put(mk('rect', { ...box(i, j, 8), rx: 12, fill: 'none', stroke: color, 'stroke-width': 4.5 }, into), { o: 0 }); run(r, { o: 1 }, t0, .3); return r; },
+ };
+}
+// A curved arrow from (x1, y1) to (x2, y2) bending up (h < 0) or down (h > 0).
+function arc(p, x1, y1, x2, y2, h, color, t0, run = tw) {
+ const mx = (x1 + x2) / 2, l = path(p, `M${x1} ${y1}Q${mx} ${y1 + h} ${x2} ${y2}`, { stroke: color, 'stroke-width': 3.5 }, { d: 0 });
+ run(l, { d: 1 }, t0, .5);
+ return l;
+}
+
/* ---------- coordinate plane (unit 6 onward) ---------- */
// Grid centred on the origin at (cx, cy); u pixels per unit; x from x0 to x1, y from y0 to y1.
// Returns { g, PX, PY, u, ... } with helpers to plot points, walk to a point, and draw lines.
@@ -469,6 +599,17 @@ function plane(p, { cx = 800, cy = 450, u = 50, x0 = -6, x1 = 6, y0 = -6, y1 = 6
return e;
},
half: (a, b, c, color, t0, opts) => P.region([[a, b, c]], color, t0, opts),
+ // Graph of y = f(x) for x from xa to xb, drawn on; the part outside the grid's y range is cut off.
+ fn(f, xa, xb, color, t0, { run = tw, w = 4, into = P.layer || p, n = 160, dur = 1.2 } = {}) {
+ let d = '', pen = false;
+ for (let i = 0; i <= n; i++) {
+ const x = xa + (xb - xa) * i / n, y = f(x), inside = y >= y0 - .5 && y <= y1 + .5;
+ if (inside) { d += `${pen ? 'L' : 'M'}${PX(x).toFixed(1)} ${PY(y).toFixed(1)}`; pen = true; } else pen = false;
+ }
+ const l = path(into, d, { stroke: color, 'stroke-width': w }, { d: 0 });
+ run(l, { d: 1 }, t0, dur);
+ return l;
+ },
// Line through two points, extended to the edge of the grid.
line(xa, ya, xb, yb, color, t0, { run = tw, w = 4, dash, into = P.layer || p } = {}) {
const dx = xb - xa, dy = yb - ya, ts = [];
@@ -582,7 +723,7 @@ function brace(p, a, b, y, label, color, t0) {
// Inline math for HTML text.
function mathEl(parts, size = 22) {
- const svg = mk('svg', { class: 'm' });
+ const svg = mk('svg', { class: 'm', 'font-weight': 400 }); // widths are measured at normal weight, so a bold prompt must not thicken the math
const m = M(svg, parts, { size, anchor: 'start', fill: 'currentColor' });
const top = size * 1.05, h = size * 1.5;
svg.setAttribute('viewBox', `0 ${-top} ${m._w + 2} ${h}`);
@@ -644,10 +785,12 @@ function mix(a, b, q) {
const A = h(a), B = h(b);
return '#' + A.map((v, i) => Math.round(v + (B[i] - v) * q).toString(16).padStart(2, '0')).join('');
}
+// A colour or attribute tween with no starting value in the state starts from the element's attribute.
+const fromAttr = (e, k) => k.startsWith('c_') ? e.getAttribute(k.slice(2)) : k.startsWith('a_') ? parseFloat(e.getAttribute(k.slice(2))) : undefined;
function evalTo(t, list = TW) {
for (const w of list) {
if (w.done || t < w.t0) continue;
- if (!w.go) { w.go = 1; if (w.e) { const s = st(w.e); w.from = {}; for (const k in w.to) w.from[k] = s[k]; } }
+ if (!w.go) { w.go = 1; if (w.e) { const s = st(w.e); w.from = {}; for (const k in w.to) w.from[k] = s[k] ?? fromAttr(w.e, k); } }
const p = w.dur ? Math.min(1, (t - w.t0) / w.dur) : 1, q = w.ease(p);
if (w.e) {
const s = st(w.e);
@@ -843,7 +986,7 @@ function quiz(pos, qs, done, label = 'Quick check') {
return false;
};
const kick = label + (qs.length > 1 ? ` ${k + 1} of ${qs.length}` : '');
- const head = h('div', 'head', [h('p', 'kicker', kick), h('p', 'prompt', [rich(q.prompt)])]);
+ const head = h('div', 'head', [h('p', 'kicker', kick), h('p', 'prompt', [rich(q.prompt, pos.cls.startsWith('screen') ? 38 : 28)])]); // match the prompt's type size
if (ctl.hint) head.append(h('p', 'keys', ['Keys: ', ...ctl.hint]));
c.replaceChildren(...(guide ? [guide] : []), head, fb, body, acts);
};
@@ -945,6 +1088,39 @@ const tapEls = (row, idx, right, yes, no, onRight) => (body, api) => {
},
};
};
+// Click one of several stage objects (table cells, bars, small graphs). items: [{ el, box: [x, y, w, h], label }].
+const pickEls = (items, right, yes, no, onRight) => (body, api) => {
+ const L = qlayer();
+ let locked = false, cur = -1;
+ const hits = items.map((it, i) => {
+ const [x, y, w, hh] = it.box, g = G(L);
+ g.classList.add('hit');
+ g.setAttribute('tabindex', 0);
+ g.setAttribute('role', 'button');
+ g.setAttribute('aria-label', it.label);
+ mk('rect', { class: 'ring', x, y, width: w, height: hh, rx: 12 }, g);
+ const act = () => {
+ if (locked) return;
+ if (i === right) { g.classList.add('good'); onRight?.(); api.grade(true, yes); }
+ else { g.classList.add('bad'); shakeFx(it.el); api.grade(false, no(i)); }
+ };
+ g.addEventListener('click', act);
+ keyAct(g, act);
+ return g;
+ });
+ return {
+ reveal() { hits[right].classList.add('good'); onRight?.(); return yes; },
+ lock() { locked = true; },
+ hint: [kbd('←'), kbd('→'), ' move, ', kbd('Enter'), ' choose, or click'],
+ key(e) {
+ const d = e.key === 'ArrowRight' ? 1 : e.key === 'ArrowLeft' ? -1 : 0;
+ if (!d || locked) return false;
+ cur = cur < 0 ? (d > 0 ? 0 : hits.length - 1) : (cur + d + hits.length) % hits.length;
+ hits[cur].focus();
+ return true;
+ },
+ };
+};
// Rows of toggles. items: { parts, ans: [keys], why }. parts are math parts (strings, F, R) unless text: true,
// where they are rich text (strings and $m(...)). cols: [[key, label, colour?, shortcut?]]. multi: several per row.
const grid = (items, cols, { multi = true, text = false } = {}) => (body, api) => {
@@ -1027,6 +1203,7 @@ function rat(str) {
const gcd = (a, b) => { a = Math.abs(a); b = Math.abs(b); while (b) [a, b] = [b, a % b]; return a; };
const lowest = ([n, d]) => gcd(n, d) === 1;
// Fill-in boxes inside math. rows: [{ parts: [math parts and { box: '21' }], why, hint?, fx? }].
+// test(values), when given, judges the whole row from the typed numbers (e.g. a factor pair in either order); the boxes' answers are still what Show answer fills in.
// Answers are exact numbers: "−5", "-5", "0.5", "3/4" and "2 1/4" all work, and equal values match ("6/8" = "3/4")
// unless the box has lowest: true. hint is shown after a wrong try, why after a right one.
const blanks = rowsIn => (body, api) => {
@@ -1059,7 +1236,11 @@ const blanks = rowsIn => (body, api) => {
const single = rows.length === 1;
const judge = r => {
let ok = true;
- for (const b of r.boxes) {
+ if (r.it.test) { // the row is judged as a whole, e.g. two factors in either order
+ const vals = r.boxes.map(b => rat(b.value));
+ ok = vals.every(Boolean) && !!r.it.test(vals.map(([n, d]) => n / d));
+ r.boxes.forEach(b => { b.classList.toggle('good', ok); b.classList.toggle('bad', !ok); });
+ } else for (const b of r.boxes) {
const want = rat(b.dataset.ans), got = rat(b.value);
const good = !!got && got[0] * want[1] === want[0] * got[1] && (!b.dataset.lowest || lowest(got));
b.classList.toggle('good', good);
diff --git a/tools/e2e_ch01.py b/tools/e2e_ch01.py
index 7ac1410..d88c841 100644
--- a/tools/e2e_ch01.py
+++ b/tools/e2e_ch01.py
@@ -146,7 +146,7 @@ async def keyboard_only():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "f", "f", "t", "f", "Enter"); assert await ev("SCORE['p-tf'].right") == 5
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 1 complete" in await pg.inner_text(".card")
+ assert "chapter 1 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter would open the next chapter
print("keyboard only: all questions answered, errors:", errs)
assert not errs
diff --git a/tools/e2e_ch02.py b/tools/e2e_ch02.py
index 9d36f04..95dc28b 100644
--- a/tools/e2e_ch02.py
+++ b/tools/e2e_ch02.py
@@ -67,7 +67,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("f", "f", "f", "t", "t", "f", "Enter"); assert await score("p-tf") == 6
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 2 complete" in await pg.inner_text(".card")
+ assert "chapter 2 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter would open the next chapter
# every beat fast-forwards cleanly (replay from any step)
diff --git a/tools/e2e_ch03.py b/tools/e2e_ch03.py
index 64efd11..c2bcff4 100644
--- a/tools/e2e_ch03.py
+++ b/tools/e2e_ch03.py
@@ -64,7 +64,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("f", "t", "f", "t", "f", "t", "Enter"); assert await score("p-tf") == 6 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 3 complete" in await pg.inner_text(".card")
+ assert "chapter 3 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch04.py b/tools/e2e_ch04.py
index e3df8fb..455a435 100644
--- a/tools/e2e_ch04.py
+++ b/tools/e2e_ch04.py
@@ -62,7 +62,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "f", "t", "f", "t", "f", "Enter"); assert await score("p-tf") == 6 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 4 complete" in await pg.inner_text(".card")
+ assert "chapter 4 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch05.py b/tools/e2e_ch05.py
index 0651048..3f747c5 100644
--- a/tools/e2e_ch05.py
+++ b/tools/e2e_ch05.py
@@ -58,7 +58,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "f", "t", "f", "t", "f", "Enter"); assert await score("p-tf") == 6 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 5 complete" in await pg.inner_text(".card")
+ assert "chapter 5 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch06.py b/tools/e2e_ch06.py
index d50e728..52b9557 100644
--- a/tools/e2e_ch06.py
+++ b/tools/e2e_ch06.py
@@ -59,7 +59,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "f", "t", "f", "f", "t", "Enter"); assert await score("p-tf") == 6 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 6 complete" in await pg.inner_text(".card")
+ assert "chapter 6 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch07.py b/tools/e2e_ch07.py
index 762dfad..2dfe52a 100644
--- a/tools/e2e_ch07.py
+++ b/tools/e2e_ch07.py
@@ -64,7 +64,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "f", "t", "f", "t", "f", "Enter"); assert await score("p-tf") == 6 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 7 complete" in await pg.inner_text(".card")
+ assert "chapter 7 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch08.py b/tools/e2e_ch08.py
index 85772bf..b0d42c7 100644
--- a/tools/e2e_ch08.py
+++ b/tools/e2e_ch08.py
@@ -63,7 +63,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("f", "t", "f", "t", "f", "t", "Enter"); assert await score("p-tf") == 6 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 8 complete" in await pg.inner_text(".card")
+ assert "chapter 8 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch09.py b/tools/e2e_ch09.py
index 3deecb6..40d028d 100644
--- a/tools/e2e_ch09.py
+++ b/tools/e2e_ch09.py
@@ -60,7 +60,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("f", "t", "f", "t", "t", "f", "Enter"); assert await score("p-tf") == 6 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 9 complete" in await pg.inner_text(".card")
+ assert "chapter 9 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch10.py b/tools/e2e_ch10.py
index 1a8da91..b4a299f 100644
--- a/tools/e2e_ch10.py
+++ b/tools/e2e_ch10.py
@@ -62,7 +62,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("f", "f", "t", "t", "f", "t", "Enter"); assert await score("p-tf") == 6 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 10 complete" in await pg.inner_text(".card")
+ assert "chapter 10 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch11.py b/tools/e2e_ch11.py
index e762a07..3bfd002 100644
--- a/tools/e2e_ch11.py
+++ b/tools/e2e_ch11.py
@@ -59,7 +59,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "f", "t", "t", "f", "f", "Enter"); assert await score("p-tf") == 6 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 11 complete" in await pg.inner_text(".card")
+ assert "chapter 11 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch12.py b/tools/e2e_ch12.py
index 943fb8f..a45bb2c 100644
--- a/tools/e2e_ch12.py
+++ b/tools/e2e_ch12.py
@@ -60,7 +60,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "f", "t", "f", "t", "Enter"); assert await score("p-tf") == 5 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 12 complete" in await pg.inner_text(".card")
+ assert "chapter 12 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch13.py b/tools/e2e_ch13.py
index ce83204..a03e239 100644
--- a/tools/e2e_ch13.py
+++ b/tools/e2e_ch13.py
@@ -59,7 +59,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await typed("24", "450", "7.5", "45"); await keys("Enter"); assert await score("p-word") == 4 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 13 complete" in await pg.inner_text(".card")
+ assert "chapter 13 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch14.py b/tools/e2e_ch14.py
index e21f14e..12ba314 100644
--- a/tools/e2e_ch14.py
+++ b/tools/e2e_ch14.py
@@ -61,7 +61,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "f", "f", "t", "t", "f", "Enter"); assert await score("p-tf") == 6 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 14 complete" in await pg.inner_text(".card")
+ assert "chapter 14 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch15.py b/tools/e2e_ch15.py
index 767f732..f994c2b 100644
--- a/tools/e2e_ch15.py
+++ b/tools/e2e_ch15.py
@@ -61,7 +61,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "f", "t", "f", "t", "Enter"); assert await score("p-tf") == 5 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 15 complete" in await pg.inner_text(".card")
+ assert "chapter 15 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch16.py b/tools/e2e_ch16.py
index df56e10..5e3fce2 100644
--- a/tools/e2e_ch16.py
+++ b/tools/e2e_ch16.py
@@ -60,7 +60,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "f", "t", "f", "t", "Enter"); assert await score("p-tf") == 5 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 16 complete" in await pg.inner_text(".card")
+ assert "chapter 16 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch17.py b/tools/e2e_ch17.py
index f823b7c..d7c199e 100644
--- a/tools/e2e_ch17.py
+++ b/tools/e2e_ch17.py
@@ -55,7 +55,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("f", "t", "f", "t", "f", "Enter"); assert await score("p-tf") == 5 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 17 complete" in await pg.inner_text(".card")
+ assert "chapter 17 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch18.py b/tools/e2e_ch18.py
index ee0c777..0f81b08 100644
--- a/tools/e2e_ch18.py
+++ b/tools/e2e_ch18.py
@@ -55,7 +55,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "t", "f", "f", "Enter"); assert await score("p-tf") == 4 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 18 complete" in await pg.inner_text(".card")
+ assert "chapter 18 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch19.py b/tools/e2e_ch19.py
index 8a7e3fa..8ddd480 100644
--- a/tools/e2e_ch19.py
+++ b/tools/e2e_ch19.py
@@ -59,7 +59,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("f", "f", "f", "t", "f", "Enter"); assert await score("p-tf") == 5 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 19 complete" in await pg.inner_text(".card")
+ assert "chapter 19 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch20.py b/tools/e2e_ch20.py
index c73e8d9..bbb5e45 100644
--- a/tools/e2e_ch20.py
+++ b/tools/e2e_ch20.py
@@ -60,7 +60,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("f", "t", "t", "t", "Enter"); assert await score("p-tf") == 4 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 20 complete" in await pg.inner_text(".card")
+ assert "chapter 20 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch21.py b/tools/e2e_ch21.py
index 774892d..9d4861a 100644
--- a/tools/e2e_ch21.py
+++ b/tools/e2e_ch21.py
@@ -59,7 +59,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("1", "2", "1", "2", "Enter"); assert await score("p-std") == 4 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 21 complete" in await pg.inner_text(".card")
+ assert "chapter 21 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch22.py b/tools/e2e_ch22.py
index 21d3f67..dbda165 100644
--- a/tools/e2e_ch22.py
+++ b/tools/e2e_ch22.py
@@ -60,7 +60,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("1", "2", "3", "1", "2", "Enter"); assert await score("p-err") == 5 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 22 complete" in await pg.inner_text(".card")
+ assert "chapter 22 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch23.py b/tools/e2e_ch23.py
index ba9f652..80de21a 100644
--- a/tools/e2e_ch23.py
+++ b/tools/e2e_ch23.py
@@ -62,7 +62,7 @@ async def main():
await typed("7", "8", "-2", "11", "5", "-7"); await keys("Enter") # practice 3
assert await score("p-dist") == 3, await ev("JSON.stringify(SCORE)")
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 23 complete" in await pg.inner_text(".card")
+ assert "chapter 23 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch24.py b/tools/e2e_ch24.py
index 983568a..1c83bd1 100644
--- a/tools/e2e_ch24.py
+++ b/tools/e2e_ch24.py
@@ -60,7 +60,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("1", "2", "3", "Enter"); assert await score("p-write") == 3 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 24 complete" in await pg.inner_text(".card")
+ assert "chapter 24 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch25.py b/tools/e2e_ch25.py
index a60ed3e..820758b 100644
--- a/tools/e2e_ch25.py
+++ b/tools/e2e_ch25.py
@@ -60,7 +60,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("1", "2", "3", "1", "Enter"); assert await score("p-first") == 4 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 25 complete" in await pg.inner_text(".card")
+ assert "chapter 25 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch26.py b/tools/e2e_ch26.py
index c65449c..a26ca0f 100644
--- a/tools/e2e_ch26.py
+++ b/tools/e2e_ch26.py
@@ -60,7 +60,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("f", "t", "f", "t", "f", "Enter"); assert await score("p-tf") == 5 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 26 complete" in await pg.inner_text(".card")
+ assert "chapter 26 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch27.py b/tools/e2e_ch27.py
index c911624..9141d5d 100644
--- a/tools/e2e_ch27.py
+++ b/tools/e2e_ch27.py
@@ -57,7 +57,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "f", "t", "f", "t", "Enter"); assert await score("p-tf") == 5 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 27 complete" in await pg.inner_text(".card")
+ assert "chapter 27 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch28.py b/tools/e2e_ch28.py
index a200a72..dba6463 100644
--- a/tools/e2e_ch28.py
+++ b/tools/e2e_ch28.py
@@ -54,7 +54,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "f", "t", "t", "Enter"); assert await score("p-tf") == 4 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 28 complete" in await pg.inner_text(".card")
+ assert "chapter 28 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch29.py b/tools/e2e_ch29.py
index 6c3af4b..06d7c10 100644
--- a/tools/e2e_ch29.py
+++ b/tools/e2e_ch29.py
@@ -55,7 +55,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await typed("12", "18"); await keys("Enter"); assert await score("p-word") == 1 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 29 complete" in await pg.inner_text(".card")
+ assert "chapter 29 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch30.py b/tools/e2e_ch30.py
index 4232d38..7f09bdd 100644
--- a/tools/e2e_ch30.py
+++ b/tools/e2e_ch30.py
@@ -53,7 +53,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await typed("0.75", "1.00"); await keys("Enter"); assert await score("p-word") == 1 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 30 complete" in await pg.inner_text(".card")
+ assert "chapter 30 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0 # R restarts; Enter opens the next chapter
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch31.py b/tools/e2e_ch31.py
index f83baf0..d805784 100644
--- a/tools/e2e_ch31.py
+++ b/tools/e2e_ch31.py
@@ -58,7 +58,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await typed("-1", "4", "9", "2", "7", "12"); await keys("Enter"); assert await score("p-dr") == 2 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 31 complete" in await pg.inner_text(".card")
+ assert "chapter 31 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch32.py b/tools/e2e_ch32.py
index 6135670..d502416 100644
--- a/tools/e2e_ch32.py
+++ b/tools/e2e_ch32.py
@@ -56,7 +56,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await typed("11", "-7", "3"); await keys("Enter"); assert await score("p-fill") == 3 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 32 complete" in await pg.inner_text(".card")
+ assert "chapter 32 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch33.py b/tools/e2e_ch33.py
index 17ff3d3..8577558 100644
--- a/tools/e2e_ch33.py
+++ b/tools/e2e_ch33.py
@@ -59,7 +59,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("t", "t", "f", "t", "f", "Enter"); assert await score("p-tf") == 5 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 33 complete" in await pg.inner_text(".card")
+ assert "chapter 33 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch34.py b/tools/e2e_ch34.py
index d4121df..49140b7 100644
--- a/tools/e2e_ch34.py
+++ b/tools/e2e_ch34.py
@@ -66,7 +66,7 @@ async def main():
await typed("3", "-3/5", "-3/2", "-3", "3/4", "-3", "4", "2"); await keys("Enter") # practice 3
assert await score("p-int") == 4
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 34 complete" in await pg.inner_text(".card")
+ assert "chapter 34 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch35.py b/tools/e2e_ch35.py
index b055dde..05e6e31 100644
--- a/tools/e2e_ch35.py
+++ b/tools/e2e_ch35.py
@@ -67,7 +67,7 @@ async def main():
await typed("-1", "17", "-2", "-11", "4", "16", "-1", "2"); await keys("Enter") # practice 3
assert await score("p-std") == 4
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 35 complete" in await pg.inner_text(".card")
+ assert "chapter 35 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch36.py b/tools/e2e_ch36.py
index 8621a73..5d3df85 100644
--- a/tools/e2e_ch36.py
+++ b/tools/e2e_ch36.py
@@ -57,7 +57,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("y", "n", "y", "n", "y", "Enter"); assert await score("p-yes") == 5 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 36 complete" in await pg.inner_text(".card")
+ assert "chapter 36 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch37.py b/tools/e2e_ch37.py
index 4721459..f260951 100644
--- a/tools/e2e_ch37.py
+++ b/tools/e2e_ch37.py
@@ -61,7 +61,7 @@ async def main():
await typed("1", "5", "-4/3", "4", "3/2", "3", "3", "-5/2"); await keys("Enter") # practice 3
assert await score("p-solve") == 4
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 37 complete" in await pg.inner_text(".card")
+ assert "chapter 37 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch38.py b/tools/e2e_ch38.py
index 031d21c..1a3b97e 100644
--- a/tools/e2e_ch38.py
+++ b/tools/e2e_ch38.py
@@ -57,7 +57,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await keys("n", "y", "n", "n", "y", "Enter"); assert await score("p-incl") == 5 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 38 complete" in await pg.inner_text(".card")
+ assert "chapter 38 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch39.py b/tools/e2e_ch39.py
index b047d89..43d554c 100644
--- a/tools/e2e_ch39.py
+++ b/tools/e2e_ch39.py
@@ -60,7 +60,7 @@ async def main():
await keys("Enter"); await pg.wait_for_timeout(200)
await typed("19", "300", "360", "96"); await keys("Enter"); assert await score("p-est") == 4 # practice 3
await keys("Enter"); await pg.wait_for_timeout(200)
- assert "Chapter 39 complete" in await pg.inner_text(".card")
+ assert "chapter 39 complete" in (await pg.inner_text(".card")).lower()
await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
for i in range(await ev("BEATS.length")):
diff --git a/tools/e2e_ch40.py b/tools/e2e_ch40.py
new file mode 100644
index 0000000..dc23079
--- /dev/null
+++ b/tools/e2e_ch40.py
@@ -0,0 +1,79 @@
+"""Keyboard-only walk through chapter 40: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch40.py
+
+Beat numbers follow BEATS in site/ch40/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch40/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1440, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(400)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(40)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(250)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1500)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ await at(4) # q1: mean
+ await typed("5"); await keys("Enter"); assert await score("c-mean") == 0
+ await pg.locator(".box").nth(0).fill("6"); await keys("Enter")
+ assert "Correct" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 5
+
+ await at(7) # q2: click the median
+ await keys("ArrowRight", "ArrowRight", "ArrowRight", "Enter"); assert await score("c-median") == 0
+ assert "not in order" in await pg.inner_text(".card .fb")
+ await keys("ArrowLeft", "ArrowLeft", "Enter"); assert "Correct" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 8
+
+ await at(10) # q3: mode and range
+ await typed("4", "8"); await keys("Enter"); assert await score("c-moderange") == 1
+ await pg.locator(".box").nth(0).fill("7"); await keys("Enter")
+ assert "Correct" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 11
+
+ await at(12) # q4: outlier, then show answer path
+ await keys("1"); assert await score("c-outlier") == 0
+ await keys("s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 13
+
+ await at(14) # practice 1
+ await typed("14", "15", "15", "10"); await keys("Enter"); assert await score("p-five") == 4
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await keys("1", "0", "2", "1", "0", "2", "Enter"); assert await score("p-modes") == 6, await ev("JSON.stringify(SCORE)") # practice 2
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("7", "6.5", "5", "9"); await keys("Enter"); assert await score("p-six") == 4 # practice 3
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 40 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 40 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch41.py b/tools/e2e_ch41.py
new file mode 100644
index 0000000..51f93ea
--- /dev/null
+++ b/tools/e2e_ch41.py
@@ -0,0 +1,84 @@
+"""Keyboard-only walk through chapter 41: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch41.py
+
+Beat numbers follow BEATS in site/ch41/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch41/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1441, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(410)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(41)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(250)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1500)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(2) # q1: click a table cell
+ await keys("ArrowRight", "Enter"); assert await score("c-cell") == 0
+ await keys("ArrowRight", "Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 3
+
+ await at(5) # q2: two histogram questions
+ await typed("5"); await keys("Enter"); await ok(); assert await score("c-h30") == 1
+ await keys("Enter"); await pg.wait_for_timeout(150)
+ await typed("7"); await keys("Enter"); assert await score("c-h20") == 0
+ await pg.locator(".box").nth(0).fill("8"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 6
+
+ await at(8) # q3: quartiles in one row
+ await typed("4", "9", "12"); await keys("Enter"); assert await score("c-box") == 0
+ await pg.locator(".box").nth(1).fill("8"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 9
+
+ await at(11) # q4: pick the negative plot; show answer after a miss
+ await keys("ArrowRight", "Enter"); assert await score("c-corr") == 0
+ await keys("s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 12, (await ev("P.i"), await ev("document.activeElement.outerHTML.slice(0,80)"))
+
+ await at(13) # practice 1: three table questions
+ for v in ["3", "24", "14"]:
+ await typed(v); await keys("Enter"); await ok(); await keys("Enter"); await pg.wait_for_timeout(150)
+ for v in ["11", "8", "20"]: # practice 2: histogram
+ await typed(v); await keys("Enter"); await ok(); await keys("Enter"); await pg.wait_for_timeout(150)
+ await keys("1", "2", "3", "2", "1", "2", "Enter"); assert await score("p-corr") == 6, await ev("JSON.stringify(SCORE)") # practice 3
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("4", "6.5", "10", "14", "20"); await keys("Enter"); assert await score("p-five") == 5 # practice 4
+ assert await ev("S.f4n") == 5
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 41 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 41 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch42.py b/tools/e2e_ch42.py
new file mode 100644
index 0000000..dc7ae0b
--- /dev/null
+++ b/tools/e2e_ch42.py
@@ -0,0 +1,83 @@
+"""Keyboard-only walk through chapter 42: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch42.py
+
+Beat numbers follow BEATS in site/ch42/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch42/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1442, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(420)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(42)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(250)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1500)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(4) # q1: spinner probability
+ await typed("3/5"); await keys("Enter"); assert await score("c-blue") == 0
+ await pg.locator(".box").nth(0).fill("3/8"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 5
+
+ await at(8) # q2: tree; an unreduced fraction is accepted
+ await typed("3/12"); await keys("Enter"); await ok(); assert await score("c-tree") == 1
+ await keys("Enter"); assert await ev("P.i") == 9
+
+ await at(11) # q3: counting principle
+ await typed("10", "16"); await keys("Enter"); assert await score("c-count") == 1
+ await pg.locator(".box").nth(0).fill("24"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 12
+
+ await at(13) # q4: complements, then show answer path
+ await typed("75", "5/6"); await keys("Enter"); assert await score("c-comp") == 1
+ await keys("Escape", "s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 14
+
+ await at(15) # practice 1
+ await typed("1/3", "2/3", "0", "7/12"); await keys("Enter"); assert await score("p-prob") == 4
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ for v in ["15", "32", "260"]: # practice 2
+ await typed(v); await keys("Enter"); await ok(); await keys("Enter"); await pg.wait_for_timeout(150)
+ await keys("1", "2", "3", "4", "5", "2", "Enter"); assert await score("p-likely") == 6, await ev("JSON.stringify(SCORE)") # practice 3
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("0.6", "85", "7/10", "92"); await keys("Enter"); assert await score("p-comp") == 4 # practice 4
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 42 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 42 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch43.py b/tools/e2e_ch43.py
new file mode 100644
index 0000000..db3ac5e
--- /dev/null
+++ b/tools/e2e_ch43.py
@@ -0,0 +1,84 @@
+"""Keyboard-only walk through chapter 43: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch43.py
+
+Beat numbers follow BEATS in site/ch43/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch43/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1443, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(430)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(43)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(250)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1500)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(3) # q1: independent events
+ await typed("1/6"); await keys("Enter"); assert await score("c-ind") == 0
+ await pg.locator(".box").nth(0).fill("1/8"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 4
+
+ await at(6) # q2: without replacement
+ await typed("9/25"); await keys("Enter"); assert await score("c-dep") == 0
+ await keys("Escape", "s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 7
+
+ await at(8) # q3: two choice questions
+ await keys("2"); assert await score("c-kind1") == 0
+ await keys("1"); await ok(); await keys("Enter"); await pg.wait_for_timeout(150)
+ await keys("2"); await ok(); assert await score("c-kind2") == 1
+ await keys("Enter"); assert await ev("P.i") == 9
+
+ await at(10) # practice 1
+ await keys("i", "d", "i", "d", "i", "d", "Enter"); assert await score("p-kind") == 6, await ev("JSON.stringify(SCORE)")
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("1/4", "1/12", "1/12", "1/6"); await keys("Enter"); assert await score("p-ind") == 4 # practice 2
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("1/45", "1/9", "2/9", "0"); await keys("Enter"); assert await score("p-dep") == 4 # practice 3
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 43 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 43 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch44.py b/tools/e2e_ch44.py
new file mode 100644
index 0000000..871e0af
--- /dev/null
+++ b/tools/e2e_ch44.py
@@ -0,0 +1,81 @@
+"""Keyboard-only walk through chapter 44: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch44.py
+
+Beat numbers follow BEATS in site/ch44/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch44/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1444, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(440)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(44)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(250)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1500)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(4) # q1: arrangements
+ await typed("25", "10000"); await keys("Enter"); assert await score("c-arr") == 1
+ await pg.locator(".box").nth(0).fill("120"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 5
+
+ await at(6) # qp: P(8, 3)
+ await typed("512"); await keys("Enter"); assert await score("c-npr") == 0
+ await pg.locator(".box").nth(0).fill("336"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 7
+
+ await at(9) # q2: permutation vs combination; show answer
+ await typed("60", "60"); await keys("Enter"); assert await score("c-pc") == 1
+ await keys("Escape", "s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 10
+
+ await at(11) # practice 1
+ await keys("p", "c", "p", "c", "p", "c", "Enter"); assert await score("p-kind") == 6, await ev("JSON.stringify(SCORE)")
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ for v in ["720", "504", "5040", "17576", "190", "36", "20", "35"]: # practice 2 and 3
+ await typed(v); await keys("Enter"); await ok(); await keys("Enter"); await pg.wait_for_timeout(150)
+ assert "chapter 44 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 44 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch45.py b/tools/e2e_ch45.py
new file mode 100644
index 0000000..93bf399
--- /dev/null
+++ b/tools/e2e_ch45.py
@@ -0,0 +1,79 @@
+"""Keyboard-only walk through chapter 45: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch45.py
+
+Beat numbers follow BEATS in site/ch45/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch45/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1454, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(450)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(45)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(250)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1500)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(3) # q1: pick the relation that is not a function
+ await keys("ArrowRight", "Enter"); assert await score("c-map") == 0
+ assert "allowed" in await pg.inner_text(".card .fb")
+ await keys("ArrowRight", "Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 4
+
+ await at(7) # q2: vertical line test; show answer after a miss
+ await keys("ArrowRight", "ArrowRight", "Enter"); assert await score("c-vlt") == 0
+ await keys("s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 8
+
+ await at(9) # practice 1
+ await keys("y", "n", "y", "n", "y", "n", "Enter"); assert await score("p-rel") == 6, await ev("JSON.stringify(SCORE)")
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("-1", "0", "2", "3", "4", "5", "7"); await keys("Enter"); assert await score("p-dr") == 2 # practice 2
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await keys("y", "n", "y", "n", "n", "Enter"); assert await score("p-graph") == 5 # practice 3
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 45 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 45 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch46.py b/tools/e2e_ch46.py
new file mode 100644
index 0000000..e89e25d
--- /dev/null
+++ b/tools/e2e_ch46.py
@@ -0,0 +1,83 @@
+"""Keyboard-only walk through chapter 46: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch46.py
+
+Beat numbers follow BEATS in site/ch46/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch46/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1464, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(460)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(46)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(250)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1500)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(2) # q1: meaning of f(3)
+ await keys("1"); assert await score("c-mean") == 0
+ await keys("2"); await ok(); await keys("Enter"); assert await ev("P.i") == 3
+
+ await at(5) # q2: pick the point for f(-2)
+ await keys("ArrowLeft", "ArrowLeft", "Enter"); assert await score("c-pt") == 0
+ assert "height" in await pg.inner_text(".card .fb")
+ for _ in range(5): await keys("ArrowDown")
+ await keys("Enter"); await ok(); await keys("Enter"); assert await ev("P.i") == 6
+
+ await at(8) # q3: solve for the input; show answer path
+ await typed("2"); await keys("Enter"); assert await score("c-solve") == 0
+ await keys("Escape", "s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 9
+
+ await at(10) # practice
+ await typed("-2", "21", "13", "6", "49"); await keys("Enter"); assert await score("p-eval") == 5
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("-5", "24", "-2", "2 1/3"); await keys("Enter"); assert await score("p-input") == 4, await ev("JSON.stringify(SCORE)")
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("6", "7", "5", "3", "4", "2"); await keys("Enter"); assert await score("p-expr") == 3
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 46 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 46 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch47.py b/tools/e2e_ch47.py
new file mode 100644
index 0000000..98db6d5
--- /dev/null
+++ b/tools/e2e_ch47.py
@@ -0,0 +1,82 @@
+"""Keyboard-only walk through chapter 47: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch47.py
+
+Beat numbers follow BEATS in site/ch47/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch47/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1474, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(470)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(47)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(250)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1500)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(3) # q1: plot (-2, 1) on the grid
+ await keys("ArrowLeft", "ArrowLeft", "ArrowDown", "Enter"); assert await score("c-plot") == 0
+ await keys("ArrowUp", "ArrowUp", "Enter"); await ok(); await keys("Enter"); assert await ev("P.i") == 4
+
+ await at(6) # q2: read Maya's graph
+ await typed("1.5", "25"); await keys("Enter"); assert await score("c-read") == 1
+ await pg.locator(".box").nth(0).fill("1"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 7
+
+ await at(8) # q3: highest point; show answer after a miss
+ await keys("1"); assert await score("c-top") == 0
+ await keys("s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 9
+
+ await at(10) # practice
+ await typed("0", "3 1/2", "4", "4.5", "8"); await keys("Enter"); assert await score("p-table") == 5
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await keys("l", "n", "l", "n", "l", "n", "Enter"); assert await score("p-kind") == 6, await ev("JSON.stringify(SCORE)")
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("1.5", "5", "10"); await keys("Enter"); assert await score("p-read") == 3
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 47 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 47 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch48.py b/tools/e2e_ch48.py
new file mode 100644
index 0000000..5b0007b
--- /dev/null
+++ b/tools/e2e_ch48.py
@@ -0,0 +1,82 @@
+"""Keyboard-only walk through chapter 48: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch48.py
+
+Beat numbers follow BEATS in site/ch48/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch48/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1484, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(480)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(48)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(250)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1500)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(4) # q1: add
+ await typed("7", "5"); await keys("Enter"); assert await score("c-add") == 0
+ await pg.locator(".box").nth(1).fill("17"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 5
+
+ await at(6) # q2: subtract (choice)
+ await keys("1"); assert await score("c-sub") == 0
+ await keys("2"); await ok(); await keys("Enter"); assert await ev("P.i") == 7
+
+ await at(8) # q3: perimeter; show answer path
+ await typed("6", "6"); await keys("Enter"); assert await score("c-per") == 0
+ await keys("Escape", "s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 9
+
+ await at(10) # practice
+ await keys("2", "1", "3", "1", "2", "3", "Enter"); assert await score("p-name") == 6, await ev("JSON.stringify(SCORE)")
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("4", "13", "17", "12", "3", "5"); await keys("Enter"); assert await score("p-add") == 3
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("4", "8", "5", "9", "4"); await keys("Enter"); assert await score("p-sub") == 3
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 48 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 48 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch49.py b/tools/e2e_ch49.py
new file mode 100644
index 0000000..88d92a3
--- /dev/null
+++ b/tools/e2e_ch49.py
@@ -0,0 +1,83 @@
+"""Keyboard-only walk through chapter 49: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch49.py
+
+Beat numbers follow BEATS in site/ch49/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch49/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1494, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(490)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(49)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(250)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1500)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(3) # q1: multiply
+ await typed("16", "5"); await keys("Enter"); assert await score("c-mult") == 1
+ await pg.locator(".box").nth(0).fill("10"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 4
+
+ await at(7) # q2: divide
+ await typed("2", "-7"); await keys("Enter"); assert await score("c-div") == 1
+ await pg.locator(".box").nth(1).fill("11"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 8
+
+ await at(9) # q3: who is correct; show answer after a miss
+ await keys("4"); assert await score("c-who") == 0
+ await keys("s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 10
+
+ await at(11) # practice
+ await typed("9", "6", "4", "-5", "4"); await keys("Enter"); assert await score("p-exp") == 5
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("5", "4", "-2"); await keys("Enter"); assert await score("p-chain") == 3
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await keys("y", "n", "n", "y", "n", "y", "Enter"); assert await score("p-can") == 6, await ev("JSON.stringify(SCORE)")
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 49 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 49 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch50.py b/tools/e2e_ch50.py
new file mode 100644
index 0000000..fc236fc
--- /dev/null
+++ b/tools/e2e_ch50.py
@@ -0,0 +1,82 @@
+"""Keyboard-only walk through chapter 50: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch50.py
+
+Beat numbers follow BEATS in site/ch50/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch50/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1504, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(500)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(50)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(250)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1500)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(3) # q1: multiply monomials
+ await typed("6", "9", "3", "6"); await keys("Enter"); assert await score("c-mult") == 0
+ await pg.locator(".box").nth(0).fill("-6"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 4
+
+ await at(6) # q2: divide
+ await typed("-3", "3", "-3"); await keys("Enter"); await ok(); assert await score("c-div") == 1
+ await keys("Enter"); assert await ev("P.i") == 7
+
+ await at(9) # q3: power of a monomial; show answer after a miss
+ await keys("3"); assert await score("c-who") == 0
+ await keys("s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 10
+
+ await at(12) # practice
+ await typed("7", "12", "12", "5", "3", "5", "-4/5", "-4", "-11"); await keys("Enter"); assert await score("p-md") == 4
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("9", "6", "-8", "12", "8", "20", "9", "-14"); await keys("Enter"); assert await score("p-pow") == 4
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await keys("f", "f", "t", "t", "t", "f", "Enter"); assert await score("p-tf") == 6, await ev("JSON.stringify(SCORE)")
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 50 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 50 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch51.py b/tools/e2e_ch51.py
new file mode 100644
index 0000000..3aeddb1
--- /dev/null
+++ b/tools/e2e_ch51.py
@@ -0,0 +1,87 @@
+"""Keyboard-only walk through chapter 51: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch51.py
+
+Beat numbers follow BEATS in site/ch51/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch51/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1514, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(510)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(51)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(251)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1510)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(2) # q1: monomial times binomial
+ await typed("15", "21"); await keys("Enter"); assert await score("c-mono") == 0
+ await pg.locator(".box").nth(0).fill("-15"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 3
+
+ await at(5) # q2: FOIL
+ await typed("2", "8"); await keys("Enter"); await ok(); assert await score("c-foil") == 1
+ await keys("Enter"); assert await ev("P.i") == 6
+
+ await at(8) # q3: fill the grid (two rows)
+ await typed("6", "-4", "-24", "10", "24"); await keys("Enter"); assert await score("c-grid") == 1
+ await pg.locator(".box").nth(3).fill("2"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 9
+
+ await at(10) # q4: divide; show answer after a miss
+ await keys("2"); assert await score("c-div") == 0
+ await keys("s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 11
+
+ await at(12) # practice
+ await typed("1", "1", "8", "12", "20", "-2", "12"); await keys("Enter"); assert await score("p-mono") == 3
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("8", "15", "5", "14", "6", "15", "4", "10", "4", "1"); await keys("Enter"); assert await score("p-bin") == 4
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("7", "7", "3", "4", "-6", "4", "3", "1"); await keys("Enter"); assert await score("p-div") == 3, await ev("JSON.stringify(SCORE)")
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 51 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 51 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch52.py b/tools/e2e_ch52.py
new file mode 100644
index 0000000..c145c69
--- /dev/null
+++ b/tools/e2e_ch52.py
@@ -0,0 +1,82 @@
+"""Keyboard-only walk through chapter 52: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch52.py
+
+Beat numbers follow BEATS in site/ch52/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch52/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1524, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(520)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(52)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(252)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1520)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(4) # q1: GCF of monomials
+ await typed("2", "3", "1"); await keys("Enter"); assert await score("c-gcf") == 0
+ await pg.locator(".box").nth(1).fill("2"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 5
+
+ await at(7) # q2: factor
+ await typed("6", "5", "2", "3"); await keys("Enter"); await ok(); assert await score("c-fac") == 1
+ await keys("Enter"); assert await ev("P.i") == 8
+
+ await at(10) # q3: fully factored? show answer after a miss
+ await keys("1"); assert await score("c-full") == 0
+ await keys("s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 11
+
+ await at(12) # practice 1: four GCF choices
+ for k in ["1", "1", "2", "2"]:
+ await keys(k); await ok(); await keys("Enter"); await pg.wait_for_timeout(150)
+ await typed("4", "4", "3", "3", "3", "2", "1", "3", "6", "5"); await keys("Enter"); assert await score("p-fac") == 4, await ev("JSON.stringify(SCORE)")
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await keys("y", "n", "n", "y", "y", "n", "Enter"); assert await score("p-full") == 6
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 52 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 52 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch53.py b/tools/e2e_ch53.py
new file mode 100644
index 0000000..a5ab236
--- /dev/null
+++ b/tools/e2e_ch53.py
@@ -0,0 +1,82 @@
+"""Keyboard-only walk through chapter 53: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch53.py
+
+Beat numbers follow BEATS in site/ch53/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch53/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1534, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(530)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(53)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(253)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1530)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(3) # q1: grouping
+ await typed("5", "4"); await keys("Enter"); assert await score("c-grp") == 0
+ await pg.locator(".box").nth(1).fill("5"); await keys("Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 4
+
+ await at(6) # q2: signs
+ await keys("1"); assert await score("c-sign") == 0
+ await keys("2"); await ok(); await keys("Enter"); assert await ev("P.i") == 7
+
+ await at(8) # q3: find the mistake; show answer after a miss
+ await keys("3"); assert await score("c-chuck") == 0
+ await keys("s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 9
+
+ await at(10) # practice
+ await typed("2", "7", "3", "7", "3", "3", "2"); await keys("Enter"); assert await score("p-grp") == 4, await ev("JSON.stringify(SCORE)")
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await keys("t", "f", "t", "f", "t", "t", "Enter"); assert await score("p-tf") == 6
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("2", "2", "2", "2"); await keys("Enter"); assert await score("p-gcf") == 2
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 53 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 53 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch54.py b/tools/e2e_ch54.py
new file mode 100644
index 0000000..f617f12
--- /dev/null
+++ b/tools/e2e_ch54.py
@@ -0,0 +1,83 @@
+"""Keyboard-only walk through chapter 54: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch54.py
+
+Beat numbers follow BEATS in site/ch54/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch54/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1544, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(540)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(54)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(254)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1540)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(4) # q1: pick the factor pair
+ await keys("ArrowRight", "Enter"); assert await score("c-pair") == 0
+ await keys("ArrowRight", "Enter"); await ok()
+ await keys("Enter"); assert await ev("P.i") == 5
+
+ await at(7) # q2: factor pair in either order
+ await typed("-16", "3"); await keys("Enter"); await ok(); assert await score("c-fac") == 1
+ await keys("Enter"); assert await ev("P.i") == 8
+
+ await at(9) # q3: who is correct; show answer after a miss
+ await keys("1"); assert await score("c-who") == 0
+ await keys("s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 10
+
+ await at(11) # practice: a wrong pair first, then fixed
+ await typed("7", "2", "3", "10", "-6", "-1", "-12", "-5", "-3", "2", "-9", "5"); await keys("Enter"); assert await score("p-fac") == 5, await ev("JSON.stringify(SCORE)")
+ await pg.locator(".box").nth(11).fill("6"); await keys("Enter"); await ok()
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await keys("n", "y", "n", "y", "n", "y", "Enter"); assert await score("p-can") == 6
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("12", "-4", "-2", "-16", "-11", "-1", "-7", "5"); await keys("Enter"); assert await score("p-sign") == 4
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 54 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 54 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch55.py b/tools/e2e_ch55.py
new file mode 100644
index 0000000..d5a9771
--- /dev/null
+++ b/tools/e2e_ch55.py
@@ -0,0 +1,78 @@
+"""Keyboard-only walk through chapter 55: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch55.py
+
+Beat numbers follow BEATS in site/ch55/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch55/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1554, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(550)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(55)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(255)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1550)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(4) # q1: the ac pair
+ await keys("1"); assert await score("c-pair") == 0
+ await keys("2"); await ok(); await keys("Enter"); assert await ev("P.i") == 5
+
+ await at(7) # q2: four numbers, any valid order
+ await typed("3", "1", "2", "5"); await keys("Enter"); await ok(); assert await score("c-fac") == 1
+ await keys("Enter"); assert await ev("P.i") == 8
+
+ await at(10) # practice 1: one wrong row, then fixed
+ await typed("3", "1", "1", "5", "1", "3", "7", "2", "2", "7", "3", "5", "1", "-2", "3", "-4"); await keys("Enter")
+ assert await score("p-fac") == 3, await ev("JSON.stringify(SCORE)")
+ await pg.locator(".box").nth(5).fill("2"); await pg.locator(".box").nth(7).fill("3"); await keys("Enter"); await ok()
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await keys("n", "y", "n", "y", "n", "y", "Enter"); assert await score("p-can") == 6
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ for k in ["2", "1", "2"]: # practice 3
+ await keys(k); await ok(); await keys("Enter"); await pg.wait_for_timeout(150)
+ assert "chapter 55 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 55 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())
diff --git a/tools/e2e_ch56.py b/tools/e2e_ch56.py
new file mode 100644
index 0000000..7c68d11
--- /dev/null
+++ b/tools/e2e_ch56.py
@@ -0,0 +1,81 @@
+"""Keyboard-only walk through chapter 56: every quick check and chapter practice, right, wrong and shown answers.
+
+ python3 -m http.server 8765 -d site &
+ uv run --with playwright tools/e2e_ch56.py
+
+Beat numbers follow BEATS in site/ch56/index.html.
+"""
+import asyncio, os
+from playwright.async_api import async_playwright
+SH = os.environ.get("CHROME")
+URL = os.environ.get("URL", "http://localhost:8765/ch56/index.html")
+
+
+async def main():
+ async with async_playwright() as p:
+ b = await p.chromium.launch(executable_path=SH, args=["--autoplay-policy=no-user-gesture-required"])
+ pg = await b.new_page(viewport={"width": 1564, "height": 900})
+ errs = []
+ pg.on("pageerror", lambda e: errs.append(str(e)))
+ pg.on("console", lambda m: m.type == "error" and errs.append(m.text))
+ await pg.goto(URL); await pg.wait_for_timeout(560)
+ ev = pg.evaluate
+
+ async def keys(*ks):
+ for k in ks:
+ await pg.keyboard.press(k); await pg.wait_for_timeout(60)
+
+ async def typed(*vals):
+ for i, v in enumerate(vals):
+ if i: await keys("Tab")
+ await pg.keyboard.type(v); await pg.wait_for_timeout(56)
+
+ async def at(i):
+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(256)
+
+ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")
+ await keys("Space"); await pg.wait_for_timeout(1560)
+ assert await ev("P.playing && P.t > .5"), "lesson plays"
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ async def ok():
+ assert "Correct" in await pg.inner_text(".card .fb"), await pg.inner_text(".card .fb")
+
+ await at(3) # q1: difference of squares, any order
+ await typed("7", "5", "7", "5"); await keys("Enter"); await ok(); assert await score("c-dos") == 1
+ await keys("Enter"); assert await ev("P.i") == 4
+
+ await at(6) # q2: perfect square?
+ await keys("1"); assert await score("c-pst") == 0
+ await keys("2"); await ok(); await keys("Enter"); assert await ev("P.i") == 7
+
+ await at(8) # q3: difference of cubes; show answer after a miss
+ await keys("2"); assert await score("c-cube") == 0
+ await keys("s"); assert "Answer" in await pg.inner_text(".card .fb")
+ await keys("Enter"); assert await ev("P.i") == 9
+
+ await at(11) # practice
+ await keys("1", "2", "4", "3", "5", "2", "Enter"); assert await score("p-kind") == 6, await ev("JSON.stringify(SCORE)")
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("11", "11", "3", "6", "6", "16"); await keys("Enter"); assert await score("p-fac") == 4
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ await typed("3", "3", "5", "4", "9"); await keys("Enter"); assert await score("p-gcf") == 3
+ await keys("Enter"); await pg.wait_for_timeout(200)
+ assert "chapter 56 complete" in (await pg.inner_text(".card")).lower()
+ await keys("r"); await pg.wait_for_timeout(200); assert await ev("P.i") == 0
+
+ for i in range(await ev("BEATS.length")):
+ await ev(f"seek({i}, false)")
+ print("chapter 56 keyboard walk-through passed; errors:", errs)
+ assert not errs
+ await b.close()
+
+asyncio.run(main())