You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanid="cb3-3"><ahref=""></a><spanclass="ss">2 & 3 & 8</span><spanclass="sc">\\</span><spanclass="ss"></span></span>
599
599
<spanid="cb3-4"><ahref=""></a><spanclass="ss">-4 & 1 & -2</span></span>
600
-
<spanid="cb3-5"><ahref=""></a><spanclass="kw">\end</span>{<spanclass="ex">array</span>}<spanclass="sc">\right</span><spanclass="ss">]$</span></span></code><buttontitle="Copy to Clipboard" class="code-copy-button"><iclass="bi"></i></button></pre></div>
600
+
<spanid="cb3-5"><ahref=""></a><spanclass="kw">\end</span>{<spanclass="ex">bmatrix</span>}<spanclass="ss">$</span></span></code><buttontitle="Copy to Clipboard" class="code-copy-button"><iclass="bi"></i></button></pre></div>
<spanid="cb4-3"><ahref=""></a><spanclass="ss">0</span><spanclass="kw">\end</span>{<spanclass="ex">array</span>}<spanclass="sc">\right</span><spanclass="ss">]</span></span></code><buttontitle="Copy to Clipboard" class="code-copy-button"><iclass="bi"></i></button></pre></div>
<spanid="cb4-3"><ahref=""></a><spanclass="ss">0</span><spanclass="kw">\end</span>{<spanclass="ex">bmatrix</span>}</span></code><buttontitle="Copy to Clipboard" class="code-copy-button"><iclass="bi"></i></button></pre></div>
608
608
</div>
609
609
</div>
610
610
</div><divclass="column" style="width:50%;">
611
611
<divclass="fragment" data-fragment-index="2">
612
-
<p>For example, the system <spanclass="math inline">\(\left\{\begin{array}{rcr} 2x_1 + 3x_2 + 8x_3 & = & 0\\ -4x_1 + x_2 - 2x_3 & = & 0\end{array}\right.\)</span> corresponds to the coefficient matrix <spanclass="math inline">\(\left[\begin{array}{rrr} 2 & 3 & 8\\ -4 & 1 & -2\end{array}\right]\)</span> and constant vector <spanclass="math inline">\(\left[\begin{array}{r} 0\\ 0\end{array}\right]\)</span>.</p>
612
+
<p>For example, the system <spanclass="math inline">\(\left\{\begin{array}{rcr} 2x_1 + 3x_2 + 8x_3 & = & 0\\ -4x_1 + x_2 - 2x_3 & = & 0\end{array}\right.\)</span> corresponds to the coefficient matrix <spanclass="math inline">\(\begin{bmatrix} 2 & 3 & 8\\ -4 & 1 & -2\end{bmatrix}\)</span> and constant vector <spanclass="math inline">\(\begin{bmatrix} 0\\ 0\end{bmatrix}\)</span>.</p>
<spanid="cb6-3"><ahref=""></a><spanclass="ss">2 & 3 & 8</span><spanclass="sc">\\</span><spanclass="ss"></span></span>
637
637
<spanid="cb6-4"><ahref=""></a><spanclass="ss">-4 & 1 & -2</span></span>
638
-
<spanid="cb6-5"><ahref=""></a><spanclass="kw">\end</span>{<spanclass="ex">array</span>}<spanclass="sc">\right</span><spanclass="ss">]$</span></span></code><buttontitle="Copy to Clipboard" class="code-copy-button"><iclass="bi"></i></button></pre></div>
638
+
<spanid="cb6-5"><ahref=""></a><spanclass="kw">\end</span>{<spanclass="ex">bmatrix</span>}<spanclass="ss">$</span></span></code><buttontitle="Copy to Clipboard" class="code-copy-button"><iclass="bi"></i></button></pre></div>
<spanid="cb7-3"><ahref=""></a><spanclass="ss">0</span><spanclass="kw">\end</span>{<spanclass="ex">array</span>}<spanclass="sc">\right</span><spanclass="ss">]</span></span></code><buttontitle="Copy to Clipboard" class="code-copy-button"><iclass="bi"></i></button></pre></div>
<spanid="cb7-3"><ahref=""></a><spanclass="ss">0</span><spanclass="kw">\end</span>{<spanclass="ex">bmatrix</span>}</span></code><buttontitle="Copy to Clipboard" class="code-copy-button"><iclass="bi"></i></button></pre></div>
644
644
</div>
645
645
</div><divclass="column" style="width:50%;">
646
646
<ul>
@@ -650,10 +650,10 @@ <h2>Things to Note</h2>
650
650
</div>
651
651
</div>
652
652
<ul>
653
-
<liclass="fragment"><p>The array environment allows you to construct aligned columns.</p>
653
+
<liclass="fragment"><p>The <code>array</code> or <code>bmatrix</code> environments allow you to construct aligned columns.</p>
654
654
<ul>
655
-
<liclass="fragment">The number of columns is determined by the number of characters in the curly braces after <code>\begin{array}</code>.</li>
656
-
<liclass="fragment">The <code>r</code> character indicates that a column should be <em>right</em>-aligned, while the <code>c</code> and <code>l</code> characters indicated<em>center</em>- and <em>left</em>-alignment, respectively.</li>
655
+
<liclass="fragment">For an <code>array</code>, the number of columns is determined by the number of characters in the curly braces after <code>\begin{array}</code>.</li>
656
+
<liclass="fragment">The <code>r</code> character indicates that a column should be <em>right</em>-aligned, while the <code>c</code> and <code>l</code> characters indicate<em>center</em>- and <em>left</em>-alignment, respectively.</li>
657
657
<liclass="fragment">Columns in an array are separated by the ampersand (<code>&</code>).</li>
658
658
<liclass="fragment">Rows in an array are separated using the double backslash (<code>\\</code>)</li>
Copy file name to clipboardExpand all lines: Slides/D4_LatexWorkshop.qmd
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -300,10 +300,10 @@ $\left\{\begin{array}{rcr}
300
300
#| eval: false
301
301
302
302
%Matrix
303
-
$\left[\begin{array}{rrr}
303
+
$\begin{bmatrix}
304
304
2 & 3 & 8\\
305
305
-4 & 1 & -2
306
-
\end{array}\right]$
306
+
\end{bmatrix}$
307
307
```
308
308
309
309
:::
@@ -315,8 +315,8 @@ $\left[\begin{array}{rrr}
315
315
#| eval: false
316
316
317
317
%Vector
318
-
$\left[\begin{array}{r} 0\\
319
-
0\end{array}\right]
318
+
$\begin{bmatrix} 0\\
319
+
0\end{bmatrix}
320
320
```
321
321
322
322
:::
@@ -327,7 +327,7 @@ $\left[\begin{array}{r} 0\\
327
327
328
328
:::{.fragment data-fragment-index=2}
329
329
330
-
For example, the system $\left\{\begin{array}{rcr} 2x_1 + 3x_2 + 8x_3 & = & 0\\ -4x_1 + x_2 - 2x_3 & = & 0\end{array}\right.$ corresponds to the coefficient matrix $\left[\begin{array}{rrr} 2 & 3 & 8\\ -4 & 1 & -2\end{array}\right]$ and constant vector $\left[\begin{array}{r} 0\\ 0\end{array}\right]$.
330
+
For example, the system $\left\{\begin{array}{rcr} 2x_1 + 3x_2 + 8x_3 & = & 0\\ -4x_1 + x_2 - 2x_3 & = & 0\end{array}\right.$ corresponds to the coefficient matrix $\begin{bmatrix} 2 & 3 & 8\\ -4 & 1 & -2\end{bmatrix}$ and constant vector $\begin{bmatrix} 0\\ 0\end{bmatrix}$.
331
331
332
332
:::
333
333
@@ -367,19 +367,19 @@ $\left\{\begin{array}{rcr}
367
367
#| eval: false
368
368
369
369
%Matrix
370
-
$\left[\begin{array}{rrr}
370
+
$\begin{bmatrix}
371
371
2 & 3 & 8\\
372
372
-4 & 1 & -2
373
-
\end{array}\right]$
373
+
\end{bmatrix}$
374
374
```
375
375
376
376
```{latex}
377
377
#| echo: true
378
378
#| eval: false
379
379
380
380
%Vector
381
-
$\left[\begin{array}{r} 0\\
382
-
0\end{array}\right]
381
+
$\begin{bmatrix} 0\\
382
+
0\end{bmatrix}
383
383
```
384
384
385
385
:::
@@ -393,10 +393,10 @@ $\left[\begin{array}{r} 0\\
393
393
394
394
::::
395
395
396
-
+ The array environment allows you to construct aligned columns.
396
+
+ The `array` or `bmatrix` environments allow you to construct aligned columns.
397
397
398
-
+The number of columns is determined by the number of characters in the curly braces after `\begin{array}`.
399
-
+ The `r` character indicates that a column should be *right*-aligned, while the `c` and `l` characters indicated*center*- and *left*-alignment, respectively.
398
+
+For an `array`, the number of columns is determined by the number of characters in the curly braces after `\begin{array}`.
399
+
+ The `r` character indicates that a column should be *right*-aligned, while the `c` and `l` characters indicate*center*- and *left*-alignment, respectively.
400
400
+ Columns in an array are separated by the ampersand (`&`).
401
401
+ Rows in an array are separated using the double backslash (`\\`)
0 commit comments