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
f8dc60cab5180566667b00ce62a51ae7
mooc-rr
Commits
8767d70c
You need to sign in or sign up before continuing.
Commit
8767d70c
authored
Jun 13, 2025
by
f8dc60cab5180566667b00ce62a51ae7
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Excercises 2.1. Commit notebook
parent
1d48ffec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
123 additions
and
0 deletions
+123
-0
toy_notebook_mission2.ipynb
module2/exo1/toy_notebook_mission2.ipynb
+123
-0
No files found.
module2/exo1/toy_notebook_mission2.ipynb
0 → 100644
View file @
8767d70c
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Some mathematical calculations"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.8"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"def f(x,y):\n",
" if y != 0:\n",
" return x/y\n",
" else:\n",
" return x/(y+1e-9)\n",
"\n",
"f(4,5)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" $$\\int_0^\\infty e^{-x^2} dx = \\frac{\\sqrt{\\pi}}{2}$$"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Partie 1: Creation of the list"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**A bullet list**:\n",
"\n",
"- the first ellemnt\n",
" -water\n",
" -LNAPL\n",
"\n",
"- the second element\n",
" -SER\n",
" -Polymer flooding\n",
"\n",
"**A nummbered list**:\n",
"\n",
"1. the first element\n",
"2. the second element"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# A code block"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello, world!\n"
]
}
],
"source": [
"print(\"Hello, world!\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
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