From 4e6082e365e3a36b1a3e507166a0b0be1340e17e Mon Sep 17 00:00:00 2001 From: 8a6da0ed3388ea9ce522c47690f07cba <8a6da0ed3388ea9ce522c47690f07cba@app-learninglab.inria.fr> Date: Tue, 31 Mar 2020 13:50:24 +0000 Subject: [PATCH] =?UTF-8?q?calculs=20termin=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module2/exo2/exercice.ipynb | 84 +++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/module2/exo2/exercice.ipynb b/module2/exo2/exercice.ipynb index 5745d2c..d4e0975 100644 --- a/module2/exo2/exercice.ipynb +++ b/module2/exo2/exercice.ipynb @@ -34,6 +34,90 @@ "round(x,2)" ] }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "4.33" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "x = np.std(list, 0, ddof = 1)\n", + "round(x,2)" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "2.8" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "x = np.min(list)\n", + "round(x,2)" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "23.4" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "x = np.max(list)\n", + "round(x,2)" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "14.5" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "x = np.median(list, 0)\n", + "round(x,2)" + ] + }, { "cell_type": "code", "execution_count": null, -- 2.18.1