Upload New File

parent 390853d5
{
"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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment