Skip to content

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

feat(math): add decimal division chapter

yzrfe2fe977644c
diff --git a/site/index.html b/site/index.html
index f9408c8..c1dd610 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, 9 narrated chapters">
- <span class="book-caption"><strong>Elementary Mathematics <span aria-hidden="true">↗</span></strong><small>9 narrated chapters</small></span>
+ <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>
<span class="physics-pending">Physics · Coming soon</span>
</section>
diff --git a/site/lib/bookshelf.js b/site/lib/bookshelf.js
index 9bc5871..d7d65a3 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: 9 },
+ chapterBase: 'math-notebook/', chapters: 10 },
];
for (const book of books) {
const cover = document.querySelector(`[data-book="${book.id}"]`);
diff --git a/site/math-notebook/ch09/index.html b/site/math-notebook/ch09/index.html
index 1bb0eb5..eebcbf8 100644
--- a/site/math-notebook/ch09/index.html
+++ b/site/math-notebook/ch09/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>Multiplying 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:9,title:'Multiplying Decimals',minutes:12,language:'en'};
+const CHAPTER={number:9,title:'Multiplying Decimals',minutes:12,language:'en', next: '../ch10/' };
const dmText=(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 dmMath=(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 dmTitle=(p,s,sub='')=>{dmText(p,s,100,115,.1,43);if(sub)dmText(p,sub,100,165,.15,27,COL.dim);};
diff --git a/site/math-notebook/ch10/audio/en/final1.mp3 b/site/math-notebook/ch10/audio/en/final1.mp3
new file mode 100644
index 0000000..52ef74e
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/final1.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/final2.mp3 b/site/math-notebook/ch10/audio/en/final2.mp3
new file mode 100644
index 0000000..27f9126
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/final2.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/final3.mp3 b/site/math-notebook/ch10/audio/en/final3.mp3
new file mode 100644
index 0000000..d6b8664
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/final3.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/finish.mp3 b/site/math-notebook/ch10/audio/en/finish.mp3
new file mode 100644
index 0000000..75bf46e
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/finish.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/hundredths.mp3 b/site/math-notebook/ch10/audio/en/hundredths.mp3
new file mode 100644
index 0000000..cbf7e0f
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/hundredths.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/intro.mp3 b/site/math-notebook/ch10/audio/en/intro.mp3
new file mode 100644
index 0000000..4290113
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/intro.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/longstart.mp3 b/site/math-notebook/ch10/audio/en/longstart.mp3
new file mode 100644
index 0000000..9018ba8
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/longstart.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/minimum.mp3 b/site/math-notebook/ch10/audio/en/minimum.mp3
new file mode 100644
index 0000000..87e2a09
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/minimum.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/q1.mp3 b/site/math-notebook/ch10/audio/en/q1.mp3
new file mode 100644
index 0000000..f15e53c
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/q1.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/q2.mp3 b/site/math-notebook/ch10/audio/en/q2.mp3
new file mode 100644
index 0000000..4b7877c
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/q2.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/q3.mp3 b/site/math-notebook/ch10/audio/en/q3.mp3
new file mode 100644
index 0000000..c9f37e7
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/q3.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/rate.mp3 b/site/math-notebook/ch10/audio/en/rate.mp3
new file mode 100644
index 0000000..946fdbf
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/rate.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/rule.mp3 b/site/math-notebook/ch10/audio/en/rule.mp3
new file mode 100644
index 0000000..51edde4
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/rule.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/same.mp3 b/site/math-notebook/ch10/audio/en/same.mp3
new file mode 100644
index 0000000..28524ff
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/same.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/shift.mp3 b/site/math-notebook/ch10/audio/en/shift.mp3
new file mode 100644
index 0000000..131f85f
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/shift.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/sizes.mp3 b/site/math-notebook/ch10/audio/en/sizes.mp3
new file mode 100644
index 0000000..9c843d7
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/sizes.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/tenths.mp3 b/site/math-notebook/ch10/audio/en/tenths.mp3
new file mode 100644
index 0000000..fe70d0f
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/tenths.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/terms.mp3 b/site/math-notebook/ch10/audio/en/terms.mp3
new file mode 100644
index 0000000..05df6df
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/terms.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/thousandths.mp3 b/site/math-notebook/ch10/audio/en/thousandths.mp3
new file mode 100644
index 0000000..246e3b9
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/thousandths.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/timings.js b/site/math-notebook/ch10/audio/en/timings.js
new file mode 100644
index 0000000..893d5f3
--- /dev/null
+++ b/site/math-notebook/ch10/audio/en/timings.js
@@ -0,0 +1,635 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 18.48,
+ "marks": {
+ "sub": 2.773
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter ten."
+ ],
+ [
+ 1.211,
+ "Dividing decimals."
+ ],
+ [
+ 2.773,
+ "Division asks how many groups of a given size fit into an amount."
+ ],
+ [
+ 7.513,
+ "A decimal group can be smaller than one, and the number of groups can be smaller than one too."
+ ],
+ [
+ 13.216,
+ "We will make the divisor easier to use, while keeping the answer exactly the same."
+ ]
+ ]
+ },
+ "terms": {
+ "dur": 28.848,
+ "marks": {
+ "dividend": 6.484,
+ "divisor": 10.443,
+ "groups": 14.427
+ },
+ "cues": [
+ [
+ 0.091,
+ "Look at one point eight meters of ribbon, cut into pieces of zero point three meter each."
+ ],
+ [
+ 6.393,
+ "The dividend is the amount being divided: one point eight."
+ ],
+ [
+ 10.378,
+ "The divisor is the size of each group: zero point three."
+ ],
+ [
+ 14.362,
+ "The six equal sections show that six pieces fit."
+ ],
+ [
+ 18.294,
+ "Six is the quotient, the answer."
+ ],
+ [
+ 20.924,
+ "Dividend divided by divisor equals quotient."
+ ],
+ [
+ 24.128,
+ "Keep those three jobs straight, even when the numbers have decimal points."
+ ]
+ ]
+ },
+ "same": {
+ "dur": 26.472,
+ "marks": {
+ "scale": 2.76,
+ "answer": 20.703
+ },
+ "cues": [
+ [
+ 0.104,
+ "Keep your eyes on the same six sections."
+ ],
+ [
+ 2.76,
+ "Multiply both the total amount and each group size by ten."
+ ],
+ [
+ 7.096,
+ "One point eight becomes eighteen, and zero point three becomes three."
+ ],
+ [
+ 12.018,
+ "The numbers now count tenths of a meter."
+ ],
+ [
+ 14.466,
+ "Nothing has been added to the ribbon."
+ ],
+ [
+ 16.224,
+ "Eighteen tenths divided by three tenths is still six groups."
+ ],
+ [
+ 20.703,
+ "The quotient stays six because the total and the group size changed by the same factor."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 5.952,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.081,
+ "Choose the bar that scales both labels by ten and keeps the same quotient."
+ ]
+ ]
+ },
+ "rule": {
+ "dur": 30.36,
+ "marks": {
+ "both": 2.005,
+ "cancel": 12.396,
+ "nonzero": 17.057
+ },
+ "cues": [
+ [
+ 0.13,
+ "Here is the general rule."
+ ],
+ [
+ 2.005,
+ "Multiply both the dividend and the divisor by the same power of ten."
+ ],
+ [
+ 7.148,
+ "Ten, one hundred, or one thousand can clear the divisor\u2019s decimal places."
+ ],
+ [
+ 12.396,
+ "The common factor cancels in the fraction, so the quotient does not change."
+ ],
+ [
+ 17.057,
+ "The divisor must be nonzero."
+ ],
+ [
+ 19.674,
+ "Division by zero is undefined: no number of zero-size groups can make a nonzero amount, and zero divided by zero does not have one unique answer."
+ ]
+ ]
+ },
+ "shift": {
+ "dur": 30.456,
+ "marks": {
+ "move": 12.135,
+ "whole": 18.607,
+ "answer": 21.719
+ },
+ "cues": [
+ [
+ 0.104,
+ "Try four point six eight divided by zero point one two."
+ ],
+ [
+ 4.193,
+ "The divisor has two fractional places, so use one hundred."
+ ],
+ [
+ 8.307,
+ "The faint trailing zeros do not change either value."
+ ],
+ [
+ 12.135,
+ "Both decimal points move two places to the right, because both numbers are multiplied by one hundred."
+ ],
+ [
+ 18.607,
+ "We get four hundred sixty-eight divided by twelve."
+ ],
+ [
+ 21.719,
+ "Twelve times thirty-nine is four hundred sixty-eight, so the quotient is thirty-nine."
+ ],
+ [
+ 26.94,
+ "Moving just one decimal point would change the answer."
+ ]
+ ]
+ },
+ "minimum": {
+ "dur": 29.4,
+ "marks": {
+ "move": 7.318,
+ "whole": 12.279
+ },
+ "cues": [
+ [
+ 0.104,
+ "Now take zero point two seven divided by zero point four."
+ ],
+ [
+ 4.948,
+ "The divisor needs just one shift."
+ ],
+ [
+ 7.318,
+ "Multiply both numbers by ten: two point seven divided by four."
+ ],
+ [
+ 12.279,
+ "The divisor is whole, so we are ready for long division."
+ ],
+ [
+ 16.133,
+ "The dividend still has a decimal, and that is fine."
+ ],
+ [
+ 19.714,
+ "You may scale both numbers further if you want, but you do not need to make the dividend whole."
+ ],
+ [
+ 25.091,
+ "The smallest useful power of ten is chosen from the divisor."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 4.536,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.081,
+ "Choose the board that multiplies both numbers by ten."
+ ]
+ ]
+ },
+ "longstart": {
+ "dur": 31.296,
+ "marks": {
+ "point": 7.839,
+ "zero": 19.141
+ },
+ "cues": [
+ [
+ 0.104,
+ "We will divide two point seven by four."
+ ],
+ [
+ 2.995,
+ "Start with the dividend inside the division bracket and the divisor outside."
+ ],
+ [
+ 7.839,
+ "Put the quotient\u2019s decimal point directly above the dividend\u2019s decimal point."
+ ],
+ [
+ 12.904,
+ "Four does not fit once into two whole units, so write zero in the quotient\u2019s ones place."
+ ],
+ [
+ 19.141,
+ "Writing two point seven as two point seven zero zero does not change its value."
+ ],
+ [
+ 25.065,
+ "Those zeros let us exchange remainders into smaller units and continue without rounding."
+ ]
+ ]
+ },
+ "tenths": {
+ "dur": 30.456,
+ "marks": {
+ "digit": 4.414,
+ "subtract": 12.969,
+ "exchange": 18.125
+ },
+ "cues": [
+ [
+ 0.104,
+ "Two whole units and seven tenths are twenty-seven tenths."
+ ],
+ [
+ 4.414,
+ "Four groups can each receive six tenths, because four times six is twenty-four."
+ ],
+ [
+ 10.13,
+ "Write six in the quotient\u2019s tenths column."
+ ],
+ [
+ 12.969,
+ "Subtract twenty-four tenths from twenty-seven tenths."
+ ],
+ [
+ 16.667,
+ "Three tenths remain."
+ ],
+ [
+ 18.125,
+ "Exchange those three tenths for thirty hundredths."
+ ],
+ [
+ 22.266,
+ "Bring down the next zero to record that exchange."
+ ],
+ [
+ 25.56,
+ "The amount is unchanged; only the unit we count is smaller."
+ ]
+ ]
+ },
+ "hundredths": {
+ "dur": 28.152,
+ "marks": {
+ "digit": 3.854,
+ "subtract": 11.133,
+ "exchange": 14.18
+ },
+ "cues": [
+ [
+ 0.104,
+ "We now have thirty hundredths to share among four groups."
+ ],
+ [
+ 3.854,
+ "Each group gets seven hundredths, using twenty-eight hundredths altogether."
+ ],
+ [
+ 8.594,
+ "The seven belongs in the hundredths column."
+ ],
+ [
+ 11.133,
+ "Thirty minus twenty-eight leaves two hundredths."
+ ],
+ [
+ 14.18,
+ "Exchange two hundredths for twenty thousandths, and bring down the next zero."
+ ],
+ [
+ 19.44,
+ "Each new quotient digit stays directly above the dividend column being used."
+ ],
+ [
+ 24.922,
+ "Place value keeps the calculation organized."
+ ]
+ ]
+ },
+ "thousandths": {
+ "dur": 29.52,
+ "marks": {
+ "digit": 2.122,
+ "subtract": 6.927,
+ "check": 12.643
+ },
+ "cues": [
+ [
+ 0.104,
+ "Twenty thousandths remain."
+ ],
+ [
+ 2.122,
+ "Four groups each get five thousandths."
+ ],
+ [
+ 4.961,
+ "Four times five is twenty, so the remainder is zero."
+ ],
+ [
+ 8.62,
+ "We have an exact answer: zero point six seven five."
+ ],
+ [
+ 12.643,
+ "Multiply to check: zero point six seven five times four equals two point seven."
+ ],
+ [
+ 19.076,
+ "Since we scaled the original dividend and divisor equally, zero point two seven divided by zero point four has the same quotient."
+ ],
+ [
+ 27.591,
+ "No rounding was needed."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 6.672,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.12,
+ "Choose the quotient whose digits and decimal point occupy the correct columns."
+ ]
+ ]
+ },
+ "sizes": {
+ "dur": 33.504,
+ "marks": {
+ "small": 4.727,
+ "large": 14.036
+ },
+ "cues": [
+ [
+ 0.104,
+ "Does division always make a number smaller?"
+ ],
+ [
+ 2.904,
+ "Look at these group sizes."
+ ],
+ [
+ 4.727,
+ "One point two divided by zero point two is six."
+ ],
+ [
+ 8.438,
+ "Six small groups fit in the amount, so the quotient is larger than the dividend."
+ ],
+ [
+ 14.036,
+ "One point two divided by two is zero point six."
+ ],
+ [
+ 17.93,
+ "The amount fills only six tenths of one two-unit group, so the quotient is less than one."
+ ],
+ [
+ 24.714,
+ "For a positive dividend, dividing by a positive number below one makes it larger."
+ ],
+ [
+ 30.326,
+ "Dividing by a number above one makes it smaller."
+ ]
+ ]
+ },
+ "unequal": {
+ "dur": 29.76,
+ "marks": {
+ "scale": 8.555,
+ "answer": 16.784,
+ "check": 20.091
+ },
+ "cues": [
+ [
+ 0.104,
+ "The numbers do not need matching decimal lengths."
+ ],
+ [
+ 3.685,
+ "Try zero point zero six three divided by zero point one five."
+ ],
+ [
+ 8.555,
+ "The divisor has two fractional places, so multiply both by one hundred."
+ ],
+ [
+ 13.854,
+ "We get six point three divided by fifteen."
+ ],
+ [
+ 16.784,
+ "The exact quotient is zero point four two."
+ ],
+ [
+ 20.091,
+ "Fifteen times zero point four two is six point three."
+ ],
+ [
+ 23.763,
+ "That multiplication checks the division, even though the scaled dividend was still a decimal."
+ ]
+ ]
+ },
+ "rate": {
+ "dur": 30.096,
+ "marks": {
+ "divide": 7.318,
+ "answer": 15.234,
+ "check": 18.711
+ },
+ "cues": [
+ [
+ 0.104,
+ "A pump transfers nine point six liters in two point five minutes."
+ ],
+ [
+ 4.57,
+ "Find its average rate in liters per minute."
+ ],
+ [
+ 7.318,
+ "Divide the total liters by the total minutes."
+ ],
+ [
+ 10.26,
+ "Multiply both numbers by ten to get ninety-six divided by twenty-five."
+ ],
+ [
+ 15.234,
+ "The quotient is three point eight four liters per minute."
+ ],
+ [
+ 18.711,
+ "Check the units and the number: three point eight four liters per minute times two point five minutes is nine point six liters."
+ ],
+ [
+ 27.031,
+ "A rate tells how much happens in one unit of time."
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 28.128,
+ "marks": {
+ "w1": 2.109,
+ "w2": 7.435,
+ "w3": 12.201,
+ "w4": 22.513
+ },
+ "cues": [
+ [
+ 0.104,
+ "Keep four ideas together."
+ ],
+ [
+ 2.109,
+ "Name the dividend, divisor, and quotient."
+ ],
+ [
+ 5.143,
+ "The divisor cannot be zero."
+ ],
+ [
+ 7.435,
+ "Scale both numbers by the same power of ten until the divisor is whole."
+ ],
+ [
+ 12.201,
+ "Place the quotient\u2019s decimal point above the dividend\u2019s, and exchange remainders into smaller units."
+ ],
+ [
+ 18.932,
+ "Trailing zeros keep the value unchanged."
+ ],
+ [
+ 22.513,
+ "Check by multiplying quotient times divisor."
+ ],
+ [
+ 25.599,
+ "Watch the size and the units too."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 7.104,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice, set one."
+ ],
+ [
+ 2.266,
+ "Divide exactly."
+ ],
+ [
+ 3.633,
+ "Take a moment to choose the scale before calculating."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 9.144,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice, set two."
+ ],
+ [
+ 2.148,
+ "These numbers have different decimal lengths."
+ ],
+ [
+ 4.922,
+ "Keep both shifts equal and every place value exact."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 9.048,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice, set three."
+ ],
+ [
+ 2.513,
+ "Decide which amount is the dividend and which is the divisor."
+ ],
+ [
+ 6.641,
+ "Give each answer with the units shown."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 5.52,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter complete."
+ ],
+ [
+ 1.393,
+ "Both numbers scale together, and the quotient keeps its value."
+ ]
+ ]
+ }
+};
diff --git a/site/math-notebook/ch10/audio/en/unequal.mp3 b/site/math-notebook/ch10/audio/en/unequal.mp3
new file mode 100644
index 0000000..53dc2cf
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/unequal.mp3 differ
diff --git a/site/math-notebook/ch10/audio/en/wrap.mp3 b/site/math-notebook/ch10/audio/en/wrap.mp3
new file mode 100644
index 0000000..4776d2c
Binary files /dev/null and b/site/math-notebook/ch10/audio/en/wrap.mp3 differ
diff --git a/site/math-notebook/ch10/index.html b/site/math-notebook/ch10/index.html
new file mode 100644
index 0000000..b25a685
--- /dev/null
+++ b/site/math-notebook/ch10/index.html
@@ -0,0 +1,77 @@
+<!doctype html>
+<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 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);};
+function ddBar(p,{x=220,y=360,w=1080,h=110,n=6,total='1.8',group='0.3',t=0}={}){
+ const g=G(p,{x,y,o:0});g.dataset.groups=String(n);g.dataset.total=total;g.dataset.divisor=group;show(g,t);
+ for(let i=0;i<n;i++)mk('rect',{x:i*w/n,y:0,width:w/n,height:h,fill:COL.whole,'fill-opacity':i%2?.22:.38,stroke:COL.whole,'stroke-width':2},g);
+ path(g,`M0 -25V-38H${w}V-25`,{stroke:COL.chalk,'stroke-width':2});
+ const a=T(g,total,{x:w/2,y:-58,size:45,anchor:'middle'}),b=T(g,group,{x:w/(2*n),y:h+48,size:36,fill:COL.task,anchor:'middle'});
+ return {g,a,b,w,h,n};
+}
+function ddScale(p,digits,label,{x=520,y=330,step=125,shift=1,t=0,tm=1}={}){
+ const g=G(p,{x,y,o:0});show(g,t);ddText(g,label,-240,10,t,29,COL.dim);
+ digits.forEach((d,i)=>{mk('rect',{x:i*step-48,y:-64,width:96,height:99,rx:9,fill:'none',stroke:COL.faint,'stroke-width':2},g);T(g,d,{x:i*step,y:10,size:66,font:'monospace',anchor:'middle',fill:i>2?COL.dim:COL.chalk});});
+ const dot=T(g,'.',{x:step*.5,y:10,size:76,font:'monospace',fill:COL.task,anchor:'middle'});dot.dataset.shift=String(shift);dot.dataset.origin=String(step*.5);dot.dataset.target=String((shift+.5)*step);tw(dot,{x:(shift+.5)*step},tm,1.4,io);
+ const a=path(g,`M${step*.5} 64H${(shift+.5)*step}m-12 -8 12 8-12 8`,{stroke:COL.task,'stroke-width':3},{d:0});draw(a,tm,1.4);ddText(g,'× '+10**shift,700,8,tm,33,COL.task);return {g,dot};
+}
+function ddBoard(p,j,top,bot){const x=125+j*490,g=G(p);ddText(g,String.fromCharCode(65+j),x+200,265,.1,29,COL.dim,'middle');ddMath(g,top+' ÷ '+bot,x+200,415,.1,51);ddText(g,j===0?'×10 to both':j===1?'×10 to dividend only':'×100 and ×10',x+200,535,.1,28,COL.task,'middle');return {el:g,box:[x-5,290,415,300],label:top+' divided by '+bot};}
+function ddLong(p,stage=0,times={}){
+ const g=G(p,{x:220,y:225}),sz=55,xs=[340,430,520,610],rows=[125,210,290,370,450,530,610];
+ g.dataset.dividend='2.700';g.dataset.divisor='4';g.dataset.quotient='0.675';
+ const digit=(s,i,y,t=0,col=COL.chalk)=>ddText(g,s,xs[i],y,t,sz,col,'middle');
+ ddText(g,'4',225,rows[0],0,sz);path(g,`M280 140V44H670`,{stroke:COL.chalk,'stroke-width':3});
+ ['2','7','0','0'].forEach((s,i)=>digit(s,i,rows[0],i>1?(times.zero??0):0,i>1?COL.dim:COL.chalk));
+ ddText(g,'.',385,rows[0],0,sz,COL.task,'middle');digit('0',0,20,times.point??0);ddText(g,'.',385,20,times.point??0,sz,COL.task,'middle');
+ path(g,'M385 35V95',{stroke:COL.task,'stroke-width':1.5,'stroke-dasharray':'5 5'});
+ const ts=n=>stage===n?(times.subtract??0):0,td=n=>stage===n?(times.digit??0):0,te=n=>stage===n?(times.exchange??0):0;
+ if(stage>=1){digit('6',1,20,td(1),COL.task);digit('2',0,rows[1],ts(1));digit('4',1,rows[1],ts(1));ddText(g,'−',265,rows[1],ts(1),sz);const ln=path(g,'M310 233H466',{stroke:COL.chalk,'stroke-width':2},{d:0});draw(ln,ts(1),.3);digit('3',1,rows[2],ts(1));digit('0',2,rows[2],te(1),COL.task);const a=path(g,'M520 150V270m-8 -12 8 12 8-12',{stroke:COL.task,'stroke-width':2},{d:0});draw(a,te(1),.7);}
+ if(stage>=2){digit('7',2,20,td(2),COL.task);digit('2',1,rows[3],ts(2));digit('8',2,rows[3],ts(2));ddText(g,'−',355,rows[3],ts(2),sz);const ln=path(g,'M400 393H556',{stroke:COL.chalk,'stroke-width':2},{d:0});draw(ln,ts(2),.3);digit('2',2,rows[4],ts(2));digit('0',3,rows[4],te(2),COL.task);const a=path(g,'M610 150V430m-8 -12 8 12 8-12',{stroke:COL.task,'stroke-width':2},{d:0});draw(a,te(2),.7);}
+ if(stage>=3){digit('5',3,20,td(3),COL.task);digit('2',2,rows[5],ts(3));digit('0',3,rows[5],ts(3));ddText(g,'−',445,rows[5],ts(3),sz);const ln=path(g,'M490 553H646',{stroke:COL.chalk,'stroke-width':2},{d:0});draw(ln,ts(3),.3);digit('0',3,rows[6],ts(3),COL.task);}
+ return g;
+}
+function ddQuotient(p,j,ds){const x=155+j*495,g=G(p),step=72;ddText(g,String.fromCharCode(65+j),x+150,245,.1,29,COL.dim,'middle');ds.forEach((d,i)=>ddText(g,d,x+i*step,365,.1,54,COL.task,'middle'));['2','7','0','0'].forEach((d,i)=>ddText(g,d,x+i*step,490,.1,54,COL.chalk,'middle'));ddText(g,'.',x+step*.5,365,.1,54,COL.task,'middle');ddText(g,'.',x+step*.5,490,.1,54,COL.task,'middle');path(g,`M${x-40} 405H${x+328}`,{stroke:COL.chalk,'stroke-width':2});ddText(g,'dividend 2.700',x+140,585,.1,28,COL.dim,'middle');return {el:g,box:[x-40,280,368,330],label:['0.675','6.75','0.0675'][j]};}
+const BEATS=[
+['intro','Same-sized groups',(m,D)=>{const g=G(scene,{o:0,y:24});T(g,'Unit 1 · The Number System · Chapter 10',{x:800,y:265,size:28,fill:COL.dim,anchor:'middle'});T(g,'Dividing',{x:800,y:375,size:82,weight:600,anchor:'middle'});T(g,'Decimals',{x:800,y:475,size:82,weight:600,anchor:'middle'});tw(g,{o:1,y:0},.2,1,out);ddMath(g,'1.8 ÷ 0.3',800,590,.6,60);const s=ddText(scene,'How many groups fit?',800,710,m('sub'),34,COL.dim,'middle');hide(g,D-.8,.7);hide(s,D-.8,.7);}],
+['terms','Three jobs in division',m=>{const p=panel(0);ddTitle(p,'1.8 meters ÷ 0.3 meter per piece');ddBar(p);ddText(p,'dividend · total amount',420,240,m('dividend'),32,COL.chalk,'middle');ddText(p,'divisor · size of one group',1150,240,m('divisor'),32,COL.task,'middle');ddMath(p,'1.8 ÷ 0.3 = 6',800,665,m('groups'),64);ddText(p,'quotient · number of pieces',800,750,m('groups',2),34,COL.dim,'middle');}],
+['same','Count the same ribbon in tenths',m=>{const p=panel(0);ddTitle(p,'Scale the total AND each group','Same ribbon · same six sections · different counting unit');const b=ddBar(p);hide(b.a,m('scale'),.5);hide(b.b,m('scale'),.5);ddText(b.g,'18 tenths',540,-58,m('scale',.5),45,COL.chalk,'middle');ddText(b.g,'3 tenths',90,158,m('scale',.5),36,COL.task,'middle');ddMath(p,'1.8 ÷ 0.3 = 18 ÷ 3 = 6',800,675,m('answer'),57);ddText(p,'×10 to BOTH → same number of groups',800,785,m('scale',1),34,COL.task,'middle');}],
+['q1','Quick check',()=>{const p=panel(0);ddTitle(p,'Original: 1.8 ÷ 0.3 = 6','Which option scales BOTH labels by ten and keeps six groups?');S.ddBars=[0,1,2].map(j=>{const x=150+j*500,b=ddBar(p,{x,y:345,w:310,h:105,total:j===0?'18':j===1?'18':'1.8',group:j===0?'3':j===1?'0.3':'3'});ddText(p,String.fromCharCode(65+j)+' · proposed labels',x+155,245,0,27,COL.dim,'middle');ddText(p,j===0?'18 ÷ 3':j===1?'18 ÷ 0.3':'1.8 ÷ 3',x+155,570,0,39,COL.chalk,'middle');return {el:b.g,box:[x-30,260,370,355],label:['18 divided by 3','18 divided by 0.3','1.8 divided by 3'][j]};});ddText(p,'Candidate labels must agree with the six equal sections.',800,635,0,26,COL.dim,'middle');},{ask:done=>quiz(BAND,[{id:'c-scale',prompt:'Choose the correctly relabelled bar.',build:pickEls(S.ddBars,0,'A multiplies BOTH numbers by 10: 18÷3=6. Each of the six sections is 3 tenths.',i=>i===1?'B scales only the total. 18÷0.3=60, so those labels do not describe six equal groups.':'C scales only the divisor. 1.8÷3=0.6, not six groups.',()=>pulseFx(S.ddBars[0].el,1.02))}],done)}],
+['rule','Why the quotient stays the same',m=>{const p=panel(0);ddTitle(p,'Same factor on top and bottom','Dividend a · divisor b · b ≠ 0');frac(p,['a'],['b'],590,350,m('both'),{size:63,anchor:'middle'});ddMath(p,'=',740,375,m('both'),63);frac(p,['a × 10',E('k')],['b × 10',E('k')],990,350,m('both'),{size:63,anchor:'middle'});ddText(p,'same nonzero factor',800,520,m('both'),34,COL.task,'middle');ddText(p,'The common factor cancels.',800,625,m('cancel'),38,COL.chalk,'middle');ddText(p,'Divisor 0: undefined',800,780,m('nonzero'),38,COL.task,'middle');}],
+['shift','Both decimal points move together',m=>{const p=panel(0);ddTitle(p,'4.68 ÷ 0.12','Faint trailing zeros keep the value unchanged.');S.ddShift=[ddScale(p,['4','6','8','0','0'],'dividend',{shift:2,tm:m('move')}),ddScale(p,['0','1','2','0','0'],'divisor',{y:520,shift:2,tm:m('move')})];ddText(p,'468 ÷ 12',800,710,m('whole'),53,COL.chalk,'middle');ddText(p,'468 ÷ 12 = 39',800,805,m('answer'),53,COL.task,'middle');}],
+['minimum','Make the divisor whole',m=>{const p=panel(0);ddTitle(p,'0.27 ÷ 0.4','Only ONE shift is needed for the divisor.');S.ddShift=[ddScale(p,['0','2','7','0','0'],'dividend',{shift:1,tm:m('move')}),ddScale(p,['0','4','0','0','0'],'divisor',{y:520,shift:1,tm:m('move')})];ddMath(p,'2.7 ÷ 4',800,710,m('whole'),59,COL.task);ddText(p,'A decimal dividend is fine.',800,805,m('whole',2),36,COL.dim,'middle');}],
+['q2','Quick check',()=>{const p=panel(0);ddTitle(p,'0.27 ÷ 0.4','Which transformation multiplies BOTH numbers by ten?');S.ddBoards=[ddBoard(p,0,'2.7','4'),ddBoard(p,1,'2.7','0.4'),ddBoard(p,2,'27','4')];},{ask:done=>quiz(BAND,[{id:'c-move',prompt:'Choose the equivalent division with a whole divisor.',build:pickEls(S.ddBoards,0,'A uses ×10 on both numbers. 2.7÷4 has exactly the original quotient.',i=>i===1?'B moves only the dividend’s point. You must multiply the divisor by ten too.':'C multiplies the dividend by 100 but the divisor by 10. Both factors must match.',()=>pulseFx(S.ddBoards[0].el,1.02))}],done)}],
+['longstart','Place the point before dividing',m=>{const p=panel(0);ddTitle(p,'2.7 ÷ 4','After scaling 0.27÷0.4 by 10');ddLong(p,0,{point:m('point'),zero:m('zero')});ddText(p,'quotient point directly above',1210,320,m('point'),29,COL.task,'middle');ddText(p,'dividend point',1210,370,m('point'),29,COL.dim,'middle');ddMath(p,'2.7 = 2.700',1210,565,m('zero'),47);ddText(p,'same value · smaller units available',1210,640,m('zero',2),26,COL.dim,'middle');}],
+['tenths','Six tenths per group',m=>{const p=panel(0);ddTitle(p,'27 tenths shared among 4 groups');ddLong(p,1,{digit:m('digit'),subtract:m('subtract'),exchange:m('exchange')});ddText(p,'27 tenths − 24 tenths',1210,350,m('subtract'),32,COL.chalk,'middle');ddText(p,'= 3 tenths',1210,425,m('subtract'),36,COL.task,'middle');ddText(p,'3 tenths = 30 hundredths',1210,580,m('exchange'),32,COL.task,'middle');ddText(p,'One tenth exchanges for 10 hundredths.',1210,660,m('exchange',2),25,COL.dim,'middle');}],
+['hundredths','Seven hundredths per group',m=>{const p=panel(0);ddTitle(p,'30 hundredths shared among 4 groups');ddLong(p,2,{digit:m('digit'),subtract:m('subtract'),exchange:m('exchange')});ddText(p,'30 hundredths − 28 hundredths',1210,390,m('subtract'),29,COL.chalk,'middle');ddText(p,'= 2 hundredths',1210,465,m('subtract'),36,COL.task,'middle');ddText(p,'2 hundredths = 20 thousandths',1210,625,m('exchange'),29,COL.task,'middle');ddText(p,'Bring down 0: record the exchange.',1210,700,m('exchange',2),26,COL.dim,'middle');}],
+['thousandths','Five thousandths; remainder zero',m=>{const p=panel(0);ddTitle(p,'20 thousandths shared among 4 groups');ddLong(p,3,{digit:m('digit'),subtract:m('subtract')});ddText(p,'20−20=0 thousandths',1210,400,m('subtract'),34,COL.task,'middle');ddMath(p,'0.675 × 4 = 2.7',1210,585,m('check'),43);ddText(p,'0.27 ÷ 0.4 = 0.675',1210,735,m('check',2),39,COL.task,'middle');}],
+['q3','Quick check',()=>{const p=panel(0);ddTitle(p,'2.700 ÷ 4','Choose the quotient row. The point stays above the dividend point.');S.ddQ=[ddQuotient(p,0,['0','6','7','5']),ddQuotient(p,1,['6','7','5']),ddQuotient(p,2,['0','0','6','7','5'])];},{ask:done=>quiz(BAND,[{id:'c-point',prompt:'Which row gives 0.675 with every digit in its correct place?',build:pickEls(S.ddQ,0,'A has 0 ones, 6 tenths, 7 hundredths, 5 thousandths. Its point is directly above the dividend point.',i=>i===1?'B places 6 in the ones column instead of the tenths column. Its quotient is ten times too large.':'C places 6 in the hundredths column. Its quotient is ten times too small.',()=>pulseFx(S.ddQ[0].el,1.02))}],done)}],
+['sizes','The size of the group matters',m=>{const p=panel(0);ddTitle(p,'Division can make a positive number larger or smaller');const b=ddBar(p,{x:250,y:330,w:324,h:90,total:'1.2',group:'0.2',t:m('small')});ddMath(p,'1.2 ÷ 0.2 = 6',430,600,m('small'),49);ddText(p,'six small groups',430,690,m('small'),30,COL.dim,'middle');const g=G(p,{x:930,y:330,o:0});g.dataset.groupSize='2';g.dataset.amount='1.2';show(g,m('large'));mk('rect',{width:540,height:90,fill:'none',stroke:COL.whole,'stroke-width':3},g);mk('rect',{width:324,height:90,fill:COL.whole,'fill-opacity':.38,stroke:COL.task,'stroke-width':2},g);for(let i=1;i<10;i++)path(g,`M${i*54} 0V90`,{stroke:COL.faint,'stroke-width':1});ddText(g,'one whole group= 2',270,-45,m('large'),31,COL.chalk,'middle');ddText(g,'amount 1.2 fills 6/10 of the group',270,145,m('large'),26,COL.task,'middle');ddMath(p,'1.2 ÷ 2 = 0.6',1200,600,m('large'),49);ddText(p,'six tenths of one larger group',1200,690,m('large'),29,COL.dim,'middle');}],
+['unequal','Unequal decimal lengths are fine',m=>{const p=panel(0);ddTitle(p,'0.063 ÷ 0.15');ddMath(p,'0.063 ÷ 0.15',800,300,.2,65);ddText(p,'×100 to both numbers',800,425,m('scale'),36,COL.task,'middle');ddMath(p,'6.3 ÷ 15 = 0.42',800,560,m('answer'),61);ddMath(p,'15 × 0.42 = 6.3',800,740,m('check'),57,COL.task);ddText(p,'Only the divisor’s two fractional places determine the shift.',800,815,m('scale',2),29,COL.dim,'middle');}],
+['rate','How many liters per minute?',m=>{const p=panel(0);ddTitle(p,'A pump transfers 9.6 liters in 2.5 minutes.','Find the average rate.');ddText(p,'total liters ÷ total minutes',800,295,m('divide'),39,COL.dim,'middle');ddMath(p,'9.6 ÷ 2.5 = 96 ÷ 25',800,435,m('divide'),57);ddText(p,'3.84 liters per minute',800,580,m('answer'),49,COL.task,'middle');ddMath(p,'3.84 × 2.5 = 9.6',800,735,m('check'),57);ddText(p,'liters/minute × minutes = liters',800,815,m('check',2),29,COL.dim,'middle');}],
+['wrap','Four reliable habits',m=>{const p=panel(0);[['Name the terms. Keep the divisor nonzero.','w1'],['Multiply BOTH numbers by the same power of ten.','w2'],['Align points. Exchange remainders; append zeros.','w3'],['Multiply to check the quotient and its units.','w4']].forEach(([s,k],i)=>{const g=G(p,{x:-16,y:235+i*145,o:0});mk('circle',{cx:150,cy:-10,r:26,fill:COL.task},g);T(g,String(i+1),{x:150,y:0,size:30,anchor:'middle',fill:COL.board});T(g,s,{x:215,size:34});tw(g,{x:0,o:1},m(k),.6);});}],
+['final1','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-basic',prompt:'Divide exactly. Equivalent trailing zeros are accepted.',build:blanks([
+{parts:['6.3 ÷ 0.9 = ',{box:'7'}],why:'Multiply both by 10: 63÷9=7.'},
+{parts:['8.64 ÷ 1.2 = ',{box:'7.2'}],why:'Multiply both by 10: 86.4÷12=7.2. Check 7.2×1.2=8.64.'},
+{parts:['0.045 ÷ 0.15 = ',{box:'0.3'}],why:'Multiply both by 100: 4.5÷15=0.3.'},
+{parts:['0.0084 ÷ 0.07 = ',{box:'0.12'}],why:'Multiply both by 100: 0.84÷7=0.12. The dividend may stay decimal.'}
+])}],done,'Chapter practice 1 of 3')}],
+['final2','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-precision',prompt:'Use the divisor to choose the shift. Do not round.',build:blanks([
+{parts:['0.18 ÷ 0.8 = ',{box:'0.225'}],why:'1.8÷8=0.225. Append zeros to continue exactly;0.225×0.8=0.18.'},
+{parts:['2.16 ÷ 3.6 = ',{box:'0.6'}],why:'21.6÷36=0.6. The dividend is smaller than the divisor, so the quotient is below 1.'},
+{parts:['1.755 ÷ 0.03 = ',{box:'58.5'}],why:'175.5÷3=58.5. The divisor needs two shifts; both numbers get×100.'},
+{parts:['7.2 ÷ 0.025 = ',{box:'288'}],why:'7200÷25= 288. Both numbers get×1000;288×0.025=7.2.'}
+])}],done,'Chapter practice 2 of 3')}],
+['final3','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[
+{id:'p-speed',prompt:'A cyclist travels 14.4 kilometers in 1.8 hours. Find the average speed.',build:blanks([{parts:[{box:'8'},' kilometers per hour'],why:'14.4÷1.8=144÷18=8 kilometers per hour.'}])},
+{id:'p-pump',prompt:'A pump transfers 6.3 liters in 2.4 minutes. Find its average rate.',build:blanks([{parts:[{box:'2.625'},' liters per minute'],why:'6.3÷2.4=63÷24= 2.625 liters per minute. The quotient is exact.'}])},
+{id:'p-packets',prompt:'There are 0.84 kilogram of seeds. Each packet holds 0.07 kilogram. How many complete packets can be filled?',build:blanks([{parts:[{box:'12'},' packets'],why:'0.84÷0.07=84÷7=12 complete packets.'}])},
+{id:'p-rope',prompt:'A 3.6 meter rope is cut into 5 equal pieces. Find the length of each piece.',build:blanks([{parts:[{box:'0.72'},' meter per piece'],why:'3.6÷5=0.72. Appending a zero gives 3.60;0.72×5= 3.6.'}])}
+],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 91d86dc..f5b2b8c 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]]],
+ ['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]]],
];
const HUES = ['#f4a48c', '#86c9e8', '#f3c95c', '#e8a0c8', '#8fd6b0', '#bba8ee', '#f0b45a'];
const id = n => 'ch' + String(n).padStart(2, '0');