From 3f744743cc30c9b0c97fdf62b578a5ec1ccebe01 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bertrand=20N=C3=A9ron?= <bneron@pasteur.fr>
Date: Thu, 17 Oct 2024 14:18:33 +0200
Subject: [PATCH] fix path and numpy_cours

---
 notebooks/Courses/numpy_cours.ipynb | 415 ++++++++++++++--------------
 1 file changed, 205 insertions(+), 210 deletions(-)

diff --git a/notebooks/Courses/numpy_cours.ipynb b/notebooks/Courses/numpy_cours.ipynb
index 5cbb760..bfb0b77 100644
--- a/notebooks/Courses/numpy_cours.ipynb
+++ b/notebooks/Courses/numpy_cours.ipynb
@@ -9,7 +9,7 @@
    "source": [
     "<div style=\"text-align:center;display:block\">\n",
     "\n",
-    "<img src=\"./images/NumPy_logo_2020.png\" style=\"margin:0 auto;width:400px\">\n",
+    "<img src=\"../images/NumPy_logo_2020.png\" style=\"margin:0 auto;width:400px\">\n",
     "<div style=\"text-align:center\">\n",
     "    Bertrand Néron\n",
     "    <br />\n",
@@ -41,7 +41,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 2,
+   "execution_count": 1,
    "id": "bcee0cf5-4c99-4100-88a8-ec3e1ecd2837",
    "metadata": {},
    "outputs": [],
@@ -125,8 +125,8 @@
      "name": "stdout",
      "output_type": "stream",
      "text": [
-      "CPU times: user 27.2 ms, sys: 345 µs, total: 27.5 ms\n",
-      "Wall time: 27.6 ms\n"
+      "CPU times: user 21.4 ms, sys: 0 ns, total: 21.4 ms\n",
+      "Wall time: 21.3 ms\n"
      ]
     },
     {
@@ -155,14 +155,14 @@
      "name": "stdout",
      "output_type": "stream",
      "text": [
-      "CPU times: user 1.59 ms, sys: 0 ns, total: 1.59 ms\n",
-      "Wall time: 907 µs\n"
+      "CPU times: user 0 ns, sys: 1.47 ms, total: 1.47 ms\n",
+      "Wall time: 769 μs\n"
      ]
     },
     {
      "data": {
       "text/plain": [
-       "499999500000"
+       "np.int64(499999500000)"
       ]
      },
      "execution_count": 5,
@@ -212,8 +212,8 @@
      "name": "stdout",
      "output_type": "stream",
      "text": [
-      "CPU times: user 286 ms, sys: 8.72 ms, total: 295 ms\n",
-      "Wall time: 294 ms\n"
+      "CPU times: user 73 ms, sys: 23.9 ms, total: 96.9 ms\n",
+      "Wall time: 96.1 ms\n"
      ]
     },
     {
@@ -242,14 +242,14 @@
      "name": "stdout",
      "output_type": "stream",
      "text": [
-      "CPU times: user 2.27 ms, sys: 186 µs, total: 2.46 ms\n",
-      "Wall time: 1.76 ms\n"
+      "CPU times: user 1.74 ms, sys: 1.07 ms, total: 2.81 ms\n",
+      "Wall time: 1.57 ms\n"
      ]
     },
     {
      "data": {
       "text/plain": [
-       "333332833333500000"
+       "np.int64(333332833333500000)"
       ]
      },
      "execution_count": 8,
@@ -344,7 +344,7 @@
     {
      "data": {
       "text/plain": [
-       "10"
+       "np.int64(10)"
       ]
      },
      "execution_count": 12,
@@ -536,7 +536,7 @@
     {
      "data": {
       "text/plain": [
-       "11"
+       "np.int64(11)"
       ]
      },
      "execution_count": 21,
@@ -558,7 +558,7 @@
     {
      "data": {
       "text/plain": [
-       "11"
+       "np.int64(11)"
       ]
      },
      "execution_count": 22,
@@ -1043,7 +1043,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 3,
+   "execution_count": 36,
    "id": "8e18d829-b9e4-4880-b35e-a96fc713d95f",
    "metadata": {},
    "outputs": [],
@@ -1061,17 +1061,17 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 5,
+   "execution_count": 37,
    "id": "81be533a-3beb-4af8-9e26-69ad5d44e41d",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "0.9770692753749981"
+       "0.07493730781019758"
       ]
      },
-     "execution_count": 5,
+     "execution_count": 37,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1083,18 +1083,18 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 7,
+   "execution_count": 38,
    "id": "f085514b-5fcd-4112-a045-23eb6f6f3e5c",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "array([ 1.73553135,  0.22361916, -0.73362824, -0.33249582, -0.72058886,\n",
-       "       -0.27996662, -0.34853205, -2.27085731, -0.80546885,  1.42012754])"
+       "array([ 0.97665436,  0.10830955, -0.48716618,  0.47222301, -1.95684758,\n",
+       "       -1.10186154, -0.85026678,  0.73181136,  0.28125178, -0.19334269])"
       ]
      },
