An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
feat(math): add signed products chapter
yzr423391e8a006
diff --git a/site/index.html b/site/index.htmlindex 79df302..cfb02c6 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, 12 narrated chapters">- <span class="book-caption"><strong>Elementary Mathematics <span aria-hidden="true">↗</span></strong><small>12 narrated chapters</small></span>+ <a class="book-hotspot math-book" data-book="math-notebook" href="math-notebook/" aria-label="Open Elementary Mathematics, 13 narrated chapters">+ <span class="book-caption"><strong>Elementary Mathematics <span aria-hidden="true">↗</span></strong><small>13 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.jsindex 8d88daa..1b0978a 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: 12 },+ chapterBase: 'math-notebook/', chapters: 13 },];for (const book of books) {const cover = document.querySelector(`[data-book="${book.id}"]`);diff --git a/site/math-notebook/ch12/index.html b/site/math-notebook/ch12/index.htmlindex b2b05e9..a59e84e 100644--- a/site/math-notebook/ch12/index.html+++ b/site/math-notebook/ch12/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>Subtracting 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:12,title:'Subtracting Positive and Negative Numbers',minutes:13,language:'en'};+const CHAPTER={number:12,title:'Subtracting Positive and Negative Numbers',minutes:13,language:'en', next: '../ch13/' };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;};diff --git a/site/math-notebook/ch13/audio/en/chain.mp3 b/site/math-notebook/ch13/audio/en/chain.mp3new file mode 100644index 0000000..ed527efBinary files /dev/null and b/site/math-notebook/ch13/audio/en/chain.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/divideZero.mp3 b/site/math-notebook/ch13/audio/en/divideZero.mp3new file mode 100644index 0000000..4598bd4Binary files /dev/null and b/site/math-notebook/ch13/audio/en/divideZero.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/division.mp3 b/site/math-notebook/ch13/audio/en/division.mp3new file mode 100644index 0000000..9d1e080Binary files /dev/null and b/site/math-notebook/ch13/audio/en/division.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/final1.mp3 b/site/math-notebook/ch13/audio/en/final1.mp3new file mode 100644index 0000000..f731334Binary files /dev/null and b/site/math-notebook/ch13/audio/en/final1.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/final2.mp3 b/site/math-notebook/ch13/audio/en/final2.mp3new file mode 100644index 0000000..b7e9157Binary files /dev/null and b/site/math-notebook/ch13/audio/en/final2.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/final3.mp3 b/site/math-notebook/ch13/audio/en/final3.mp3new file mode 100644index 0000000..71f2062Binary files /dev/null and b/site/math-notebook/ch13/audio/en/final3.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/finish.mp3 b/site/math-notebook/ch13/audio/en/finish.mp3new file mode 100644index 0000000..65d2a1aBinary files /dev/null and b/site/math-notebook/ch13/audio/en/finish.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/groups.mp3 b/site/math-notebook/ch13/audio/en/groups.mp3new file mode 100644index 0000000..765b58fBinary files /dev/null and b/site/math-notebook/ch13/audio/en/groups.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/intro.mp3 b/site/math-notebook/ch13/audio/en/intro.mp3new file mode 100644index 0000000..336496cBinary files /dev/null and b/site/math-notebook/ch13/audio/en/intro.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/loss.mp3 b/site/math-notebook/ch13/audio/en/loss.mp3new file mode 100644index 0000000..04e2a34Binary files /dev/null and b/site/math-notebook/ch13/audio/en/loss.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/magnitude.mp3 b/site/math-notebook/ch13/audio/en/magnitude.mp3new file mode 100644index 0000000..a91210cBinary files /dev/null and b/site/math-notebook/ch13/audio/en/magnitude.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/negativeDivisor.mp3 b/site/math-notebook/ch13/audio/en/negativeDivisor.mp3new file mode 100644index 0000000..05e2107Binary files /dev/null and b/site/math-notebook/ch13/audio/en/negativeDivisor.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/opposite.mp3 b/site/math-notebook/ch13/audio/en/opposite.mp3new file mode 100644index 0000000..ad7c221Binary files /dev/null and b/site/math-notebook/ch13/audio/en/opposite.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/parity.mp3 b/site/math-notebook/ch13/audio/en/parity.mp3new file mode 100644index 0000000..f4ab3e3Binary files /dev/null and b/site/math-notebook/ch13/audio/en/parity.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/q1.mp3 b/site/math-notebook/ch13/audio/en/q1.mp3new file mode 100644index 0000000..5dfaef2Binary files /dev/null and b/site/math-notebook/ch13/audio/en/q1.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/q2.mp3 b/site/math-notebook/ch13/audio/en/q2.mp3new file mode 100644index 0000000..1c7012eBinary files /dev/null and b/site/math-notebook/ch13/audio/en/q2.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/q3.mp3 b/site/math-notebook/ch13/audio/en/q3.mp3new file mode 100644index 0000000..14a91aaBinary files /dev/null and b/site/math-notebook/ch13/audio/en/q3.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/reverse.mp3 b/site/math-notebook/ch13/audio/en/reverse.mp3new file mode 100644index 0000000..a66ba90Binary files /dev/null and b/site/math-notebook/ch13/audio/en/reverse.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/signPairs.mp3 b/site/math-notebook/ch13/audio/en/signPairs.mp3new file mode 100644index 0000000..b0d94dcBinary files /dev/null and b/site/math-notebook/ch13/audio/en/signPairs.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/signedGroups.mp3 b/site/math-notebook/ch13/audio/en/signedGroups.mp3new file mode 100644index 0000000..8ec9296Binary files /dev/null and b/site/math-notebook/ch13/audio/en/signedGroups.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/timings.js b/site/math-notebook/ch13/audio/en/timings.jsnew file mode 100644index 0000000..7365efd--- /dev/null+++ b/site/math-notebook/ch13/audio/en/timings.js@@ -0,0 +1,824 @@+window.TIMINGS = {+ "intro": {+ "dur": 26.904,+ "marks": {+ "sub": 13.503+ },+ "cues": [+ [+ 0.104,+ "Chapter thirteen."+ ],+ [+ 1.55,+ "Multiplying and dividing positive and negative numbers."+ ],+ [+ 5.065,+ "A product can be positive even when both factors are negative."+ ],+ [+ 9.102,+ "A quotient can be negative even when the dividend is positive."+ ],+ [+ 13.503,+ "The signs are not a guessing game."+ ],+ [+ 15.417,+ "We will connect them to groups, opposites, and the missing factor in multiplication."+ ],+ [+ 20.781,+ "Then we will handle zero, longer calculations, and what a signed answer means in a real situation."+ ]+ ]+ },+ "groups": {+ "dur": 33.984,+ "marks": {+ "count": 11.628,+ "total": 23.854+ },+ "cues": [+ [+ 0.104,+ "Multiplication combines equal groups."+ ],+ [+ 3.333,+ "Here are three rows, each containing four positive tiles."+ ],+ [+ 8.073,+ "Every original tile has value positive one."+ ],+ [+ 11.628,+ "Three groups of positive four give twelve positive units."+ ],+ [+ 15.938,+ "Three times four equals twelve."+ ],+ [+ 18.294,+ "The first factor counts the groups in this picture; the second factor gives their signed value."+ ],+ [+ 23.854,+ "We can also see three equal moves of four units to the right."+ ],+ [+ 27.943,+ "Both pictures describe the same positive product."+ ],+ [+ 30.768,+ "Keep that meaning in mind as the signs change."+ ]+ ]+ },+ "signedGroups": {+ "dur": 36.432,+ "marks": {+ "move": 8.268,+ "result": 19.206+ },+ "cues": [+ [+ 0.104,+ "Keep three groups, but change the value of each group to negative two."+ ],+ [+ 4.974,+ "Each row now contains two negative tiles."+ ],+ [+ 8.268,+ "Three equal moves of negative two go left from zero, to negative two, negative four, and negative six."+ ],+ [+ 15.859,+ "The arrow lengths match the number-line scale."+ ],+ [+ 19.206,+ "Three times negative two equals negative six."+ ],+ [+ 22.721,+ "Six negative tiles have the same value."+ ],+ [+ 25.299,+ "A positive number of negative groups produces a negative total."+ ],+ [+ 29.779,+ "We multiply the magnitudes, three and two, to get six, then keep the negative direction."+ ]+ ]+ },+ "q1": {+ "dur": 7.224,+ "marks": {+ "ask": 1.172+ },+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.172,+ "Three groups of negative two are shown."+ ],+ [+ 3.646,+ "Choose the endpoint that represents their total value."+ ]+ ]+ },+ "opposite": {+ "dur": 47.712,+ "marks": {+ "zero": 6.745,+ "split": 17.344,+ "opposite": 32.695+ },+ "cues": [+ [+ 0.091,+ "A negative multiplier asks for the opposite of the positive-multiplier product."+ ],+ [+ 5.156,+ "Here is the reason."+ ],+ [+ 6.745,+ "Positive three plus negative three is zero."+ ],+ [+ 10.534,+ "Multiply that entire sum by negative two."+ ],+ [+ 14.349,+ "Zero times negative two is zero."+ ],+ [+ 17.344,+ "Multiplying a sum combines the separate products."+ ],+ [+ 21.029,+ "This is called distributing multiplication."+ ],+ [+ 24.557,+ "It gives three times negative two, plus negative three times negative two."+ ],+ [+ 30.013,+ "Those two products must add to zero."+ ],+ [+ 32.695,+ "We already know the first product is negative six."+ ],+ [+ 36.146,+ "Its partner must be positive six."+ ],+ [+ 38.49,+ "Opposites have the same magnitude and opposite signs."+ ],+ [+ 42.513,+ "The negative-times-negative rule keeps multiplication consistent with addition."+ ]+ ]+ },+ "reverse": {+ "dur": 42.96,+ "marks": {+ "reverse": 7.747,+ "result": 24.831+ },+ "cues": [+ [+ 0.078,+ "Watch the actual three two-unit arrows."+ ],+ [+ 3.255,+ "They begin as three leftward moves, totaling negative six."+ ],+ [+ 7.747,+ "Taking the opposite reverses every directed move across zero."+ ],+ [+ 12.956,+ "Each original arrow keeps its length, but now points right."+ ],+ [+ 17.07,+ "Their starts change from zero, negative two, and negative four to zero, positive two, and positive four."+ ],+ [+ 24.831,+ "The endpoint becomes positive six."+ ],+ [+ 27.422,+ "Negative three times negative two is the opposite of three times negative two: the opposite of negative six is positive six."+ ],+ [+ 36.55,+ "We changed direction, not distance."+ ],+ [+ 39.323,+ "Two negative factors therefore give a positive product."+ ]+ ]+ },+ "q2": {+ "dur": 10.248,+ "marks": {+ "ask": 1.094+ },+ "cues": [+ [+ 0.104,+ "Quick check."+ ],+ [+ 1.094,+ "Negative three times negative two takes the opposite of three negative-two moves."+ ],+ [+ 7.734,+ "Choose the matching reversed-arrow picture."+ ]+ ]+ },+ "signPairs": {+ "dur": 38.232,+ "marks": {+ "pp": 3.542,+ "pn": 8.06,+ "np": 12.344,+ "nn": 19.062+ },+ "cues": [+ [+ 0.104,+ "The same reasoning covers all four sign pairs."+ ],+ [+ 3.542,+ "Positive two times positive three gives positive six."+ ],+ [+ 8.06,+ "Positive two times negative three gives negative six."+ ],+ [+ 12.344,+ "Negative two times positive three takes the opposite of positive six, giving negative six."+ ],+ [+ 19.062,+ "Negative two times negative three takes the opposite of negative six, giving positive six."+ ],+ [+ 25.924,+ "With nonzero factors, same signs give a positive product, and different signs give a negative product."+ ],+ [+ 32.982,+ "The sign tells direction; multiplying the absolute values gives magnitude."+ ]+ ]+ },+ "division": {+ "dur": 37.176,+ "marks": {+ "share": 8.073,+ "result": 14.583+ },+ "cues": [+ [+ 0.104,+ "Division finds a missing factor."+ ],+ [+ 2.448,+ "Start with twelve negative tiles and split them equally among three labelled groups."+ ],+ [+ 8.073,+ "Each group receives four of the original negative tiles."+ ],+ [+ 12.37,+ "No tiles are added or removed."+ ],+ [+ 14.583,+ "Negative twelve divided by three equals negative four."+ ],+ [+ 19.115,+ "Check by multiplying: three times negative four equals negative twelve."+ ],+ [+ 24.44,+ "The divisor tells how many equal groups in this picture; the quotient is the signed value in each group."+ ],+ [+ 31.641,+ "The missing-factor relationship also works when a literal group-count picture would be awkward."+ ]+ ]+ },+ "negativeDivisor": {+ "dur": 40.512,+ "marks": {+ "same": 5.625,+ "different": 18.034+ },+ "cues": [+ [+ 0.104,+ "What about a negative divisor?"+ ],+ [+ 2.031,+ "Ask what number multiplied by that divisor gives the dividend."+ ],+ [+ 5.625,+ "Negative twelve divided by negative three asks: negative three times what equals negative twelve?"+ ],+ [+ 12.656,+ "Positive four works."+ ],+ [+ 14.271,+ "Four groups of negative three have total negative twelve."+ ],+ [+ 18.034,+ "Positive twelve divided by negative three asks: negative three times what equals positive twelve?"+ ],+ [+ 25.286,+ "Negative four works, because two negative factors give a positive product."+ ],+ [+ 30.378,+ "So nonzero division follows the same sign rule as multiplication."+ ],+ [+ 35.547,+ "Same signs give a positive quotient; different signs give a negative quotient."+ ]+ ]+ },+ "q3": {+ "dur": 10.296,+ "marks": {+ "ask": 1.133+ },+ "cues": [+ [+ 0.091,+ "Quick check."+ ],+ [+ 1.133,+ "Negative fifteen divided by negative five is a missing-factor question."+ ],+ [+ 6.224,+ "Choose the group picture that checks the quotient by multiplication."+ ]+ ]+ },+ "magnitude": {+ "dur": 44.184,+ "marks": {+ "decimal": 5.794,+ "divide": 27.904+ },+ "cues": [+ [+ 0.104,+ "The sign rule works with fractions and decimals too."+ ],+ [+ 3.581,+ "It is not limited to whole numbers."+ ],+ [+ 5.794,+ "Negative one point five times four has magnitude one point five times four, or six."+ ],+ [+ 12.995,+ "Different signs make the result negative six."+ ],+ [+ 16.562,+ "Changing the factor order does not change a product."+ ],+ [+ 19.766,+ "Four times negative one point five is the same negative six, shown by four moves of one and a half units to the left."+ ],+ [+ 27.904,+ "Negative eighteen divided by six has magnitude eighteen divided by six, or three."+ ],+ [+ 34.232,+ "Its sign is negative."+ ],+ [+ 36.237,+ "The answer is negative three."+ ],+ [+ 38.346,+ "First compute the absolute-value magnitude, then attach the sign appropriate to the operation."+ ]+ ]+ },+ "parity": {+ "dur": 41.472,+ "marks": {+ "pair": 6.458,+ "odd": 20.638+ },+ "cues": [+ [+ 0.143,+ "For a product of several nonzero factors, each negative factor reverses the sign."+ ],+ [+ 6.458,+ "Two reversals cancel as a pair."+ ],+ [+ 8.698,+ "Negative two times three times negative four has two negative factors, so its sign is positive."+ ],+ [+ 16.094,+ "Its magnitude is two times three times four, or twenty-four."+ ],+ [+ 20.638,+ "Multiply by one more negative factor, negative one, and the sign reverses again to negative twenty-four."+ ],+ [+ 27.721,+ "An even number of negative factors gives a positive result; an odd number gives a negative result."+ ],+ [+ 33.815,+ "This parity shortcut also predicts a defined nonzero quotient chain's sign."+ ],+ [+ 39.323,+ "It does not make zero positive."+ ]+ ]+ },+ "chain": {+ "dur": 43.872,+ "marks": {+ "first": 8.164,+ "next": 17.93,+ "parentheses": 21.862+ },+ "cues": [+ [+ 0.104,+ "Multiplication and division have equal priority."+ ],+ [+ 3.815,+ "Work from left to right unless parentheses tell you otherwise."+ ],+ [+ 8.164,+ "For negative twenty-four divided by negative three times negative two, first divide negative twenty-four by negative three."+ ],+ [+ 16.185,+ "That gives positive eight."+ ],+ [+ 17.93,+ "Then eight times negative two gives negative sixteen."+ ],+ [+ 21.862,+ "Now put parentheses around negative three times negative two."+ ],+ [+ 26.797,+ "Compute that product first: positive six."+ ],+ [+ 30.156,+ "Negative twenty-four divided by six is negative four."+ ],+ [+ 33.932,+ "The signs are the same in the two expressions, but the magnitudes differ."+ ],+ [+ 38.815,+ "Counting negative signs cannot tell you which operations to do first."+ ]+ ]+ },+ "zero": {+ "dur": 39.768,+ "marks": {+ "product": 1.992,+ "dividend": 17.695+ },+ "cues": [+ [+ 0.104,+ "Zero needs its own checks."+ ],+ [+ 1.992,+ "Seven empty groups total zero."+ ],+ [+ 4.635,+ "Taking their opposite still gives zero."+ ],+ [+ 7.552,+ "Negative seven times zero is zero."+ ],+ [+ 10.964,+ "A product with a zero factor always equals zero."+ ],+ [+ 14.648,+ "Zero is neither positive nor negative."+ ],+ [+ 17.695,+ "Zero divided by negative five is also zero, because negative five times zero equals zero."+ ],+ [+ 24.896,+ "A zero dividend has quotient zero whenever the divisor is nonzero."+ ],+ [+ 30.117,+ "Counting an odd number of negative signs here would incorrectly predict a negative answer."+ ],+ [+ 36.107,+ "Use the zero rule before the nonzero sign shortcut."+ ]+ ]+ },+ "divideZero": {+ "dur": 36.216,+ "marks": {+ "impossible": 3.633,+ "many": 11.198,+ "undefined": 19.87+ },+ "cues": [+ [+ 0.091,+ "A zero divisor is different from a zero dividend."+ ],+ [+ 3.633,+ "Nine divided by zero would need a number that makes zero times that number equal nine."+ ],+ [+ 9.87,+ "No number works."+ ],+ [+ 11.198,+ "Zero divided by zero would need zero times a number equal zero."+ ],+ [+ 16.211,+ "Every number works, so there is no unique quotient."+ ],+ [+ 19.87,+ "Both expressions are undefined."+ ],+ [+ 22.031,+ "Division requires one definite quotient, and division by zero never supplies it."+ ],+ [+ 27.747,+ "A zero anywhere as a divisor makes a division chain undefined."+ ],+ [+ 32.786,+ "Do not let a sign count hide a zero divisor."+ ]+ ]+ },+ "loss": {+ "dur": 42.096,+ "marks": {+ "total": 7.826,+ "daily": 18.203,+ "amount": 25.208+ },+ "cues": [+ [+ 0.091,+ "A shop's balance falls by eight dollars on each of six days."+ ],+ [+ 3.854,+ "Treat each daily change as negative eight dollars."+ ],+ [+ 7.826,+ "Six times negative eight gives a total signed change of negative forty-eight dollars."+ ],+ [+ 13.49,+ "The six original day segments join into one negative total."+ ],+ [+ 18.203,+ "Divide negative forty-eight by six to recover the daily signed change: negative eight dollars."+ ],+ [+ 25.208,+ "How much money was lost each day?"+ ],+ [+ 27.5,+ "That asks for the positive amount, eight dollars."+ ],+ [+ 30.521,+ "The signed change is negative eight; the amount lost is eight."+ ],+ [+ 34.857,+ "Both describe the same event, but they answer different questions."+ ],+ [+ 38.932,+ "Name the quantity before choosing its sign."+ ]+ ]+ },+ "wrap": {+ "dur": 50.616,+ "marks": {+ "w1": 2.93,+ "w2": 12.8,+ "w3": 19.74,+ "w4": 29.674+ },+ "cues": [+ [+ 0.182,+ "Four ideas hold this chapter together."+ ],+ [+ 2.93,+ "Compute the magnitude and use the signs: for nonzero products and quotients, same signs give positive and different signs give negative."+ ],+ [+ 12.8,+ "A negative multiplier takes the opposite product."+ ],+ [+ 16.263,+ "Division finds a missing multiplication factor."+ ],+ [+ 19.74,+ "In a nonzero product or defined nonzero quotient chain, pair the negative signs."+ ],+ [+ 26.042,+ "Even gives positive; odd gives negative."+ ],+ [+ 29.674,+ "Handle zero separately: a zero product or zero dividend gives zero when division is defined, and any division by zero is undefined."+ ],+ [+ 39.974,+ "Multiplication and division proceed left to right unless parentheses change the order."+ ],+ [+ 46.589,+ "Try the practice with both the calculation and its meaning in view."+ ]+ ]+ },+ "final1": {+ "dur": 8.976,+ "marks": {+ "ask": 2.148+ },+ "cues": [+ [+ 0.104,+ "Chapter practice, set one."+ ],+ [+ 2.148,+ "Multiply and divide with all four sign pairs."+ ],+ [+ 5.625,+ "Check a quotient by multiplying it by the divisor."+ ]+ ]+ },+ "final2": {+ "dur": 10.152,+ "marks": {+ "ask": 2.357+ },+ "cues": [+ [+ 0.091,+ "Chapter practice, set two."+ ],+ [+ 2.357,+ "Track negative factors, work from left to right, respect parentheses, and distinguish zero from undefined division."+ ]+ ]+ },+ "final3": {+ "dur": 9.984,+ "marks": {+ "ask": 2.448+ },+ "cues": [+ [+ 0.104,+ "Chapter practice, set three."+ ],+ [+ 2.448,+ "Distinguish an underwater signed position from positive depth, and a shop's signed daily change from the positive amount lost."+ ]+ ]+ },+ "finish": {+ "dur": 17.376,+ "marks": {+ "end": 0.104+ },+ "cues": [+ [+ 0.104,+ "Chapter thirteen is complete."+ ],+ [+ 2.474,+ "You can explain a positive product of two negative factors, check division with multiplication, and handle zero without guessing."+ ],+ [+ 10.69,+ "Your score keeps first attempts."+ ],+ [+ 12.943,+ "Replay the reversed arrows whenever you want to see why the sign rule works."+ ]+ ]+ }+};diff --git a/site/math-notebook/ch13/audio/en/wrap.mp3 b/site/math-notebook/ch13/audio/en/wrap.mp3new file mode 100644index 0000000..c59a1c4Binary files /dev/null and b/site/math-notebook/ch13/audio/en/wrap.mp3 differdiff --git a/site/math-notebook/ch13/audio/en/zero.mp3 b/site/math-notebook/ch13/audio/en/zero.mp3new file mode 100644index 0000000..c119c3dBinary files /dev/null and b/site/math-notebook/ch13/audio/en/zero.mp3 differdiff --git a/site/math-notebook/ch13/index.html b/site/math-notebook/ch13/index.htmlnew file mode 100644index 0000000..79364ca--- /dev/null+++ b/site/math-notebook/ch13/index.html@@ -0,0 +1,72 @@+<!doctype html>+<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Multiplying and Dividing 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:13,title:'Multiplying and Dividing Positive and Negative Numbers',minutes:14,language:'en'};+const smColor=v=>v>0?POS:v<0?NEG:COL.chalk;+const smV=v=>({t:num(v),fill:smColor(v)}),smOperand=v=>({t:v<0?'('+num(v)+')':num(v),fill:smColor(v)});+const smText=(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 smMath=(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 smTitle=(p,s,sub='')=>{smText(p,s,100,110,.1,43);if(sub)smText(p,sub,100,162,.15,27,COL.dim);};+function smEq(p,parts,t=0,y=780,xEq=800,size=52){const k=parts.indexOf(' = '),a=tokens(p,parts.slice(0,k),{x:xEq-size*.5,y,size,anchor:'end'}),b=tokens(p,parts.slice(k+1),{x:xEq+size*.65,y,size,anchor:'start'});[...a,...b].forEach(e=>{put(e,{o:0});show(e,t)});smMath(p,'=',xEq,y,t,size);return [...a,...b];}+const smCalc=(p,a,op,b,c,t=0,y=780,size=56)=>smEq(p,[smV(a),' '+op+' ',smOperand(b),' = ',smV(c)],t,y,800,size);+function smLine(p,lo=-8,hi=8,u=70,y=560,o=800){const g=G(p);path(g,`M${o+(lo-.4)*u} ${y}H${o+(hi+.4)*u}`,{stroke:COL.chalk,'stroke-width':3});for(let v=lo;v<=hi;v++){path(g,`M${o+v*u} ${y-8}V${y+8}`,{stroke:COL.dim,'stroke-width':2});T(g,num(v),{x:o+v*u,y:y+42,size:27,font:MATH,anchor:'middle',fill:v===0?COL.chalk:COL.dim});}const dot=G(g,{x:o,y}),circle=mk('circle',{r:11,fill:COL.chalk},dot);return {g,u,y,o,x:v=>o+v*u,dot,circle};}+function smArrow(p,a,b,u,y,t=0,id='arrow',o=800){const d=b-a,dir=Math.sign(d),g=G(p,{x:o+a*u,y,o:0});g.dataset.arrowId=id;const shaft=path(g,`M0 0H${d*u}`,{stroke:smColor(d),'stroke-width':5});const head=path(g,`M${d*u-12*dir} -9L${d*u} 0L${d*u-12*dir} 9`,{stroke:smColor(d),'stroke-width':5,fill:'none'});show(g,t,.35);return {g,shaft,head,a,b,u};}+function smHops(l,n,delta,t=0){const arrows=[];for(let i=0;i<n;i++)arrows.push(smArrow(l.g,i*delta,(i+1)*delta,l.u,l.y-110,t+i*.35,'hop-'+i,l.o));tw(l.dot,{x:l.x(n*delta)},t,1.5,lin);tw(l.circle,{c_fill:smColor(n*delta)},t,1.5,lin);return arrows;}+function smTile(p,sign,id,x,y,t=0){const e=tile(p,sign,x,y);e.dataset.tileId=id;tw(e,{o:1,s:1},t,.3,back);return e;}+function smRows(p,n,k,sign,t=0,x=470,y=265,gap=75,rowgap=95){const g=G(p),tiles=[];for(let r=0;r<n;r++){smText(g,'Group '+(r+1),x-115,y+r*rowgap+10,t,25,COL.dim,'end');for(let c=0;c<k;c++)tiles.push(smTile(g,sign,'row-'+r+'-'+c,x+c*gap,y+r*rowgap,t+.04*(r*k+c)));}return {g,tiles,n,k,sign};}+function smReversal(p,m){const l=smLine(p),arrows=smHops(l,3,-2,0);smText(p,'Each arrow: 2 units',280,275,0,30,COL.task,'middle');const original=G(p);smCalc(original,3,'×',-2,-6,0,705,48);const t=m('reverse');hide(original,t-.2,.2);arrows.forEach((a,i)=>{tw(a.g,{y:350+i*160},t,.6,io);tw(a.g,{x:l.x(2*i),r:180},t+.6,2,io);tw(a.g,{y:450},t+2.6,.6,io);tw(a.shaft,{c_stroke:POS},t+.6,2,io);tw(a.head,{c_stroke:POS},t+.6,2,io);});tw(l.dot,{x:l.x(6)},t+.6,2,io);tw(l.circle,{c_fill:POS},t+.6,2,io);show(original,m('result'));smCalc(p,-3,'×',-2,6,m('result'),820,55);return {l,arrows,original};}+const smBlanks=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;};+function smArrowOptions(p){return [-2,2,1].map((d,j)=>{const x=310+j*490,g=G(p);smText(g,String.fromCharCode(65+j),x,265,0,30,COL.dim,'middle');path(g,`M${x-160} 500H${x+170}`,{stroke:COL.dim,'stroke-width':2});for(let v=-6;v<=6;v+=2){path(g,`M${x+v*25} 492V508`,{stroke:COL.dim,'stroke-width':2});smText(g,num(v),x+v*25,540,0,23,v===0?COL.chalk:COL.dim,'middle');}const arrows=[];for(let i=0;i<3;i++)arrows.push(smArrow(g,i*d,(i+1)*d,25,400,0,'choice-'+j+'-'+i,x));smText(g,'3 moves of '+(d>0?'+':'')+d,x,600,0,29,smColor(d),'middle');return {el:g,box:[x-215,280,430,360],label:'3 moves of '+d,arrows};});}+const BEATS=[+['intro','Products, quotients, and signs',(m,D)=>{const g=G(scene,{o:0,y:24});T(g,'Unit 1 · The Number System · Chapter 13',{x:800,y:215,size:28,fill:COL.dim,anchor:'middle'});T(g,'Multiplying and Dividing',{x:800,y:325,size:67,weight:600,anchor:'middle'});T(g,'Positive and Negative Numbers',{x:800,y:420,size:64,weight:600,anchor:'middle'});tw(g,{o:1,y:0},.2,1,out);tokens(g,[{t:'+',fill:POS},' × ',{t:'−',fill:NEG},' ÷'],{x:800,y:565,size:76,anchor:'middle'});smText(g,'Groups · opposites · missing factors',800,685,m('sub'),34,COL.dim,'middle');hide(g,D-.8,.7);}],+['groups','Equal positive groups',m=>{const p=panel(0);smTitle(p,'3 × 4','Three groups · four positive units in each');S.smModel=smRows(p,3,4,1,0,540,270);smText(p,'12 original positive tiles',1100,370,m('count'),31,POS,'middle');const l=smLine(p,0,12,83,620,255);S.smLine=l;smHops(l,3,4,m('total'));smCalc(p,3,'×',4,12,m('count'),810);}],+['signedGroups','Positive groups of negative values',m=>{const p=panel(0);smTitle(p,'3 × (−2)','Three groups · negative two in each');S.smModel=smRows(p,3,2,-1,0,650,250,75,80);const l=smLine(p,-8,8,70,600);S.smLine=l;smHops(l,3,-2,m('move'));smCalc(p,3,'×',-2,-6,m('result'),810);}],+['q1','Quick check',()=>{const p=panel(0);smTitle(p,'3 × (−2)','Three rows of two negative tiles');S.smModel=smRows(p,3,2,-1,0,620,240,75,80);const l=smLine(p,-8,8,70,560);S.smLine=l;S.smChoices=[-6,-5,6].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)-28,l.y-30,56,60],label:num(v)};});},{ask:done=>quiz(BAND,[{id:'c-negative-groups',prompt:'Choose the endpoint for three negative-two groups.',build:pickEls(S.smChoices,0,'Six negative units total −6. Three groups means three equal moves of −2.',i=>i===1?'Count both negative units in each of the three groups: 3×2=6.':'Each group has negative value. A positive group count does not reverse the sign.',()=>pulseFx(S.smChoices[0].el,1.2))}],done)}],+['opposite','Why a negative multiplier reverses',m=>{const p=panel(0);smTitle(p,'Opposite multipliers need opposite products','Distribute multiplication over a sum.');smEq(p,[smV(3),' + ',smOperand(-3),' = ',smV(0)],0,285,600,64);for(let i=0;i<3;i++){const x=1160+i*95;smTile(p,1,'proof-positive-'+i,x,250,0);smTile(p,-1,'proof-negative-'+i,x,325,0);}smMath(p,'(3 + (−3)) × (−2) = 0',800,420,m('zero',2),49);smMath(p,'3 × (−2) + (−3) × (−2) = 0',800,550,m('split'),47);smEq(p,[smV(-6),' + ','?', ' = ',smV(0)],m('opposite'),690,800,64);smText(p,'The missing product must be +6.',800,820,m('opposite',2),38,POS,'middle');}],+['reverse','Reverse the original directed moves',m=>{const p=panel(0);smTitle(p,'(−3) × (−2)','Opposite of 3 × (−2): reverse direction, preserve length.');S.smReversal=smReversal(p,m);}],+['q2','Quick check',()=>{const p=panel(0);smTitle(p,'(−3) × (−2)','Choose the opposite of three −2 moves. Same two-unit arrow length.');S.smChoices=smArrowOptions(p);},{ask:done=>quiz(BAND,[{id:'c-reversed-arrows',prompt:'Which picture represents the reversed product?',build:pickEls(S.smChoices,1,'Picture B reverses each two-unit move: +2,+2,+2 end at +6.',i=>i===0?'Picture A is still 3×(−2). A negative multiplier takes its opposite.':'Picture C reverses direction but changes each length from two units to one. Keep the magnitude.',()=>pulseFx(S.smChoices[1].el,1.04))}],done)}],+['signPairs','Four sign pairs',m=>{const p=panel(0);smTitle(p,'Nonzero factors: same signs +, different signs −');const cases=[[2,3,6,'pp'],[2,-3,-6,'pn'],[-2,3,-6,'np'],[-2,-3,6,'nn']];S.smSignArrows=[];cases.forEach(([a,b,c,k],i)=>{const y=300+i*150,t=m(k);smCalc(p,a,'×',b,c,t,y,49);const x=1230;path(p,`M${x-110} ${y-17}H${x+110}`,{stroke:COL.dim,'stroke-width':1});smText(p,'0',x,y+25,t,24,COL.chalk,'middle');S.smSignArrows.push(smArrow(p,0,c,15,y-17,t,'pair-'+i,x));});}],+['division','Division as a missing factor',m=>{const p=panel(0);smTitle(p,'−12 ÷ 3','Share twelve original negative tiles among three equal groups.');const g=G(p),tiles=[];for(let i=0;i<12;i++)tiles.push(smTile(g,-1,'share-'+i,390+i*68,290,.03*i));for(let j=0;j<3;j++){mk('rect',{x:190+j*430,y:395,width:340,height:240,rx:18,fill:'none',stroke:COL.dim,'stroke-width':2},g);smText(g,'Group '+(j+1),360+j*430,670,0,27,COL.dim,'middle');}tiles.forEach((e,i)=>{const j=i%3,k=Math.floor(i/3);tw(e,{x:320+j*430+(k%2)*80,y:495+Math.floor(k/2)*85},m('share'),1.6,io);});smCalc(p,-12,'÷',3,-4,m('result'),745,54);smCalc(p,3,'×',-4,-12,m('result',2),840,45);S.smDivision={g,tiles};}],+['negativeDivisor','Check a quotient by multiplication',m=>{const p=panel(0);smTitle(p,'A negative divisor: find the missing factor');smCalc(p,-12,'÷',-3,4,0,290,58);smCalc(p,-3,'×',4,-12,m('same',1),390,49);smText(p,'Four groups of −3 total −12',800,460,m('same',2),31,NEG,'middle');for(let r=0;r<4;r++){const x=400+r*265;mk('rect',{x:x-108,y:487,width:216,height:85,rx:13,fill:'none',stroke:COL.dim,'stroke-width':2},p);for(let c=0;c<3;c++)smTile(p,-1,'inverse-'+r+'-'+c,x+(c-1)*60,530,m('same',2));}smCalc(p,12,'÷',-3,-4,m('different'),695,58);smCalc(p,-3,'×',-4,12,m('different',1),800,49);}],+['q3','Quick check',()=>{const p=panel(0);smTitle(p,'−15 ÷ (−5) = ?','The divisor is −5. Which picture shows groups of −5 totaling −15?');S.smChoices=[[-1,3,5],[1,3,5],[-1,5,3]].map(([sign,n,k],j)=>{const x=320+j*490,g=G(p);smText(g,String.fromCharCode(65+j),x,230,0,28,COL.dim,'middle');for(let r=0;r<n;r++){mk('rect',{x:x-165,y:260+r*72,width:330,height:65,rx:12,fill:'none',stroke:COL.dim,'stroke-width':1},g);for(let c=0;c<k;c++)smTile(g,sign,'q3-'+j+'-'+r+'-'+c,x+(c-(k-1)/2)*60,292+r*72);}smText(g,n+' groups of '+(sign>0?'+':'−')+k,x,650,0,28,smColor(sign),'middle');return {el:g,box:[x-185,250,370,375],label:n+' groups of '+sign*k};});},{ask:done=>quiz(BAND,[{id:'c-division-factor',prompt:'Choose the picture that checks (−5) × quotient = −15.',build:pickEls(S.smChoices,0,'Three groups each worth −5 total −15, so the quotient is +3.',i=>i===1?'Three groups of +5 total +15. The divisor and dividend here are negative.':'Five groups of −3 total −15, but each group must have value −5, the divisor.',()=>pulseFx(S.smChoices[0].el,1.03))}],done)}],+['magnitude','Compute magnitude, then sign',m=>{const p=panel(0);smTitle(p,'Signed fractions and decimals follow the same rule');smCalc(p,-1.5,'×',4,-6,0,280,53);smText(p,'Magnitude: 1.5 × 4 = 6',800,360,m('decimal'),31,COL.task,'middle');const l=smLine(p,-6,6,85,530);S.smLine=l;smHops(l,4,-1.5,m('decimal',2));smCalc(p,-18,'÷',6,-3,m('divide'),730,56);smText(p,'Magnitude: 18 ÷ 6 = 3 · different signs → negative',800,825,m('divide'),29,COL.task,'middle');}],+['parity','Pair the negative reversals',m=>{const p=panel(0);smTitle(p,'Count negative factors only for NONZERO results');smCalc(p,-2,'×',-4,8,0,275,48);const row=tokens(p,[smOperand(-2),' × ',smV(3),' × ',smOperand(-4)],{x:800,y:415,size:65,anchor:'middle'});row.forEach(e=>{put(e,{o:0});show(e,m('pair'))});const ring=G(p,{o:0});for(const e of [row[0],row[4]])mk('rect',{x:e._px-70,y:335,width:140,height:115,rx:18,fill:'none',stroke:COL.chalk,'stroke-width':3,'stroke-dasharray':'8 6'},ring);show(ring,m('pair'));smText(p,'2 negative factors: even → +24',800,545,m('pair',2),37,POS,'middle');smMath(p,'(−2) × 3 × (−4) × (−1)',800,690,m('odd'),56);smText(p,'3 negative factors: odd → −24',800,810,m('odd',2),37,NEG,'middle');}],+['chain','Equal priority: left to right',m=>{const p=panel(0);smTitle(p,'Multiplication and division have EQUAL priority');const r=tokens(p,[smV(-24),' ÷ ',smOperand(-3),' × ',smOperand(-2)],{x:800,y:275,size:61,anchor:'middle'});const first=G(p,{o:0});const bx=r[0]._px-r[0]._w/2-16,bw=r[2]._px+r[2]._w/2-bx+16;mk('rect',{x:bx,y:202,width:bw,height:95,rx:14,fill:'none',stroke:COL.chalk,'stroke-width':2,'stroke-dasharray':'7 5'},first);show(first,m('first'));hide(first,m('next'),.2);S.smChain={tokens:r,first,bx,bw};smCalc(p,-24,'÷',-3,8,m('first'),390,51);smCalc(p,8,'×',-2,-16,m('next'),495,51);smText(p,'Parentheses change the grouping:',800,595,m('parentheses'),29,COL.dim,'middle');smMath(p,'−24 ÷ ((−3) × (−2))',800,685,m('parentheses'),54);smCalc(p,-24,'÷',6,-4,m('parentheses',3),805,54);}],+['zero','Zero is neither positive nor negative',m=>{const p=panel(0);smTitle(p,'Zero is a value, not a positive sign');smCalc(p,-7,'×',0,0,0,315,65);for(let j=0;j<7;j++){mk('rect',{x:280+j*150,y:375,width:125,height:100,rx:15,fill:'none',stroke:COL.dim,'stroke-width':2},p);smText(p,'0',342.5+j*150,435,m('product'),30,COL.chalk,'middle');}smText(p,'Seven empty groups total 0; the opposite of 0 is 0',800,550,m('product'),29,COL.chalk,'middle');smCalc(p,0,'÷',-5,0,m('dividend'),695,61);smCalc(p,-5,'×',0,0,m('dividend',1.5),820,49);}],+['divideZero','Division by zero is undefined',m=>{const p=panel(0);smTitle(p,'A divisor of zero never gives a unique quotient');smMath(p,'9 ÷ 0 : 0 × ? = 9',800,300,0,64);smText(p,'No number works.',800,390,m('impossible'),36,COL.dim,'middle');smMath(p,'0 ÷ 0 : 0 × ? = 0',800,550,m('many'),64);smText(p,'Every number works; no unique answer.',800,640,m('many'),34,COL.dim,'middle');smText(p,'Both are UNDEFINED.',800,815,m('undefined'),47,COL.chalk,'middle');}],+['loss','Signed loss or positive amount?',m=>{const p=panel(0);smTitle(p,'Six equal daily changes of −$8','Each original segment represents one day. Scale: 16 px per dollar.');const g=G(p),segments=[];for(let i=0;i<6;i++){const e=G(g,{x:190+i*207,y:300});mk('rect',{width:128,height:70,rx:9,fill:mix(COL.board,NEG,.45),stroke:NEG,'stroke-width':2},e);smText(e,'Day '+(i+1),64,-20,0,25,COL.dim,'middle');smText(e,'−$8',64,45,0,29,NEG,'middle');e.dataset.dayId='day-'+i;segments.push(e);tw(e,{x:416+i*128,y:435},m('total'),1.4,io);}smCalc(p,6,'×',-8,-48,m('total'),625,51);smCalc(p,-48,'÷',6,-8,m('daily'),725,51);smText(p,'Daily signed change: −$8',800,805,m('daily'),31,NEG,'middle');smText(p,'Amount lost each day: $8',800,865,m('amount'),31,COL.task,'middle');S.smLoss={g,segments};}],+['wrap','Keep four ideas together',m=>{const p=panel(0);smTitle(p,'Multiply and divide signed values with a reason');[['Nonzero: same signs +; different signs −.','w1'],['Negative multiplier: opposite. Division: missing factor.','w2'],['Nonzero sign count: even +; odd −.','w3'],['Zero separately; no division by 0; × and ÷ left to right.','w4']].forEach(([s,k],i)=>{const g=G(p,{x:-16,y:270+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:31});tw(g,{x:0,o:1},m(k),.6);});}],+['final1','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-multiply-signs',prompt:'Multiply with all four sign pairs.',build:smBlanks([+{parts:['6 × 7 = ',{box:'42'}],why:'Positive times positive is positive; 6×7=42.'},+{parts:['6 × (−7) = ',{box:'-42'}],why:'Different signs: negative. The magnitude is 42.'},+{parts:['(−6) × 7 = ',{box:'-42'}],why:'The opposite of 6×7 is −42.'},+{parts:['(−6) × (−7) = ',{box:'42'}],why:'The opposite of 6×(−7), or −42, is +42.'}+])},{id:'p-divide-signs',prompt:'Divide. Check the result by multiplying by the divisor.',build:smBlanks([+{parts:['45 ÷ 5 = ',{box:'9'}],why:'5×9=45.'},+{parts:['45 ÷ (−5) = ',{box:'-9'}],why:'(−5)×(−9)=45.'},+{parts:['−45 ÷ 5 = ',{box:'-9'}],why:'5×(−9)=−45.'},+{parts:['−45 ÷ (−5) = ',{box:'9'}],why:'(−5)×9=−45.'}+])}],done,'Chapter practice 1 of 3')}],+['final2','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-chains',prompt:'Use nonzero sign parity, left-to-right order, and parentheses.',build:smBlanks([+{parts:['(−2) × (−3) × (−4) = ',{box:'-24'}],why:'Three negative factors: odd gives negative; magnitude 2×3×4=24.'},+{parts:['−36 ÷ (−3) × (−2) = ',{box:'-24'}],why:'Left to right: −36÷(−3)=12; 12×(−2)=−24.'},+{parts:['−36 ÷ ((−3) × (−2)) = ',{box:'-6'}],why:'Parentheses first: (−3)×(−2)=6; −36÷6=−6.'},+{parts:['(−1.5) × 2 = ',{box:'-3'}],why:'Magnitude 1.5×2=3; different signs give −3.'}+])},{id:'p-zero',prompt:'Classify the value. Zero is neither positive nor negative; a zero divisor is undefined.',build:grid([+{parts:['(−11) × 0'],ans:['z'],why:'A product with zero is zero, irrespective of negative signs.'},+{parts:['0 ÷ (−8)'],ans:['z'],why:'The divisor is nonzero: (−8)×0=0, so the quotient is zero.'},+{parts:['−8 ÷ 0'],ans:['u'],why:'No number multiplied by zero gives −8. Division by zero is undefined.'},+{parts:['0 ÷ 0'],ans:['u'],why:'Every number multiplied by zero gives zero; no unique quotient. Undefined.'}+],[['p','positive',POS],['n','negative',NEG],['z','zero',COL.chalk],['u','undefined',COL.dim]],{multi:false})}],done,'Chapter practice 2 of 3')}],+['final3','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-depth',prompt:'A camera starts at sea level (0 m). Its height changes by −3 m each second for 7 seconds.',build:smBlanks([+{parts:['Signed position = ',{box:'-21'},' m'],why:'7×(−3)=−21m relative to sea level.'},+{parts:['Positive depth below sea level = ',{box:'21'},' m'],why:'The distance below sea level is the magnitude, 21m.'}+])},{id:'p-loss',prompt:'A shop has a total signed change of −$63 over 7 days, with the same loss each day.',build:smBlanks([+{parts:['Daily signed change = $ ',{box:'-9'}],why:'−63÷7=−9 dollars per day.'},+{parts:['Positive amount lost each day = $ ',{box:'9'}],why:'The daily loss amount is the magnitude, 9 dollars.'}+])}],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.htmlindex 28134ef..8336663 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], ['Adding Positive and Negative Numbers', 12], ['Subtracting Positive and Negative Numbers', 13]]],+ ['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], ['Subtracting Positive and Negative Numbers', 13], ['Multiplying and Dividing Positive and Negative Numbers', 14]]],];const HUES = ['#f4a48c', '#86c9e8', '#f3c95c', '#e8a0c8', '#8fd6b0', '#bba8ee', '#f0b45a'];const id = n => 'ch' + String(n).padStart(2, '0');