Skip to content

Commit 9c55f88

Browse files
author
StephenElston
committed
Corrected text mistake
1 parent e1392cb commit 9c55f88

1 file changed

Lines changed: 34 additions & 16 deletions

File tree

Module03/03-03-Matrices.ipynb

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -199,26 +199,44 @@
199199
},
200200
{
201201
"cell_type": "code",
202-
"execution_count": 4,
202+
"execution_count": 10,
203203
"metadata": {},
204204
"outputs": [
205205
{
206-
"name": "stdout",
207-
"output_type": "stream",
208-
"text": [
209-
"[[-5 -3 -1]\n",
210-
" [ 1 3 5]]\n"
211-
]
206+
"data": {
207+
"text/html": [
208+
"<table>\n",
209+
"<tbody>\n",
210+
"\t<tr><td>-5</td><td>-3</td><td>-1</td></tr>\n",
211+
"\t<tr><td> 1</td><td> 3</td><td> 5</td></tr>\n",
212+
"</tbody>\n",
213+
"</table>\n"
214+
],
215+
"text/latex": [
216+
"\\begin{tabular}{lll}\n",
217+
"\t -5 & -3 & -1\\\\\n",
218+
"\t 1 & 3 & 5\\\\\n",
219+
"\\end{tabular}\n"
220+
],
221+
"text/markdown": [
222+
"\n",
223+
"| -5 | -3 | -1 | \n",
224+
"| 1 | 3 | 5 | \n",
225+
"\n",
226+
"\n"
227+
],
228+
"text/plain": [
229+
" [,1] [,2] [,3]\n",
230+
"[1,] -5 -3 -1 \n",
231+
"[2,] 1 3 5 "
232+
]
233+
},
234+
"metadata": {},
235+
"output_type": "display_data"
212236
}
213237
],
214238
"source": [
215-
"import numpy as np\n",
216-
"\n",
217-
"A = np.array([[1,2,3],\n",
218-
" [4,5,6]])\n",
219-
"B = np.array([[6,5,4],\n",
220-
" [3,2,1]])\n",
221-
"print (A - B)"
239+
"A - B"
222240
]
223241
},
224242
{
@@ -234,13 +252,13 @@
234252
"metadata": {},
235253
"source": [
236254
"### Negative Matrices\n",
237-
"The nagative of a matrix, is just a matrix with the sign of each element reversed:\n",
255+
"The negative of a matrix, is just a matrix with the sign of each element reversed:\n",
238256
"\n",
239257
"\\begin{equation}C = \\begin{bmatrix}-5 & -3 & -1 \\\\1 & 3 & 5\\end{bmatrix}\\end{equation}\n",
240258
"\n",
241259
"\\begin{equation}-C = \\begin{bmatrix}5 & 3 & 1 \\\\-1 & -3 & -5\\end{bmatrix}\\end{equation}\n",
242260
"\n",
243-
"Let's see that with Python:"
261+
"Let's see that with R:"
244262
]
245263
},
246264
{

0 commit comments

Comments
 (0)