From 3e83635a446981f9f40051f9e6b5c09340ecfdb1 Mon Sep 17 00:00:00 2001
From: Olivier Cots <olivier.cots@enseeiht.fr>
Date: Tue, 30 Mar 2021 17:29:22 +0200
Subject: [PATCH] add -1/2

---
 course/corrections/ex3_cor_multiple_shooting_bsb.ipynb | 3 +--
 course/exercices/ex3_multiple_shooting_bsb.ipynb       | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/course/corrections/ex3_cor_multiple_shooting_bsb.ipynb b/course/corrections/ex3_cor_multiple_shooting_bsb.ipynb
index f947744..1247bdc 100644
--- a/course/corrections/ex3_cor_multiple_shooting_bsb.ipynb
+++ b/course/corrections/ex3_cor_multiple_shooting_bsb.ipynb
@@ -365,7 +365,6 @@
    "outputs": [],
    "source": [
     "def dshoot(p0, dp0, e, tf):\n",
-    "#    ds = 0  ### TO COMPLETE\n",
     "    (xf, dxf), _ = f(t0, x0, (p0, dp0), tf, e)\n",
     "    ds = dxf\n",
     "    return ds\n",
@@ -894,7 +893,7 @@
     " \\begin{pmatrix}\n",
     "     x(t_1, t_0, x_0, p_0, u_-) \\\\\n",
     "     p(t_1, t_0, x_0, p_0, u_-) \\\\\n",
-    "     x(t_f, t_2, x_2, p_2, u_+)\n",
+    "     x(t_f, t_2, x_2, p_2, u_+) - 1/2\n",
     " \\end{pmatrix},\n",
     "$$\n",
     "\n",
diff --git a/course/exercices/ex3_multiple_shooting_bsb.ipynb b/course/exercices/ex3_multiple_shooting_bsb.ipynb
index 5c51de7..4f67b77 100644
--- a/course/exercices/ex3_multiple_shooting_bsb.ipynb
+++ b/course/exercices/ex3_multiple_shooting_bsb.ipynb
@@ -708,7 +708,7 @@
     " \\begin{pmatrix}\n",
     "     x(t_1, t_0, x_0, p_0, u_-) \\\\\n",
     "     p(t_1, t_0, x_0, p_0, u_-) \\\\\n",
-    "     x(t_f, t_2, x_2, p_2, u_+)\n",
+    "     x(t_f, t_2, x_2, p_2, u_+) - 1/2\n",
     " \\end{pmatrix},\n",
     "$$\n",
     "\n",
-- 
GitLab