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
1261dbb44216db3152292d7ebd180f0d
mooc-rr
Commits
e6aff6d1
Commit
e6aff6d1
authored
Mar 01, 2023
by
1261dbb44216db3152292d7ebd180f0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fin
parent
d1918a60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
24 deletions
+22
-24
Exercice 02 1re partie
Exercice 02 1re partie
+22
-24
No files found.
Exercice 02 1re partie
View file @
e6aff6d1
{
# Calcul de Pi
"cells": [],
"metadata": {
from math import
"kernelspec": {
* print(pi)
"display_name": "Python 3",
"language": "python",
import numpy as np
"name": "python3"
np.random.seed(seed=42)
},
N = 10000
"language_info": {
x = np.random.uniform(size=N, low=0, high=1)
"codemirror_mode": {
theta = np.random.uniform(size=N, low=0, high=pi/2)
"name": "ipython",
2/(sum((x+np.sin(theta))>1)/N)
"version": 3
},
%matplotlib inline
"file_extension": ".py",
import matplotlib.pyplot as plt
"mimetype": "text/x-python",
np.random.seed(seed=42)
"name": "python",
N = 1000
"nbconvert_exporter": "python",
x = np.random.uniform(size=N, low=0, high=1)
"pygments_lexer": "ipython3",
y = np.random.uniform(size=N, low=0, high=1)
"version": "3.6.3"
}
},
"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