-     "execution_count": 7,
+     "execution_count": 38,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1107,21 +1107,21 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 8,
+   "execution_count": 39,
    "id": "9dcf97f4-1984-4739-a49a-9c9c7a7d4a98",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "array([[-0.25121824, -1.50960959],\n",
-       "       [ 1.20405797,  1.76066421],\n",
-       "       [ 1.00618911,  1.00338646],\n",
-       "       [ 0.33048819,  3.14524965],\n",
-       "       [ 4.26693195,  1.77804119]])"
+       "array([[ 3.48679819,  3.04781574],\n",
+       "       [ 3.70247583,  1.76402619],\n",
+       "       [ 0.44962379,  2.8026444 ],\n",
+       "       [ 3.81113791,  0.74001679],\n",
+       "       [-0.34301959,  2.8487461 ]])"
       ]
      },
-     "execution_count": 8,
+     "execution_count": 39,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1133,18 +1133,18 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 9,
+   "execution_count": 40,
    "id": "8faa1d85-e2cf-482f-af13-1a339f85b273",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "array([1.47566294, 1.66996391, 0.97314979, 0.11779833, 1.43473446,\n",
-       "       0.21334751, 0.67050575, 1.75677774, 0.95711036, 0.97817719])"
+       "array([1.53764539, 0.10407965, 0.14943287, 1.33850036, 1.29547856,\n",
+       "       1.92918736, 0.0350858 , 1.34860414, 1.72703453, 0.32842712])"
       ]
      },
-     "execution_count": 9,
+     "execution_count": 40,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1156,7 +1156,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 10,
+   "execution_count": 41,
    "id": "3494d529-5fef-47ef-9014-64b6d3d69244",
    "metadata": {},
    "outputs": [
@@ -1166,7 +1166,7 @@
        "0.08564916714362436"
       ]
      },
-     "execution_count": 10,
+     "execution_count": 41,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1200,17 +1200,17 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 36,
+   "execution_count": 42,
    "id": "adff2440-1323-4e47-a7c1-05b2298b9c1f",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "0.2374135561970464"
+       "0.38646383961446507"
       ]
      },
-     "execution_count": 36,
+     "execution_count": 42,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1222,17 +1222,17 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 37,
+   "execution_count": 43,
    "id": "89a1f130-0549-4127-87cc-bca1e6d8fcf0",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "-2.181325840579963"
+       "1.035199530576272"
       ]
      },
-     "execution_count": 37,
+     "execution_count": 43,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1244,18 +1244,18 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 38,
+   "execution_count": 44,
    "id": "96e4cd87-5d98-4e27-ba8f-3a7573975224",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "array([-1.16043015, -0.41323816,  0.26145112, -0.72910492,  0.74809394,\n",
-       "       -0.44404394, -0.65350114, -0.37594278, -1.27568323, -1.25554752])"
+       "array([ 1.11832894,  2.0021714 ,  0.58719543, -0.56612414, -0.12557549,\n",
+       "       -0.27136275,  1.51259438, -0.73849808,  0.77444285,  0.54480857])"
       ]
      },
-     "execution_count": 38,
+     "execution_count": 44,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1268,21 +1268,21 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 39,
+   "execution_count": 45,
    "id": "c1119efa-0d17-424d-8d76-7e0047988143",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "array([[ 1.83459533,  1.34741056],\n",
-       "       [ 1.04856601,  0.36270561],\n",
-       "       [-1.07733443,  2.26669404],\n",
-       "       [-0.14518838,  1.30587942],\n",
-       "       [-1.52924688,  3.78152616]])"
+       "array([[ 0.83273837, -0.05496048],\n",
+       "       [ 2.75752077,  0.61157395],\n",
+       "       [-0.05946127, -0.55505366],\n",
+       "       [-3.14976828,  2.48233988],\n",
+       "       [ 3.67011564,  1.6567874 ]])"
       ]
      },
-     "execution_count": 39,
+     "execution_count": 45,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1294,18 +1294,18 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 40,
+   "execution_count": 46,
    "id": "8c6345c7-01e5-4bde-8624-be7567fe79f3",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "array([1.95882936, 1.55143615, 1.23730791, 1.21954068, 0.87052116,\n",
