An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
window.TIMINGS = {
"intro": {
"dur": 16.752,
"marks": {
"sub": 3.776,
"move": 10.703
},
"cues": [
[
0.104,
"Chapter nine."
],
[
1.159,
"Matrix times vector, two ways."
],
[
3.776,
"In chapter eight we wrote A x equals b, and promised to say what A times x really means."
],
[
10.703,
"There are two ways to work it out: by columns, and by rows."
],
[
14.74,
"And they always give the same answer."
]
]
},
"setup": {
"dur": 16.536,
"marks": {
"A": 1.497,
"x": 6.81,
"q": 9.336,
"plan": 12.878
},
"cues": [
[
0.117,
"Here's a matrix."
],
[
1.497,
"A is two, five in the first row, and one, three in the second."
],
[
6.81,
"And here's a vector x: one, two."
],
[
9.336,
"A times x will be a new vector, with two numbers."
],
[
12.878,
"Let's find them."
],
[
13.984,
"First by columns, then by rows."
]
]
},
"cols": {
"dur": 47.592,
"marks": {
"c1": 6.263,
"c2": 13.49,
"add": 21.38,
"ans": 29.779,
"pic": 32.331,
"land": 38.216,
"same": 40.273
},
"cues": [
[
0.104,
"By columns, A times x is a mix of the columns of A, and x says how much of each."
],
[
6.263,
"The first number of x is one."
],
[
8.438,
"It multiplies column one: one times two, one is just two, one."
],
[
13.49,
"The second number of x is two."
],
[
15.859,
"It multiplies column two: two times five, three is ten, six."
],
[
21.38,
"Now add the two vectors, top with top and bottom with bottom: two plus ten is twelve, one plus six is seven."
],
[
29.779,
"So A times x is twelve, seven."
],
[
32.331,
"In the picture: one green column, then two violet columns, tip to tail, and we land on twelve, seven."
],
[
40.273,
"This is exactly a linear combination from chapter six."
],
[
44.193,
"The numbers of x play the part of c and d."
]
]
},
"cols2": {
"dur": 35.232,
"marks": {
"A": 2.305,
"x": 7.122,
"c1": 9.115,
"c2": 13.711,
"add": 23.737,
"ans": 28.294,
"pic": 31.029
},
"cues": [
[
0.117,
"One more, with a minus sign."
],
[
2.305,
"A is one, minus one in the first row, two, one in the second."
],
[
7.122,
"x is two, minus one."
],
[
9.115,
"Two times column one: two times one, two is two, four."
],
[
13.711,
"Minus one times column two: minus one times minus one, one is one, minus one."
],
[
20.208,
"A minus sign means: go backwards along that column."
],
[
23.737,
"Add: two plus one is three, four minus one is three."
],
[
28.294,
"A times x is three, three."
],
[
31.029,
"Two greens forward, one violet backwards, and we're at three, three."
]
]
},
"q1": {
"dur": 3.216,
"marks": {},
"cues": [
[
0.104,
"Quick check."
],
[
1.12,
"Work out A times x by columns."
]
]
},
"rows": {
"dur": 49.464,
"marks": {
"r1": 8.359,
"m1": 16.094,
"s1": 20.742,
"r2": 23.763,
"m2": 29.388,
"s2": 32.279,
"same": 34.557,
"dot": 38.021
},
"cues": [
[
0.104,
"Now the second way: by rows."
],
[
2.682,
"Back to A equals two, five, one, three, and x equals one, two."
],
[
8.359,
"For the first number of A x, take the first row of A, two, five, and lay it beside x, one, two."
],
[
16.094,
"Multiply number by number: two times one, and five times two."
],
[
20.742,
"Then add: two plus ten is twelve."
],
[
23.763,
"For the second number, take the second row, one, three, with the same x."
],
[
29.388,
"One times one, and three times two."
],
[
32.279,
"One plus six is seven."
],
[
34.557,
"Twelve, seven."
],
[
35.951,
"The same answer as by columns."
],
[
38.021,
"A row times a column, multiplied number by number and then added, is called a dot product."
],
[
44.284,
"Each number of A x is one dot product: one row of A, with x."
]
]
},
"rows2": {
"dur": 40.2,
"marks": {
"A": 2.969,
"r1": 10.104,
"s1": 16.68,
"r2": 18.789,
"s2": 23.997,
"ans": 26.12,
"chk": 28.151,
"add": 34.922
},
"cues": [
[
0.117,
"One more by rows, with a minus sign."
],
[
2.969,
"A is three, minus two in the first row, one, two in the second, and x is two, one."
],
[
10.104,
"Row one with x: three times two is six."
],
[
13.685,
"Minus two times one is minus two."
],
[
16.68,
"Six minus two is four."
],
[
18.789,
"Row two with x: one times two is two, and two times one is two."
],
[
23.997,
"Two plus two is four."
],
[
26.12,
"So A x is four, four."
],
[
28.151,
"Check it by columns: two of column one is six, two."
],
[
32.161,
"One of column two is minus two, two."
],
[
34.922,
"Six minus two is four, two plus two is four."
],
[
38.841,
"Four, four again."
]
]
},
"why": {
"dur": 37.056,
"marks": {
"grid": 2.617,
"colway": 9.688,
"rowway": 18.516,
"same": 24.258,
"use": 29.466
},
"cues": [
[
0.104,
"Why do the two ways always agree?"
],
[
2.617,
"Look at the four products we made: two times one, five times two, one times one, three times two."
],
[
9.688,
"By columns, we stacked them by column: two and one from column one, ten and six from column two, and added the two stacks."
],
[
18.516,
"By rows, we added them along each row: two plus ten, one plus six."
],
[
24.258,
"The same four products, added up in a different order."
],
[
27.461,
"That's why the answer can't change."
],
[
29.466,
"So pick whichever way is easier."
],
[
31.628,
"By hand, rows are often quicker."
],
[
34.154,
"To see what's going on, columns are often clearer."
]
]
},
"system": {
"dur": 45.672,
"marks": {
"A": 2.891,
"r1": 12.383,
"r2": 18.906,
"b": 22.617,
"c": 33.451,
"one": 42.109
},
"cues": [
[
0.104,
"And now A x equals b makes sense."
],
[
2.891,
"Take the system from chapter seven."
],
[
5.182,
"A is two, minus one, minus one, two, and this time x is the unknowns, x and y."
],
[
12.383,
"Row one times x: two times x, plus minus one times y."
],
[
16.914,
"That's two x minus y."
],
[
18.906,
"Row two times x: minus x plus two y."
],
[
22.617,
"So A x equals b says: two x minus y equals zero, and minus x plus two y equals three."
],
[
30.286,
"Our two equations: that's the row picture."
],
[
33.451,
"By columns, A x equals b says: x times column one, plus y times column two, equals b."
],
[
40.599,
"That's the column picture."
],
[
42.109,
"One product, two ways to read it, two pictures."
]
]
},
"system2": {
"dur": 42.24,
"marks": {
"A": 0.99,
"r": 8.62,
"lines": 19.167,
"c": 22.214,
"mix": 27.695,
"land": 34.076,
"same": 37.214
},
"cues": [
[
0.104,
"One more."
],
[
0.99,
"A is one, one in the first row, and one, minus one in the second, and b is five, one."
],
[
8.62,
"By rows, A x is x plus y, and x minus y."
],
[
13.242,
"So A x equals b says: x plus y equals five, and x minus y equals one."
],
[
19.167,
"Two lines, and they meet at three, two."
],
[
22.214,
"By columns, A x is x times column one, plus y times column two."
],
[
27.695,
"Three of one, one is three, three."
],
[
30.547,
"Two of one, minus one is two, minus two."
],
[
34.076,
"Together: five, one."
],
[
36.237,
"That's b."
],
[
37.214,
"The meeting point of the rows, three, two, is the mix of the columns."
]
]
},
"q2": {
"dur": 4.176,
"marks": {},
"cues": [
[
0.104,
"Your turn."
],
[
0.977,
"Move x until A x lands on the amber target."
]
]
},
"bigger": {
"dur": 51.72,
"marks": {
"A": 3.034,
"r1": 9.349,
"r2": 19.635,
"r3": 27.891,
"ans": 35.404,
"c": 38.294,
"sum": 44.792
},
"cues": [
[
0.104,
"The same two ways work for bigger matrices."
],
[
3.034,
"Here A is three by three, and x has three numbers: one, two, three."
],
[
9.349,
"By rows."
],
[
10.417,
"Row one: one times one, plus zero times two, plus two times three."
],
[
16.367,
"One plus zero plus six is seven."
],
[
19.635,
"Row two: zero, plus three times two, plus one times three."
],
[
24.961,
"Zero plus six plus three is nine."
],
[
27.891,
"Row three: two times one, plus one times two, plus zero."
],
[
33.281,
"Two plus two is four."
],
[
35.404,
"A x is seven, nine, four."
],
[
38.294,
"By columns: one of column one, plus two of column two, plus three of column three."
],
[
44.792,
"One, zero, two, plus zero, six, two, plus six, three, zero."
],
[
49.987,
"Seven, nine, four again."
]
]
},
"tall": {
"dur": 46.032,
"marks": {
"A": 2.253,
"x": 6.901,
"rows": 11.471,
"r2": 18.763,
"r3": 23.698,
"cols": 30.56,
"sizes": 37.865
},
"cues": [
[
0.091,
"Now a matrix that isn't square."
],
[
2.253,
"This A is three by two: three rows, two columns."
],
[
6.901,
"So x has two numbers, one for each column: four and one."
],
[
11.471,
"By rows."
],
[
12.539,
"Row one: one times four, plus two times one."
],
[
16.576,
"Four plus two is six."
],
[
18.763,
"Row two: zero times four, plus one times one, is one."
],
[
23.698,
"Row three: three times four, plus minus one times one."
],
[
28.086,
"Twelve minus one is eleven."
],
[
30.56,
"By columns: four times column one, plus one times column two, gives the same: six, one, eleven."
],
[
37.865,
"Notice the sizes."
],
[
39.44,
"Two columns in A, so x has two numbers."
],
[
42.734,
"Three rows in A, so A x has three numbers."
]
]
},
"match": {
"dur": 30.312,
"marks": {
"try": 1.966,
"cols": 6.328,
"rows": 12.474,
"no": 19.57,
"rule": 21.875
},
"cues": [
[
0.104,
"So the sizes must fit."
],
[
1.966,
"What if we try this three by two A with an x of three numbers?"
],
[
6.328,
"By columns: the third number of x would need a third column to multiply, and there isn't one."
],
[
12.474,
"By rows: each row has two numbers, but x has three."
],
[
16.576,
"The last number is left without a partner."
],
[
19.57,
"A times x is not defined."
],
[
21.875,
"The rule: x needs exactly as many numbers as A has columns."
],
[
26.263,
"And A x comes out with as many numbers as A has rows."
]
]
},
"wide": {
"dur": 50.784,
"marks": {
"A": 2.839,
"x": 7.5,
"r1": 13.281,
"r2": 23.516,
"ans": 32.018,
"c": 36.927,
"sum": 42.669,
"rule": 48.503
},
"cues": [
[
0.104,
"One more shape: a wide matrix."
],
[
2.839,
"This A is two by three: two rows, three columns."
],
[
7.5,
"So x needs three numbers, one for each column: two, one, one."
],
[
13.281,
"By rows."
],
[
14.362,
"Row one: one times two, plus two times one, plus zero times one."
],
[
20.182,
"Two plus two plus zero is four."
],
[
23.516,
"Row two: three times two, plus minus one times one, plus one times one."
],
[
29.258,
"Six minus one plus one is six."
],
[
32.018,
"A x is four, six: two numbers, one for each row."
],
[
36.927,
"By columns: two of column one, plus one of column two, plus one of column three."
],
[
42.669,
"Two, six, plus two, minus one, plus zero, one: four, six again."
],
[
48.503,
"Three numbers go in, two come out."
]
]
},
"q3": {
"dur": 3.12,
"marks": {},
"cues": [
[
0.104,
"Quick check."
],
[
1.12,
"Work out A times x by rows."
]
]
},
"q4": {
"dur": 2.472,
"marks": {},
"cues": [
[
0.091,
"Quick check."
],
[
1.081,
"Do the sizes fit?"
]
]
},
"wrap": {
"dur": 22.944,
"marks": {
"w1": 1.003,
"w2": 6.862,
"w3": 12.331,
"w4": 15.925,
"end": 20.742
},
"cues": [
[
0.091,
"To sum up."
],
[
1.003,
"By columns: A x is a combination of the columns of A, using the numbers of x."
],
[
6.862,
"By rows: each number of A x is a row of A times x, a dot product."
],
[
12.331,
"Both ways use the same products, so they always agree."
],
[
15.925,
"x needs one number for each column of A; A x gets one number for each row."
],
[
20.742,
"Now try the chapter practice."
]
]
},
"final1": {
"dur": 3.744,
"marks": {},
"cues": [
[
0.104,
"Chapter practice."
],
[
1.523,
"Work out A times x by columns."
]
]
},
"final2": {
"dur": 1.872,
"marks": {},
"cues": [
[
0.104,
"Next, by rows."
]
]
},
"final3": {
"dur": 1.872,
"marks": {},
"cues": [
[
0.104,
"Now check the sizes."
]
]
},
"final4": {
"dur": 3.048,
"marks": {},
"cues": [
[
0.078,
"Last set."
],
[
1.185,
"Make A x land where you're told."
]
]
},
"play": {
"dur": 12.984,
"marks": {
"go": 4.036
},
"cues": [
[
0.091,
"Playground."
],
[
1.055,
"Nothing here is marked right or wrong."
],
[
4.036,
"Change A or x, drag the point x or the columns, and watch A x follow, one column step at a time."
],
[
11.263,
"Press continue when you're done."
]
]
},
"finish": {
"dur": 9.432,
"marks": {},
"cues": [
[
0.104,
"Well done."
],
[
1.094,
"That's the end of chapter nine, matrix times vector, two ways."
],
[
5.638,
"Next: what A does to every point of the plane at once."
]
]
}
};