An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
Chapters 57-58: square and cube roots, simplifying radicals
yzr5b35fdcb64c4
diff --git a/.claude/skills/animebook-chapter/references/engine.md b/.claude/skills/animebook-chapter/references/engine.mdindex a5faa16..ff40d05 100644--- a/.claude/skills/animebook-chapter/references/engine.md+++ b/.claude/skills/animebook-chapter/references/engine.md@@ -43,6 +43,7 @@| `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()` 中的上标指数 |+| `R(x, i)` | 根号:`x` 可以是数字串或 `F(n, d)`(分数在根号下),`i` 为根指数,如 `R(125, 3)` 是立方根(ch57 起) || `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}` |diff --git a/content/ch57/narration.en.json b/content/ch57/narration.en.jsonnew file mode 100644index 0000000..6b51a0c--- /dev/null+++ b/content/ch57/narration.en.json@@ -0,0 +1,21 @@+{+ "voice": "en-US-AndrewMultilingualNeural",+ "rate": "-4%",+ "beats": {+ "intro": "Unit eleven, chapter fifty-seven. [[sub]]Square roots and cube roots undo squaring and cubing.",+ "square": "Squaring a number gives the area of a square. [[side]]A square with side seven [[fill]]holds seven times seven, forty-nine unit squares. [[rev]]Taking a square root goes backward: start from the area, forty-nine, and ask how long the side is. [[sign]]We write it with a radical sign: the square root of forty-nine [[ans]]is seven, because seven squared is forty-nine.",+ "pm": "Here's a subtlety. [[both]]Four squared is sixteen, and negative four squared is also sixteen, since a negative times a negative is positive. [[two]]So sixteen has two square roots: four and negative four. [[prin]]The radical sign means only the nonnegative one, called the principal square root. [[ans]]The square root of sixteen is four, not plus or minus four.",+ "neg": "What about the square root of negative nine? [[sq]]Any real number times itself is positive, or zero. [[none]]So no real number squared gives negative nine. [[nr]]The square root of a negative number is not a real number.",+ "q1": "Quick check. Square roots.",+ "perfect": "A perfect square is the square of a rational number. [[list]]One, four, nine, sixteen, twenty-five, and so on. [[frac]]Fractions can be perfect squares too: forty-nine thirty-sixths is seven sixths, squared, [[fans]]so its square root is seven sixths. [[rat]]The square root of a perfect square is rational. [[not]]Twenty isn't a perfect square. [[between]]Its square root lies between four and five, because sixteen is less than twenty, which is less than twenty-five. [[approx]]It's about four point four seven, [[irr]]but no decimal stops or repeats: the square root of twenty is irrational. The decimal is only an approximation.",+ "q2": "Quick check. Rational or irrational?",+ "cube": "Cubing works with volume. [[build]]A cube with edge five [[fill]]holds five times five times five, one hundred twenty-five unit cubes. [[rev]]The cube root goes backward, from the volume to the edge. [[sign]]We write a small three on the radical sign. [[ans]]The cube root of one hundred twenty-five is five.",+ "cubeneg": "Unlike square roots, cube roots work for negative numbers. [[ex]]Negative five times negative five is twenty-five, [[three]]and twenty-five times negative five is negative one hundred twenty-five. [[ans]]So the cube root of negative one hundred twenty-five is negative five. [[one]]Every real number has exactly one real cube root, with the same sign as the number. [[frac]]Fractions too: the cube root of one twenty-seventh is one third.",+ "q3": "Quick check. Who is correct?",+ "wrap": "To sum up. [[w1]]The square root of a number is the nonnegative number that squares to it. [[w2]]Negative numbers have no real square root. [[w3]]The square root of a perfect square is rational; otherwise it's irrational. [[w4]]The cube root undoes cubing and works for negative numbers too. [[end]]Now try the chapter practice.",+ "final1": "Chapter practice. Simplify each root.",+ "final2": "Next, what kind of number is each root?",+ "final3": "Last one. Square or cube?",+ "finish": "Well done. That's the end of chapter fifty-seven, square roots and cube roots."+ }+}diff --git a/content/ch57/narration.en.timings.json b/content/ch57/narration.en.timings.jsonnew file mode 100644index 0000000..0de5ff8--- /dev/null+++ b/content/ch57/narration.en.timings.json@@ -0,0 +1,2245 @@+{+ "intro": {+ "key": "94ff94828a039d68bee311947344ac496f8358f2",+ "dur": 7.68,+ "words": [+ [+ 0.104166,+ "Unit"+ ],+ [+ 0.390625,+ "eleven"+ ],+ [+ 1.067708,+ "chapter"+ ],+ [+ 1.783875,+ "fifty-seven"+ ],+ [+ 3.138041,+ "Square"+ ],+ [+ 3.528666,+ "roots"+ ],+ [+ 4.231791,+ "and"+ ],+ [+ 4.401041,+ "cube"+ ],+ [+ 4.713541,+ "roots"+ ],+ [+ 5.3125,+ "undo"+ ],+ [+ 5.820333,+ "squaring"+ ],+ [+ 6.692708,+ "and"+ ],+ [+ 6.809916,+ "cubing"+ ]+ ],+ "marks": {+ "sub": 3.138+ },+ "cues": [+ [+ 0.104,+ "Unit eleven, chapter fifty-seven."+ ],+ [+ 3.138,+ "Square roots and cube roots undo squaring and cubing."+ ]+ ]+ },+ "square": {+ "key": "3a8fac826d8e7cfa72c032fea32614cf9ddc1946",+ "dur": 24.744,+ "words": [+ [+ 0.104166,+ "Squaring"+ ],+ [+ 0.507833,+ "a"+ ],+ [+ 0.533875,+ "number"+ ],+ [+ 1.302083,+ "gives"+ ],+ [+ 1.510416,+ "the"+ ],+ [+ 1.71875,+ "area"+ ],+ [+ 2.200541,+ "of"+ ],+ [+ 2.291666,+ "a"+ ],+ [+ 2.33075,+ "square"+ ],+ [+ 3.333333,+ "A"+ ],+ [+ 3.385416,+ "square"+ ],+ [+ 3.815125,+ "with"+ ],+ [+ 3.958333,+ "side"+ ],+ [+ 4.583333,+ "seven"+ ],+ [+ 5.039083,+ "holds"+ ],+ [+ 5.45575,+ "seven"+ ],+ [+ 5.820333,+ "times"+ ],+ [+ 6.341166,+ "seven"+ ],+ [+ 7.239583,+ "forty-nine"+ ],+ [+ 7.903666,+ "unit"+ ],+ [+ 8.164083,+ "squares"+ ],+ [+ 9.257833,+ "Taking"+ ],+ [+ 9.557291,+ "a"+ ],+ [+ 9.622416,+ "square"+ ],+ [+ 10.234375,+ "root"+ ],+ [+ 10.794291,+ "goes"+ ],+ [+ 11.08075,+ "backward"+ ],+ [+ 12.044291,+ "start"+ ],+ [+ 12.34375,+ "from"+ ],+ [+ 12.460958,+ "the"+ ],+ [+ 12.513041,+ "area"+ ],+ [+ 13.333333,+ "forty-nine"+ ],+ [+ 14.505208,+ "and"+ ],+ [+ 14.84375,+ "ask"+ ],+ [+ 15.104166,+ "how"+ ],+ [+ 15.247416,+ "long"+ ],+ [+ 15.625,+ "the"+ ],+ [+ 15.690125,+ "side"+ ],+ [+ 16.08075,+ "is"+ ],+ [+ 16.848958,+ "We"+ ],+ [+ 16.966166,+ "write"+ ],+ [+ 17.200541,+ "it"+ ],+ [+ 17.33075,+ "with"+ ],+ [+ 17.5,+ "a"+ ],+ [+ 17.539083,+ "radical"+ ],+ [+ 18.085958,+ "sign"+ ],+ [+ 19.036458,+ "the"+ ],+ [+ 19.114583,+ "square"+ ],+ [+ 19.583333,+ "root"+ ],+ [+ 19.869791,+ "of"+ ],+ [+ 19.947916,+ "forty-nine"+ ],+ [+ 20.911458,+ "is"+ ],+ [+ 21.041666,+ "seven"+ ],+ [+ 21.848958,+ "because"+ ],+ [+ 22.434916,+ "seven"+ ],+ [+ 22.851583,+ "squared"+ ],+ [+ 23.4375,+ "is"+ ],+ [+ 23.541666,+ "forty-nine"+ ]+ ],+ "marks": {+ "side": 3.333,+ "fill": 5.039,+ "rev": 9.258,+ "sign": 16.849,+ "ans": 20.911+ },+ "cues": [+ [+ 0.104,+ "Squaring a number gives the area of a square."+ ],+ [+ 3.333,+ "A square with side seven holds seven times seven, forty-nine unit squares."+ ],+ [+ 9.258,+ "Taking a square root goes backward: start from the area, forty-nine, and ask how long the side is."+ ],+ [+ 16.849,+ "We write it with a radical sign: the square root of forty-nine is seven, because seven squared is forty-nine."+ ]+ ]+ },+ "pm": {+ "key": "213096b0ec017a8dea54e9f5c1e52c5aaf2760e7",+ "dur": 24.624,+ "words": [+ [+ 0.130208,+ "Here's"+ ],+ [+ 0.3125,+ "a"+ ],+ [+ 0.377625,+ "subtlety"+ ],+ [+ 1.510416,+ "Four"+ ],+ [+ 1.731791,+ "squared"+ ],+ [+ 2.369791,+ "is"+ ],+ [+ 2.513041,+ "sixteen"+ ],+ [+ 3.723958,+ "and"+ ],+ [+ 3.854166,+ "negative"+ ],+ [+ 4.21875,+ "four"+ ],+ [+ 4.505208,+ "squared"+ ],+ [+ 5.221375,+ "is"+ ],+ [+ 5.351583,+ "also"+ ],+ [+ 5.742208,+ "sixteen"+ ],+ [+ 6.822916,+ "since"+ ],+ [+ 7.005208,+ "a"+ ],+ [+ 7.044291,+ "negative"+ ],+ [+ 7.591166,+ "times"+ ],+ [+ 7.916666,+ "a"+ ],+ [+ 7.942708,+ "negative"+ ],+ [+ 8.710958,+ "is"+ ],+ [+ 8.815125,+ "positive"+ ],+ [+ 10.013041,+ "So"+ ],+ [+ 10.221375,+ "sixteen"+ ],+ [+ 10.755208,+ "has"+ ],+ [+ 10.976583,+ "two"+ ],+ [+ 11.263041,+ "square"+ ],+ [+ 11.679708,+ "roots"+ ],+ [+ 12.408875,+ "four"+ ],+ [+ 13.098958,+ "and"+ ],+ [+ 13.203125,+ "negative"+ ],+ [+ 13.567708,+ "four"+ ],+ [+ 14.401041,+ "The"+ ],+ [+ 14.479166,+ "radical"+ ],+ [+ 14.921875,+ "sign"+ ],+ [+ 15.612,+ "means"+ ],+ [+ 16.08075,+ "only"+ ],+ [+ 16.458333,+ "the"+ ],+ [+ 16.5495,+ "nonnegative"+ ],+ [+ 17.1875,+ "one"+ ],+ [+ 17.981791,+ "called"+ ],+ [+ 18.203125,+ "the"+ ],+ [+ 18.294291,+ "principal"+ ],+ [+ 18.763041,+ "square"+ ],+ [+ 19.20575,+ "root"+ ],+ [+ 20.013041,+ "The square"+ ],+ [+ 20.442708,+ "root"+ ],+ [+ 20.625,+ "of"+ ],+ [+ 20.703125,+ "sixteen"+ ],+ [+ 21.302083,+ "is"+ ],+ [+ 21.419291,+ "four"+ ],+ [+ 22.382833,+ "not"+ ],+ [+ 22.64325,+ "plus"+ ],+ [+ 23.346375,+ "or"+ ],+ [+ 23.476583,+ "minus"+ ],+ [+ 23.828125,+ "four"+ ]+ ],+ "marks": {+ "both": 1.51,+ "two": 10.013,+ "prin": 14.401,+ "ans": 20.013+ },+ "cues": [+ [+ 0.13,+ "Here's a subtlety."+ ],+ [+ 1.51,+ "Four squared is sixteen, and negative four squared is also sixteen, since a negative times a negative is positive."+ ],+ [+ 10.013,+ "So sixteen has two square roots: four and negative four."+ ],+ [+ 14.401,+ "The radical sign means only the nonnegative one, called the principal square root."+ ],+ [+ 20.013,+ "The square root of sixteen is four, not plus or minus four."+ ]+ ]+ },+ "neg": {+ "key": "e29234c20d9498323763373fda8cbfdec6d340d1",+ "dur": 14.088,+ "words": [+ [+ 0.104166,+ "What"+ ],+ [+ 0.182291,+ "about"+ ],+ [+ 0.416666,+ "the"+ ],+ [+ 0.520833,+ "square"+ ],+ [+ 1.119791,+ "root"+ ],+ [+ 1.640625,+ "of"+ ],+ [+ 1.757833,+ "negative"+ ],+ [+ 2.278666,+ "nine"+ ],+ [+ 3.125,+ "Any"+ ],+ [+ 3.346375,+ "real"+ ],+ [+ 3.59375,+ "number"+ ],+ [+ 3.802083,+ "times"+ ],+ [+ 4.127625,+ "itself"+ ],+ [+ 4.947916,+ "is"+ ],+ [+ 5.065125,+ "positive"+ ],+ [+ 6.028666,+ "or"+ ],+ [+ 6.210958,+ "zero"+ ],+ [+ 7.226583,+ "So"+ ],+ [+ 7.356791,+ "no"+ ],+ [+ 7.65625,+ "real"+ ],+ [+ 7.877625,+ "number"+ ],+ [+ 8.112,+ "squared"+ ],+ [+ 8.997416,+ "gives"+ ],+ [+ 9.21875,+ "negative"+ ],+ [+ 9.6745,+ "nine"+ ],+ [+ 10.494791,+ "The square"+ ],+ [+ 11.015625,+ "root"+ ],+ [+ 11.25,+ "of"+ ],+ [+ 11.302083,+ "a"+ ],+ [+ 11.328125,+ "negative"+ ],+ [+ 11.731791,+ "number"+ ],+ [+ 12.434916,+ "is"+ ],+ [+ 12.539083,+ "not"+ ],+ [+ 12.903666,+ "a"+ ],+ [+ 12.942708,+ "real"+ ],+ [+ 13.242208,+ "number"+ ]+ ],+ "marks": {+ "sq": 3.125,+ "none": 7.227,+ "nr": 10.495+ },+ "cues": [+ [+ 0.104,+ "What about the square root of negative nine?"+ ],+ [+ 3.125,+ "Any real number times itself is positive, or zero."+ ],+ [+ 7.227,+ "So no real number squared gives negative nine."+ ],+ [+ 10.495,+ "The square root of a negative number is not a real number."+ ]+ ]+ },+ "q1": {+ "key": "e9f7665ab2bfde5f93abf47864f551ce00c92d55",+ "dur": 2.328,+ "words": [+ [+ 0.104166,+ "Quick"+ ],+ [+ 0.273458,+ "check"+ ],+ [+ 1.158875,+ "Square"+ ],+ [+ 1.510416,+ "roots"+ ]+ ],+ "marks": {},+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.159,+ "Square roots."+ ]+ ]+ },+ "perfect": {+ "key": "be0e5b2d7c5461b7726073cb56967060a407107d",+ "dur": 42.984,+ "words": [+ [+ 0.091166,+ "A"+ ],+ [+ 0.15625,+ "perfect"+ ],+ [+ 0.572916,+ "square"+ ],+ [+ 1.5495,+ "is"+ ],+ [+ 1.653666,+ "the"+ ],+ [+ 1.757833,+ "square"+ ],+ [+ 2.682291,+ "of"+ ],+ [+ 2.760416,+ "a"+ ],+ [+ 2.8125,+ "rational"+ ],+ [+ 3.385416,+ "number"+ ],+ [+ 4.257833,+ "One"+ ],+ [+ 4.882833,+ "four"+ ],+ [+ 5.546875,+ "nine"+ ],+ [+ 5.911458,+ "sixteen"+ ],+ [+ 6.835958,+ "twenty-five"+ ],+ [+ 7.903666,+ "and"+ ],+ [+ 7.994791,+ "so"+ ],+ [+ 8.26825,+ "on"+ ],+ [+ 8.984375,+ "Fractions"+ ],+ [+ 9.492208,+ "can"+ ],+ [+ 9.609375,+ "be"+ ],+ [+ 9.791666,+ "perfect"+ ],+ [+ 10.364583,+ "squares"+ ],+ [+ 11.015625,+ "too"+ ],+ [+ 12.01825,+ "forty-nine"+ ],+ [+ 12.565125,+ "thirty-sixths"+ ],+ [+ 13.4375,+ "is"+ ],+ [+ 13.619791,+ "seven"+ ],+ [+ 14.023458,+ "sixths"+ ],+ [+ 14.869791,+ "squared"+ ],+ [+ 15.833333,+ "so"+ ],+ [+ 16.002625,+ "its"+ ],+ [+ 16.119791,+ "square"+ ],+ [+ 16.5625,+ "root"+ ],+ [+ 17.070333,+ "is"+ ],+ [+ 17.200541,+ "seven"+ ],+ [+ 17.591166,+ "sixths"+ ],+ [+ 18.684916,+ "The square"+ ],+ [+ 19.296875,+ "root"+ ],+ [+ 19.752625,+ "of"+ ],+ [+ 19.83075,+ "a"+ ],+ [+ 19.921875,+ "perfect"+ ],+ [+ 20.481791,+ "square"+ ],+ [+ 21.367208,+ "is"+ ],+ [+ 21.497416,+ "rational"+ ],+ [+ 22.591166,+ "Twenty"+ ],+ [+ 22.890625,+ "isn't"+ ],+ [+ 23.112,+ "a"+ ],+ [+ 23.164083,+ "perfect"+ ],+ [+ 23.671875,+ "square"+ ],+ [+ 24.700541,+ "Its square"+ ],+ [+ 25.377625,+ "root"+ ],+ [+ 25.664083,+ "lies"+ ],+ [+ 26.106791,+ "between"+ ],+ [+ 26.523458,+ "four"+ ],+ [+ 26.940125,+ "and"+ ],+ [+ 27.01825,+ "five"+ ],+ [+ 27.864583,+ "because"+ ],+ [+ 28.216166,+ "sixteen"+ ],+ [+ 28.880208,+ "is"+ ],+ [+ 29.036458,+ "less"+ ],+ [+ 29.440125,+ "than"+ ],+ [+ 29.570333,+ "twenty"+ ],+ [+ 30.416666,+ "which"+ ],+ [+ 30.572916,+ "is"+ ],+ [+ 30.690125,+ "less"+ ],+ [+ 30.976583,+ "than"+ ],+ [+ 31.09375,+ "twenty-five"+ ],+ [+ 32.291666,+ "It's"+ ],+ [+ 32.382833,+ "about"+ ],+ [+ 32.617208,+ "four"+ ],+ [+ 32.942708,+ "point"+ ],+ [+ 33.177083,+ "four"+ ],+ [+ 33.4375,+ "seven"+ ],+ [+ 34.114583,+ "but"+ ],+ [+ 34.309916,+ "no"+ ],+ [+ 34.648458,+ "decimal"+ ],+ [+ 35.221375,+ "stops"+ ],+ [+ 35.963541,+ "or"+ ],+ [+ 36.08075,+ "repeats"+ ],+ [+ 37.148458,+ "the"+ ],+ [+ 37.239583,+ "square"+ ],+ [+ 37.695333,+ "root"+ ],+ [+ 37.95575,+ "of"+ ],+ [+ 38.033875,+ "twenty"+ ],+ [+ 38.932291,+ "is"+ ],+ [+ 39.088541,+ "irrational"+ ],+ [+ 40.260416,+ "The"+ ],+ [+ 40.325541,+ "decimal"+ ],+ [+ 41.145833,+ "is"+ ],+ [+ 41.367208,+ "only"+ ],+ [+ 41.692708,+ "an"+ ],+ [+ 41.757833,+ "approximation"+ ]+ ],+ "marks": {+ "list": 4.258,+ "frac": 8.984,+ "fans": 15.833,+ "rat": 18.685,+ "not": 22.591,+ "between": 24.701,+ "approx": 32.292,+ "irr": 34.115+ },+ "cues": [+ [+ 0.091,+ "A perfect square is the square of a rational number."+ ],+ [+ 4.258,+ "One, four, nine, sixteen, twenty-five, and so on."+ ],+ [+ 8.984,+ "Fractions can be perfect squares too: forty-nine thirty-sixths is seven sixths, squared, so its square root is seven sixths."+ ],+ [+ 18.685,+ "The square root of a perfect square is rational."+ ],+ [+ 22.591,+ "Twenty isn't a perfect square."+ ],+ [+ 24.701,+ "Its square root lies between four and five, because sixteen is less than twenty, which is less than twenty-five."+ ],+ [+ 32.292,+ "It's about four point four seven, but no decimal stops or repeats: the square root of twenty is irrational."+ ],+ [+ 40.26,+ "The decimal is only an approximation."+ ]+ ]+ },+ "q2": {+ "key": "385b4746f991162140621a0bacfca8808c0ed1c0",+ "dur": 3.12,+ "words": [+ [+ 0.104166,+ "Quick"+ ],+ [+ 0.273458,+ "check"+ ],+ [+ 1.132833,+ "Rational"+ ],+ [+ 1.901041,+ "or"+ ],+ [+ 2.005208,+ "irrational"+ ]+ ],+ "marks": {},+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.133,+ "Rational or irrational?"+ ]+ ]+ },+ "cube": {+ "key": "24a222536d39cba9f35ac9b2fc6e4b85d236d3f8",+ "dur": 18.456,+ "words": [+ [+ 0.104166,+ "Cubing"+ ],+ [+ 0.45575,+ "works"+ ],+ [+ 0.794291,+ "with"+ ],+ [+ 0.898458,+ "volume"+ ],+ [+ 1.770833,+ "A"+ ],+ [+ 1.822916,+ "cube"+ ],+ [+ 2.070333,+ "with"+ ],+ [+ 2.239583,+ "edge"+ ],+ [+ 2.5,+ "five"+ ],+ [+ 3.046875,+ "holds"+ ],+ [+ 3.320333,+ "five"+ ],+ [+ 3.671875,+ "times"+ ],+ [+ 4.20575,+ "five"+ ],+ [+ 4.622416,+ "times"+ ],+ [+ 5.013041,+ "five"+ ],+ [+ 5.885416,+ "one"+ ],+ [+ 6.015625,+ "hundred"+ ],+ [+ 6.302083,+ "twenty-five"+ ],+ [+ 6.875,+ "unit"+ ],+ [+ 7.096375,+ "cubes"+ ],+ [+ 8.046875,+ "The"+ ],+ [+ 8.125,+ "cube"+ ],+ [+ 8.450541,+ "root"+ ],+ [+ 8.997416,+ "goes"+ ],+ [+ 9.296875,+ "backward"+ ],+ [+ 10.117208,+ "from"+ ],+ [+ 10.260416,+ "the"+ ],+ [+ 10.325541,+ "volume"+ ],+ [+ 11.132833,+ "to"+ ],+ [+ 11.25,+ "the"+ ],+ [+ 11.354166,+ "edge"+ ],+ [+ 12.382833,+ "We"+ ],+ [+ 12.473958,+ "write"+ ],+ [+ 12.604166,+ "a"+ ],+ [+ 12.65625,+ "small"+ ],+ [+ 13.085958,+ "three"+ ],+ [+ 13.658875,+ "on"+ ],+ [+ 13.763041,+ "the"+ ],+ [+ 13.841166,+ "radical"+ ],+ [+ 14.270833,+ "sign"+ ],+ [+ 15.169291,+ "The"+ ],+ [+ 15.234375,+ "cube"+ ],+ [+ 15.546875,+ "root"+ ],+ [+ 15.989583,+ "of"+ ],+ [+ 16.08075,+ "one"+ ],+ [+ 16.210958,+ "hundred"+ ],+ [+ 16.458333,+ "twenty-five"+ ],+ [+ 17.408875,+ "is"+ ],+ [+ 17.513041,+ "five"+ ]+ ],+ "marks": {+ "build": 1.771,+ "fill": 3.047,+ "rev": 8.047,+ "sign": 12.383,+ "ans": 15.169+ },+ "cues": [+ [+ 0.104,+ "Cubing works with volume."+ ],+ [+ 1.771,+ "A cube with edge five holds five times five times five, one hundred twenty-five unit cubes."+ ],+ [+ 8.047,+ "The cube root goes backward, from the volume to the edge."+ ],+ [+ 12.383,+ "We write a small three on the radical sign."+ ],+ [+ 15.169,+ "The cube root of one hundred twenty-five is five."+ ]+ ]+ },+ "cubeneg": {+ "key": "1c23ef535198b244e70d28832fc9a2bedeff0e19",+ "dur": 28.752,+ "words": [+ [+ 0.104166,+ "Unlike square"+ ],+ [+ 0.859375,+ "roots"+ ],+ [+ 1.5495,+ "cube"+ ],+ [+ 1.809916,+ "roots"+ ],+ [+ 2.03125,+ "work"+ ],+ [+ 2.304708,+ "for"+ ],+ [+ 2.473958,+ "negative"+ ],+ [+ 2.903666,+ "numbers"+ ],+ [+ 3.841166,+ "Negative"+ ],+ [+ 4.414083,+ "five"+ ],+ [+ 4.921875,+ "times"+ ],+ [+ 5.273458,+ "negative"+ ],+ [+ 5.690125,+ "five"+ ],+ [+ 6.653666,+ "is"+ ],+ [+ 6.796875,+ "twenty-five"+ ],+ [+ 8.072916,+ "and"+ ],+ [+ 8.242208,+ "twenty-five"+ ],+ [+ 8.867208,+ "times"+ ],+ [+ 9.179708,+ "negative"+ ],+ [+ 9.557291,+ "five"+ ],+ [+ 10.390625,+ "is"+ ],+ [+ 10.520833,+ "negative"+ ],+ [+ 11.106791,+ "one"+ ],+ [+ 11.289083,+ "hundred"+ ],+ [+ 11.5625,+ "twenty-five"+ ],+ [+ 12.695333,+ "So"+ ],+ [+ 12.7995,+ "the"+ ],+ [+ 12.903666,+ "cube"+ ],+ [+ 13.216166,+ "root"+ ],+ [+ 13.645833,+ "of"+ ],+ [+ 13.776041,+ "negative"+ ],+ [+ 14.270833,+ "one"+ ],+ [+ 14.414083,+ "hundred"+ ],+ [+ 14.6745,+ "twenty-five"+ ],+ [+ 15.716166,+ "is"+ ],+ [+ 15.820333,+ "negative"+ ],+ [+ 16.302083,+ "five"+ ],+ [+ 17.278666,+ "Every"+ ],+ [+ 17.578125,+ "real"+ ],+ [+ 17.825541,+ "number"+ ],+ [+ 18.112,+ "has"+ ],+ [+ 18.372416,+ "exactly"+ ],+ [+ 19.179708,+ "one"+ ],+ [+ 19.583333,+ "real"+ ],+ [+ 19.921875,+ "cube"+ ],+ [+ 20.3125,+ "root"+ ],+ [+ 21.028666,+ "with"+ ],+ [+ 21.145833,+ "the"+ ],+ [+ 21.237,+ "same"+ ],+ [+ 21.627625,+ "sign"+ ],+ [+ 22.421875,+ "as"+ ],+ [+ 22.552083,+ "the"+ ],+ [+ 22.617208,+ "number"+ ],+ [+ 23.567708,+ "Fractions"+ ],+ [+ 24.127625,+ "too"+ ],+ [+ 25.091166,+ "the"+ ],+ [+ 25.182291,+ "cube"+ ],+ [+ 25.507833,+ "root"+ ],+ [+ 25.911458,+ "of"+ ],+ [+ 26.08075,+ "one"+ ],+ [+ 26.40625,+ "twenty-seventh"+ ],+ [+ 27.317708,+ "is"+ ],+ [+ 27.434916,+ "one"+ ],+ [+ 27.825541,+ "third"+ ]+ ],+ "marks": {+ "ex": 3.841,+ "three": 8.073,+ "ans": 12.695,+ "one": 17.279,+ "frac": 23.568+ },+ "cues": [+ [+ 0.104,+ "Unlike square roots, cube roots work for negative numbers."+ ],+ [+ 3.841,+ "Negative five times negative five is twenty-five, and twenty-five times negative five is negative one hundred twenty-five."+ ],+ [+ 12.695,+ "So the cube root of negative one hundred twenty-five is negative five."+ ],+ [+ 17.279,+ "Every real number has exactly one real cube root, with the same sign as the number."+ ],+ [+ 23.568,+ "Fractions too: the cube root of one twenty-seventh is one third."+ ]+ ]+ },+ "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": "a440d298d73f43f9ff6f94966a0391ef16ba99fd",+ "dur": 20.64,+ "words": [+ [+ 0.104166,+ "To"+ ],+ [+ 0.169291,+ "sum"+ ],+ [+ 0.364583,+ "up"+ ],+ [+ 0.976583,+ "The square"+ ],+ [+ 1.5495,+ "root"+ ],+ [+ 1.757833,+ "of"+ ],+ [+ 1.822916,+ "a"+ ],+ [+ 1.875,+ "number"+ ],+ [+ 2.65625,+ "is"+ ],+ [+ 2.773458,+ "the"+ ],+ [+ 2.838541,+ "nonnegative"+ ],+ [+ 3.489583,+ "number"+ ],+ [+ 3.828125,+ "that"+ ],+ [+ 3.945333,+ "squares"+ ],+ [+ 4.648458,+ "to"+ ],+ [+ 4.817708,+ "it"+ ],+ [+ 5.442708,+ "Negative"+ ],+ [+ 5.76825,+ "numbers"+ ],+ [+ 6.158875,+ "have"+ ],+ [+ 6.471375,+ "no"+ ],+ [+ 6.901041,+ "real"+ ],+ [+ 7.356791,+ "square"+ ],+ [+ 7.864583,+ "root"+ ],+ [+ 8.658875,+ "The square"+ ],+ [+ 9.20575,+ "root"+ ],+ [+ 9.557291,+ "of"+ ],+ [+ 9.622416,+ "a"+ ],+ [+ 9.713541,+ "perfect"+ ],+ [+ 10.221375,+ "square"+ ],+ [+ 11.015625,+ "is"+ ],+ [+ 11.158875,+ "rational"+ ],+ [+ 12.304708,+ "otherwise"+ ],+ [+ 12.890625,+ "it's"+ ],+ [+ 13.007833,+ "irrational"+ ],+ [+ 14.127625,+ "The"+ ],+ [+ 14.20575,+ "cube"+ ],+ [+ 14.492208,+ "root"+ ],+ [+ 15.0,+ "undoes"+ ],+ [+ 15.533875,+ "cubing"+ ],+ [+ 16.276041,+ "and"+ ],+ [+ 16.419291,+ "works"+ ],+ [+ 16.731791,+ "for"+ ],+ [+ 16.875,+ "negative"+ ],+ [+ 17.34375,+ "numbers"+ ],+ [+ 17.630208,+ "too"+ ],+ [+ 18.385416,+ "Now"+ ],+ [+ 18.789083,+ "try"+ ],+ [+ 19.036458,+ "the"+ ],+ [+ 19.127625,+ "chapter"+ ],+ [+ 19.544291,+ "practice"+ ]+ ],+ "marks": {+ "w1": 0.977,+ "w2": 5.443,+ "w3": 8.659,+ "w4": 14.128,+ "end": 18.385+ },+ "cues": [+ [+ 0.104,+ "To sum up."+ ],+ [+ 0.977,+ "The square root of a number is the nonnegative number that squares to it."+ ],+ [+ 5.443,+ "Negative numbers have no real square root."+ ],+ [+ 8.659,+ "The square root of a perfect square is rational; otherwise it's irrational."+ ],+ [+ 14.128,+ "The cube root undoes cubing and works for negative numbers too."+ ],+ [+ 18.385,+ "Now try the chapter practice."+ ]+ ]+ },+ "final1": {+ "key": "fd7c461bfe2cd5a1d04f811f1703979702d60a22",+ "dur": 3.432,+ "words": [+ [+ 0.104166,+ "Chapter"+ ],+ [+ 0.429708,+ "practice"+ ],+ [+ 1.536458,+ "Simplify"+ ],+ [+ 2.369791,+ "each"+ ],+ [+ 2.65625,+ "root"+ ]+ ],+ "marks": {},+ "cues": [+ [+ 0.104,+ "Chapter practice."+ ],+ [+ 1.536,+ "Simplify each root."+ ]+ ]+ },+ "final2": {+ "key": "687beaa07c832d328fa21f88643c82100a16bd5e",+ "dur": 2.832,+ "words": [+ [+ 0.104166,+ "Next"+ ],+ [+ 0.807291,+ "what"+ ],+ [+ 0.9375,+ "kind"+ ],+ [+ 1.09375,+ "of"+ ],+ [+ 1.132833,+ "number"+ ],+ [+ 1.471375,+ "is"+ ],+ [+ 1.822916,+ "each"+ ],+ [+ 2.070333,+ "root"+ ]+ ],+ "marks": {},+ "cues": [+ [+ 0.104,+ "Next, what kind of number is each root?"+ ]+ ]+ },+ "final3": {+ "key": "c1dc7911865ed3b1c4255534112e97bf54443901",+ "dur": 2.76,+ "words": [+ [+ 0.104166,+ "Last"+ ],+ [+ 0.390625,+ "one"+ ],+ [+ 1.119791,+ "Square"+ ],+ [+ 1.862,+ "or"+ ],+ [+ 1.992208,+ "cube"+ ]+ ],+ "marks": {},+ "cues": [+ [+ 0.104,+ "Last one."+ ],+ [+ 1.12,+ "Square or cube?"+ ]+ ]+ },+ "finish": {+ "key": "2ab6ec02ec47d514ed1bc6c8e0c84a079aa88bb9",+ "dur": 5.904,+ "words": [+ [+ 0.104166,+ "Well"+ ],+ [+ 0.247416,+ "done"+ ],+ [+ 1.09375,+ "That's"+ ],+ [+ 1.263041,+ "the"+ ],+ [+ 1.354166,+ "end"+ ],+ [+ 1.5625,+ "of"+ ],+ [+ 1.640625,+ "chapter"+ ],+ [+ 2.109375,+ "fifty-seven"+ ],+ [+ 3.203125,+ "square"+ ],+ [+ 3.684916,+ "roots"+ ],+ [+ 4.388041,+ "and"+ ],+ [+ 4.596375,+ "cube"+ ],+ [+ 5.0,+ "roots"+ ]+ ],+ "marks": {},+ "cues": [+ [+ 0.104,+ "Well done."+ ],+ [+ 1.094,+ "That's the end of chapter fifty-seven, square roots and cube roots."+ ]+ ]+ }+}\ No newline at end of filediff --git a/content/ch58/narration.en.json b/content/ch58/narration.en.jsonnew file mode 100644index 0000000..3dda678--- /dev/null+++ b/content/ch58/narration.en.json@@ -0,0 +1,20 @@+{+ "voice": "en-US-AndrewMultilingualNeural",+ "rate": "-4%",+ "beats": {+ "intro": "Chapter fifty-eight. [[sub]]Even when a number isn't a perfect square, part of its square root can often come out of the radical.",+ "rule": "The key fact: the square root of a product is the product of the square roots. [[ex]]For example, the square root of nine times four [[left]]is the square root of thirty-six, which is six. [[right]]And the square root of nine times the square root of four is three times two, also six. [[use]]So we can split a radical into factors, and simplify the ones that are perfect squares.",+ "eighteen": "Simplify the square root of eighteen. [[ask]]Ask: what's the greatest perfect square that divides eighteen? Nine. [[split]]Write eighteen as nine times two. [[out]]The square root of nine is three, so three comes out in front. [[ans]]The square root of eighteen is three root two. [[read]]Read it as three root two: it means three times the square root of two. [[chk]]Check: three root two, squared, is nine times two, eighteen.",+ "pairs": "When the perfect square isn't obvious, use prime factors. [[q]]Take the square root of seventy-two. [[tree]]Break seventy-two into primes: two, two, two, three, three. [[pair]]Under a square root, every pair of equal factors is a perfect square. [[out]]Each pair leaves the radical as a single factor: one two comes out, and one three comes out. [[left]]The unpaired two stays inside. [[ans]]So the square root of seventy-two is two times three, six, root two.",+ "q1": "Quick check. Simplify the radical.",+ "great": "Use the greatest perfect square factor, or you'll have to keep going. [[q]]For the square root of forty-eight, four is a perfect square factor: [[four]]that gives two root twelve. [[more]]But twelve still has a perfect square factor, four, so this isn't simplified yet. [[sixteen]]Using sixteen from the start gives four root three in one step. [[same]]Both paths end at four root three.",+ "q2": "Quick check. Is it fully simplified?",+ "cube": "Cube roots work the same way, with triples instead of pairs. [[q]]Simplify the cube root of forty. [[tree]]Forty is two times two times two times five. [[trip]]Under a cube root, three equal factors make a perfect cube. [[out]]The triple of twos comes out as one two. [[ans]]So the cube root of forty is two times the cube root of five. [[neg]]Negatives are fine with cube roots: the cube root of negative one hundred twenty-eight is negative four times the cube root of two.",+ "q3": "Quick check. Simplify the cube root.",+ "wrap": "To sum up. [[w1]]The square root of a product is the product of the square roots. [[w2]]Pull out the greatest perfect square factor, or pull out one factor for every pair of primes. [[w3]]For cube roots, pull out one factor for every triple. [[w4]]A radical is simplified when nothing more can come out. [[end]]Now try the chapter practice.",+ "final1": "Chapter practice. Simplify the square roots.",+ "final2": "Next, simplify the cube roots.",+ "final3": "Last one. Can it be simplified?",+ "finish": "Nice work. That's the end of chapter fifty-eight, simplifying radicals."+ }+}diff --git a/content/ch58/narration.en.timings.json b/content/ch58/narration.en.timings.jsonnew file mode 100644index 0000000..2201fe4--- /dev/null+++ b/content/ch58/narration.en.timings.json@@ -0,0 +1,2280 @@+{+ "intro": {+ "key": "c974ff2f684320dabaab40e7d67125ba47711bb6",+ "dur": 7.656,+ "words": [+ [+ 0.104166,+ "Chapter"+ ],+ [+ 0.507833,+ "fifty-eight"+ ],+ [+ 1.692708,+ "Even"+ ],+ [+ 1.888041,+ "when"+ ],+ [+ 1.992208,+ "a"+ ],+ [+ 2.044291,+ "number"+ ],+ [+ 2.513041,+ "isn't"+ ],+ [+ 2.760416,+ "a"+ ],+ [+ 2.8125,+ "perfect"+ ],+ [+ 3.346375,+ "square"+ ],+ [+ 4.21875,+ "part"+ ],+ [+ 4.440125,+ "of"+ ],+ [+ 4.505208,+ "its"+ ],+ [+ 4.648458,+ "square"+ ],+ [+ 5.182291,+ "root"+ ],+ [+ 5.638041,+ "can"+ ],+ [+ 5.820333,+ "often"+ ],+ [+ 6.223958,+ "come"+ ],+ [+ 6.40625,+ "out"+ ],+ [+ 6.523458,+ "of"+ ],+ [+ 6.575541,+ "the"+ ],+ [+ 6.640625,+ "radical"+ ]+ ],+ "marks": {+ "sub": 1.693+ },+ "cues": [+ [+ 0.104,+ "Chapter fifty-eight."+ ],+ [+ 1.693,+ "Even when a number isn't a perfect square, part of its square root can often come out of the radical."+ ]+ ]+ },+ "rule": {+ "key": "6bc3ba499692c77eb44b7d4129c9d88f3ac780e8",+ "dur": 24.792,+ "words": [+ [+ 0.117208,+ "The"+ ],+ [+ 0.169291,+ "key"+ ],+ [+ 0.429708,+ "fact"+ ],+ [+ 1.25,+ "the"+ ],+ [+ 1.367208,+ "square"+ ],+ [+ 1.835958,+ "root"+ ],+ [+ 2.135416,+ "of"+ ],+ [+ 2.200541,+ "a"+ ],+ [+ 2.252625,+ "product"+ ],+ [+ 3.125,+ "is"+ ],+ [+ 3.229166,+ "the"+ ],+ [+ 3.320333,+ "product"+ ],+ [+ 4.010416,+ "of"+ ],+ [+ 4.088541,+ "the"+ ],+ [+ 4.153666,+ "square"+ ],+ [+ 4.557291,+ "roots"+ ],+ [+ 5.533875,+ "For"+ ],+ [+ 5.651041,+ "example"+ ],+ [+ 6.497416,+ "the"+ ],+ [+ 6.601583,+ "square"+ ],+ [+ 7.005208,+ "root"+ ],+ [+ 7.239583,+ "of"+ ],+ [+ 7.304708,+ "nine"+ ],+ [+ 7.617208,+ "times"+ ],+ [+ 7.981791,+ "four"+ ],+ [+ 8.737,+ "is"+ ],+ [+ 8.828125,+ "the"+ ],+ [+ 8.945333,+ "square"+ ],+ [+ 9.596375,+ "root"+ ],+ [+ 9.921875,+ "of"+ ],+ [+ 10.026041,+ "thirty-six"+ ],+ [+ 11.367208,+ "which"+ ],+ [+ 11.5495,+ "is"+ ],+ [+ 11.679708,+ "six"+ ],+ [+ 12.721375,+ "And"+ ],+ [+ 12.786458,+ "the"+ ],+ [+ 12.851583,+ "square"+ ],+ [+ 13.294291,+ "root"+ ],+ [+ 13.515625,+ "of"+ ],+ [+ 13.619791,+ "nine"+ ],+ [+ 14.362,+ "times"+ ],+ [+ 14.661458,+ "the"+ ],+ [+ 14.739583,+ "square"+ ],+ [+ 15.117208,+ "root"+ ],+ [+ 15.273458,+ "of"+ ],+ [+ 15.351583,+ "four"+ ],+ [+ 16.08075,+ "is"+ ],+ [+ 16.25,+ "three"+ ],+ [+ 16.575541,+ "times"+ ],+ [+ 16.953125,+ "two"+ ],+ [+ 17.669291,+ "also"+ ],+ [+ 18.059916,+ "six"+ ],+ [+ 19.153666,+ "So"+ ],+ [+ 19.270833,+ "we"+ ],+ [+ 19.362,+ "can"+ ],+ [+ 19.466166,+ "split"+ ],+ [+ 19.83075,+ "a"+ ],+ [+ 19.882833,+ "radical"+ ],+ [+ 20.45575,+ "into"+ ],+ [+ 20.585958,+ "factors"+ ],+ [+ 21.731791,+ "and"+ ],+ [+ 21.901041,+ "simplify"+ ],+ [+ 22.565125,+ "the"+ ],+ [+ 22.669291,+ "ones"+ ],+ [+ 23.085958,+ "that"+ ],+ [+ 23.203125,+ "are"+ ],+ [+ 23.26825,+ "perfect"+ ],+ [+ 23.710958,+ "squares"+ ]+ ],+ "marks": {+ "ex": 5.534,+ "left": 8.737,+ "right": 12.721,+ "use": 19.154+ },+ "cues": [+ [+ 0.117,+ "The key fact: the square root of a product is the product of the square roots."+ ],+ [+ 5.534,+ "For example, the square root of nine times four is the square root of thirty-six, which is six."+ ],+ [+ 12.721,+ "And the square root of nine times the square root of four is three times two, also six."+ ],+ [+ 19.154,+ "So we can split a radical into factors, and simplify the ones that are perfect squares."+ ]+ ]+ },+ "eighteen": {+ "key": "d10af1834b5cf72d807018dec08356d674b9390b",+ "dur": 29.688,+ "words": [+ [+ 0.091166,+ "Simplify"+ ],+ [+ 0.755208,+ "the"+ ],+ [+ 0.859375,+ "square"+ ],+ [+ 1.484375,+ "root"+ ],+ [+ 1.953125,+ "of"+ ],+ [+ 2.265625,+ "eighteen"+ ],+ [+ 3.346375,+ "Ask"+ ],+ [+ 4.244791,+ "what's"+ ],+ [+ 4.414083,+ "the"+ ],+ [+ 4.51825,+ "greatest"+ ],+ [+ 5.078125,+ "perfect"+ ],+ [+ 5.520833,+ "square"+ ],+ [+ 6.40625,+ "that"+ ],+ [+ 6.5625,+ "divides"+ ],+ [+ 7.122416,+ "eighteen"+ ],+ [+ 8.138041,+ "Nine"+ ],+ [+ 8.919291,+ "Write"+ ],+ [+ 9.114583,+ "eighteen"+ ],+ [+ 9.973958,+ "as"+ ],+ [+ 10.117208,+ "nine"+ ],+ [+ 10.45575,+ "times"+ ],+ [+ 10.807291,+ "two"+ ],+ [+ 11.575541,+ "The square"+ ],+ [+ 12.070333,+ "root"+ ],+ [+ 12.317708,+ "of"+ ],+ [+ 12.447916,+ "nine"+ ],+ [+ 13.242208,+ "is"+ ],+ [+ 13.4245,+ "three"+ ],+ [+ 14.335958,+ "so"+ ],+ [+ 14.817708,+ "three"+ ],+ [+ 15.195333,+ "comes"+ ],+ [+ 15.442708,+ "out"+ ],+ [+ 15.559916,+ "in"+ ],+ [+ 15.638041,+ "front"+ ],+ [+ 16.484375,+ "The square"+ ],+ [+ 16.914083,+ "root"+ ],+ [+ 17.109375,+ "of"+ ],+ [+ 17.1875,+ "eighteen"+ ],+ [+ 18.112,+ "is"+ ],+ [+ 18.294291,+ "three"+ ],+ [+ 18.697916,+ "root"+ ],+ [+ 18.984375,+ "two"+ ],+ [+ 19.791666,+ "Read"+ ],+ [+ 19.987,+ "it"+ ],+ [+ 20.195333,+ "as"+ ],+ [+ 20.559916,+ "three"+ ],+ [+ 21.028666,+ "root"+ ],+ [+ 21.354166,+ "two"+ ],+ [+ 22.33075,+ "it"+ ],+ [+ 22.408875,+ "means"+ ],+ [+ 22.669291,+ "three"+ ],+ [+ 23.085958,+ "times"+ ],+ [+ 23.476583,+ "the"+ ],+ [+ 23.541666,+ "square"+ ],+ [+ 23.984375,+ "root"+ ],+ [+ 24.179708,+ "of"+ ],+ [+ 24.283875,+ "two"+ ],+ [+ 25.130208,+ "Check"+ ],+ [+ 25.729166,+ "three"+ ],+ [+ 26.067708,+ "root"+ ],+ [+ 26.289083,+ "two"+ ],+ [+ 26.914083,+ "squared"+ ],+ [+ 27.747416,+ "is"+ ],+ [+ 27.838541,+ "nine"+ ],+ [+ 28.125,+ "times"+ ],+ [+ 28.450541,+ "two"+ ],+ [+ 28.763041,+ "eighteen"+ ]+ ],+ "marks": {+ "ask": 3.346,+ "split": 8.919,+ "out": 11.576,+ "ans": 16.484,+ "read": 19.792,+ "chk": 25.13+ },+ "cues": [+ [+ 0.091,+ "Simplify the square root of eighteen."+ ],+ [+ 3.346,+ "Ask: what's the greatest perfect square that divides eighteen?"+ ],+ [+ 8.138,+ "Nine."+ ],+ [+ 8.919,+ "Write eighteen as nine times two."+ ],+ [+ 11.576,+ "The square root of nine is three, so three comes out in front."+ ],+ [+ 16.484,+ "The square root of eighteen is three root two."+ ],+ [+ 19.792,+ "Read it as three root two: it means three times the square root of two."+ ],+ [+ 25.13,+ "Check: three root two, squared, is nine times two, eighteen."+ ]+ ]+ },+ "pairs": {+ "key": "1114af0eaf1f072cea86aed98f559f9ba190df27",+ "dur": 32.808,+ "words": [+ [+ 0.104166,+ "When"+ ],+ [+ 0.169291,+ "the"+ ],+ [+ 0.247416,+ "perfect"+ ],+ [+ 0.612,+ "square"+ ],+ [+ 1.197916,+ "isn't"+ ],+ [+ 1.471375,+ "obvious"+ ],+ [+ 2.382833,+ "use"+ ],+ [+ 2.64325,+ "prime"+ ],+ [+ 3.007833,+ "factors"+ ],+ [+ 4.153666,+ "Take"+ ],+ [+ 4.335958,+ "the"+ ],+ [+ 4.440125,+ "square"+ ],+ [+ 4.921875,+ "root"+ ],+ [+ 5.390625,+ "of"+ ],+ [+ 5.533875,+ "seventy-two"+ ],+ [+ 6.809916,+ "Break"+ ],+ [+ 7.005208,+ "seventy-two"+ ],+ [+ 7.825541,+ "into"+ ],+ [+ 7.981791,+ "primes"+ ],+ [+ 8.90625,+ "two"+ ],+ [+ 9.479166,+ "two"+ ],+ [+ 10.221375,+ "two"+ ],+ [+ 10.898458,+ "three"+ ],+ [+ 11.354166,+ "three"+ ],+ [+ 12.265625,+ "Under"+ ],+ [+ 12.513041,+ "a"+ ],+ [+ 12.565125,+ "square"+ ],+ [+ 13.138041,+ "root"+ ],+ [+ 13.89325,+ "every"+ ],+ [+ 14.140625,+ "pair"+ ],+ [+ 14.440125,+ "of"+ ],+ [+ 14.53125,+ "equal"+ ],+ [+ 14.856791,+ "factors"+ ],+ [+ 15.755208,+ "is"+ ],+ [+ 15.872416,+ "a"+ ],+ [+ 15.9375,+ "perfect"+ ],+ [+ 16.40625,+ "square"+ ],+ [+ 17.408875,+ "Each"+ ],+ [+ 17.591166,+ "pair"+ ],+ [+ 17.903666,+ "leaves"+ ],+ [+ 18.190125,+ "the"+ ],+ [+ 18.26825,+ "radical"+ ],+ [+ 18.880208,+ "as"+ ],+ [+ 18.984375,+ "a"+ ],+ [+ 19.036458,+ "single"+ ],+ [+ 19.414083,+ "factor"+ ],+ [+ 20.46875,+ "one"+ ],+ [+ 20.729166,+ "two"+ ],+ [+ 21.054708,+ "comes"+ ],+ [+ 21.40625,+ "out"+ ],+ [+ 21.992208,+ "and"+ ],+ [+ 22.122416,+ "one"+ ],+ [+ 22.5,+ "three"+ ],+ [+ 22.890625,+ "comes"+ ],+ [+ 23.229166,+ "out"+ ],+ [+ 23.971375,+ "The"+ ],+ [+ 24.088541,+ "unpaired"+ ],+ [+ 24.960958,+ "two"+ ],+ [+ 25.286458,+ "stays"+ ],+ [+ 25.677083,+ "inside"+ ],+ [+ 26.666666,+ "So"+ ],+ [+ 26.783875,+ "the"+ ],+ [+ 26.875,+ "square"+ ],+ [+ 27.278666,+ "root"+ ],+ [+ 27.539083,+ "of"+ ],+ [+ 27.630208,+ "seventy-two"+ ],+ [+ 28.958333,+ "is"+ ],+ [+ 29.166666,+ "two"+ ],+ [+ 29.492208,+ "times"+ ],+ [+ 29.921875,+ "three"+ ],+ [+ 30.859375,+ "six"+ ],+ [+ 31.71875,+ "root"+ ],+ [+ 31.992208,+ "two"+ ]+ ],+ "marks": {+ "q": 4.154,+ "tree": 6.81,+ "pair": 12.266,+ "out": 17.409,+ "left": 23.971,+ "ans": 26.667+ },+ "cues": [+ [+ 0.104,+ "When the perfect square isn't obvious, use prime factors."+ ],+ [+ 4.154,+ "Take the square root of seventy-two."+ ],+ [+ 6.81,+ "Break seventy-two into primes: two, two, two, three, three."+ ],+ [+ 12.266,+ "Under a square root, every pair of equal factors is a perfect square."+ ],+ [+ 17.409,+ "Each pair leaves the radical as a single factor: one two comes out, and one three comes out."+ ],+ [+ 23.971,+ "The unpaired two stays inside."+ ],+ [+ 26.667,+ "So the square root of seventy-two is two times three, six, root two."+ ]+ ]+ },+ "q1": {+ "key": "833719bae42cb799d9df1538a771c65a9d5f690e",+ "dur": 2.832,+ "words": [+ [+ 0.104166,+ "Quick"+ ],+ [+ 0.260416,+ "check"+ ],+ [+ 1.132833,+ "Simplify"+ ],+ [+ 1.757833,+ "the"+ ],+ [+ 1.848958,+ "radical"+ ]+ ],+ "marks": {},+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.133,+ "Simplify the radical."+ ]+ ]+ },+ "great": {+ "key": "d821c3d1c2562a5c8b03dfe07aacd96c5b5dca4b",+ "dur": 22.92,+ "words": [+ [+ 0.078125,+ "Use"+ ],+ [+ 0.3125,+ "the"+ ],+ [+ 0.442708,+ "greatest"+ ],+ [+ 1.028666,+ "perfect"+ ],+ [+ 1.471375,+ "square"+ ],+ [+ 1.888041,+ "factor"+ ],+ [+ 2.903666,+ "or"+ ],+ [+ 2.96875,+ "you'll"+ ],+ [+ 3.059916,+ "have"+ ],+ [+ 3.203125,+ "to"+ ],+ [+ 3.26825,+ "keep"+ ],+ [+ 3.528666,+ "going"+ ],+ [+ 4.296875,+ "For"+ ],+ [+ 4.348958,+ "the"+ ],+ [+ 4.427083,+ "square"+ ],+ [+ 4.908875,+ "root"+ ],+ [+ 5.117208,+ "of"+ ],+ [+ 5.195333,+ "forty-eight"+ ],+ [+ 6.210958,+ "four"+ ],+ [+ 6.380208,+ "is"+ ],+ [+ 6.458333,+ "a"+ ],+ [+ 6.536458,+ "perfect"+ ],+ [+ 7.005208,+ "square"+ ],+ [+ 7.382833,+ "factor"+ ],+ [+ 8.411458,+ "that"+ ],+ [+ 8.58075,+ "gives"+ ],+ [+ 8.815125,+ "two"+ ],+ [+ 9.127625,+ "root"+ ],+ [+ 9.414083,+ "twelve"+ ],+ [+ 10.416666,+ "But"+ ],+ [+ 10.533875,+ "twelve"+ ],+ [+ 11.054708,+ "still"+ ],+ [+ 11.341166,+ "has"+ ],+ [+ 11.484375,+ "a"+ ],+ [+ 11.5625,+ "perfect"+ ],+ [+ 12.044291,+ "square"+ ],+ [+ 12.460958,+ "factor"+ ],+ [+ 13.346375,+ "four"+ ],+ [+ 13.671875,+ "so"+ ],+ [+ 14.036458,+ "this"+ ],+ [+ 14.270833,+ "isn't"+ ],+ [+ 14.492208,+ "simplified"+ ],+ [+ 15.091166,+ "yet"+ ],+ [+ 15.807291,+ "Using"+ ],+ [+ 16.106791,+ "sixteen"+ ],+ [+ 16.666666,+ "from"+ ],+ [+ 16.783875,+ "the"+ ],+ [+ 16.848958,+ "start"+ ],+ [+ 17.5,+ "gives"+ ],+ [+ 17.734375,+ "four"+ ],+ [+ 18.085958,+ "root"+ ],+ [+ 18.346375,+ "three"+ ],+ [+ 19.101583,+ "in"+ ],+ [+ 19.270833,+ "one"+ ],+ [+ 19.544291,+ "step"+ ],+ [+ 20.377625,+ "Both"+ ],+ [+ 20.572916,+ "paths"+ ],+ [+ 21.263041,+ "end"+ ],+ [+ 21.39325,+ "at"+ ],+ [+ 21.471375,+ "four"+ ],+ [+ 21.848958,+ "root"+ ],+ [+ 22.070333,+ "three"+ ]+ ],+ "marks": {+ "q": 4.297,+ "four": 8.411,+ "more": 10.417,+ "sixteen": 15.807,+ "same": 20.378+ },+ "cues": [+ [+ 0.078,+ "Use the greatest perfect square factor, or you'll have to keep going."+ ],+ [+ 4.297,+ "For the square root of forty-eight, four is a perfect square factor: that gives two root twelve."+ ],+ [+ 10.417,+ "But twelve still has a perfect square factor, four, so this isn't simplified yet."+ ],+ [+ 15.807,+ "Using sixteen from the start gives four root three in one step."+ ],+ [+ 20.378,+ "Both paths end at four root three."+ ]+ ]+ },+ "q2": {+ "key": "bbde86797d584c905271fd2861566b3711d27956",+ "dur": 2.856,+ "words": [+ [+ 0.091166,+ "Quick"+ ],+ [+ 0.221375,+ "check"+ ],+ [+ 1.09375,+ "Is"+ ],+ [+ 1.184916,+ "it"+ ],+ [+ 1.263041,+ "fully"+ ],+ [+ 1.666666,+ "simplified"+ ]+ ],+ "marks": {},+ "cues": [+ [+ 0.091,+ "Quick check."+ ],+ [+ 1.094,+ "Is it fully simplified?"+ ]+ ]+ },+ "cube": {+ "key": "a694c3c16d886aeade4241560157af6d658bc194",+ "dur": 30.792,+ "words": [+ [+ 0.104166,+ "Cube"+ ],+ [+ 0.364583,+ "roots"+ ],+ [+ 0.833333,+ "work"+ ],+ [+ 1.08075,+ "the"+ ],+ [+ 1.171875,+ "same"+ ],+ [+ 1.510416,+ "way"+ ],+ [+ 2.34375,+ "with"+ ],+ [+ 2.5,+ "triples"+ ],+ [+ 3.138041,+ "instead"+ ],+ [+ 3.528666,+ "of"+ ],+ [+ 3.59375,+ "pairs"+ ],+ [+ 4.6745,+ "Simplify"+ ],+ [+ 5.3125,+ "the"+ ],+ [+ 5.442708,+ "cube"+ ],+ [+ 5.833333,+ "root"+ ],+ [+ 6.158875,+ "of"+ ],+ [+ 6.263041,+ "forty"+ ],+ [+ 7.278666,+ "Forty"+ ],+ [+ 7.565125,+ "is"+ ],+ [+ 7.721375,+ "two"+ ],+ [+ 7.96875,+ "times"+ ],+ [+ 8.697916,+ "two"+ ],+ [+ 9.010416,+ "times"+ ],+ [+ 9.791666,+ "two"+ ],+ [+ 10.065125,+ "times"+ ],+ [+ 10.416666,+ "five"+ ],+ [+ 11.302083,+ "Under"+ ],+ [+ 11.497416,+ "a"+ ],+ [+ 11.575541,+ "cube"+ ],+ [+ 11.940125,+ "root"+ ],+ [+ 12.65625,+ "three"+ ],+ [+ 13.072916,+ "equal"+ ],+ [+ 13.346375,+ "factors"+ ],+ [+ 13.90625,+ "make"+ ],+ [+ 14.114583,+ "a"+ ],+ [+ 14.166666,+ "perfect"+ ],+ [+ 14.700541,+ "cube"+ ],+ [+ 15.507833,+ "The"+ ],+ [+ 15.559916,+ "triple"+ ],+ [+ 15.885416,+ "of"+ ],+ [+ 15.976583,+ "twos"+ ],+ [+ 16.445333,+ "comes"+ ],+ [+ 16.71875,+ "out"+ ],+ [+ 16.940125,+ "as"+ ],+ [+ 17.057291,+ "one"+ ],+ [+ 17.369791,+ "two"+ ],+ [+ 18.203125,+ "So"+ ],+ [+ 18.333333,+ "the"+ ],+ [+ 18.4375,+ "cube"+ ],+ [+ 18.710958,+ "root"+ ],+ [+ 18.89325,+ "of"+ ],+ [+ 18.971375,+ "forty"+ ],+ [+ 19.908875,+ "is"+ ],+ [+ 20.14325,+ "two"+ ],+ [+ 20.533875,+ "times"+ ],+ [+ 21.09375,+ "the"+ ],+ [+ 21.210958,+ "cube"+ ],+ [+ 21.5495,+ "root"+ ],+ [+ 21.70575,+ "of"+ ],+ [+ 21.757833,+ "five"+ ],+ [+ 22.682291,+ "Negatives"+ ],+ [+ 23.190125,+ "are"+ ],+ [+ 23.411458,+ "fine"+ ],+ [+ 24.114583,+ "with"+ ],+ [+ 24.309916,+ "cube"+ ],+ [+ 24.6875,+ "roots"+ ],+ [+ 25.46875,+ "the"+ ],+ [+ 25.585958,+ "cube"+ ],+ [+ 25.898458,+ "root"+ ],+ [+ 26.119791,+ "of"+ ],+ [+ 26.210958,+ "negative"+ ],+ [+ 26.666666,+ "one"+ ],+ [+ 26.757833,+ "hundred"+ ],+ [+ 27.005208,+ "twenty-eight"+ ],+ [+ 27.630208,+ "is"+ ],+ [+ 27.760416,+ "negative"+ ],+ [+ 28.26825,+ "four"+ ],+ [+ 28.645833,+ "times"+ ],+ [+ 29.166666,+ "the"+ ],+ [+ 29.296875,+ "cube"+ ],+ [+ 29.661458,+ "root"+ ],+ [+ 29.895833,+ "of"+ ],+ [+ 29.987,+ "two"+ ]+ ],+ "marks": {+ "q": 4.675,+ "tree": 7.279,+ "trip": 11.302,+ "out": 15.508,+ "ans": 18.203,+ "neg": 22.682+ },+ "cues": [+ [+ 0.104,+ "Cube roots work the same way, with triples instead of pairs."+ ],+ [+ 4.675,+ "Simplify the cube root of forty."+ ],+ [+ 7.279,+ "Forty is two times two times two times five."+ ],+ [+ 11.302,+ "Under a cube root, three equal factors make a perfect cube."+ ],+ [+ 15.508,+ "The triple of twos comes out as one two."+ ],+ [+ 18.203,+ "So the cube root of forty is two times the cube root of five."+ ],+ [+ 22.682,+ "Negatives are fine with cube roots: the cube root of negative one hundred twenty-eight is negative four times the cube root of two."+ ]+ ]+ },+ "q3": {+ "key": "ae1fd0bcf784b6d7b58361eb478b50178dbaea6d",+ "dur": 2.976,+ "words": [+ [+ 0.104166,+ "Quick"+ ],+ [+ 0.260416,+ "check"+ ],+ [+ 1.08075,+ "Simplify"+ ],+ [+ 1.757833,+ "the"+ ],+ [+ 1.848958,+ "cube"+ ],+ [+ 2.226583,+ "root"+ ]+ ],+ "marks": {},+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.081,+ "Simplify the cube root."+ ]+ ]+ },+ "wrap": {+ "key": "62adbe546530d81fef5b1d30da85c7ca80323814",+ "dur": 21.816,+ "words": [+ [+ 0.104166,+ "To"+ ],+ [+ 0.15625,+ "sum"+ ],+ [+ 0.338541,+ "up"+ ],+ [+ 0.976583,+ "The square"+ ],+ [+ 1.510416,+ "root"+ ],+ [+ 1.809916,+ "of"+ ],+ [+ 1.888041,+ "a"+ ],+ [+ 1.953125,+ "product"+ ],+ [+ 2.851583,+ "is"+ ],+ [+ 2.96875,+ "the"+ ],+ [+ 3.072916,+ "product"+ ],+ [+ 3.789083,+ "of"+ ],+ [+ 3.867208,+ "the"+ ],+ [+ 3.932291,+ "square"+ ],+ [+ 4.440125,+ "roots"+ ],+ [+ 5.416666,+ "Pull"+ ],+ [+ 5.598958,+ "out"+ ],+ [+ 5.755208,+ "the"+ ],+ [+ 5.859375,+ "greatest"+ ],+ [+ 6.380208,+ "perfect"+ ],+ [+ 6.744791,+ "square"+ ],+ [+ 7.161458,+ "factor"+ ],+ [+ 8.164083,+ "or"+ ],+ [+ 8.28125,+ "pull"+ ],+ [+ 8.502625,+ "out"+ ],+ [+ 8.645833,+ "one"+ ],+ [+ 8.854166,+ "factor"+ ],+ [+ 9.348958,+ "for"+ ],+ [+ 9.726583,+ "every"+ ],+ [+ 10.013041,+ "pair"+ ],+ [+ 10.247416,+ "of"+ ],+ [+ 10.2995,+ "primes"+ ],+ [+ 11.432291,+ "For"+ ],+ [+ 11.744791,+ "cube"+ ],+ [+ 12.057291,+ "roots"+ ],+ [+ 12.7995,+ "pull"+ ],+ [+ 13.007833,+ "out"+ ],+ [+ 13.164083,+ "one"+ ],+ [+ 13.476583,+ "factor"+ ],+ [+ 14.0495,+ "for"+ ],+ [+ 14.492208,+ "every"+ ],+ [+ 14.791666,+ "triple"+ ],+ [+ 15.755208,+ "A"+ ],+ [+ 15.807291,+ "radical"+ ],+ [+ 16.653666,+ "is"+ ],+ [+ 16.809916,+ "simplified"+ ],+ [+ 17.630208,+ "when"+ ],+ [+ 17.8125,+ "nothing"+ ],+ [+ 18.177083,+ "more"+ ],+ [+ 18.528666,+ "can"+ ],+ [+ 18.684916,+ "come"+ ],+ [+ 18.90625,+ "out"+ ],+ [+ 19.648458,+ "Now"+ ],+ [+ 20.013041,+ "try"+ ],+ [+ 20.234375,+ "the"+ ],+ [+ 20.3125,+ "chapter"+ ],+ [+ 20.729166,+ "practice"+ ]+ ],+ "marks": {+ "w1": 0.977,+ "w2": 5.417,+ "w3": 11.432,+ "w4": 15.755,+ "end": 19.648+ },+ "cues": [+ [+ 0.104,+ "To sum up."+ ],+ [+ 0.977,+ "The square root of a product is the product of the square roots."+ ],+ [+ 5.417,+ "Pull out the greatest perfect square factor, or pull out one factor for every pair of primes."+ ],+ [+ 11.432,+ "For cube roots, pull out one factor for every triple."+ ],+ [+ 15.755,+ "A radical is simplified when nothing more can come out."+ ],+ [+ 19.648,+ "Now try the chapter practice."+ ]+ ]+ },+ "final1": {+ "key": "8951270e85ded7e53946ea6be71e74376cca0c9e",+ "dur": 3.624,+ "words": [+ [+ 0.104166,+ "Chapter"+ ],+ [+ 0.442708,+ "practice"+ ],+ [+ 1.523458,+ "Simplify"+ ],+ [+ 2.148458,+ "the"+ ],+ [+ 2.226583,+ "square"+ ],+ [+ 2.695333,+ "roots"+ ]+ ],+ "marks": {},+ "cues": [+ [+ 0.104,+ "Chapter practice."+ ],+ [+ 1.523,+ "Simplify the square roots."+ ]+ ]+ },+ "final2": {+ "key": "50a3b5f89dd7b55d9abaa1a1348f64e51b71cb09",+ "dur": 2.736,+ "words": [+ [+ 0.104166,+ "Next"+ ],+ [+ 0.820333,+ "simplify"+ ],+ [+ 1.40625,+ "the"+ ],+ [+ 1.497416,+ "cube"+ ],+ [+ 1.809916,+ "roots"+ ]+ ],+ "marks": {},+ "cues": [+ [+ 0.104,+ "Next, simplify the cube roots."+ ]+ ]+ },+ "final3": {+ "key": "47a41e0ecdf6975207c90d4acf7f5e3528e9a9e0",+ "dur": 2.616,+ "words": [+ [+ 0.104166,+ "Last"+ ],+ [+ 0.403666,+ "one"+ ],+ [+ 1.132833,+ "Can"+ ],+ [+ 1.223958,+ "it"+ ],+ [+ 1.289083,+ "be"+ ],+ [+ 1.40625,+ "simplified"+ ]+ ],+ "marks": {},+ "cues": [+ [+ 0.104,+ "Last one."+ ],+ [+ 1.133,+ "Can it be simplified?"+ ]+ ]+ },+ "finish": {+ "key": "e940205cd87e0a8bf084ca0570640cfbbf9876cc",+ "dur": 5.28,+ "words": [+ [+ 0.091166,+ "Nice"+ ],+ [+ 0.364583,+ "work"+ ],+ [+ 1.197916,+ "That's"+ ],+ [+ 1.367208,+ "the"+ ],+ [+ 1.484375,+ "end"+ ],+ [+ 1.70575,+ "of"+ ],+ [+ 1.783875,+ "chapter"+ ],+ [+ 2.317708,+ "fifty-eight"+ ],+ [+ 3.4245,+ "simplifying"+ ],+ [+ 4.153666,+ "radicals"+ ]+ ],+ "marks": {},+ "cues": [+ [+ 0.091,+ "Nice work."+ ],+ [+ 1.198,+ "That's the end of chapter fifty-eight, simplifying radicals."+ ]+ ]+ }+}\ No newline at end of filediff --git a/plan.md b/plan.mdindex 1b11b5a..1d6ce2c 100644--- a/plan.md+++ b/plan.md@@ -395,6 +395,8 @@| 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) 长方形”的剪拼动画证明,完全平方式用面积网格,立方和/差用三种颜色标出符号规律(同号、异号、恒正);补充“平方和不能在实数范围内分解” |+| 57 | Square Roots and Cube Roots | 首版完成,待用户审阅 | 答案页第 10 题说“除 Damon 外都对”,实际 ∛−64 = −4,只有 Eddie 对(Adam 的 8 是 √64,Brianna、Carlos 也错),改为小测;“√20 = 4.472”把近似值写成等式并称“无理数 4.472”,改为 √20 ≈ 4.47… 并说明是近似;用 7×7 方块的边长讲平方根、±4 落在数轴上讲主平方根、等轴测 5×5×5 立方体逐层长高讲立方根;引擎 `R()` 支持根指数和根号下分数 |+| 58 | Simplifying Radicals | 首版完成,待用户审阅 | 原书无计算错误(“−128 最大的完全立方因数是 −64”措辞别扭,改为 ∛(−64 · 2));质因数小圆片放进大根号,平方根里成对、立方根里三个一组合并后跳出根号,未配对的留在里面;对比用 4 和 16 两条路径化简 √48 |第二章起,引擎抽到 `site/lib/`,并新增填空题 `blanks`、可单独移动的算式记号 `tokens`、逐步化简动画 `collapse`、点选画面中运算符的 `tapEls`。diff --git a/site/ch56/index.html b/site/ch56/index.htmlindex 8eae519..4e1c13f 100644--- a/site/ch56/index.html+++ b/site/ch56/index.html@@ -12,7 +12,7 @@<script src="audio/en/timings.js"></script><script>'use strict';-const CHAPTER = { number: 56, title: 'Factoring Using Special Formulas', minutes: 10 };+const CHAPTER = { number: 56, title: 'Factoring Using Special Formulas', minutes: 10, next: '../ch57/' };const CA = COL.whole, CB = COL.nat, CAB = COL.int, HIT = COL.good;const SAME = COL.whole, OPP = COL.nat, POSC = COL.irr;diff --git a/site/ch57/audio/en/cube.mp3 b/site/ch57/audio/en/cube.mp3new file mode 100644index 0000000..4e880e5Binary files /dev/null and b/site/ch57/audio/en/cube.mp3 differdiff --git a/site/ch57/audio/en/cubeneg.mp3 b/site/ch57/audio/en/cubeneg.mp3new file mode 100644index 0000000..5fafb4cBinary files /dev/null and b/site/ch57/audio/en/cubeneg.mp3 differdiff --git a/site/ch57/audio/en/final1.mp3 b/site/ch57/audio/en/final1.mp3new file mode 100644index 0000000..e7cb915Binary files /dev/null and b/site/ch57/audio/en/final1.mp3 differdiff --git a/site/ch57/audio/en/final2.mp3 b/site/ch57/audio/en/final2.mp3new file mode 100644index 0000000..7d65864Binary files /dev/null and b/site/ch57/audio/en/final2.mp3 differdiff --git a/site/ch57/audio/en/final3.mp3 b/site/ch57/audio/en/final3.mp3new file mode 100644index 0000000..6be5188Binary files /dev/null and b/site/ch57/audio/en/final3.mp3 differdiff --git a/site/ch57/audio/en/finish.mp3 b/site/ch57/audio/en/finish.mp3new file mode 100644index 0000000..a4c9f16Binary files /dev/null and b/site/ch57/audio/en/finish.mp3 differdiff --git a/site/ch57/audio/en/intro.mp3 b/site/ch57/audio/en/intro.mp3new file mode 100644index 0000000..70a12d2Binary files /dev/null and b/site/ch57/audio/en/intro.mp3 differdiff --git a/site/ch57/audio/en/neg.mp3 b/site/ch57/audio/en/neg.mp3new file mode 100644index 0000000..07185b7Binary files /dev/null and b/site/ch57/audio/en/neg.mp3 differdiff --git a/site/ch57/audio/en/perfect.mp3 b/site/ch57/audio/en/perfect.mp3new file mode 100644index 0000000..0e34d5dBinary files /dev/null and b/site/ch57/audio/en/perfect.mp3 differdiff --git a/site/ch57/audio/en/pm.mp3 b/site/ch57/audio/en/pm.mp3new file mode 100644index 0000000..6eed1d0Binary files /dev/null and b/site/ch57/audio/en/pm.mp3 differdiff --git a/site/ch57/audio/en/q1.mp3 b/site/ch57/audio/en/q1.mp3new file mode 100644index 0000000..06380dcBinary files /dev/null and b/site/ch57/audio/en/q1.mp3 differdiff --git a/site/ch57/audio/en/q2.mp3 b/site/ch57/audio/en/q2.mp3new file mode 100644index 0000000..36630eeBinary files /dev/null and b/site/ch57/audio/en/q2.mp3 differdiff --git a/site/ch57/audio/en/q3.mp3 b/site/ch57/audio/en/q3.mp3new file mode 100644index 0000000..3d8bc5bBinary files /dev/null and b/site/ch57/audio/en/q3.mp3 differdiff --git a/site/ch57/audio/en/square.mp3 b/site/ch57/audio/en/square.mp3new file mode 100644index 0000000..e4828d2Binary files /dev/null and b/site/ch57/audio/en/square.mp3 differdiff --git a/site/ch57/audio/en/timings.js b/site/ch57/audio/en/timings.jsnew file mode 100644index 0000000..ddc6bbd--- /dev/null+++ b/site/ch57/audio/en/timings.js@@ -0,0 +1,344 @@+window.TIMINGS = {+ "intro": {+ "dur": 7.68,+ "marks": {+ "sub": 3.138+ },+ "cues": [+ [+ 0.104,+ "Unit eleven, chapter fifty-seven."+ ],+ [+ 3.138,+ "Square roots and cube roots undo squaring and cubing."+ ]+ ]+ },+ "square": {+ "dur": 24.744,+ "marks": {+ "side": 3.333,+ "fill": 5.039,+ "rev": 9.258,+ "sign": 16.849,+ "ans": 20.911+ },+ "cues": [+ [+ 0.104,+ "Squaring a number gives the area of a square."+ ],+ [+ 3.333,+ "A square with side seven holds seven times seven, forty-nine unit squares."+ ],+ [+ 9.258,+ "Taking a square root goes backward: start from the area, forty-nine, and ask how long the side is."+ ],+ [+ 16.849,+ "We write it with a radical sign: the square root of forty-nine is seven, because seven squared is forty-nine."+ ]+ ]+ },+ "pm": {+ "dur": 24.624,+ "marks": {+ "both": 1.51,+ "two": 10.013,+ "prin": 14.401,+ "ans": 20.013+ },+ "cues": [+ [+ 0.13,+ "Here's a subtlety."+ ],+ [+ 1.51,+ "Four squared is sixteen, and negative four squared is also sixteen, since a negative times a negative is positive."+ ],+ [+ 10.013,+ "So sixteen has two square roots: four and negative four."+ ],+ [+ 14.401,+ "The radical sign means only the nonnegative one, called the principal square root."+ ],+ [+ 20.013,+ "The square root of sixteen is four, not plus or minus four."+ ]+ ]+ },+ "neg": {+ "dur": 14.088,+ "marks": {+ "sq": 3.125,+ "none": 7.227,+ "nr": 10.495+ },+ "cues": [+ [+ 0.104,+ "What about the square root of negative nine?"+ ],+ [+ 3.125,+ "Any real number times itself is positive, or zero."+ ],+ [+ 7.227,+ "So no real number squared gives negative nine."+ ],+ [+ 10.495,+ "The square root of a negative number is not a real number."+ ]+ ]+ },+ "q1": {+ "dur": 2.328,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.159,+ "Square roots."+ ]+ ]+ },+ "perfect": {+ "dur": 42.984,+ "marks": {+ "list": 4.258,+ "frac": 8.984,+ "fans": 15.833,+ "rat": 18.685,+ "not": 22.591,+ "between": 24.701,+ "approx": 32.292,+ "irr": 34.115+ },+ "cues": [+ [+ 0.091,+ "A perfect square is the square of a rational number."+ ],+ [+ 4.258,+ "One, four, nine, sixteen, twenty-five, and so on."+ ],+ [+ 8.984,+ "Fractions can be perfect squares too: forty-nine thirty-sixths is seven sixths, squared, so its square root is seven sixths."+ ],+ [+ 18.685,+ "The square root of a perfect square is rational."+ ],+ [+ 22.591,+ "Twenty isn't a perfect square."+ ],+ [+ 24.701,+ "Its square root lies between four and five, because sixteen is less than twenty, which is less than twenty-five."+ ],+ [+ 32.292,+ "It's about four point four seven, but no decimal stops or repeats: the square root of twenty is irrational."+ ],+ [+ 40.26,+ "The decimal is only an approximation."+ ]+ ]+ },+ "q2": {+ "dur": 3.12,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.133,+ "Rational or irrational?"+ ]+ ]+ },+ "cube": {+ "dur": 18.456,+ "marks": {+ "build": 1.771,+ "fill": 3.047,+ "rev": 8.047,+ "sign": 12.383,+ "ans": 15.169+ },+ "cues": [+ [+ 0.104,+ "Cubing works with volume."+ ],+ [+ 1.771,+ "A cube with edge five holds five times five times five, one hundred twenty-five unit cubes."+ ],+ [+ 8.047,+ "The cube root goes backward, from the volume to the edge."+ ],+ [+ 12.383,+ "We write a small three on the radical sign."+ ],+ [+ 15.169,+ "The cube root of one hundred twenty-five is five."+ ]+ ]+ },+ "cubeneg": {+ "dur": 28.752,+ "marks": {+ "ex": 3.841,+ "three": 8.073,+ "ans": 12.695,+ "one": 17.279,+ "frac": 23.568+ },+ "cues": [+ [+ 0.104,+ "Unlike square roots, cube roots work for negative numbers."+ ],+ [+ 3.841,+ "Negative five times negative five is twenty-five, and twenty-five times negative five is negative one hundred twenty-five."+ ],+ [+ 12.695,+ "So the cube root of negative one hundred twenty-five is negative five."+ ],+ [+ 17.279,+ "Every real number has exactly one real cube root, with the same sign as the number."+ ],+ [+ 23.568,+ "Fractions too: the cube root of one twenty-seventh is one third."+ ]+ ]+ },+ "q3": {+ "dur": 2.208,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.133,+ "Who is correct?"+ ]+ ]+ },+ "wrap": {+ "dur": 20.64,+ "marks": {+ "w1": 0.977,+ "w2": 5.443,+ "w3": 8.659,+ "w4": 14.128,+ "end": 18.385+ },+ "cues": [+ [+ 0.104,+ "To sum up."+ ],+ [+ 0.977,+ "The square root of a number is the nonnegative number that squares to it."+ ],+ [+ 5.443,+ "Negative numbers have no real square root."+ ],+ [+ 8.659,+ "The square root of a perfect square is rational; otherwise it's irrational."+ ],+ [+ 14.128,+ "The cube root undoes cubing and works for negative numbers too."+ ],+ [+ 18.385,+ "Now try the chapter practice."+ ]+ ]+ },+ "final1": {+ "dur": 3.432,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Chapter practice."+ ],+ [+ 1.536,+ "Simplify each root."+ ]+ ]+ },+ "final2": {+ "dur": 2.832,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Next, what kind of number is each root?"+ ]+ ]+ },+ "final3": {+ "dur": 2.76,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Last one."+ ],+ [+ 1.12,+ "Square or cube?"+ ]+ ]+ },+ "finish": {+ "dur": 5.904,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Well done."+ ],+ [+ 1.094,+ "That's the end of chapter fifty-seven, square roots and cube roots."+ ]+ ]+ }+};diff --git a/site/ch57/audio/en/wrap.mp3 b/site/ch57/audio/en/wrap.mp3new file mode 100644index 0000000..013ade0Binary files /dev/null and b/site/ch57/audio/en/wrap.mp3 differdiff --git a/site/ch57/index.html b/site/ch57/index.htmlnew file mode 100644index 0000000..b49ade3--- /dev/null+++ b/site/ch57/index.html@@ -0,0 +1,215 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Square Roots and Cube Roots</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: 57, title: 'Square Roots and Cube Roots', minutes: 9, next: '../ch58/' };+const SQ = COL.whole, CU = COL.irr, NEGC = 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; };+// n × n unit squares from (x, y), popping in row by row; returns the side length in pixels.+function tileSquare(p, n, x, y, u, color, t0, dur = 2) {+ for (let r = 0; r < n; r++) for (let c = 0; c < n; c++) {+ const t = put(mk('rect', { x: -u / 2 + 2, y: -u / 2 + 2, width: u - 4, height: u - 4, rx: 4, fill: mix(COL.board, color, .55) }, p), { x: x + (c + .5) * u, y: y + (r + .5) * u, s: 0, o: 0 });+ pop(t, t0 + (r * n + c) / (n * n) * dur);+ }+ return n * u;+}+// Isometric cube of edge n (units of u) centred near (cx, cy); its height grows from 0 to n between t0 and t0 + dur.+function isoCube(p, n, cx, cy, u, color, t0, dur) {+ const c30 = Math.cos(Math.PI / 6), s30 = .5;+ const P = (i, j, k) => [cx + (i - j) * u * c30, cy + (i + j - n) * u * s30 - (k - n / 2) * u];+ const poly = pts => 'M' + pts.map(q => q.map(v => v.toFixed(1)).join(' ')).join('L') + 'Z';+ const g = G(p, { o: 0 });+ const left = path(g, '', { fill: mix(COL.board, color, .35), stroke: color, 'stroke-width': 2.5 });+ const right = path(g, '', { fill: mix(COL.board, color, .5), stroke: color, 'stroke-width': 2.5 });+ const top = path(g, '', { fill: mix(COL.board, color, .7), stroke: color, 'stroke-width': 2.5 });+ const grid = path(g, '', { stroke: COL.board, 'stroke-width': 1.5, 'stroke-opacity': .7 });+ const set = h => {+ left.setAttribute('d', poly([P(0, n, 0), P(n, n, 0), P(n, n, h), P(0, n, h)]));+ right.setAttribute('d', poly([P(n, 0, 0), P(n, n, 0), P(n, n, h), P(n, 0, h)]));+ top.setAttribute('d', poly([P(0, 0, h), P(n, 0, h), P(n, n, h), P(0, n, h)]));+ let d = '';+ for (let a = 1; a < n; a++) {+ d += `M${P(a, 0, h)}L${P(a, n, h)}M${P(0, a, h)}L${P(n, a, h)}`;+ d += `M${P(a, n, 0)}L${P(a, n, h)}M${P(n, a, 0)}L${P(n, a, h)}`;+ }+ for (let k = 1; k < h; k++) d += `M${P(0, n, k)}L${P(n, n, k)}L${P(n, 0, k)}`;+ grid.setAttribute('d', d.replaceAll(',', ' '));+ };+ set(0);+ show(g, t0, .3);+ prog(q => set(Math.round(q * n * 4) / 4), t0, dur, lin);+ return { g, P };+}++/* ---------- beats ---------- */+const BEATS = [+ ['intro', 'Roots', (m, D) => {+ const g = G(scene, { o: 0, y: 24 });+ T(g, 'Unit 11, Chapter 57', { x: 800, y: 300, size: 28, fill: COL.dim, anchor: 'middle' });+ T(g, 'Square Roots and', { x: 800, y: 400, size: 80, weight: 600, anchor: 'middle' });+ T(g, 'Cube Roots', { x: 800, y: 490, size: 80, weight: 600, anchor: 'middle' });+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);+ const r = mline(scene, [R(49), ' = 7, ', R(125, 3), ' = 5'], 800, 640, m('sub'), COL.dim, 54);+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);+ }],+ ['square', 'Square roots', (m) => {+ const p = panel(0), u = 62, X = 220, Y = 180, s = 7 * u;+ draw(path(p, `M${X} ${Y - 30}H${X + s}`, { stroke: SQ, 'stroke-width': 4 }, { d: 0 }), m('side'), .5);+ mline(p, '7', X + s / 2, Y - 46, m('side', .3), SQ, 44);+ draw(path(p, `M${X - 30} ${Y}V${Y + s}`, { stroke: SQ, 'stroke-width': 4 }, { d: 0 }), m('side', .3), .5);+ mline(p, '7', X - 46, Y + s / 2 + 14, m('side', .6), SQ, 44, 'end');+ tileSquare(p, 7, X, Y, u, SQ, m('fill'), 2.6);+ mline(p, ['7', E(2), ' = 49'], 1120, 300, m('fill', 2.2), COL.chalk, 60);+ const ar = path(p, 'M1120 340V420', { stroke: COL.task, 'stroke-width': 4 }, { d: 0 });+ draw(ar, m('rev'), .4);+ text(p, 'area 49: how long is the side?', 1120, 470, m('rev', .5), { size: 28, fill: COL.task, anchor: 'middle', weight: 600 });+ mline(p, [R(49)], 1120, 590, m('sign'), COL.chalk, 70);+ mline(p, [R(49), ' = 7'], 1120, 720, m('ans'), HIT, 70);+ }],+ ['pm', 'The principal root', (m) => {+ const p = panel(0);+ AXIS.o = 800; AXIS.u = 70;+ S.line = G(p);+ numberLine(.2, -6, 6);+ mline(p, ['4', E(2), ' = 16'], 1150, 180, m('both'), SQ, 52);+ mline(p, ['(−4)', E(2), ' = 16'], 450, 180, m('both', 2.5), NEGC, 52);+ landDot(p, 4, m('both', .5), SQ); landDot(p, -4, m('both', 3), NEGC);+ text(p, 'two square roots of 16', 800, 300, m('two'), { size: 30, fill: COL.dim, anchor: 'middle' });+ const r = put(mk('rect', { x: X(4) - 50, y: Y0 - 50, width: 100, height: 140, rx: 18, fill: 'none', stroke: HIT, 'stroke-width': 4 }, p), { o: 0 });+ show(r, m('prin'));+ mline(p, [R(16), ' = 4'], 800, 420, m('ans'), HIT, 64);+ text(p, 'the radical sign means the nonnegative root', 800, 790, m('prin', 1), { size: 28, fill: HIT, anchor: 'middle', weight: 600 });+ }],+ ['neg', 'Negative under a square root', (m) => {+ const p = panel(0);+ mline(p, [R('−9'), ' = ?'], 800, 200, .2, COL.chalk, 70);+ mline(p, ['(+) × (+) = +'], 560, 360, m('sq'), SQ, 50);+ mline(p, ['(−) × (−) = +'], 1040, 360, m('sq', .8), NEGC, 50);+ mline(p, ['0 × 0 = 0'], 800, 450, m('sq', 1.6), COL.dim, 44);+ text(p, 'no real number squared is negative', 800, 580, m('none'), { size: 32, fill: COL.bad, anchor: 'middle', weight: 600 });+ mline(p, [R('−9')], 640, 700, m('nr'), COL.bad, 56);+ text(p, 'is not a real number', 700, 696, m('nr'), { size: 40, fill: COL.bad, weight: 600 });+ }],+ ['q1', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 260, y: 260, w: 1080, cls: 'side' }, [{+ id: 'c-sq', prompt: ['Simplify.'],+ build: blanks([+ { parts: [R(64), ' = ', { box: '8' }], why: '8² = 64.', hint: 'What times itself is 64?' },+ { parts: [R(169), ' = ', { box: '13' }], why: '13² = 169.', hint: 'Try numbers between 10 and 15.' },+ { parts: [R(0), ' = ', { box: '0' }], why: '0² = 0.', hint: 'What times itself is 0?' },+ ]),+ }], done) }],+ ['perfect', 'Perfect squares', (m) => {+ const p = panel(0);+ mline(p, '1, 4, 9, 16, 25, 36, 49, …', 800, 130, m('list'), SQ, 50);+ mline(p, [F(49, 36), ' = (', F(7, 6), ')', E(2)], 470, 270, m('frac'), COL.chalk, 52);+ mline(p, [R(F(49, 36)), ' = ', F(7, 6)], 470, 400, m('fans'), HIT, 56);+ text(p, 'rational', 470, 470, m('rat'), { size: 28, fill: HIT, anchor: 'middle', weight: 600 });+ AXIS.o = 300 - 4 * 260; AXIS.u = 260; // 4 at x = 300, 5 at x = 560+ const L = G(p, { o: 0 }), y = 640;+ path(L, `M${X(3.7)} ${y}H${X(5.3)}`, { stroke: COL.chalk, 'stroke-width': 3 });+ [4, 5].forEach(v => { path(L, `M${X(v)} ${y - 10}V${y + 10}`, { stroke: COL.dim, 'stroke-width': 2.5 }); T(L, String(v), { x: X(v), y: y + 44, size: 30, font: MATH, fill: COL.dim, anchor: 'middle' }); });+ for (let k = 1; k < 10; k++) path(L, `M${X(4 + k / 10)} ${y - 5}V${y + 5}`, { stroke: COL.faint, 'stroke-width': 2 });+ show(L, m('between'));+ mline(p, [R(16), ' < ', R(20), ' < ', R(25)], 1120, 270, m('between', .5), COL.chalk, 50);+ mline(p, ['4 < ', R(20), ' < 5'], 1120, 370, m('between', 3), COL.chalk, 50);+ const d = G(p, { x: X(4), y, s: 0, o: 0 });+ mk('circle', { r: 11, fill: COL.irr }, d);+ pop(d, m('approx', -.5)); tw(d, { x: X(Math.sqrt(20)) }, m('approx', -.3), 1.2);+ mline(p, [R(20)], X(Math.sqrt(20)), y - 30, m('approx'), COL.irr, 36);+ mline(p, [R(20), ' ≈ 4.47…'], 1120, 520, m('approx'), COL.irr, 50);+ text(p, 'irrational: the decimal never ends or repeats', 1120, 590, m('irr'), { size: 26, fill: COL.irr, anchor: 'middle', weight: 600 });+ }],+ ['q2', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 260, y: 240, w: 1080, cls: 'side' }, [{+ id: 'c-rat', prompt: ['Rational or irrational?'],+ build: grid([+ { parts: [R(144)], ans: ['r'], why: '144 = 12².' },+ { parts: [R(F(121, 9))], ans: ['r'], why: '11/3.' },+ { parts: [R(50)], ans: ['i'], why: '50 is not a perfect square: 7² = 49 < 50 < 64 = 8².' },+ ], [['r', 'Rational', HIT, 'R'], ['i', 'Irrational', COL.irr, 'I']], { multi: false }),+ }], done) }],+ ['cube', 'Cube roots', (m) => {+ const p = panel(0);+ isoCube(p, 5, 470, 470, 64, CU, m('build'), 3);+ mline(p, ['5', E(3), ' = 125'], 1150, 260, m('fill', 1.5), COL.chalk, 60);+ draw(path(p, 'M1150 300V380', { stroke: COL.task, 'stroke-width': 4 }, { d: 0 }), m('rev'), .4);+ text(p, 'volume 125: how long is the edge?', 1150, 430, m('rev', .5), { size: 28, fill: COL.task, anchor: 'middle', weight: 600 });+ mline(p, [R(125, 3)], 1150, 560, m('sign'), COL.chalk, 70);+ mline(p, [R(125, 3), ' = 5'], 1150, 700, m('ans'), HIT, 70);+ text(p, 'edge 5', 470, 830, m('ans'), { size: 30, fill: CU, anchor: 'middle', weight: 600 });+ }],+ ['cubeneg', 'Negative cube roots', (m) => {+ const p = panel(0);+ mline(p, '(−5) × (−5) = 25', 800, 180, m('ex'), COL.chalk, 52);+ mline(p, '25 × (−5) = −125', 800, 280, m('three'), COL.chalk, 52);+ mline(p, [R('−125', 3), ' = −5'], 800, 420, m('ans'), HIT, 68);+ text(p, 'one real cube root, same sign as the number', 800, 530, m('one'), { size: 30, fill: CU, anchor: 'middle', weight: 600 });+ mline(p, [R(F(1, 27), 3), ' = ', F(1, 3)], 800, 680, m('frac'), COL.chalk, 60);+ }],+ ['q3', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 220, y: 200, w: 1160, cls: 'side' }, [{+ id: 'c-who', prompt: ['Five students simplified ', $m(R('−64', 3)), '. Who is correct?'],+ build: choice([['Adam: 8'], ['Brianna: not a real number'], ['Carlos: 4'], ['Damon: not a real number'], ['Eddie: −4']], 4, '(−4)³ = −64, so the cube root is −4.',+ ['8 is the square root of 64; this is a cube root of −64.', 'Cube roots of negative numbers are real.', '4³ = 64, not −64.', '(−4)³ = −64, so −64 is a perfect cube.', null]),+ }], done) }],+ ['wrap', 'Summary', (m) => {+ const p = panel(0);+ [['√ means the nonnegative number that squares to it.', 'w1', SQ], ['A negative number has no real square root.', 'w2', COL.bad],+ ['√ of a perfect square is rational; otherwise irrational.', 'w3', HIT], ['∛ undoes cubing, and works for negatives.', 'w4', CU]].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-simp', prompt: ['Simplify.'], build: blanks([+ { parts: [R(1), ' = ', { box: '1' }], why: '1² = 1.' },+ { parts: [R(81), ' = ', { box: '9' }], why: '9² = 81.' },+ { parts: [R('−216', 3), ' = ', { box: '-6' }], why: '(−6)³ = −216.', hint: 'The answer is negative.' },+ { parts: [R(F(121, 9)), ' = ', { box: '11/3' }], why: '(11/3)² = 121/9.', hint: 'Take the root of the top and the bottom.' },+ { parts: [R(F('−1000', 27), 3), ' = ', { box: '-10/3' }], why: '(−10/3)³ = −1000/27.', hint: '∛1000 = 10 and ∛27 = 3.' },+ ]),+ }], done, 'Chapter practice 1 of 3') }],+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{+ id: 'p-kind', prompt: ['What kind of number is it?'],+ build: grid(KINDQ, [['r', 'Rational', HIT, 'R'], ['i', 'Irrational', COL.irr, 'I'], ['n', 'Not real', COL.bad, 'N']], { multi: false }),+ }], 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 KINDQ = [+ { parts: [R('−25')], ans: ['n'], why: 'No real number squared is −25.' },+ { parts: [R(25, 3)], ans: ['i'], why: '25 is not a perfect cube: 2³ = 8 < 25 < 27 = 3³.' },+ { parts: [R(169)], ans: ['r'], why: '13.' },+ { parts: [R('−216', 3)], ans: ['r'], why: '−6.' },+ { parts: [R(20)], ans: ['i'], why: '20 is not a perfect square.' },+ { parts: [R('−8', 3)], ans: ['r'], why: '(−2)³ = −8.' },+];+const TFQ = [+ { parts: [$m(R(16), ' = ±4')], ans: ['f'], why: 'The radical sign means the principal root: 4.' },+ { parts: ['16 has two square roots: 4 and −4.'], ans: ['t'], why: 'Both square to 16.' },+ { parts: [$m(R(20), ' = 4.47')], ans: ['f'], why: '4.47 is only an approximation; √20 is irrational.' },+ { parts: [$m(R('−27', 3), ' = −3')], ans: ['t'], why: '(−3)³ = −27.' },+ { parts: [$m(R(9), ' + ', R(16), ' = ', R(25))], ans: ['f'], why: '3 + 4 = 7, but √25 = 5.' },+];+boot();+</script>+</body>+</html>diff --git a/site/ch58/audio/en/cube.mp3 b/site/ch58/audio/en/cube.mp3new file mode 100644index 0000000..3e9a9aaBinary files /dev/null and b/site/ch58/audio/en/cube.mp3 differdiff --git a/site/ch58/audio/en/eighteen.mp3 b/site/ch58/audio/en/eighteen.mp3new file mode 100644index 0000000..8102245Binary files /dev/null and b/site/ch58/audio/en/eighteen.mp3 differdiff --git a/site/ch58/audio/en/final1.mp3 b/site/ch58/audio/en/final1.mp3new file mode 100644index 0000000..75a51f7Binary files /dev/null and b/site/ch58/audio/en/final1.mp3 differdiff --git a/site/ch58/audio/en/final2.mp3 b/site/ch58/audio/en/final2.mp3new file mode 100644index 0000000..4242bb4Binary files /dev/null and b/site/ch58/audio/en/final2.mp3 differdiff --git a/site/ch58/audio/en/final3.mp3 b/site/ch58/audio/en/final3.mp3new file mode 100644index 0000000..01940b2Binary files /dev/null and b/site/ch58/audio/en/final3.mp3 differdiff --git a/site/ch58/audio/en/finish.mp3 b/site/ch58/audio/en/finish.mp3new file mode 100644index 0000000..888c50eBinary files /dev/null and b/site/ch58/audio/en/finish.mp3 differdiff --git a/site/ch58/audio/en/great.mp3 b/site/ch58/audio/en/great.mp3new file mode 100644index 0000000..7727864Binary files /dev/null and b/site/ch58/audio/en/great.mp3 differdiff --git a/site/ch58/audio/en/intro.mp3 b/site/ch58/audio/en/intro.mp3new file mode 100644index 0000000..1902998Binary files /dev/null and b/site/ch58/audio/en/intro.mp3 differdiff --git a/site/ch58/audio/en/pairs.mp3 b/site/ch58/audio/en/pairs.mp3new file mode 100644index 0000000..2f5133aBinary files /dev/null and b/site/ch58/audio/en/pairs.mp3 differdiff --git a/site/ch58/audio/en/q1.mp3 b/site/ch58/audio/en/q1.mp3new file mode 100644index 0000000..c95b7dbBinary files /dev/null and b/site/ch58/audio/en/q1.mp3 differdiff --git a/site/ch58/audio/en/q2.mp3 b/site/ch58/audio/en/q2.mp3new file mode 100644index 0000000..a9aa31fBinary files /dev/null and b/site/ch58/audio/en/q2.mp3 differdiff --git a/site/ch58/audio/en/q3.mp3 b/site/ch58/audio/en/q3.mp3new file mode 100644index 0000000..dde2d7dBinary files /dev/null and b/site/ch58/audio/en/q3.mp3 differdiff --git a/site/ch58/audio/en/rule.mp3 b/site/ch58/audio/en/rule.mp3new file mode 100644index 0000000..c165d36Binary files /dev/null and b/site/ch58/audio/en/rule.mp3 differdiff --git a/site/ch58/audio/en/timings.js b/site/ch58/audio/en/timings.jsnew file mode 100644index 0000000..c658022--- /dev/null+++ b/site/ch58/audio/en/timings.js@@ -0,0 +1,334 @@+window.TIMINGS = {+ "intro": {+ "dur": 7.656,+ "marks": {+ "sub": 1.693+ },+ "cues": [+ [+ 0.104,+ "Chapter fifty-eight."+ ],+ [+ 1.693,+ "Even when a number isn't a perfect square, part of its square root can often come out of the radical."+ ]+ ]+ },+ "rule": {+ "dur": 24.792,+ "marks": {+ "ex": 5.534,+ "left": 8.737,+ "right": 12.721,+ "use": 19.154+ },+ "cues": [+ [+ 0.117,+ "The key fact: the square root of a product is the product of the square roots."+ ],+ [+ 5.534,+ "For example, the square root of nine times four is the square root of thirty-six, which is six."+ ],+ [+ 12.721,+ "And the square root of nine times the square root of four is three times two, also six."+ ],+ [+ 19.154,+ "So we can split a radical into factors, and simplify the ones that are perfect squares."+ ]+ ]+ },+ "eighteen": {+ "dur": 29.688,+ "marks": {+ "ask": 3.346,+ "split": 8.919,+ "out": 11.576,+ "ans": 16.484,+ "read": 19.792,+ "chk": 25.13+ },+ "cues": [+ [+ 0.091,+ "Simplify the square root of eighteen."+ ],+ [+ 3.346,+ "Ask: what's the greatest perfect square that divides eighteen?"+ ],+ [+ 8.138,+ "Nine."+ ],+ [+ 8.919,+ "Write eighteen as nine times two."+ ],+ [+ 11.576,+ "The square root of nine is three, so three comes out in front."+ ],+ [+ 16.484,+ "The square root of eighteen is three root two."+ ],+ [+ 19.792,+ "Read it as three root two: it means three times the square root of two."+ ],+ [+ 25.13,+ "Check: three root two, squared, is nine times two, eighteen."+ ]+ ]+ },+ "pairs": {+ "dur": 32.808,+ "marks": {+ "q": 4.154,+ "tree": 6.81,+ "pair": 12.266,+ "out": 17.409,+ "left": 23.971,+ "ans": 26.667+ },+ "cues": [+ [+ 0.104,+ "When the perfect square isn't obvious, use prime factors."+ ],+ [+ 4.154,+ "Take the square root of seventy-two."+ ],+ [+ 6.81,+ "Break seventy-two into primes: two, two, two, three, three."+ ],+ [+ 12.266,+ "Under a square root, every pair of equal factors is a perfect square."+ ],+ [+ 17.409,+ "Each pair leaves the radical as a single factor: one two comes out, and one three comes out."+ ],+ [+ 23.971,+ "The unpaired two stays inside."+ ],+ [+ 26.667,+ "So the square root of seventy-two is two times three, six, root two."+ ]+ ]+ },+ "q1": {+ "dur": 2.832,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.133,+ "Simplify the radical."+ ]+ ]+ },+ "great": {+ "dur": 22.92,+ "marks": {+ "q": 4.297,+ "four": 8.411,+ "more": 10.417,+ "sixteen": 15.807,+ "same": 20.378+ },+ "cues": [+ [+ 0.078,+ "Use the greatest perfect square factor, or you'll have to keep going."+ ],+ [+ 4.297,+ "For the square root of forty-eight, four is a perfect square factor: that gives two root twelve."+ ],+ [+ 10.417,+ "But twelve still has a perfect square factor, four, so this isn't simplified yet."+ ],+ [+ 15.807,+ "Using sixteen from the start gives four root three in one step."+ ],+ [+ 20.378,+ "Both paths end at four root three."+ ]+ ]+ },+ "q2": {+ "dur": 2.856,+ "marks": {},+ "cues": [+ [+ 0.091,+ "Quick check."+ ],+ [+ 1.094,+ "Is it fully simplified?"+ ]+ ]+ },+ "cube": {+ "dur": 30.792,+ "marks": {+ "q": 4.675,+ "tree": 7.279,+ "trip": 11.302,+ "out": 15.508,+ "ans": 18.203,+ "neg": 22.682+ },+ "cues": [+ [+ 0.104,+ "Cube roots work the same way, with triples instead of pairs."+ ],+ [+ 4.675,+ "Simplify the cube root of forty."+ ],+ [+ 7.279,+ "Forty is two times two times two times five."+ ],+ [+ 11.302,+ "Under a cube root, three equal factors make a perfect cube."+ ],+ [+ 15.508,+ "The triple of twos comes out as one two."+ ],+ [+ 18.203,+ "So the cube root of forty is two times the cube root of five."+ ],+ [+ 22.682,+ "Negatives are fine with cube roots: the cube root of negative one hundred twenty-eight is negative four times the cube root of two."+ ]+ ]+ },+ "q3": {+ "dur": 2.976,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.081,+ "Simplify the cube root."+ ]+ ]+ },+ "wrap": {+ "dur": 21.816,+ "marks": {+ "w1": 0.977,+ "w2": 5.417,+ "w3": 11.432,+ "w4": 15.755,+ "end": 19.648+ },+ "cues": [+ [+ 0.104,+ "To sum up."+ ],+ [+ 0.977,+ "The square root of a product is the product of the square roots."+ ],+ [+ 5.417,+ "Pull out the greatest perfect square factor, or pull out one factor for every pair of primes."+ ],+ [+ 11.432,+ "For cube roots, pull out one factor for every triple."+ ],+ [+ 15.755,+ "A radical is simplified when nothing more can come out."+ ],+ [+ 19.648,+ "Now try the chapter practice."+ ]+ ]+ },+ "final1": {+ "dur": 3.624,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Chapter practice."+ ],+ [+ 1.523,+ "Simplify the square roots."+ ]+ ]+ },+ "final2": {+ "dur": 2.736,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Next, simplify the cube roots."+ ]+ ]+ },+ "final3": {+ "dur": 2.616,+ "marks": {},+ "cues": [+ [+ 0.104,+ "Last one."+ ],+ [+ 1.133,+ "Can it be simplified?"+ ]+ ]+ },+ "finish": {+ "dur": 5.28,+ "marks": {},+ "cues": [+ [+ 0.091,+ "Nice work."+ ],+ [+ 1.198,+ "That's the end of chapter fifty-eight, simplifying radicals."+ ]+ ]+ }+};diff --git a/site/ch58/audio/en/wrap.mp3 b/site/ch58/audio/en/wrap.mp3new file mode 100644index 0000000..a4936e5Binary files /dev/null and b/site/ch58/audio/en/wrap.mp3 differdiff --git a/site/ch58/index.html b/site/ch58/index.htmlnew file mode 100644index 0000000..27659f1--- /dev/null+++ b/site/ch58/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>Simplifying Radicals</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: 58, title: 'Simplifying Radicals', minutes: 9 };+const PSQ = COL.whole, REST = 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; };+// A big radical sign (index optional) spanning x1..x2 at baseline y; returns the group.+function bigRoot(p, x1, x2, y, t0, { index, h = 110, color = COL.chalk } = {}) {+ const g = G(p, { o: 0 });+ path(g, `M${x1 - 70} ${y - h * .3}L${x1 - 58} ${y - h * .36}L${x1 - 38} ${y + h * .12}L${x1 - 14} ${y - h}H${x2}`, { stroke: color, 'stroke-width': 5, 'stroke-linejoin': 'round' });+ if (index) T(g, index, { x: x1 - 70, y: y - h * .45, size: 40, font: MATH, fill: color, anchor: 'middle' });+ show(g, t0);+ return g;+}+// Prime chips in a row under a radical; colors mark groups. Returns the chips (with .cx).+function primes(p, list, x0, y, t0, gap = 96) {+ return list.map((v, i) => { const c = chip(p, [String(v)], COL.chalk, { x: x0 + i * gap, y: y - 30, size: 44, s: 0, o: 0 }); c.cx = x0 + i * gap; pop(c, t0 + i * .15); return c; });+}+const ring = (c, color, t0) => { put(c._rect, { c_stroke: COL.chalk }); tw(c._rect, { c_stroke: color, 'a_stroke-width': 5 }, t0, .3); };+// A group of equal chips merges into one that jumps out to (x, y) in front of the radical.+function escape(p, group, x, y, t0, color) {+ group.forEach(c => ring(c, color, t0));+ const cx = group.reduce((a, c) => a + c.cx, 0) / group.length;+ group.forEach(c => tw(c, { x: cx }, t0 + .5, .5));+ group.forEach((c, i) => { if (i) hide(c, t0 + 1, .1); });+ const lead = group[0], { y: y0 } = st(lead);+ prog(q => put(lead, { x: cx + (x - cx) * q, y: y0 + (y - y0) * q - Math.sin(Math.PI * q) * 150 }), t0 + 1, 1);+}+// Practice row: radical = [a] √[b] (the boxes take the number outside and the number inside).+const srow = (n, a, b, i, why) => ({ parts: [R(n, i), ' = ', { box: String(a) }, i ? ' ∛' : ' √', { box: String(b) }], why, hint: i ? 'Find the greatest perfect cube that divides it.' : 'Find the greatest perfect square that divides it.' });++/* ---------- beats ---------- */+const BEATS = [+ ['intro', 'Simplifying radicals', (m, D) => {+ const g = G(scene, { o: 0, y: 24 });+ T(g, 'Unit 11, Chapter 58', { x: 800, y: 330, size: 28, fill: COL.dim, anchor: 'middle' });+ T(g, 'Simplifying Radicals', { x: 800, y: 430, size: 88, weight: 600, anchor: 'middle' });+ tw(g, { o: 1, y: 0 }, .2, 1.1, out);+ const r = mline(scene, [R(72), ' = 6', R(2)], 800, 600, m('sub'), COL.dim, 56);+ tw(g, { o: 0, y: -24 }, D - .9, .8); hide(r, D - .9, .8);+ }],+ ['rule', 'Roots of products', (m) => {+ const p = panel(0);+ const g = G(p, { o: 0 });+ mk('rect', { x: 330, y: 120, width: 940, height: 110, rx: 20, fill: 'none', stroke: COL.task, 'stroke-width': 3 }, g);+ M(g, [R('ab'), ' = ', R('a'), ' · ', R('b')], { x: 800, y: 195, size: 60, fill: COL.task });+ show(g, .3);+ mline(p, [R('9 · 4'), ' = ', R(36), ' = 6'], 800, 380, m('left'), COL.chalk, 60);+ mline(p, [R(9), ' · ', R(4), ' = 3 · 2 = 6'], 800, 520, m('right'), COL.chalk, 60);+ text(p, 'split into factors; take the root of the perfect squares', 800, 680, m('use'), { size: 30, fill: COL.dim, anchor: 'middle' });+ text(p, 'a, b ≥ 0', 1290, 182, .5, { size: 24, fill: COL.dim });+ }],+ ['eighteen', 'Pull out a perfect square', (m) => {+ const p = panel(0), X = 360;+ mline(p, [R(18)], X, 200, .2, COL.chalk, 64, 'start');+ text(p, 'greatest perfect square factor of 18: 9', 800, 186, m('ask'), { size: 30, fill: PSQ, weight: 600 });+ mline(p, ['= ', R('9 · 2')], X, 330, m('split'), COL.chalk, 64, 'start');+ mline(p, ['= ', R(9), ' · ', R(2)], X, 460, m('out', -1), COL.chalk, 64, 'start');+ mline(p, ['= 3', R(2)], X, 590, m('ans'), HIT, 70, 'start');+ text(p, '“three root two” = 3 × √2', 800, 580, m('read'), { size: 30, fill: COL.dim });+ mline(p, ['(3', R(2), ')', E(2), ' = 9 · 2 = 18 ✓'], 800, 720, m('chk'), COL.dim, 44, 'start');+ }],+ ['pairs', 'Pairs come out', (m) => {+ const p = panel(0), y = 520, x0 = 640;+ mline(p, [R(72)], 800, 130, m('q'), COL.chalk, 64);+ const big = bigRoot(p, x0 - 50, x0 + 4 * 110 + 60, y, m('tree'));+ const cs = primes(p, [2, 2, 2, 3, 3], x0, y, m('tree', .3), 110);+ mline(p, '72 = 2 · 2 · 2 · 3 · 3', 800, 290, m('tree', .3), COL.dim, 44);+ text(p, 'a pair under √ is a perfect square', 800, 700, m('pair'), { size: 30, fill: PSQ, anchor: 'middle', weight: 600 });+ escape(p, [cs[0], cs[1]], 380, y - 30, m('out'), PSQ);+ escape(p, [cs[3], cs[4]], 470, y - 30, m('out', 2.5), COL.int);+ ring(cs[2], REST, m('left'));+ tw(cs[2], { x: x0 }, m('left', .4), .6);+ hide(big, m('left', .4), .4); bigRoot(p, x0 - 50, x0 + 60, y, m('left', .8));+ mline(p, '= 2 · 3', 425, y + 120, m('ans'), COL.dim, 40);+ mline(p, ['= 6', R(2)], 800, 800, m('ans', 1.5), HIT, 66);+ }],+ ['q1', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 260, y: 260, w: 1080, cls: 'side' }, [{+ id: 'c-sq', prompt: ['Simplify ', $m(R(75)), '.'],+ build: blanks([srow(75, 5, 3, 0, '75 = 25 · 3, and √25 = 5.')]),+ }], done) }],+ ['great', 'Use the greatest factor', (m) => {+ const p = panel(0), X = 300;+ mline(p, [R(48)], 800, 130, m('q'), COL.chalk, 64);+ mline(p, ['= ', R('4 · 12'), ' = 2', R(12)], X, 280, m('four'), COL.chalk, 56, 'start');+ text(p, '12 still has a perfect square factor', 1000, 270, m('more'), { size: 28, fill: COL.bad, weight: 600 });+ mline(p, ['= 2', R('4 · 3'), ' = 2 · 2', R(3), ' = 4', R(3)], X, 400, m('more', 2), COL.dim, 50, 'start');+ mline(p, ['= ', R('16 · 3'), ' = 4', R(3)], X, 560, m('sixteen'), HIT, 60, 'start');+ text(p, 'greatest factor: one step', 1000, 550, m('sixteen', .6), { size: 28, fill: HIT, weight: 600 });+ }],+ ['q2', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 260, y: 260, w: 1080, cls: 'side' }, [{+ id: 'c-full', prompt: ['Is ', $m('3', R(8)), ' fully simplified?'],+ build: choice([['Yes'], ['No: it equals ', $m('6', R(2))]], 1, '√8 = √4 · √2 = 2√2, so 3√8 = 6√2.', ['8 has the perfect square factor 4.', null]),+ }], done) }],+ ['cube', 'Cube roots: triples', (m) => {+ const p = panel(0), y = 470, x0 = 720;+ mline(p, [R(40, 3)], 800, 130, m('q'), COL.chalk, 64);+ const big = bigRoot(p, x0 - 50, x0 + 3 * 110 + 60, y, m('tree'), { index: '3' });+ const cs = primes(p, [2, 2, 2, 5], x0, y, m('tree', .3), 110);+ mline(p, '40 = 2 · 2 · 2 · 5', 800, 270, m('tree', .3), COL.dim, 44);+ text(p, 'a triple under ∛ is a perfect cube', 800, 640, m('trip'), { size: 30, fill: PSQ, anchor: 'middle', weight: 600 });+ escape(p, cs.slice(0, 3), 520, y - 30, m('out'), PSQ);+ ring(cs[3], REST, m('out', 2));+ tw(cs[3], { x: x0 }, m('out', 2.4), .6);+ hide(big, m('out', 2.4), .4); bigRoot(p, x0 - 50, x0 + 60, y, m('out', 2.8), { index: '3' });+ mline(p, ['= 2', R(5, 3)], 800, 740, m('ans'), HIT, 64);+ mline(p, [R('−128', 3), ' = ', R('−64 · 2', 3), ' = −4', R(2, 3)], 800, 840, m('neg'), COL.dim, 46);+ }],+ ['q3', 'Quick check', () => { panel(0); }, { ask: done => quiz({ x: 260, y: 260, w: 1080, cls: 'side' }, [{+ id: 'c-cube', prompt: ['Simplify ', $m(R(54, 3)), '.'],+ build: choice([[$m('3', R(2, 3))], [$m('2', R(3, 3))], [$m('3', R(6, 3))]], 0, '54 = 27 · 2, and ∛27 = 3.', [null, '∛27 = 3 comes out, not 2: 54 = 27 · 2.', '54 = 27 · 2, so 2 stays inside, not 6.']),+ }], done) }],+ ['wrap', 'Summary', (m) => {+ const p = panel(0);+ [['√(ab) = √a · √b', 'w1', COL.task], ['Pull out the greatest perfect square, or one factor per pair.', 'w2', PSQ],+ ['Cube roots: one factor out per triple.', 'w3', COL.irr], ['Simplified when nothing more can come out.', 'w4', HIT]].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-sq', prompt: ['Simplify: the number outside, then the number left inside.'], build: blanks(SQQ),+ }], done, 'Chapter practice 1 of 3') }],+ ['final2', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{+ id: 'p-cube', prompt: ['Simplify the cube roots.'], build: blanks(CUQ),+ }], done, 'Chapter practice 2 of 3') }],+ ['final3', 'Chapter practice', () => {}, { ask: done => quiz(SCREEN, [{+ id: 'p-can', prompt: ['Can it be simplified?'],+ build: grid(CANQ, [['y', 'Yes', HIT, 'Y'], ['n', 'Already simplified', null, 'N']], { multi: false }),+ }], 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 SQQ = [srow(45, 3, 5, 0, '45 = 9 · 5.'), srow(300, 10, 3, 0, '300 = 100 · 3.'), srow(72, 6, 2, 0, '72 = 36 · 2.'), srow(63, 3, 7, 0, '63 = 9 · 7.'), srow(32, 4, 2, 0, '32 = 16 · 2.')];+const CUQ = [srow(16, 2, 2, 3, '16 = 8 · 2.'), srow(81, 3, 3, 3, '81 = 27 · 3.'), srow(500, 5, 4, 3, '500 = 125 · 4.'), srow('−250', -5, 2, 3, '−250 = −125 · 2.')];+const CANQ = [+ { parts: [R(10)], ans: ['n'], why: '10 = 2 · 5: no perfect square factor.' },+ { parts: [R(45, 3)], ans: ['n'], why: '45 = 3 · 3 · 5: no triple.' },+ { parts: [R(50)], ans: ['y'], why: '5√2.' },+ { parts: [R(30)], ans: ['n'], why: '30 = 2 · 3 · 5.' },+ { parts: [R(24, 3)], ans: ['y'], why: '24 = 8 · 3: 2∛3.' },+ { parts: ['2', R(12)], ans: ['y'], why: '√12 = 2√3, so 2√12 = 4√3.' },+];+boot();+</script>+</body>+</html>diff --git a/site/index.html b/site/index.htmlindex 8137e58..1fd3f4f 100644--- a/site/index.html+++ b/site/index.html@@ -167,6 +167,7 @@ const UNITS = [['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]]],+ ['Radicals', [['Square roots and cube roots', 9], ['Simplifying radicals', 9]]],];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.jsindex a7ba88e..dd53c27 100644--- a/site/lib/engine.js+++ b/site/lib/engine.js@@ -133,7 +133,7 @@ const ctx2d = document.createElement('canvas').getContext('2d');function textW(str, size, italic = false) { ctx2d.font = `${italic ? 'italic ' : ''}${size}px ${MATH}`; return ctx2d.measureText(str).width; }const VAR = /(?<![A-Za-z°])(?:(?!(?:of|in|is|to|or|at|on|by|as|an|if|it|be|no|so|up|we|my)(?![A-Za-z]))[a-z]{1,2}|(?!(?:If|In|It|Is|On|At|No|So|Or|An|As|To|By|Up)(?![A-Za-z]))[a-z]?[A-Z]{1,3}[a-z]?)(?![A-Za-z])/g; // capitals: A, PV, nRT // short lowercase runs are variables (a, x, ab), except short English wordsconst F = (n, d) => ({ f: [String(n), String(d)] }); // fraction-const R = x => ({ r: String(x) }); // square root+const R = (x, i) => ({ r: x && x.f ? x : String(x), i: i && String(i) }); // root of a number or of F(n, d); i = index, e.g. 3 for a cube rootconst E = x => ({ sup: String(x) }); // exponent, raised after the part before it// Math expression from parts: 'text' | F(n,d) | R(x) | E(exp). Baseline at y; anchor start/middle/end.function M(parent, parts, { x = 0, y = 0, size = 36, fill = COL.chalk, anchor = 'middle', o = 1, s = 1 } = {}) {@@ -165,10 +165,19 @@ function M(parent, parts, { x = 0, y = 0, size = 36, fill = COL.chalk, anchor =rule(cx + size * .04, cx + w - size * .04, bar);cx += w + size * .04;} else if (p.r) {- const w = textW(p.r, size), x0 = cx + size * .04, top = -size * .82;- mk('path', { d: `M${x0} ${-size * .3}L${x0 + size * .1} ${-size * .36}L${x0 + size * .27} ${size * .06}L${x0 + size * .45} ${top}H${x0 + size * .56 + w + size * .06}`,+ const fr = typeof p.r === 'object', mid = fr ? -size * .12 : -size * .3, bot = fr ? size * .45 : size * .06, top = fr ? -size * 1.12 : -size * .82;+ let x0 = cx + size * .04;+ if (p.i) { const iw = textW(p.i, size * .42); text(p.i, x0, mid - size * .14, size * .42); x0 += Math.max(0, iw - size * .12); } // index in the radical's crook+ let w;+ if (fr) { // a fraction under the radical, laid out like F()+ const fs = size * .72, [n, d] = p.r.f, wn = textW(n, fs), wd = textW(d, fs), bx = x0 + size * .56, bar = -size * .3;+ w = Math.max(wn, wd) + size * .2;+ text(n, bx + (w - wn) / 2, bar - size * .12, fs);+ text(d, bx + (w - wd) / 2, bar + size * .62, fs);+ mk('path', { d: `M${bx + size * .04} ${bar}H${bx + w - size * .04}`, stroke: fill, 'stroke-width': lw, 'stroke-linecap': 'round' }, inner);+ } else { w = textW(p.r, size); text(p.r, x0 + size * .56, 0, size); }+ mk('path', { d: `M${x0} ${mid}L${x0 + size * .1} ${mid - size * .06}L${x0 + size * .27} ${bot}L${x0 + size * .45} ${top}H${x0 + size * .56 + w + size * .06}`,fill: 'none', stroke: fill, 'stroke-width': lw, 'stroke-linejoin': 'round', 'stroke-linecap': 'round' }, inner);- text(p.r, x0 + size * .56, 0, size);cx = x0 + size * .56 + w + size * .1;} else if (p.sup !== undefined) {cx += text(p.sup, cx + size * .03, -size * .45, size * .62) + size * .06;@@ -1279,7 +1288,7 @@ const slot = (k, n) => {const r = RINGS[k];return [r.lx + [-72, 72, 0][n % 3], r.ly + 50 + 56 * Math.floor(n / 2)];};-const plain = parts => parts.map(p => typeof p === 'string' ? p : p.f ? p.f.join('/') : p.sup !== undefined ? '^' + p.sup : '√' + p.r).join('');+const plain = parts => parts.map(p => typeof p === 'string' ? p : p.f ? p.f.join('/') : p.sup !== undefined ? '^' + p.sup : (p.i ? p.i : '') + '√' + (p.r.f ? p.r.f.join('/') : p.r)).join('');const sorter = (items, trayXY) => (body, api) => {const L = qlayer();const bg = mk('rect', { width: 1600, height: 900, fill: 'transparent' }, L);diff --git a/tools/e2e_ch57.py b/tools/e2e_ch57.pynew file mode 100644index 0000000..894d020--- /dev/null+++ b/tools/e2e_ch57.py@@ -0,0 +1,82 @@+"""Keyboard-only walk through chapter 57: every quick check and chapter practice, right, wrong and shown answers.++ python3 -m http.server 8765 -d site &+ uv run --with playwright tools/e2e_ch57.py++Beat numbers follow BEATS in site/ch57/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/ch57/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": 1574, "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(570)+ 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(57)++ async def at(i):+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(257)++ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")+ await keys("Space"); await pg.wait_for_timeout(1570)+ 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: square roots+ await typed("8", "12", "0"); await keys("Enter"); assert await score("c-sq") == 2+ await pg.locator(".box").nth(1).fill("13"); await keys("Enter"); await ok()+ await keys("Enter"); assert await ev("P.i") == 5++ await at(6) # q2: rational or irrational+ await keys("r", "r", "i", "Enter"); await ok(); assert await score("c-rat") == 3+ await keys("Enter"); assert await ev("P.i") == 7++ 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+ await typed("1", "9", "-6", "3 2/3", "-10/3"); await keys("Enter"); assert await score("p-simp") == 5, await ev("JSON.stringify(SCORE)")+ await keys("Enter"); await pg.wait_for_timeout(200)+ await keys("n", "i", "r", "r", "i", "r", "Enter"); assert await score("p-kind") == 6+ await keys("Enter"); await pg.wait_for_timeout(200)+ await keys("f", "t", "f", "t", "f", "Enter"); assert await score("p-tf") == 5+ await keys("Enter"); await pg.wait_for_timeout(200)+ assert "chapter 57 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 57 keyboard walk-through passed; errors:", errs)+ assert not errs+ await b.close()++asyncio.run(main())diff --git a/tools/e2e_ch58.py b/tools/e2e_ch58.pynew file mode 100644index 0000000..b13cbe9--- /dev/null+++ b/tools/e2e_ch58.py@@ -0,0 +1,82 @@+"""Keyboard-only walk through chapter 58: every quick check and chapter practice, right, wrong and shown answers.++ python3 -m http.server 8765 -d site &+ uv run --with playwright tools/e2e_ch58.py++Beat numbers follow BEATS in site/ch58/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/ch58/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": 1584, "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(580)+ 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(58)++ async def at(i):+ await ev(f"seek({i}, true)"); await pg.wait_for_timeout(258)++ score = lambda k: ev(f"SCORE['{k}'] && SCORE['{k}'].right")+ await keys("Space"); await pg.wait_for_timeout(1580)+ 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: simplify a square root+ await typed("5", "15"); await keys("Enter"); assert await score("c-sq") == 0+ await pg.locator(".box").nth(1).fill("3"); await keys("Enter"); await ok()+ await keys("Enter"); assert await ev("P.i") == 5++ await at(6) # q2: fully simplified?+ await keys("1"); assert await score("c-full") == 0+ await keys("2"); await ok(); await keys("Enter"); assert await ev("P.i") == 7++ await at(8) # q3: cube root; 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(10) # practice+ await typed("3", "5", "10", "3", "6", "2", "3", "7", "4", "2"); await keys("Enter"); assert await score("p-sq") == 5, await ev("JSON.stringify(SCORE)")+ await keys("Enter"); await pg.wait_for_timeout(200)+ await typed("2", "2", "3", "3", "5", "4", "-5", "2"); await keys("Enter"); assert await score("p-cube") == 4+ await keys("Enter"); await pg.wait_for_timeout(200)+ await keys("n", "n", "y", "n", "y", "y", "Enter"); assert await score("p-can") == 6+ await keys("Enter"); await pg.wait_for_timeout(200)+ assert "chapter 58 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 58 keyboard walk-through passed; errors:", errs)+ assert not errs+ await b.close()++asyncio.run(main())