Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3a8a08e9391701ee31513ee7080f15a0
mooc-rr
Commits
c1136f85
Commit
c1136f85
authored
Jun 08, 2022
by
3a8a08e9391701ee31513ee7080f15a0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
390853d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
178 additions
and
0 deletions
+178
-0
Tutorial.ipynb
module2/exo1/Tutorial.ipynb
+178
-0
No files found.
module2/exo1/Tutorial.ipynb
0 → 100644
View file @
c1136f85
{
"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): <text>:1:6: unexpected symbol\n1: from math\n ^\n",
"output_type": "error",
"traceback": [
"Error in parse(text = x, srcfile = src): <text>: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): <text>:1:8: unexpected symbol\n1: import numpy\n ^\n",
"output_type": "error",
"traceback": [
"Error in parse(text = x, srcfile = src): <text>: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): <text>:1:1: unexpected input\n1: %matplotlib inline\n ^\n",
"output_type": "error",
"traceback": [
"Error in parse(text = x, srcfile = src): <text>: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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment