Skip to content

Commit b5e0468

Browse files
committed
fixed a few notebook mat equation typos
1 parent 5aec7e6 commit b5e0468

2 files changed

Lines changed: 51 additions & 18 deletions

File tree

Module01/01-06-Factorization.ipynb

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
{
3030
"cell_type": "code",
3131
"execution_count": null,
32-
"metadata": {},
32+
"metadata": {
33+
"collapsed": true
34+
},
3335
"outputs": [],
3436
"source": [
3537
"x = sample.int(100, 1)\n",
@@ -56,7 +58,9 @@
5658
{
5759
"cell_type": "code",
5860
"execution_count": null,
59-
"metadata": {},
61+
"metadata": {
62+
"collapsed": true
63+
},
6064
"outputs": [],
6165
"source": [
6266
"x = sample.int(100, 1)\n",
@@ -118,7 +122,9 @@
118122
{
119123
"cell_type": "code",
120124
"execution_count": null,
121-
"metadata": {},
125+
"metadata": {
126+
"collapsed": true
127+
},
122128
"outputs": [],
123129
"source": [
124130
"x = sample.int(100, 1)\n",
@@ -151,7 +157,9 @@
151157
{
152158
"cell_type": "code",
153159
"execution_count": null,
154-
"metadata": {},
160+
"metadata": {
161+
"collapsed": true
162+
},
155163
"outputs": [],
156164
"source": [
157165
"x = sample.int(100, 1)\n",
@@ -183,7 +191,9 @@
183191
{
184192
"cell_type": "code",
185193
"execution_count": null,
186-
"metadata": {},
194+
"metadata": {
195+
"collapsed": true
196+
},
187197
"outputs": [],
188198
"source": [
189199
"x = sample.int(100, 1)\n",
@@ -243,7 +253,9 @@
243253
{
244254
"cell_type": "code",
245255
"execution_count": null,
246-
"metadata": {},
256+
"metadata": {
257+
"collapsed": true
258+
},
247259
"outputs": [],
248260
"source": [
249261
"x = sample.int(100, 1)\n",
@@ -295,13 +307,15 @@
295307
{
296308
"cell_type": "code",
297309
"execution_count": null,
298-
"metadata": {},
310+
"metadata": {
311+
"collapsed": true
312+
},
299313
"outputs": [],
300314
"source": [
301315
"a = sample.int(100, 1)\n",
302316
"b = sample.int(100, 1)\n",
303317
"\n",
304-
"a^2 + b^2 + (2*a*b) == (a + b^2"
318+
"a^2 + b^2 + (2*a*b) == (a + b)^2"
305319
]
306320
}
307321
],

Module01/01-07-Quadratic Equations.ipynb

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
{
2323
"cell_type": "code",
2424
"execution_count": null,
25-
"metadata": {},
25+
"metadata": {
26+
"collapsed": true
27+
},
2628
"outputs": [],
2729
"source": [
2830
"# Create a dataframe with an x column containing values to plot\n",
@@ -56,7 +58,9 @@
5658
{
5759
"cell_type": "code",
5860
"execution_count": null,
59-
"metadata": {},
61+
"metadata": {
62+
"collapsed": true
63+
},
6064
"outputs": [],
6165
"source": [
6266
"# Create a dataframe with an x column containing values to plot\n",
@@ -99,7 +103,9 @@
99103
{
100104
"cell_type": "code",
101105
"execution_count": null,
102-
"metadata": {},
106+
"metadata": {
107+
"collapsed": true
108+
},
103109
"outputs": [],
104110
"source": [
105111
"plot_parabola = function(a, b, c){\n",
@@ -184,7 +190,9 @@
184190
{
185191
"cell_type": "code",
186192
"execution_count": null,
187-
"metadata": {},
193+
"metadata": {
194+
"collapsed": true
195+
},
188196
"outputs": [],
189197
"source": [
190198
"plot_parabola_limits = function(a, b, c){\n",
@@ -268,7 +276,9 @@
268276
{
269277
"cell_type": "code",
270278
"execution_count": null,
271-
"metadata": {},
279+
"metadata": {
280+
"collapsed": true
281+
},
272282
"outputs": [],
273283
"source": [
274284
"y = 0\n",
@@ -363,7 +373,9 @@
363373
{
364374
"cell_type": "code",
365375
"execution_count": null,
366-
"metadata": {},
376+
"metadata": {
377+
"collapsed": true
378+
},
367379
"outputs": [],
368380
"source": [
369381
"x1 = as.integer(-sqrt(16) - 3)\n",
@@ -437,7 +449,9 @@
437449
{
438450
"cell_type": "code",
439451
"execution_count": null,
440-
"metadata": {},
452+
"metadata": {
453+
"collapsed": true
454+
},
441455
"outputs": [],
442456
"source": [
443457
"x = sample.int(100, 1)\n",
@@ -474,6 +488,7 @@
474488
"cell_type": "code",
475489
"execution_count": null,
476490
"metadata": {
491+
"collapsed": true,
477492
"scrolled": false
478493
},
479494
"outputs": [],
@@ -516,7 +531,9 @@
516531
{
517532
"cell_type": "code",
518533
"execution_count": null,
519-
"metadata": {},
534+
"metadata": {
535+
"collapsed": true
536+
},
520537
"outputs": [],
521538
"source": [
522539
"plot_parabola_from_vertex_form(3, -1, -1)"
@@ -557,7 +574,7 @@
557574
"\n",
558575
"To find ***h***, we perform the following calculation:\n",
559576
"\n",
560-
"\\begin{equation}h = \\frac{-b}{2a}\\;\\;\\;\\;=\\;\\;\\;\\;\\frac{-1 \\cdot16}{2\\cdot2}\\;\\;\\;\\;=\\;\\;\\;\\;\\frac{16}{4}\\;\\;\\;\\;=\\;\\;\\;\\;4\\end{equation}\n",
577+
"\\begin{equation}h = \\frac{-b}{2a}\\;\\;\\;\\;=\\;\\;\\;\\;\\frac{-1 - 16}{2\\cdot2}\\;\\;\\;\\;=\\;\\;\\;\\;\\frac{16}{4}\\;\\;\\;\\;=\\;\\;\\;\\;4\\end{equation}\n",
561578
"\n",
562579
"Then we simply plug the value we've obtained for ***h*** into the quadratic equation in order to find ***k***:\n",
563580
"\n",
@@ -608,7 +625,9 @@
608625
{
609626
"cell_type": "code",
610627
"execution_count": null,
611-
"metadata": {},
628+
"metadata": {
629+
"collapsed": true
630+
},
612631
"outputs": [],
613632
"source": [
614633
"plot_parabola_from_formula = function(a, b, c){\n",

0 commit comments

Comments
 (0)