-       "       1.84664919, 1.96556124, 0.39348725, 0.77651197, 0.18411425])"
+       "array([0.2491329 , 1.23861051, 0.06156969, 1.99958024, 1.01311919,\n",
+       "       0.61799875, 0.95377215, 0.72350694, 0.98002253, 1.65238567])"
       ]
      },
-     "execution_count": 40,
+     "execution_count": 46,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1325,7 +1325,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 3,
+   "execution_count": 47,
    "id": "bb4a7d5b-d2a3-42a7-8bce-7c3ecab1f30f",
    "metadata": {},
    "outputs": [
@@ -1335,7 +1335,7 @@
        "dtype('int64')"
       ]
      },
-     "execution_count": 3,
+     "execution_count": 47,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1347,7 +1347,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 4,
+   "execution_count": 48,
    "id": "b6761fbb-7a96-4244-a433-3d9d4861f6ee",
    "metadata": {},
    "outputs": [
@@ -1357,7 +1357,7 @@
        "dtype('float64')"
       ]
      },
-     "execution_count": 4,
+     "execution_count": 48,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1369,7 +1369,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 5,
+   "execution_count": 49,
    "id": "24b99d8b-fa40-4450-9571-0e9039daa568",
    "metadata": {},
    "outputs": [
@@ -1379,7 +1379,7 @@
        "dtype('float64')"
       ]
      },
-     "execution_count": 5,
+     "execution_count": 49,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1399,7 +1399,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 7,
+   "execution_count": 50,
    "id": "de2cde1e-5dc6-40b7-8367-68bc4b6a13a5",
    "metadata": {},
    "outputs": [
@@ -1417,7 +1417,7 @@
        "array([1., 2., 3.])"
       ]
      },
-     "execution_count": 7,
+     "execution_count": 50,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1471,19 +1471,19 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 8,
+   "execution_count": 52,
    "id": "7ac6175d-dfde-4814-aeaa-2e84ee87dd53",
    "metadata": {},
    "outputs": [
     {
      "ename": "ValueError",
-     "evalue": "could not convert string to float: 'oups'",
+     "evalue": "could not convert string to float: np.str_('oups')",
      "output_type": "error",
      "traceback": [
       "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
       "\u001b[0;31mValueError\u001b[0m                                Traceback (most recent call last)",
-      "\u001b[0;32m/tmp/ipykernel_11610/885548900.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m      1\u001b[0m \u001b[0mx\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0marray\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1.0\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"oups\"\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0mx\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mx\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mastype\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfloat\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
-      "\u001b[0;31mValueError\u001b[0m: could not convert string to float: 'oups'"
+      "Cell \u001b[0;32mIn[52], line 2\u001b[0m\n\u001b[1;32m      1\u001b[0m x \u001b[38;5;241m=\u001b[39m np\u001b[38;5;241m.\u001b[39marray([\u001b[38;5;241m1.0\u001b[39m, \u001b[38;5;241m1\u001b[39m, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124moups\u001b[39m\u001b[38;5;124m\"\u001b[39m])\n\u001b[0;32m----> 2\u001b[0m x \u001b[38;5;241m=\u001b[39m \u001b[43mx\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mastype\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mfloat\u001b[39;49m\u001b[43m)\u001b[49m\n",
+      "\u001b[0;31mValueError\u001b[0m: could not convert string to float: np.str_('oups')"
      ]
     }
    ],
@@ -1511,7 +1511,7 @@
    "id": "e870925c-e520-43c1-85c0-3450af31ca26",
    "metadata": {},
    "source": [
-    "<img src=\"img/exo_table1.png\">"
+    "<img src=\"../images/exo_table1.png\">"
    ]
   },
   {
@@ -1530,7 +1530,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 52,
+   "execution_count": 53,
    "id": "fe54df35-dd1d-44eb-8087-7122b1e07265",
    "metadata": {},
    "outputs": [
@@ -1544,7 +1544,7 @@
        "       [40, 41, 42, 43, 44]])"
       ]
      },
-     "execution_count": 52,
+     "execution_count": 53,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1557,7 +1557,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 53,
+   "execution_count": 54,
    "id": "9c204b45-396d-4b43-acd2-00a84f57a33a",
    "metadata": {},
    "outputs": [
@@ -1567,7 +1567,7 @@
        "array([0, 1, 2, 3, 4])"
       ]
      },
-     "execution_count": 53,
+     "execution_count": 54,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1579,17 +1579,17 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 119,
+   "execution_count": 55,
    "id": "8369f926-2572-4afc-a89b-6d35ff8b1921",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "(11, 13, 31, 33)"
+       "(np.int64(11), np.int64(13), np.int64(31), np.int64(33))"
       ]
      },
