Skip to content

Commit f6d85e6

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

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

Module03/03-02-Vector Multiplication.ipynb

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
{
3838
"cell_type": "code",
3939
"execution_count": null,
40-
"metadata": {},
40+
"metadata": {
41+
"collapsed": true
42+
},
4143
"outputs": [],
4244
"source": [
4345
"library(ggplot2)\n",
@@ -72,7 +74,9 @@
7274
{
7375
"cell_type": "code",
7476
"execution_count": null,
75-
"metadata": {},
77+
"metadata": {
78+
"collapsed": true
79+
},
7680
"outputs": [],
7781
"source": [
7882
"b = v / 2\n",
@@ -113,7 +117,9 @@
113117
{
114118
"cell_type": "code",
115119
"execution_count": null,
116-
"metadata": {},
120+
"metadata": {
121+
"collapsed": true
122+
},
117123
"outputs": [],
118124
"source": [
119125
"## Another data frame s\n",
@@ -138,7 +144,7 @@
138144
"\n",
139145
"So for our vectors **v** (2,1) and **s** (-3,2), our calculation looks like this:\n",
140146
"\n",
141-
"$$ \\cos(\\theta) = \\frac{(2 \\cdot-3) + (-3 \\cdot 2)}{\\sqrt{2^{2} + 1^{2}} \\times \\sqrt{-3^{2} + 2^{2}}} $$\n",
147+
"$$ \\cos(\\theta) = \\frac{(2 \\cdot-3) + (1 \\cdot 2)}{\\sqrt{2^{2} + 1^{2}} \\times \\sqrt{-3^{2} + 2^{2}}} $$\n",
142148
"\n",
143149
"So:\n",
144150
"\n",
@@ -158,7 +164,9 @@
158164
{
159165
"cell_type": "code",
160166
"execution_count": null,
161-
"metadata": {},
167+
"metadata": {
168+
"collapsed": true
169+
},
162170
"outputs": [],
163171
"source": [
164172
"norm_v = norm(v, '2')\n",
@@ -197,7 +205,9 @@
197205
{
198206
"cell_type": "code",
199207
"execution_count": null,
200-
"metadata": {},
208+
"metadata": {
209+
"collapsed": true
210+
},
201211
"outputs": [],
202212
"source": [
203213
"## Need the cross function from the pracma package\n",

0 commit comments

Comments
 (0)