Skip to content

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

feat(math): add signed addition chapter

yzre93710cf4918
diff --git a/site/index.html b/site/index.html
index c1dd610..4c6eced 100644
--- a/site/index.html
+++ b/site/index.html
@@ -23,8 +23,8 @@
<a class="book-hotspot algebra-book" data-book="elementary-algebra" href="elementary-algebra/" aria-label="Open Elementary Algebra, 68 narrated chapters">
<span class="book-caption"><strong>Elementary Algebra <span aria-hidden="true">↗</span></strong><small>68 narrated chapters</small></span>
</a>
- <a class="book-hotspot math-book" data-book="math-notebook" href="math-notebook/" aria-label="Open Elementary Mathematics, 10 narrated chapters">
- <span class="book-caption"><strong>Elementary Mathematics <span aria-hidden="true">↗</span></strong><small>10 narrated chapters</small></span>
+ <a class="book-hotspot math-book" data-book="math-notebook" href="math-notebook/" aria-label="Open Elementary Mathematics, 11 narrated chapters">
+ <span class="book-caption"><strong>Elementary Mathematics <span aria-hidden="true">↗</span></strong><small>11 narrated chapters</small></span>
</a>
<span class="physics-pending">Physics · Coming soon</span>
</section>
diff --git a/site/lib/bookshelf.js b/site/lib/bookshelf.js
index d7d65a3..dec378c 100644
--- a/site/lib/bookshelf.js
+++ b/site/lib/bookshelf.js
@@ -17,7 +17,7 @@
const books = [
{ id: 'elementary-algebra', key: 'progress', chapterBase: 'elementary-algebra/', chapters: 68 },
{ id: 'math-notebook', key: 'animebook:progress:' + new URL('math-notebook/', location.href).pathname,
- chapterBase: 'math-notebook/', chapters: 10 },
+ chapterBase: 'math-notebook/', chapters: 11 },
];
for (const book of books) {
const cover = document.querySelector(`[data-book="${book.id}"]`);
diff --git a/site/math-notebook/ch10/index.html b/site/math-notebook/ch10/index.html
index b25a685..6e7e1c5 100644
--- a/site/math-notebook/ch10/index.html
+++ b/site/math-notebook/ch10/index.html
@@ -2,7 +2,7 @@
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Dividing Decimals — Elementary Mathematics</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><style>.screen .blanks .math{font-size:38px}.side .keys{font-size:20px}</style></head><body>
<script src="../lib/engine.js"></script><script src="audio/en/timings.js"></script><script>
'use strict';
-const CHAPTER={number:10,title:'Dividing Decimals',minutes:10,language:'en'};
+const CHAPTER={number:10,title:'Dividing Decimals',minutes:10,language:'en', next: '../ch11/' };
const ddText=(p,s,x,y,t=0,size=30,col=COL.chalk,anchor='start')=>{const e=T(p,s,{x,y,size,fill:col,anchor,o:0});show(e,t);return e;};
const ddMath=(p,s,x,y,t=0,size=48,col=COL.chalk,anchor='middle')=>{const e=M(p,Array.isArray(s)?s:[s],{x,y,size,fill:col,anchor,o:0});show(e,t);return e;};
const ddTitle=(p,s,sub='')=>{ddText(p,s,100,115,.1,43);if(sub)ddText(p,sub,100,165,.15,27,COL.dim);};
diff --git a/site/math-notebook/ch11/audio/en/balance.mp3 b/site/math-notebook/ch11/audio/en/balance.mp3
new file mode 100644
index 0000000..746f4e9
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/balance.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/differentSigns.mp3 b/site/math-notebook/ch11/audio/en/differentSigns.mp3
new file mode 100644
index 0000000..15bfe6a
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/differentSigns.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/direction.mp3 b/site/math-notebook/ch11/audio/en/direction.mp3
new file mode 100644
index 0000000..e962e03
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/direction.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/final1.mp3 b/site/math-notebook/ch11/audio/en/final1.mp3
new file mode 100644
index 0000000..2bbb6e9
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/final1.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/final2.mp3 b/site/math-notebook/ch11/audio/en/final2.mp3
new file mode 100644
index 0000000..6ba586c
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/final2.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/final3.mp3 b/site/math-notebook/ch11/audio/en/final3.mp3
new file mode 100644
index 0000000..beed2b5
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/final3.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/finish.mp3 b/site/math-notebook/ch11/audio/en/finish.mp3
new file mode 100644
index 0000000..447b37c
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/finish.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/intro.mp3 b/site/math-notebook/ch11/audio/en/intro.mp3
new file mode 100644
index 0000000..6f3b947
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/intro.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/large.mp3 b/site/math-notebook/ch11/audio/en/large.mp3
new file mode 100644
index 0000000..08a1e24
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/large.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/lineMixed.mp3 b/site/math-notebook/ch11/audio/en/lineMixed.mp3
new file mode 100644
index 0000000..e391715
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/lineMixed.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/lineSame.mp3 b/site/math-notebook/ch11/audio/en/lineSame.mp3
new file mode 100644
index 0000000..1d17756
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/lineSame.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/opposites.mp3 b/site/math-notebook/ch11/audio/en/opposites.mp3
new file mode 100644
index 0000000..7897661
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/opposites.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/q1.mp3 b/site/math-notebook/ch11/audio/en/q1.mp3
new file mode 100644
index 0000000..16d590f
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/q1.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/q2.mp3 b/site/math-notebook/ch11/audio/en/q2.mp3
new file mode 100644
index 0000000..6abfb32
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/q2.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/q3.mp3 b/site/math-notebook/ch11/audio/en/q3.mp3
new file mode 100644
index 0000000..3bc1127
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/q3.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/sameSigns.mp3 b/site/math-notebook/ch11/audio/en/sameSigns.mp3
new file mode 100644
index 0000000..700125a
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/sameSigns.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/temperature.mp3 b/site/math-notebook/ch11/audio/en/temperature.mp3
new file mode 100644
index 0000000..67926f6
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/temperature.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/three.mp3 b/site/math-notebook/ch11/audio/en/three.mp3
new file mode 100644
index 0000000..8619b04
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/three.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/tileMixed.mp3 b/site/math-notebook/ch11/audio/en/tileMixed.mp3
new file mode 100644
index 0000000..de50673
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/tileMixed.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/tilePair.mp3 b/site/math-notebook/ch11/audio/en/tilePair.mp3
new file mode 100644
index 0000000..e7d2d13
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/tilePair.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/tileUnit.mp3 b/site/math-notebook/ch11/audio/en/tileUnit.mp3
new file mode 100644
index 0000000..f345609
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/tileUnit.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/timings.js b/site/math-notebook/ch11/audio/en/timings.js
new file mode 100644
index 0000000..9a8c0f8
--- /dev/null
+++ b/site/math-notebook/ch11/audio/en/timings.js
@@ -0,0 +1,849 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 21.984,
+ "marks": {
+ "sub": 8.633
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter eleven."
+ ],
+ [
+ 1.302,
+ "Adding positive and negative numbers."
+ ],
+ [
+ 3.737,
+ "A sum can describe combining amounts, or following one change with another."
+ ],
+ [
+ 8.633,
+ "Today we will use two pictures: moves on a number line, and positive and negative tiles."
+ ],
+ [
+ 14.609,
+ "Both pictures will explain the same rules."
+ ],
+ [
+ 17.227,
+ "The sign tells the direction."
+ ],
+ [
+ 19.375,
+ "The absolute value tells how much."
+ ]
+ ]
+ },
+ "direction": {
+ "dur": 28.824,
+ "marks": {
+ "positive": 5.885,
+ "negative": 11.263,
+ "result": 22.526
+ },
+ "cues": [
+ [
+ 0.143,
+ "First, let the number line keep track of two changes."
+ ],
+ [
+ 4.401,
+ "We begin at zero."
+ ],
+ [
+ 5.885,
+ "Positive three means move three units to the right."
+ ],
+ [
+ 9.935,
+ "We arrive at three."
+ ],
+ [
+ 11.263,
+ "Adding negative four means move four units to the left, starting from our current position, not from zero again."
+ ],
+ [
+ 18.672,
+ "The dot passes zero and lands at negative one."
+ ],
+ [
+ 22.526,
+ "Three plus negative four equals negative one."
+ ],
+ [
+ 26.068,
+ "Each arrow starts where the previous move ended."
+ ]
+ ]
+ },
+ "lineMixed": {
+ "dur": 30.432,
+ "marks": {
+ "first": 2.617,
+ "second": 8.802,
+ "result": 20.195
+ },
+ "cues": [
+ [
+ 0.13,
+ "Here is negative six plus four."
+ ],
+ [
+ 2.617,
+ "From zero, negative six takes us six units left."
+ ],
+ [
+ 6.68,
+ "That puts us at negative six."
+ ],
+ [
+ 8.802,
+ "Now positive four takes us four units right."
+ ],
+ [
+ 12.057,
+ "Count the intervals, not just the printed labels: negative five, negative four, negative three, negative two."
+ ],
+ [
+ 20.195,
+ "The endpoint is negative two."
+ ],
+ [
+ 22.578,
+ "The two directions oppose each other, but the six-unit move left is longer."
+ ],
+ [
+ 27.539,
+ "Two units of that leftward change remain."
+ ]
+ ]
+ },
+ "lineSame": {
+ "dur": 30.024,
+ "marks": {
+ "first": 2.969,
+ "second": 6.12,
+ "result": 14.023
+ },
+ "cues": [
+ [
+ 0.091,
+ "Try negative two plus negative three."
+ ],
+ [
+ 2.969,
+ "The first number takes us from zero to negative two."
+ ],
+ [
+ 6.12,
+ "The second number takes us three more units left, from negative two to negative five."
+ ],
+ [
+ 11.849,
+ "Both changes point the same way."
+ ],
+ [
+ 14.023,
+ "The total distance traveled is two plus three, or five units."
+ ],
+ [
+ 18.659,
+ "Because that combined change is leftward, the sum is negative five."
+ ],
+ [
+ 23.841,
+ "Adding a negative number is still addition: we are combining a negative change with the first change."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 7.128,
+ "marks": {
+ "ask": 1.107
+ },
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.107,
+ "Start at negative five and add positive two."
+ ],
+ [
+ 4.935,
+ "Choose the endpoint on the number line."
+ ]
+ ]
+ },
+ "tileUnit": {
+ "dur": 26.904,
+ "marks": {
+ "positive": 3.034,
+ "negative": 9.362,
+ "total": 19.805
+ },
+ "cues": [
+ [
+ 0.091,
+ "A second picture uses signed tiles."
+ ],
+ [
+ 3.034,
+ "Each blue tile has value positive one."
+ ],
+ [
+ 6.055,
+ "Three blue tiles together have value positive three."
+ ],
+ [
+ 9.362,
+ "Each coral tile has value negative one."
+ ],
+ [
+ 12.617,
+ "Two coral tiles together have value negative two."
+ ],
+ [
+ 16.146,
+ "A tile is a signed value, not just a colored object."
+ ],
+ [
+ 19.805,
+ "These five tiles have total value positive one."
+ ],
+ [
+ 22.799,
+ "Let us see why counting all five as positive would give the wrong sum."
+ ]
+ ]
+ },
+ "tilePair": {
+ "dur": 29.616,
+ "marks": {
+ "pair": 3.372,
+ "zero": 9.414,
+ "cancel": 13.854
+ },
+ "cues": [
+ [
+ 0.104,
+ "Watch one positive tile and one negative tile."
+ ],
+ [
+ 3.372,
+ "We bring those two original tiles together."
+ ],
+ [
+ 6.341,
+ "Their values are positive one and negative one."
+ ],
+ [
+ 9.414,
+ "Together they have value zero."
+ ],
+ [
+ 12.018,
+ "We call this a zero pair."
+ ],
+ [
+ 13.854,
+ "Removing the pair removes zero from the total, so the total value does not change."
+ ],
+ [
+ 19.831,
+ "The tiles have not turned into positive two or negative two."
+ ],
+ [
+ 23.581,
+ "They cancel each other exactly."
+ ],
+ [
+ 25.677,
+ "This is the reason opposite signs can leave a smaller total."
+ ]
+ ]
+ },
+ "tileMixed": {
+ "dur": 33.816,
+ "marks": {
+ "pair": 6.315,
+ "cancel": 15.286,
+ "left": 21.693
+ },
+ "cues": [
+ [
+ 0.104,
+ "Build negative five plus three with five negative tiles and three positive tiles."
+ ],
+ [
+ 6.315,
+ "Match each positive tile with one negative tile."
+ ],
+ [
+ 9.727,
+ "There are exactly three zero pairs."
+ ],
+ [
+ 12.826,
+ "No tile belongs to more than one pair."
+ ],
+ [
+ 15.286,
+ "Remove those pairs."
+ ],
+ [
+ 17.018,
+ "We have removed a total value of zero, so the sum stays the same."
+ ],
+ [
+ 21.693,
+ "Two of the original negative tiles remain."
+ ],
+ [
+ 24.688,
+ "Their value is negative two."
+ ],
+ [
+ 27.096,
+ "Negative five plus three equals negative two."
+ ],
+ [
+ 30.938,
+ "The result counts the leftovers with their sign."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 9.552,
+ "marks": {
+ "ask": 1.25
+ },
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.25,
+ "Five negative tiles and three positive tiles are combined."
+ ],
+ [
+ 5.456,
+ "Choose the tiles that remain after all zero pairs are removed."
+ ]
+ ]
+ },
+ "sameSigns": {
+ "dur": 36.552,
+ "marks": {
+ "join": 6.55,
+ "magnitude": 13.425,
+ "result": 17.214,
+ "positive": 23.737
+ },
+ "cues": [
+ [
+ 0.104,
+ "What if both addends have the same sign?"
+ ],
+ [
+ 2.435,
+ "Here are two negative tiles and four more negative tiles."
+ ],
+ [
+ 6.55,
+ "Join the two groups."
+ ],
+ [
+ 8.06,
+ "There are six negative tiles, and there are no positive tiles to make zero pairs."
+ ],
+ [
+ 13.425,
+ "Add the magnitudes: two plus four equals six."
+ ],
+ [
+ 17.214,
+ "Keep the shared negative sign: negative two plus negative four equals negative six."
+ ],
+ [
+ 23.737,
+ "For two positive addends, the same idea works."
+ ],
+ [
+ 27.526,
+ "Positive three plus positive five gives eight positive units."
+ ],
+ [
+ 32.37,
+ "Same signs mean add magnitudes and keep that sign."
+ ]
+ ]
+ },
+ "differentSigns": {
+ "dur": 39.984,
+ "marks": {
+ "pair": 3.62,
+ "cancel": 7.409,
+ "left": 12.109,
+ "rule": 21.836
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now combine negative three and positive seven."
+ ],
+ [
+ 3.62,
+ "Three negative tiles can match three positive tiles."
+ ],
+ [
+ 7.409,
+ "Those three zero pairs disappear, preserving the total value."
+ ],
+ [
+ 12.109,
+ "Four positive tiles remain."
+ ],
+ [
+ 13.984,
+ "To find the leftover magnitude, subtract the smaller magnitude, three, from the larger magnitude, seven."
+ ],
+ [
+ 21.836,
+ "The larger magnitude belonged to the positive addend, so the answer is positive four."
+ ],
+ [
+ 27.305,
+ "Different signs mean subtract the smaller magnitude from the larger, then use the sign of the larger magnitude."
+ ],
+ [
+ 34.453,
+ "The numerically larger signed number is not always the one with the larger magnitude."
+ ]
+ ]
+ },
+ "opposites": {
+ "dur": 29.592,
+ "marks": {
+ "pair": 6.003,
+ "cancel": 9.193,
+ "line": 14.583
+ },
+ "cues": [
+ [
+ 0.091,
+ "Equal opposite numbers are a special case."
+ ],
+ [
+ 2.904,
+ "We combine positive four and negative four."
+ ],
+ [
+ 6.003,
+ "Every positive tile has a negative partner."
+ ],
+ [
+ 9.193,
+ "Four zero pairs disappear, and no tiles remain."
+ ],
+ [
+ 12.891,
+ "The sum is zero."
+ ],
+ [
+ 14.583,
+ "On the number line, we move four units right and four units back left."
+ ],
+ [
+ 19.414,
+ "The final position is exactly zero."
+ ],
+ [
+ 22.409,
+ "Equal magnitudes leave nothing over, so we do not need to choose a positive or negative sign for the result."
+ ]
+ ]
+ },
+ "large": {
+ "dur": 43.008,
+ "marks": {
+ "absolute": 10.885,
+ "pair": 17.721,
+ "left": 25.312,
+ "result": 34.375
+ },
+ "cues": [
+ [
+ 0.104,
+ "Tiles are helpful, but drawing hundreds is not."
+ ],
+ [
+ 3.724,
+ "Let these exact length tapes show the magnitudes of negative one hundred forty and positive ninety."
+ ],
+ [
+ 10.885,
+ "Their absolute values are one hundred forty and ninety."
+ ],
+ [
+ 14.701,
+ "These are distances, so both are positive."
+ ],
+ [
+ 17.721,
+ "Ninety units of the negative amount match all ninety positive units."
+ ],
+ [
+ 22.344,
+ "Those equal opposite contributions cancel."
+ ],
+ [
+ 25.312,
+ "Fifty negative units remain."
+ ],
+ [
+ 27.448,
+ "One hundred forty minus ninety equals fifty, and the larger magnitude belonged to the negative addend."
+ ],
+ [
+ 34.375,
+ "Negative one hundred forty plus ninety equals negative fifty."
+ ],
+ [
+ 38.568,
+ "The subtraction gives the magnitude; the comparison gives the sign."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 9.072,
+ "marks": {
+ "ask": 1.081
+ },
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.081,
+ "Combine negative forty-five with positive one hundred twenty."
+ ],
+ [
+ 5.234,
+ "Choose the signed tape that represents the leftover value."
+ ]
+ ]
+ },
+ "zero": {
+ "dur": 33.48,
+ "marks": {
+ "zero": 4.596,
+ "other": 11.51,
+ "rule": 19.648
+ },
+ "cues": [
+ [
+ 0.091,
+ "Zero is another useful case."
+ ],
+ [
+ 2.409,
+ "Here are seven negative tiles."
+ ],
+ [
+ 4.596,
+ "Adding zero introduces no additional tiles and no change."
+ ],
+ [
+ 9.219,
+ "The sum remains negative seven."
+ ],
+ [
+ 11.51,
+ "Starting with zero and adding positive five gives five positive tiles."
+ ],
+ [
+ 16.719,
+ "Zero plus five equals five."
+ ],
+ [
+ 19.648,
+ "In general, adding zero leaves the other number unchanged."
+ ],
+ [
+ 24.258,
+ "Zero is not a positive or negative addend, so you can handle it directly instead of forcing it into a same-sign or different-sign rule."
+ ]
+ ]
+ },
+ "three": {
+ "dur": 36.672,
+ "marks": {
+ "pair": 9.05,
+ "first": 13.867,
+ "next": 18.216,
+ "result": 24.909
+ },
+ "cues": [
+ [
+ 0.143,
+ "For three addends, combine two first, then add the next."
+ ],
+ [
+ 4.844,
+ "Here is negative four plus seven plus negative two."
+ ],
+ [
+ 9.05,
+ "First, four negative tiles pair with four of the seven positive tiles."
+ ],
+ [
+ 13.867,
+ "After those zero pairs are removed, three positive tiles remain."
+ ],
+ [
+ 18.216,
+ "Now bring in the two negative tiles from the third addend."
+ ],
+ [
+ 21.536,
+ "Each pairs with one of those three positive tiles."
+ ],
+ [
+ 24.909,
+ "Removing two more zero pairs leaves one positive tile."
+ ],
+ [
+ 29.609,
+ "The sum is positive one."
+ ],
+ [
+ 31.445,
+ "Keep track of the partial sum, including its sign, before continuing."
+ ]
+ ]
+ },
+ "temperature": {
+ "dur": 36.624,
+ "marks": {
+ "start": 6.497,
+ "rise": 10.156,
+ "result": 20.651
+ },
+ "cues": [
+ [
+ 0.104,
+ "The air temperature is negative seven degrees."
+ ],
+ [
+ 3.255,
+ "Over the afternoon it rises twelve degrees."
+ ],
+ [
+ 6.497,
+ "Negative seven names the starting temperature."
+ ],
+ [
+ 10.156,
+ "A rise is a positive change, so add positive twelve."
+ ],
+ [
+ 14.714,
+ "From negative seven, seven units right reach zero, and five more reach positive five."
+ ],
+ [
+ 20.651,
+ "Negative seven plus twelve equals five."
+ ],
+ [
+ 23.984,
+ "The final temperature is five degrees."
+ ],
+ [
+ 26.719,
+ "We used a signed starting value and a signed change."
+ ],
+ [
+ 30.143,
+ "The twelve-degree rise is not the final temperature; the endpoint of the combined moves is."
+ ]
+ ]
+ },
+ "balance": {
+ "dur": 34.272,
+ "marks": {
+ "payment": 8.307,
+ "balance": 15.872,
+ "owed": 19.232
+ },
+ "cues": [
+ [
+ 0.091,
+ "Imagine a signed balance of negative thirty-two dollars, meaning you owe thirty-two dollars."
+ ],
+ [
+ 6.276,
+ "You pay back twenty-one dollars."
+ ],
+ [
+ 8.307,
+ "That payment improves the signed balance by positive twenty-one."
+ ],
+ [
+ 12.409,
+ "Twenty-one units cancel twenty-one units of debt."
+ ],
+ [
+ 15.872,
+ "The new signed balance is negative eleven dollars."
+ ],
+ [
+ 19.232,
+ "The amount still owed is eleven dollars, a positive amount."
+ ],
+ [
+ 23.242,
+ "These describe the same situation but answer different questions."
+ ],
+ [
+ 27.37,
+ "If asked for the balance, include the negative sign."
+ ],
+ [
+ 30.846,
+ "If asked how much is still owed, give the positive amount owed."
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 34.704,
+ "marks": {
+ "w1": 2.93,
+ "w2": 9.844,
+ "w3": 17.096,
+ "w4": 21.966
+ },
+ "cues": [
+ [
+ 0.182,
+ "Four ideas hold this chapter together."
+ ],
+ [
+ 2.93,
+ "On a number line, positive goes right and negative goes left."
+ ],
+ [
+ 7.344,
+ "The next move begins at the current position."
+ ],
+ [
+ 9.844,
+ "A positive unit and a negative unit form a zero pair."
+ ],
+ [
+ 13.945,
+ "Removing zero pairs preserves the sum."
+ ],
+ [
+ 17.096,
+ "For the same signs, add magnitudes and keep the shared sign."
+ ],
+ [
+ 21.966,
+ "For different signs, subtract the smaller magnitude from the larger and use the larger magnitude\u2019s sign."
+ ],
+ [
+ 28.607,
+ "Equal opposite magnitudes give zero."
+ ],
+ [
+ 31.654,
+ "Now use these ideas in the chapter practice."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 8.28,
+ "marks": {
+ "ask": 2.24
+ },
+ "cues": [
+ [
+ 0.117,
+ "Chapter practice, set one."
+ ],
+ [
+ 2.24,
+ "Add same-sign numbers, opposites, and zero."
+ ],
+ [
+ 5.69,
+ "Keep the signs visible in your answers."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 7.584,
+ "marks": {
+ "ask": 2.357
+ },
+ "cues": [
+ [
+ 0.091,
+ "Chapter practice, set two."
+ ],
+ [
+ 2.357,
+ "Compare the magnitudes, and track the partial sum when there are three addends."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 8.76,
+ "marks": {
+ "ask": 2.435
+ },
+ "cues": [
+ [
+ 0.091,
+ "Chapter practice, set three."
+ ],
+ [
+ 2.435,
+ "Interpret signed changes and balances."
+ ],
+ [
+ 5.208,
+ "Then describe what the zero-pair picture leaves behind."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 12.864,
+ "marks": {
+ "end": 0.104
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter eleven is complete."
+ ],
+ [
+ 2.24,
+ "You can explain a signed sum using directions, zero pairs, or magnitudes."
+ ],
+ [
+ 8.008,
+ "Your score records your first attempts."
+ ],
+ [
+ 10.443,
+ "Replay any picture you want to explore again."
+ ]
+ ]
+ }
+};
diff --git a/site/math-notebook/ch11/audio/en/wrap.mp3 b/site/math-notebook/ch11/audio/en/wrap.mp3
new file mode 100644
index 0000000..638338d
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/wrap.mp3 differ
diff --git a/site/math-notebook/ch11/audio/en/zero.mp3 b/site/math-notebook/ch11/audio/en/zero.mp3
new file mode 100644
index 0000000..42269f3
Binary files /dev/null and b/site/math-notebook/ch11/audio/en/zero.mp3 differ
diff --git a/site/math-notebook/ch11/index.html b/site/math-notebook/ch11/index.html
new file mode 100644
index 0000000..d36905c
--- /dev/null
+++ b/site/math-notebook/ch11/index.html
@@ -0,0 +1,65 @@
+<!doctype html>
+<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Adding Positive and Negative Numbers — Elementary Mathematics</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><style>.screen .blanks .math{font-size:38px}.side .keys{font-size:20px}</style></head><body>
+<script src="../lib/engine.js"></script><script src="audio/en/timings.js"></script><script>
+'use strict';
+const CHAPTER={number:11,title:'Adding Positive and Negative Numbers',minutes:12,language:'en'};
+const saColor=v=>v>0?POS:v<0?NEG:COL.chalk;
+const saSigned=v=>v>0?'+'+v:num(v);
+const saText=(p,s,x,y,t=0,size=30,col=COL.chalk,anchor='start')=>{const e=T(p,s,{x,y,size,fill:col,anchor,o:0});show(e,t);return e;};
+const saMath=(p,s,x,y,t=0,size=48,col=COL.chalk,anchor='middle')=>{const e=M(p,Array.isArray(s)?s:[s],{x,y,size,fill:col,anchor,o:0});show(e,t);return e;};
+const saTitle=(p,s,sub='')=>{saText(p,s,100,110,.1,43);if(sub)saText(p,sub,100,162,.15,27,COL.dim);};
+function saEq(p,a,b,c,t=0,y=750,xEq=800,size=60){const row=tokens(p,[{t:num(a),fill:saColor(a)},' + ',{t:b<0?'('+num(b)+')':num(b),fill:saColor(b)}],{x:xEq-size*.5,y,size,anchor:'end'});row.push(saMath(p,'=',xEq,y,t,size),saMath(p,num(c),xEq+size*.65,y,t,size,saColor(c),'start'));row.slice(0,3).forEach(e=>{put(e,{o:0});show(e,t)});return row;}
+function saLine(p,lo=-8,hi=8,u=76,o=800){const y=560;const g=G(p);g.dataset.lineLo=lo;g.dataset.lineHi=hi;g.dataset.unit=u;g.dataset.origin=o;path(g,`M${o+(lo-.55)*u} ${y}H${o+(hi+.55)*u}`,{stroke:COL.chalk,'stroke-width':3});for(const [v,d] of [[lo-.55,-1],[hi+.55,1]])path(g,`M${o+v*u-12*d} ${y-9}L${o+v*u} ${y}L${o+v*u-12*d} ${y+9}`,{stroke:COL.chalk,'stroke-width':3});for(let v=lo;v<=hi;v++){path(g,`M${o+v*u} ${y-9}V${y+9}`,{stroke:COL.dim,'stroke-width':2});T(g,num(v),{x:o+v*u,y:y+45,size:28,font:MATH,anchor:'middle',fill:v===0?COL.chalk:COL.dim});}const dot=G(g,{x:o,y});const circle=mk('circle',{r:11,fill:COL.chalk,stroke:COL.board,'stroke-width':2},dot);return {g,y,u,o,dot,circle,x:v=>o+u*v};}
+function saMove(l,a,b,y,t){const c=saColor(b-a),dur=1.4,x1=l.x(a),x2=l.x(b),d=Math.sign(b-a),g=G(l.g);g.dataset.moveFrom=a;g.dataset.moveTo=b;g.dataset.startX=x1;g.dataset.endX=x2;const ln=path(g,`M${x1} ${y}H${x2}`,{stroke:c,'stroke-width':5},{d:0});draw(ln,t,dur);const h=path(g,`M${x2-14*d} ${y-10}L${x2} ${y}L${x2-14*d} ${y+10}`,{stroke:c,'stroke-width':5},{o:0});show(h,t+dur-.12,.15);saText(g,saSigned(b-a),(x1+x2)/2,y-22,t+.1,35,c,'middle');const drop=path(g,`M${x2} ${y+12}V${l.y-15}`,{stroke:c,'stroke-width':2,'stroke-dasharray':'5 5'},{o:0});show(drop,t+dur,.2);tw(l.dot,{x:x2},t,dur,lin);tw(l.circle,{c_fill:saColor(b)},t,dur,lin);return g;}
+function saTile(p,sign,id,x,y,t=0){const e=tile(p,sign,x,y);e.dataset.tileId=id;e.dataset.value=sign;tw(e,{o:1,s:1},t,.35,back);return e;}
+function saCancel(p,a,b,tPair,tCancel){const n=Math.min(a.length,b.length);a.slice(0,n).forEach((e,i)=>{const f=b[i],x=st(e).x,y=st(e).y;tw(f,{x,y:y+75},tPair+i*.1,.6);const ring=G(p,{x,y:y+37.5,o:0});ring.dataset.zeroPair=e.dataset.tileId+','+f.dataset.tileId;mk('rect',{x:-37,y:-68,width:74,height:136,rx:16,fill:'none',stroke:COL.chalk,'stroke-width':2,'stroke-dasharray':'6 5'},ring);show(ring,tPair+.65+i*.1);[e,f,ring].forEach(k=>hide(k,tCancel+i*.12,.5));});return n;}
+function saModel(p,a,b,m,{first=0,second=.15}={}){const g=G(p);g.dataset.addends=a+','+b;g.dataset.sum=a+b;const xs=i=>330+i*92;const A=Array.from({length:Math.abs(a)},(_,i)=>saTile(g,Math.sign(a),'a'+i,xs(i),320,first+i*.05));const B=Array.from({length:Math.abs(b)},(_,i)=>saTile(g,Math.sign(b),'b'+i,xs(i),490,second+i*.05));saText(g,'Input: '+saSigned(a),1120,325,first,36,saColor(a));saText(g,'Input: '+saSigned(b),1120,495,second,36,saColor(b));let n=0;if(a*b<0){n=saCancel(g,A,B,m('pair'),m('cancel'));g.dataset.pairs=n;const rem=[...A.slice(n),...B.slice(n)];rem.forEach((e,i)=>tw(e,{x:800+(i-(rem.length-1)/2)*92,y:385},m('left'),.7));saText(g,n+' zero pairs removed · total value unchanged',800,640,m('cancel'),30,COL.dim,'middle');}return {g,A,B,n};}
+function saTape(p,a,b,tPair=99,tLeft=99){const g=G(p),scale=4,x=400,y=310,n=Math.min(Math.abs(a),Math.abs(b));g.dataset.tapeAddends=a+','+b;g.dataset.scale=scale;for(const [v,yy] of [[a,y],[b,y+145]]){saText(g,saSigned(v),x-85,yy+36,0,39,saColor(v),'middle');const pair=G(g,{x,y:yy});pair.dataset.matchedValue=Math.sign(v)*n;mk('rect',{width:n*scale,height:58,fill:saColor(v),'fill-opacity':.25,stroke:saColor(v),'stroke-width':2},pair);hide(pair,tPair,.7);if(Math.abs(v)>n){const rem=G(g,{x:x+n*scale,y:yy});rem.dataset.remainingValue=Math.sign(v)*(Math.abs(v)-n);mk('rect',{width:(Math.abs(v)-n)*scale,height:58,fill:saColor(v),'fill-opacity':.5,stroke:saColor(v),'stroke-width':3},rem);tw(rem,{x:650,y:410},tLeft,.8);saText(g,'leftover: '+saSigned(a+b),800,570,tLeft,42,saColor(a+b),'middle');}}
+saText(g,'Exact scale: 4 pixels per unit of magnitude',800,660,0,27,COL.dim,'middle');return g;}
+// Reuse chapter 2's signed-answer normalization, leaving exact grading to the engine.
+const saBlanks=rows=>(body,api)=>{const ctl=blanks(rows)(body,api),check=ctl.check;ctl.check=()=>{body.querySelectorAll('input.box').forEach(b=>{b.value=b.value.replace(/^\s*\+\s*/,'').replace(/(\d),(?=\d{3}\b)/g,'$1');});check();};return ctl;};
+const BEATS=[
+['intro','Combine signed changes',(m,D)=>{const g=G(scene,{o:0,y:24});T(g,'Unit 1 · The Number System · Chapter 11',{x:800,y:235,size:28,fill:COL.dim,anchor:'middle'});T(g,'Adding Positive',{x:800,y:345,size:72,weight:600,anchor:'middle'});T(g,'and Negative Numbers',{x:800,y:440,size:72,weight:600,anchor:'middle'});tw(g,{o:1,y:0},.2,1,out);saTile(g,1,'intro-plus',730,570,.4);saTile(g,-1,'intro-minus',870,570,.5);saText(g,'Directions · zero pairs · magnitudes',800,705,m('sub'),34,COL.dim,'middle');hide(g,D-.8,.7);}],
+['direction','A sign gives a direction',m=>{const p=panel(0);saTitle(p,'3 + (−4)','Begin at zero. Each new move starts at the current position.');S.saLine=saLine(p);saMove(S.saLine,0,3,325,m('positive'));saMove(S.saLine,3,-1,440,m('negative'));saEq(p,3,-4,-1,m('result'));}],
+['lineMixed','Opposing moves',m=>{const p=panel(0);saTitle(p,'−6 + 4');S.saLine=saLine(p);saMove(S.saLine,0,-6,325,m('first'));saMove(S.saLine,-6,-2,440,m('second'));saEq(p,-6,4,-2,m('result'));}],
+['lineSame','Two leftward changes',m=>{const p=panel(0);saTitle(p,'−2 + (−3)');S.saLine=saLine(p);saMove(S.saLine,0,-2,325,m('first'));saMove(S.saLine,-2,-5,440,m('second'));saEq(p,-2,-3,-5,m('result'));saText(p,'Magnitude: 2 + 3 = 5',800,825,m('result'),31,COL.task,'middle');}],
+['q1','Quick check',()=>{const p=panel(0);saTitle(p,'−5 + 2','The first move is shown. Where does the second move end?');const l=saLine(p);saMove(l,0,-5,330,0);S.saPoints=[-7,-3,3].map(v=>{const g=G(p,{x:l.x(v),y:l.y});mk('circle',{r:17,fill:COL.board,stroke:COL.task,'stroke-width':3},g);return {el:g,box:[l.x(v)-34,l.y-35,68,70],label:num(v)};});},{ask:done=>quiz(BAND,[{id:'c-endpoint',prompt:'Choose the endpoint after a move of +2.',build:pickEls(S.saPoints,1,'From −5, move two units RIGHT: −4, then −3.',i=>i===0?'−7 is two units left. A positive addend moves right.':'Start the +2 move at −5, not at zero.',()=>pulseFx(S.saPoints[1].el,1.25))}],done)}],
+['tileUnit','Tiles have signed values',m=>{const p=panel(0);saTitle(p,'One tile = one signed unit');for(let i=0;i<3;i++)saTile(p,1,'unit-p'+i,420+i*92,335,i===0?0:m('positive')+i*.08);for(let i=0;i<2;i++)saTile(p,-1,'unit-n'+i,420+i*92,490,m('negative')+i*.08);saText(p,'3 × (+1) = +3',1050,350,m('positive'),43,POS,'middle');saText(p,'2 × (−1) = −2',1050,505,m('negative'),43,NEG,'middle');saEq(p,3,-2,1,m('total'));}],
+['tilePair','A zero pair preserves value',m=>{const p=panel(0);saTitle(p,'+1 and −1 make a ZERO pair');const a=saTile(p,1,'pair-positive',610,330),b=saTile(p,-1,'pair-negative',990,510);saCancel(p,[a],[b],m('pair'),m('cancel'));saEq(p,1,-1,0,m('zero'),330,1120,46);saText(p,'Remove a value of 0',800,645,m('cancel'),42,COL.chalk,'middle');saText(p,'The total value stays the same.',800,745,m('cancel',1),35,COL.dim,'middle');}],
+['tileMixed','Remove three zero pairs',m=>{const p=panel(0);saTitle(p,'−5 + 3','Every pair uses one original positive tile and one original negative tile.');S.saTiles=saModel(p,-5,3,m);saEq(p,-5,3,-2,m('left'));}],
+['q2','Quick check',()=>{const p=panel(0);saTitle(p,'−5 + 3','Choose the leftover tiles after removing every zero pair.');for(let i=0;i<5;i++)saTile(p,-1,'q2n'+i,515+i*75,255);for(let i=0;i<3;i++)saTile(p,1,'q2p'+i,515+i*75,350);S.saOptions=[[-1,2],[1,2],[-1,8]].map(([sign,n],j)=>{const g=G(p,{x:315+j*490,y:515});g.dataset.optionValue=sign*n;for(let i=0;i<n;i++)saTile(g,sign,'option'+j+'-'+i,(i%4-(Math.min(n,4)-1)/2)*67,Math.floor(i/4)*65,0);saText(g,String.fromCharCode(65+j),0,-70,0,30,COL.dim,'middle');return {el:g,box:[135+j*490,420,360,200],label:n+' '+(sign>0?'positive':'negative')+' tiles'};});},{ask:done=>quiz(BAND,[{id:'c-tiles',prompt:'Which original signed value remains?',build:pickEls(S.saOptions,0,'Three zero pairs remove three negatives and three positives. Two negative tiles remain.',i=>i===1?'The negative group has the larger magnitude, so the leftover tiles must be negative.':'Counting eight objects ignores their signed values. Three positive-negative pairs have value zero.',()=>pulseFx(S.saOptions[0].el,1.08))}],done)}],
+['sameSigns','Same signs: add magnitudes',m=>{const p=panel(0);saTitle(p,'−2 + (−4)','No opposite tiles means no zero pairs.');const g=G(p);const A=Array.from({length:2},(_,i)=>saTile(g,-1,'same-a'+i,400+i*92,335)),B=Array.from({length:4},(_,i)=>saTile(g,-1,'same-b'+i,860+i*92,335));[...A,...B].forEach((e,i)=>tw(e,{x:570+i*92,y:400},m('join'),.8));saMath(p,'|−2| + |−4| = 2 + 4 = 6',800,570,m('magnitude'),48,COL.task);saEq(p,-2,-4,-6,m('result'),685);saEq(p,3,5,8,m('positive'),815);}],
+['differentSigns','Different signs: count leftovers',m=>{const p=panel(0);saTitle(p,'−3 + 7');S.saTiles=saModel(p,-3,7,m);saEq(p,-3,7,4,m('left'),745);saText(p,'7 − 3 = 4 · larger magnitude is POSITIVE',800,830,m('rule'),31,COL.task,'middle');}],
+['opposites','Equal opposites give zero',m=>{const p=panel(0);saTitle(p,'4 + (−4)');const g=G(p);const A=Array.from({length:4},(_,i)=>saTile(g,1,'opp-p'+i,480+i*92,280)),B=Array.from({length:4},(_,i)=>saTile(g,-1,'opp-n'+i,480+i*92,450));saCancel(g,A,B,m('pair'),m('cancel'));hide(g,m('line'),.5);const l=saLine(p);put(l.g,{o:0});show(l.g,m('line'));saMove(l,0,4,340,m('line'));saMove(l,4,0,445,m('line',2));saEq(p,4,-4,0,m('cancel'));}],
+['large','Magnitudes work for large numbers',m=>{const p=panel(0);saTitle(p,'−140 + 90');S.saTape=saTape(p,-140,90,m('pair'),m('left'));saMath(p,'|−140| = 140 |90| = 90',800,230,m('absolute'),42,COL.task);saEq(p,-140,90,-50,m('result'),790);}],
+['q3','Quick check',()=>{const p=panel(0);saTitle(p,'−45 + 120','Compare magnitudes. Choose the signed LEFTOVER tape.');const x=500,sc=4;for(const [v,y] of [[-45,265],[120,370]]){mk('rect',{x,y,width:Math.abs(v)*sc,height:45,fill:saColor(v),'fill-opacity':.35,stroke:saColor(v),'stroke-width':2},p);saText(p,saSigned(v),x-80,y+35,0,36,saColor(v),'middle');}saText(p,'Input tapes: 4 pixels per magnitude unit',800,465,0,26,COL.dim,'middle');S.saTapeOptions=[-75,75,165].map((v,j)=>{const g=G(p,{x:200+j*480,y:550});g.dataset.optionValue=v;g.dataset.scale=1.5;mk('rect',{width:Math.abs(v)*1.5,height:48,fill:saColor(v),'fill-opacity':.45,stroke:saColor(v),'stroke-width':3},g);saText(g,String.fromCharCode(65+j)+' · '+saSigned(v),120,-24,0,34,saColor(v),'middle');return {el:g,box:[150+j*480,490,365,130],label:saSigned(v)};});saText(p,'Answer tapes: 1.5 pixels per magnitude unit',800,642,0,24,COL.dim,'middle');},{ask:done=>quiz(BAND,[{id:'c-magnitude',prompt:'Which answer tape has the correct magnitude AND sign?',build:pickEls(S.saTapeOptions,1,'120−45=75. The positive addend has larger magnitude, so +75 remains.',i=>i===0?'75 is the correct magnitude, but 120 is positive and larger in magnitude than −45.':'Opposite signs cancel. Subtract the smaller magnitude from the larger; do not add 120 and 45.',()=>pulseFx(S.saTapeOptions[1].el,1.08))}],done)}],
+['zero','Zero changes nothing',m=>{const p=panel(0);saTitle(p,'Adding zero');for(let i=0;i<7;i++)saTile(p,-1,'zero-n'+i,505+i*92,310);saEq(p,-7,0,-7,m('zero'),475);for(let i=0;i<5;i++)saTile(p,1,'zero-p'+i,600+i*92,615,m('other'));saEq(p,0,5,5,m('other'),730);saText(p,'a + 0 = a',800,835,m('rule'),42,COL.chalk,'middle');}],
+['three','Carry the signed partial sum',m=>{const p=panel(0);saTitle(p,'−4 + 7 + (−2)','Two stages. The surviving positive tiles keep their identities.');const g=G(p);const A=Array.from({length:4},(_,i)=>saTile(g,-1,'three-a'+i,360+i*82,290)),B=Array.from({length:7},(_,i)=>saTile(g,1,'three-b'+i,360+i*82,490));saCancel(g,A,B,m('pair'),m('first')-.7);const survivors=B.slice(4);survivors.forEach((e,i)=>tw(e,{x:700+i*92,y:340},m('first'),.7));saEq(p,-4,7,3,m('first'),330,1270,35);const C=Array.from({length:2},(_,i)=>saTile(g,-1,'three-c'+i,700+i*92,490,m('next')));survivors.slice(0,2).forEach((e,i)=>{const f=C[i],x=700+i*92;tw(f,{x,y:415},m('next',1),.6);const ring=G(g,{x,y:377.5,o:0});ring.dataset.zeroPair=e.dataset.tileId+','+f.dataset.tileId;mk('rect',{x:-37,y:-68,width:74,height:136,rx:16,fill:'none',stroke:COL.chalk,'stroke-width':2,'stroke-dasharray':'6 5'},ring);show(ring,m('next',1.7));[e,f,ring].forEach(k=>hide(k,m('result')-.6,.5));});saEq(p,3,-2,1,m('result'),520,1270,35);tokens(p,[{t:'−4',fill:NEG},' + ',{t:'7',fill:POS},' + ',{t:'(−2)',fill:NEG},' = ',{t:'1',fill:POS}],{x:800,y:755,size:57,anchor:'middle',o:0}).forEach(e=>show(e,m('result')));S.saThree={A,B,C,survivors};}],
+['temperature','A starting value and a change',m=>{const p=panel(0);saTitle(p,'−7°C, then a rise of 12°C','Find the final temperature.');const l=saLine(p,-10,10,62);saMove(l,0,-7,325,m('start'));saMove(l,-7,5,440,m('rise'));saEq(p,-7,12,5,m('result'));saText(p,'Final temperature: 5°C',800,825,m('result'),34,POS,'middle');}],
+['balance','Balance versus amount owed',m=>{const p=panel(0);saTitle(p,'Signed balance −$32 · payment +$21','A negative balance means money is owed.');saTape(p,-32,21,m('payment'),m('balance'));saText(p,'Signed balance: −$11',800,745,m('balance'),44,NEG,'middle');saText(p,'Amount still owed: $11',800,830,m('owed'),44,COL.chalk,'middle');}],
+['wrap','Four reliable ideas',m=>{const p=panel(0);[['Move from the CURRENT position: + right, − left.','w1'],['Zero pairs cancel while preserving the total value.','w2'],['Same signs: add magnitudes; keep the shared sign.','w3'],['Different signs: subtract magnitudes; use the larger’s sign.','w4']].forEach(([s,k],i)=>{const g=G(p,{x:-16,y:235+i*145,o:0});mk('circle',{cx:130,cy:-10,r:26,fill:COL.task},g);T(g,String(i+1),{x:130,y:0,size:30,anchor:'middle',fill:COL.board});T(g,s,{x:195,size:i===3?31:33});tw(g,{x:0,o:1},m(k),.6);});saText(p,'Equal opposite magnitudes → 0',800,850,m('w4',2),31,COL.chalk,'middle');}],
+['final1','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-basic',prompt:'Add. Same signs, opposites, and zero.',build:saBlanks([
+{parts:['−8 + (−5) = ',{box:'-13'}],why:'Add magnitudes 8+5=13; keep the negative sign.'},
+{parts:['6 + 9 = ',{box:'15'}],why:'Both positive: 6+9=15.'},
+{parts:['−12 + 12 = ',{box:'0'}],why:'Twelve zero pairs leave no units.'},
+{parts:['−18 + 0 = ',{box:'-18'}],why:'Adding zero does not change the value.'}
+])}],done,'Chapter practice 1 of 3')}],
+['final2','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-mixed',prompt:'Compare magnitudes. For three addends, track the signed partial sum.',build:saBlanks([
+{parts:['−17 + 12 = ',{box:'-5'}],why:'17−12=5; the negative addend has larger magnitude.'},
+{parts:['23 + (−9) = ',{box:'14'}],why:'23−9=14; the positive addend has larger magnitude.'},
+{parts:['−640 + 385 = ',{box:'-255'}],why:'640−385=255; retain the negative sign.'},
+{parts:['−6 + 11 + (−3) = ',{box:'2'}],why:'−6+11=5; then 5+(−3)=2.'}
+])}],done,'Chapter practice 2 of 3')}],
+['final3','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[
+{id:'p-temp',prompt:'The temperature is 0°C. It changes by −18°C, then +5°C. Find the final temperature.',build:saBlanks([{parts:[{box:'-13'},' °C'],why:'0+(−18)+5=−13. A five-degree rise does not undo the full eighteen-degree drop.'}])},
+{id:'p-balance',prompt:'A signed balance of −$40 improves by +$24 after a payment. Find the NEW SIGNED BALANCE.',build:saBlanks([{parts:[{box:'-16'},' dollars'],why:'−40+24=−16 dollars. The balance remains negative.'}])},
+{id:'p-owed',prompt:'For that new balance of −$16, how much money is still owed? Give the positive amount.',build:saBlanks([{parts:[{box:'16'},' dollars owed'],why:'The signed balance is −16; the amount owed is its magnitude, 16 dollars.'}])},
+{id:'p-pairs',prompt:'Combine 7 positive tiles and 5 negative tiles. Remove every zero pair.',build:saBlanks([
+{parts:[{box:'5'},' zero pairs are removed.'],why:'Each of the five negative tiles pairs with one positive tile.'},
+{parts:['Remaining signed value = ',{box:'2'}],why:'Two positive tiles remain, giving signed value +2.'}
+])}
+],done,'Chapter practice 3 of 3')}],
+['finish','Finished',()=>panel(0),{ask:finishCard}]
+].map(([id,title,run,extra])=>({id,title,run,...extra}));
+boot();
+</script></body></html>
diff --git a/site/math-notebook/index.html b/site/math-notebook/index.html
index f5b2b8c..a4ac2e2 100644
--- a/site/math-notebook/index.html
+++ b/site/math-notebook/index.html
@@ -229,7 +229,7 @@ main#contents { padding-bottom: 80px; }
'use strict';
// Chapters are numbered in order through the units. Add a chapter here when its lesson is ready.
const UNITS = [ // [unit title, [[chapter title, minutes], ...]]; chapters are numbered in order. Add a chapter when its lesson is ready.
- ['The Number System', [['Types of Numbers and the Number Line', 9], ['Positive and Negative Numbers', 8], ['Absolute Value', 9], ['Factors and Greatest Common Factor', 11], ['Multiples and Least Common Multiple', 10], ['Fraction Basics: Types of Fractions and Adding and Subtracting Fractions', 13], ['Multiplying and Dividing Fractions', 12], ['Adding and Subtracting Decimals', 11], ['Multiplying Decimals', 12], ['Dividing Decimals', 10]]],
+ ['The Number System', [['Types of Numbers and the Number Line', 9], ['Positive and Negative Numbers', 8], ['Absolute Value', 9], ['Factors and Greatest Common Factor', 11], ['Multiples and Least Common Multiple', 10], ['Fraction Basics: Types of Fractions and Adding and Subtracting Fractions', 13], ['Multiplying and Dividing Fractions', 12], ['Adding and Subtracting Decimals', 11], ['Multiplying Decimals', 12], ['Dividing Decimals', 10], ['Adding Positive and Negative Numbers', 12]]],
];
const HUES = ['#f4a48c', '#86c9e8', '#f3c95c', '#e8a0c8', '#8fd6b0', '#bba8ee', '#f0b45a'];
const id = n => 'ch' + String(n).padStart(2, '0');