-     "execution_count": 119,
+     "execution_count": 55,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1601,7 +1601,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 55,
+   "execution_count": 56,
    "id": "22448595-9e9b-4e1d-9328-2ab409b83077",
    "metadata": {},
    "outputs": [
@@ -1612,7 +1612,7 @@
        "       [31, 33]])"
       ]
      },
-     "execution_count": 55,
+     "execution_count": 56,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1624,7 +1624,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 56,
+   "execution_count": 57,
    "id": "12cadf07-283f-4437-8586-846f94fd8721",
    "metadata": {},
    "outputs": [
@@ -1634,7 +1634,7 @@
        "array([ 0, 10, 20, 30, 40])"
       ]
      },
-     "execution_count": 56,
+     "execution_count": 57,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1646,7 +1646,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 57,
+   "execution_count": 58,
    "id": "48e14271-99bb-4089-b761-d338c7975ede",
    "metadata": {},
    "outputs": [
@@ -1656,7 +1656,7 @@
        "array([23, 24])"
       ]
      },
-     "execution_count": 57,
+     "execution_count": 58,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1668,7 +1668,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 58,
+   "execution_count": 59,
    "id": "98a2ff9b-1906-4b2b-9fff-4a735597606b",
    "metadata": {},
    "outputs": [
@@ -1679,7 +1679,7 @@
        "       [43, 44]])"
       ]
      },
-     "execution_count": 58,
+     "execution_count": 59,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1701,7 +1701,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 59,
+   "execution_count": 60,
    "id": "05e69472-aa21-4f51-8989-e759ee7a1159",
    "metadata": {},
    "outputs": [],
@@ -1711,7 +1711,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 60,
+   "execution_count": 61,
    "id": "3da2f5f2-c302-4e35-b5c3-3d4f3f8d860f",
    "metadata": {},
    "outputs": [],
@@ -1722,7 +1722,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 61,
+   "execution_count": 62,
    "id": "503d63fa-58b2-4bfe-af4c-d08e54f41103",
    "metadata": {},
    "outputs": [
@@ -1732,7 +1732,7 @@
        "(array([1, 2, 3, 4, 5]), array([1, 2, 3, 4, 5]))"
       ]
      },
-     "execution_count": 61,
+     "execution_count": 62,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1743,7 +1743,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 62,
+   "execution_count": 63,
    "id": "f4664618-a1aa-40e7-b2e3-19221bd7954a",
    "metadata": {},
    "outputs": [],
@@ -1753,7 +1753,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 63,
+   "execution_count": 64,
    "id": "e4a1c3f9-8a02-46be-bb51-14db61cb7755",
    "metadata": {},
    "outputs": [
@@ -1763,7 +1763,7 @@
        "(array([ 1,  2, 30,  4,  5]), array([ 1,  2, 30,  4,  5]))"
       ]
      },
-     "execution_count": 63,
+     "execution_count": 64,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1774,7 +1774,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 64,
+   "execution_count": 65,
    "id": "58efbf90-4a57-46ed-bb97-c998f4f9d025",
    "metadata": {},
    "outputs": [],
@@ -1784,7 +1784,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 65,
+   "execution_count": 66,
    "id": "16178b9b-f7f7-4805-9493-ac6c55fb013f",
    "metadata": {},
    "outputs": [
@@ -1794,7 +1794,7 @@
        "(array([ 1,  2, 30,  0,  0]), array([ 1,  2, 30,  0,  0]))"
       ]
      },
-     "execution_count": 65,
+     "execution_count": 66,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1815,7 +1815,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 120,
+   "execution_count": 67,
    "id": "44a0929f-fb62-4f50-bf00-a0eabcfaf387",
    "metadata": {},
    "outputs": [
@@ -1825,7 +1825,7 @@
        "(array([  1,   2, 300,   4,   5]), array([  1,   2, 300,   4,   5]))"
       ]
      },
-     "execution_count": 120,
+     "execution_count": 67,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1839,7 +1839,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 122,
+   "execution_count": 68,
    "id": "aebba68e-5679-4a73-8b79-e355eb630dee",
    "metadata": {},
    "outputs": [
@@ -1849,7 +1849,7 @@
        "array([  1,   2, 300,   4,   5])"
       ]
      },
-     "execution_count": 122,
+     "execution_count": 68,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1861,7 +1861,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 123,
+   "execution_count": 69,
    "id": "287123c1-5ab2-4ede-8371-2699fc8aedb0",
    "metadata": {},
    "outputs": [
@@ -1871,7 +1871,7 @@
        "(array([  1,   2, 150,   4,   5]), array([  1,   2, 300,   4,   5]))"
       ]
      },
