Skip to content

Commit 247b319

Browse files
authored
Fix typo in LU (#36)
Found by Ivan
1 parent 68ddd99 commit 247b319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/05_Direct_methods.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ md"""
449449
- In *loop over rows* `i` only runs until `n = 3`, so we are done with it.
450450
- **`k=2` (Step 2):** Our goal is now to zero out the 2nd column in all rows below the diagonal. We thus start another loop over rows, this time starting at `k+1 = 3`:
451451
* **`i = 3` (Row 3):** Our factor is now
452-
- $L_{32} = \frac{U_{31}}{\textcolor{green}{U_{22}}} = \frac{-5}{\textcolor{green}{5}} = \mathbf{-1}$
452+
- $L_{32} = \frac{U_{32}}{\textcolor{green}{U_{22}}} = \frac{-5}{\textcolor{green}{5}} = \mathbf{-1}$
453453
- After subtracting $L_{32} = -1$ times the second row from the 3rd in the *loop over columns*, i.e. we add 2nd and 3rd row, we get
454454
```math
455455
\mathbf L = \begin{pmatrix} 1 &\phantom{-1}&\phantom{1} \\ -2 & 1 & \\ 2 & \textbf{-1} & \end{pmatrix} \qquad

0 commit comments

Comments
 (0)