From 8aa3f0bfc4b9717a277b2b6af63d0bf45e4b05d5 Mon Sep 17 00:00:00 2001 From: epw1624 <112768709+epw1624@users.noreply.github.com> Date: Sat, 14 Oct 2023 17:34:29 -0700 Subject: [PATCH] fix error in example 3 --- systems/odes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systems/odes.md b/systems/odes.md index 5131a29..6b0b082 100644 --- a/systems/odes.md +++ b/systems/odes.md @@ -223,7 +223,7 @@ $$ \end{array} \right] \begin{bmatrix} y_1 \\ y_2 \\ y_3 \\ y_4 \\ y_5 \end{bmatrix} = -\begin{bmatrix} \pi^2/18 \\ -\pi^2/18 \\ -1 \\ -\pi^2/18 \\ \pi^2/18 - 1 \end{bmatrix} +\begin{bmatrix} \pi^2/18 \\ -\pi^2/18 \\ -\pi^2/9 \\ -\pi^2/18 \\ \pi^2/18 - 1 \end{bmatrix} $$ Use `scipy.linalg.solve` to compute the solution. The equation is elementary and we can solve exactly by integrating twice