-     "execution_count": 123,
+     "execution_count": 69,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1906,7 +1906,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 67,
+   "execution_count": 70,
    "id": "df226fb1-d572-42b7-993a-e5710cfe7abd",
    "metadata": {},
    "outputs": [
@@ -1916,7 +1916,7 @@
        "array([ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15])"
       ]
      },
-     "execution_count": 67,
+     "execution_count": 70,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1936,7 +1936,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 68,
+   "execution_count": 71,
    "id": "fb5b4ee3-49dd-423e-a6c1-e6b04887ef65",
    "metadata": {},
    "outputs": [
@@ -1947,7 +1947,7 @@
        "       False, False, False, False, False,  True, False])"
       ]
      },
-     "execution_count": 68,
+     "execution_count": 71,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1958,7 +1958,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 69,
+   "execution_count": 72,
    "id": "bdbfa641-41f3-47df-b701-9e1bb53585a1",
    "metadata": {},
    "outputs": [
@@ -1968,7 +1968,7 @@
        "array([ 0,  7, 14])"
       ]
      },
-     "execution_count": 69,
+     "execution_count": 72,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -1980,7 +1980,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 70,
+   "execution_count": 73,
    "id": "70a9d62a-6652-41dd-9757-bed6bd523939",
    "metadata": {},
    "outputs": [
@@ -1991,7 +1991,7 @@
        "         11,   12,   13, -100,   15])"
       ]
      },
-     "execution_count": 70,
+     "execution_count": 73,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2004,7 +2004,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 71,
+   "execution_count": 74,
    "id": "3e83e3cb-89b9-42a5-af67-5925c2b6f6ec",
    "metadata": {},
    "outputs": [],
@@ -2014,7 +2014,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 72,
+   "execution_count": 75,
    "id": "dbcc4a1e-20e1-4dcc-99b2-80d18eaeb1f2",
    "metadata": {},
    "outputs": [
@@ -2024,7 +2024,7 @@
        "array([-1,  2, -3, -4])"
       ]
      },
-     "execution_count": 72,
+     "execution_count": 75,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2037,7 +2037,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 73,
+   "execution_count": 76,
    "id": "7a2cb72a-5ea3-45a9-a428-bb9f91b38267",
    "metadata": {},
    "outputs": [
@@ -2047,7 +2047,7 @@
        "array([-1, -3, -4, -5])"
       ]
      },
-     "execution_count": 73,
+     "execution_count": 76,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2077,7 +2077,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 74,
+   "execution_count": 77,
    "id": "4aa35130-ab00-4454-9e95-dd1b83c0ef65",
    "metadata": {},
    "outputs": [],
@@ -2087,7 +2087,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 75,
+   "execution_count": 78,
    "id": "004c6b0a-b746-440b-b0de-768105c5f8ff",
    "metadata": {},
    "outputs": [
@@ -2102,7 +2102,7 @@
        "       [50, 51, 52, 53, 54, 55]])"
       ]
      },
-     "execution_count": 75,
+     "execution_count": 78,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2113,7 +2113,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 76,
+   "execution_count": 79,
    "id": "fd6ffaa9-51ae-4c5f-9df5-fee28c60c8ce",
    "metadata": {},
    "outputs": [
@@ -2123,7 +2123,7 @@
        "array([ 1, 12, 23, 34, 45])"
       ]
      },
-     "execution_count": 76,
+     "execution_count": 79,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2135,7 +2135,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 77,
+   "execution_count": 80,
    "id": "138b542e-7600-4a44-857e-ff22196248f8",
    "metadata": {},
    "outputs": [
@@ -2147,7 +2147,7 @@
        "       [50, 52, 55]])"
       ]
      },
-     "execution_count": 77,
+     "execution_count": 80,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2159,7 +2159,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 78,
+   "execution_count": 81,
    "id": "9f46cd0e-1091-45d8-bef6-0556ebd4de87",
    "metadata": {},
    "outputs": [
@@ -2169,7 +2169,7 @@
        "array([ 4, 24, 54])"
       ]
      },
-     "execution_count": 78,
+     "execution_count": 81,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2181,7 +2181,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 79,
+   "execution_count": 82,
    "id": "db0028dc-5cf2-4bc0-a104-d861bed4cb1e",
    "metadata": {},
    "outputs": [
@@ -2191,7 +2191,7 @@
        "array([ 4, 24, 54])"
       ]
      },
-     "execution_count": 79,
+     "execution_count": 82,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2211,7 +2211,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 80,
+   "execution_count": 83,
    "id": "d514d0e2-d739-4f46-a04b-423b65222ab0",
    "metadata": {},
    "outputs": [],
