From c1136f852209e87abddec15bd75a56b32b119741 Mon Sep 17 00:00:00 2001 From: 3a8a08e9391701ee31513ee7080f15a0 <3a8a08e9391701ee31513ee7080f15a0@app-learninglab.inria.fr> Date: Wed, 8 Jun 2022 11:56:41 +0000 Subject: [PATCH] Upload New File --- module2/exo1/Tutorial.ipynb | 178 ++++++++++++++++++++++++++++++++++++ 1 file changed, 178 insertions(+) create mode 100644 module2/exo1/Tutorial.ipynb diff --git a/module2/exo1/Tutorial.ipynb b/module2/exo1/Tutorial.ipynb new file mode 100644 index 0000000..bc29587 --- /dev/null +++ b/module2/exo1/Tutorial.ipynb @@ -0,0 +1,178 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "246dfed9", + "metadata": {}, + "source": [ + "# Titre du document" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "79e8ee5c", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "4" + ], + "text/latex": [ + "4" + ], + "text/markdown": [ + "4" + ], + "text/plain": [ + "[1] 4" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "2+2" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "a2287cb4", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[1] 30\n" + ] + } + ], + "source": [ + "x = 25 + 5\n", + "print(x)" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "e75b5f10", + "metadata": {}, + "outputs": [ + { + "ename": "ERROR", + "evalue": "Error in parse(text = x, srcfile = src): :1:6: unexpected symbol\n1: from math\n ^\n", + "output_type": "error", + "traceback": [ + "Error in parse(text = x, srcfile = src): :1:6: unexpected symbol\n1: from math\n ^\nTraceback:\n" + ] + } + ], + "source": [ + "from math import *" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "71d516bc", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[1] 5\n" + ] + } + ], + "source": [ + "a = sqrt(25)\n", + "print(a)" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "522f91ed", + "metadata": {}, + "outputs": [ + { + "ename": "ERROR", + "evalue": "Error in parse(text = x, srcfile = src): :1:8: unexpected symbol\n1: import numpy\n ^\n", + "output_type": "error", + "traceback": [ + "Error in parse(text = x, srcfile = src): :1:8: unexpected symbol\n1: import numpy\n ^\nTraceback:\n" + ] + } + ], + "source": [ + "import numpy as np\n", + "mu, sigma = 100, 15" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "id": "a1831865", + "metadata": {}, + "outputs": [], + "source": [ + "L = np.random.normal(loc=mu, scale= sigma, size=1000)\n", + "import matplotlib.pyplot as plt" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "c1c71b1e", + "metadata": {}, + "outputs": [ + { + "ename": "ERROR", + "evalue": "Error in parse(text = x, srcfile = src): :1:1: unexpected input\n1: %matplotlib inline\n ^\n", + "output_type": "error", + "traceback": [ + "Error in parse(text = x, srcfile = src): :1:1: unexpected input\n1: %matplotlib inline\n ^\nTraceback:\n" + ] + } + ], + "source": [ + "%matplotlib inline\n", + "plt.hist(L)\n", + "plt.show()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "1fc3d663", + "metadata": {}, + "outputs": [], + "source": [ + "plot.function(ln)" + ] + } + ], + "metadata": { + "celltoolbar": "Format de la Cellule Texte Brut", + "kernelspec": { + "display_name": "R", + "language": "R", + "name": "ir" + }, + "language_info": { + "codemirror_mode": "r", + "file_extension": ".r", + "mimetype": "text/x-r-source", + "name": "R", + "pygments_lexer": "r", + "version": "3.6.1" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} -- 2.18.1