@@ -2225,7 +2225,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 81,
+   "execution_count": 84,
    "id": "a9a1823e-3d4b-46d8-85c6-131d9e8a24ed",
    "metadata": {},
    "outputs": [
@@ -2236,7 +2236,7 @@
        "       [1.8, 6.4]])"
       ]
      },
-     "execution_count": 81,
+     "execution_count": 84,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2257,7 +2257,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 82,
+   "execution_count": 85,
    "id": "abaeea51-55b6-4bd7-806a-af9a5b7c7bc6",
    "metadata": {},
    "outputs": [],
@@ -2267,7 +2267,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 83,
+   "execution_count": 86,
    "id": "df03e4ad-5ab2-41e9-a4ab-ebf5ce95c81a",
    "metadata": {},
    "outputs": [],
@@ -2277,7 +2277,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 84,
+   "execution_count": 87,
    "id": "cda76afb-1fc7-4163-a0b0-f3073c84a6a3",
    "metadata": {},
    "outputs": [
@@ -2290,7 +2290,7 @@
        "        [-0.2,  0.4]]))"
       ]
      },
-     "execution_count": 84,
+     "execution_count": 87,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2301,7 +2301,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 85,
+   "execution_count": 88,
    "id": "4225c892-6cb0-4646-b77a-6f6048b6b6ed",
    "metadata": {},
    "outputs": [
@@ -2312,7 +2312,7 @@
        "       [-0.4,  2.4]])"
       ]
      },
-     "execution_count": 85,
+     "execution_count": 88,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2334,7 +2334,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 86,
+   "execution_count": 89,
    "id": "1b473d9c-0829-4126-865c-02868e3cbd9e",
    "metadata": {},
    "outputs": [
@@ -2345,7 +2345,7 @@
        "       [-1.11022302e-16,  1.00000000e+00]])"
       ]
      },
-     "execution_count": 86,
+     "execution_count": 89,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2357,7 +2357,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 87,
+   "execution_count": 90,
    "id": "7801f83c-97af-4914-be29-4cebd6600901",
    "metadata": {},
    "outputs": [
@@ -2368,7 +2368,7 @@
        "       [-0.,  1.]])"
       ]
      },
-     "execution_count": 87,
+     "execution_count": 90,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2387,7 +2387,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 88,
+   "execution_count": 91,
    "id": "d18a1e4d-5bf7-46a8-a4f7-968b692e2ce8",
    "metadata": {},
    "outputs": [],
@@ -2397,7 +2397,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 89,
+   "execution_count": 92,
    "id": "2d537f9c-454b-4b75-879a-626cd97fc9ee",
    "metadata": {},
    "outputs": [
@@ -2421,7 +2421,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 90,
+   "execution_count": 93,
    "id": "e501a139-9e25-40b4-8c24-ee830f8ddfe1",
    "metadata": {},
    "outputs": [],
@@ -2434,17 +2434,17 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 91,
+   "execution_count": 94,
    "id": "67bb7f69-c474-4fc8-bf05-9ea39a886425",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "25"
+       "np.int64(25)"
       ]
      },
-     "execution_count": 91,
+     "execution_count": 94,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2455,7 +2455,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 92,
+   "execution_count": 95,
    "id": "7c4cdca1-e81b-4eea-b7dd-5a7a490f9da0",
    "metadata": {},
    "outputs": [
@@ -2465,7 +2465,7 @@
        "array([ 3, 18,  4])"
       ]
      },
-     "execution_count": 92,
+     "execution_count": 95,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2476,7 +2476,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 93,
+   "execution_count": 96,
    "id": "53413090-49ba-4ecb-96de-6edc48169bff",
    "metadata": {},
    "outputs": [
@@ -2486,7 +2486,7 @@
        "array([12, 13])"
       ]
      },
-     "execution_count": 93,
+     "execution_count": 96,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2505,7 +2505,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 94,
+   "execution_count": 97,
    "id": "671bd896-5aa0-4ebf-b894-addf94453844",
    "metadata": {},
    "outputs": [],
@@ -2515,22 +2515,22 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 95,
+   "execution_count": 98,
    "id": "9ba4ce3a-51ab-4284-97df-0d0c87625783",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "array([[-0.49113682,  0.28880782],\n",
-       "       [-1.89906736, -0.58253771],\n",
-       "       [ 1.0224148 , -0.11296469],\n",
-       "       [ 1.14279032,  0.00567871],\n",
-       "       [-1.03474836,  1.44914073],\n",
-       "       [ 1.30421041,  1.60822144]])"
+       "array([[-0.26020648,  0.26368625],\n",
+       "       [ 0.42129755, -0.56914431],\n",
+       "       [-0.40631094, -2.08134291],\n",
+       "       [-0.1991786 ,  1.04618945],\n",
+       "       [-0.50518875, -1.01945961],\n",
+       "       [ 0.40947048,  0.40108879]])"
       ]
      },
-     "execution_count": 95,
+     "execution_count": 98,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2541,7 +2541,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 96,
+   "execution_count": 99,
    "id": "7402047a-c8ef-4015-be8e-16e72c0e9bd4",
    "metadata": {},
    "outputs": [
@@ -2549,10 +2549,9 @@
      "name": "stdout",
      "output_type": "stream",
      "text": [
-      "[ 1.0224148  -0.11296469]\n",
-      "[1.14279032 0.00567871]\n",
-      "[-1.03474836  1.44914073]\n",
-      "[1.30421041 1.60822144]\n"
+      "[-0.26020648  0.26368625]\n",
+      "[-0.1991786   1.04618945]\n",
+      "[0.40947048 0.40108879]\n"
      ]
     }
    ],
@@ -2564,7 +2563,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 97,
+   "execution_count": 100,
    "id": "5d844860-7ff0-459b-b9ac-6f2064fc9433",
    "metadata": {},
    "outputs": [
@@ -2572,11 +2571,7 @@
      "name": "stdout",
      "output_type": "stream",
      "text": [
-      "1.0224148000050624\n",
-      "1.1427903227607883\n",
-      "1.4491407331363357\n",
-      "1.304210408041745\n",
-      "1.608221438002454\n"
+      "1.046189447818475\n"
      ]
     }
    ],
@@ -2588,7 +2583,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 98,
+   "execution_count": 101,
    "id": "126c649a-2d22-474a-b296-79780879bfd2",
    "metadata": {},
    "outputs": [
@@ -2596,7 +2591,7 @@
      "name": "stderr",
      "output_type": "stream",
      "text": [
-      "<ipython-input-98-396fc74286c3>:1: RuntimeWarning: invalid value encountered in sqrt\n",
+      "/tmp/ipykernel_30528/3450995395.py:1: RuntimeWarning: invalid value encountered in sqrt\n",
       "  res = np.sqrt(-1)\n"
      ]
     }
@@ -2607,17 +2602,17 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 99,
+   "execution_count": 102,
    "id": "de9dcc1b-50fa-4c36-ae0c-949c6feec993",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "nan"
+       "np.float64(nan)"
       ]
      },
-     "execution_count": 99,
+     "execution_count": 102,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2628,17 +2623,17 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 100,
+   "execution_count": 103,
    "id": "4baa648b-3dac-4b6f-8bcb-ec412bc70588",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "True"
+       "np.True_"
       ]
      },
-     "execution_count": 100,
+     "execution_count": 103,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2649,7 +2644,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 101,
+   "execution_count": 104,
    "id": "5e7cca16-f5c3-42fc-8000-8d51a9a8a306",
    "metadata": {},
    "outputs": [
@@ -2659,7 +2654,7 @@
        "1.7976931348623157e+308"
       ]
      },
-     "execution_count": 101,
+     "execution_count": 104,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2671,7 +2666,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 102,
+   "execution_count": 105,
    "id": "60ae8823-eea4-4fa4-8143-c28363cc057f",
    "metadata": {},
    "outputs": [
@@ -2679,7 +2674,7 @@
      "name": "stderr",
      "output_type": "stream",
      "text": [
-      "<ipython-input-102-5f50193860e4>:1: RuntimeWarning: overflow encountered in multiply\n",
+      "/tmp/ipykernel_30528/3411038522.py:1: RuntimeWarning: overflow encountered in multiply\n",
       "  res = np.array([1e308,1e300]) * 10\n"
      ]
     }
@@ -2690,7 +2685,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 103,
+   "execution_count": 106,
    "id": "0f1d4df4-f241-4631-9cbd-adf47a59f1a7",
    "metadata": {},
    "outputs": [
@@ -2700,7 +2695,7 @@
        "array([    inf, 1.e+301])"
       ]
      },
-     "execution_count": 103,
+     "execution_count": 106,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2719,7 +2714,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 105,
+   "execution_count": 107,
    "id": "7c3004c5-76a7-467b-9439-ecc01c32e65f",
    "metadata": {},
    "outputs": [],
@@ -2729,7 +2724,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 106,
+   "execution_count": 108,
    "id": "21f0e588-628a-4c28-872f-6f1057950b8e",
    "metadata": {},
    "outputs": [
@@ -2743,7 +2738,7 @@
        "       [0, 0, 0, 0]])"
       ]
      },
-     "execution_count": 106,
+     "execution_count": 108,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2764,7 +2759,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 107,
+   "execution_count": 109,
    "id": "43e34be1-6075-4358-97ea-b1f317b8fa8e",
    "metadata": {},
    "outputs": [
@@ -2776,7 +2771,7 @@
        "       [ 8,  9, 10, 11]])"
       ]
      },
-     "execution_count": 107,
+     "execution_count": 109,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2788,7 +2783,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 108,
+   "execution_count": 110,
    "id": "f377af8c-b264-4bdc-bce1-43cc5f7d7788",
    "metadata": {},
    "outputs": [
@@ -2801,7 +2796,7 @@
        "       [ 3,  7, 11]])"
       ]
      },
-     "execution_count": 108,
+     "execution_count": 110,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2824,7 +2819,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 109,
+   "execution_count": 111,
    "id": "1c44286f-0a9c-4943-9288-6797ecebfb90",
    "metadata": {},
    "outputs": [
@@ -2847,7 +2842,7 @@
        "        [22, 23]]])"
       ]
      },
-     "execution_count": 109,
+     "execution_count": 111,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2859,7 +2854,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 110,
+   "execution_count": 112,
    "id": "669aacba-f92b-417c-bac2-a03bcb90c529",
    "metadata": {},
    "outputs": [
@@ -2877,7 +2872,7 @@
        "        [ 7, 15, 23]]])"
       ]
      },
-     "execution_count": 110,
+     "execution_count": 112,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2889,7 +2884,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 111,
+   "execution_count": 113,
    "id": "62303e1d-5192-4112-9809-b0fcdd3b053b",
    "metadata": {},
    "outputs": [
@@ -2899,7 +2894,7 @@
        "((3, 4, 2), (2, 4, 3))"
       ]
      },
-     "execution_count": 111,
+     "execution_count": 113,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2918,7 +2913,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 127,
+   "execution_count": 114,
    "id": "41f5d5e0-6734-4cc4-a34b-124080bca6ee",
    "metadata": {},
    "outputs": [
@@ -2929,7 +2924,7 @@
        "       [4, 5, 6]])"
       ]
      },
-     "execution_count": 127,
+     "execution_count": 114,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2943,7 +2938,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 113,
+   "execution_count": 115,
    "id": "5dfb4a39-bea4-4fee-96b9-b705a04d4fe1",
    "metadata": {},
    "outputs": [
@@ -2953,7 +2948,7 @@
        "array([1, 2, 3, 4, 5, 6])"
       ]
      },
-     "execution_count": 113,
+     "execution_count": 115,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2965,7 +2960,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 132,
+   "execution_count": 116,
    "id": "cd14e23e-bb95-4270-ae9b-bbaf65940498",
    "metadata": {},
    "outputs": [
@@ -2976,7 +2971,7 @@
        "       [ 3,  4,  5, 13, 14, 15]])"
       ]
      },
-     "execution_count": 132,
+     "execution_count": 116,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -2997,7 +2992,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 115,
+   "execution_count": 117,
    "id": "62861c8f-3128-4a06-b23b-4908fbfeea60",
    "metadata": {},
    "outputs": [
@@ -3007,7 +3002,7 @@
        "array([ 1,  2,  5,  7,  8, 10])"
       ]
      },
-     "execution_count": 115,
+     "execution_count": 117,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -3020,7 +3015,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 116,
+   "execution_count": 118,
    "id": "0dd2dedc-3b44-4ac3-9fa9-f7211f2bbc5e",
    "metadata": {},
    "outputs": [
@@ -3030,7 +3025,7 @@
        "array([ 1,  2,  5,  7,  8, 10])"
       ]
      },
-     "execution_count": 116,
+     "execution_count": 118,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -3043,7 +3038,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 117,
+   "execution_count": 119,
    "id": "7a3842bf-e445-4203-9674-ec6d2fd50586",
    "metadata": {},
    "outputs": [
@@ -3053,7 +3048,7 @@
        "array([ 5,  1, 10,  2,  7,  8])"
       ]
      },
-     "execution_count": 117,
+     "execution_count": 119,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -3064,7 +3059,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 118,
+   "execution_count": 120,
    "id": "2f8c81b1-fac2-4073-a965-166e1d144170",
    "metadata": {},
    "outputs": [
@@ -3074,7 +3069,7 @@
        "array([1, 3, 0, 4, 5, 2])"
       ]
      },
-     "execution_count": 118,
+     "execution_count": 120,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -3123,7 +3118,7 @@
    "name": "python",
    "nbconvert_exporter": "python",
    "pygments_lexer": "ipython3",
-   "version": "3.10.12"
+   "version": "3.11.10"
   }
  },
  "nbformat": 4,
-- 
GitLab