Licence en
Technologies de
l’Information
1
Mathématiques
Dr. Kods Hassine
(MAT 112) PMG 615
Islamic finance (part
one)
Chapitre 8: Mathématiques avec Python
2
Plan de cours
• Installer Python et Pycharm
• Opération mathématiques avec Python
• Module math
• Module numpy
• Module matplotlib
3
Installer Python
4
Installer Python
5
Installer Python
6
Installer Python
7
Installer Python
8
Installer Python
9
Installer Pycharm
PyCharm est un environnement de développement
intégré utilisé pour programmer en Python.
Il permet l'analyse de code
10
Installer Pycharm
11
Installer Pycharm
12
Installer Pycharm
13
Installer Pycharm
14
Installer PyCharm
15
Installer Pycharm
16
Installer Pycharm
17
Installer PyCharm
18
Installer PyCharm
19
Installer PyCharm
20
Installer PyCharm
21
Installer PyCharm
22
Installer PyCharm
23
Installer PyCharm
24
Installer PyCharm
25
Mon premier projet
26
Installer PyCharm
27
Ecrire un texte
28
La fonction print
29
La fonction print
30
La fonction print
31
Python comme calculatrice
32
Nombres complexes avec
Python
33
Nombres complexes avec
Python
34
Le module math dans
python
35
Le module math dans
Python
36
Le module math dans
Python
37
La fonction sum dans Python
38
Le module math dans
Python
39
Le module math dans
Python
40
Le module numpy dans Python
La bibliothèque NumPy permet d’effectuer des calculs numériques avec
Python. Elle introduit une gestion facilitée des tableaux de nombres.
Pour utiliser NumPy, vous devez au préalable vous placer dans un
environnement qui comprend cette bibliothèque.
Il faut au départ importer le package numpy avec l’instruction suivante :
>>> from numpy import *
Ou encore on utilise l'instruction suivante:
Import numpy as np
41
Le module numpy dans
Python
42
Le module numpy dans
Python
43
Le module numpy dans
Python
44
Le module numpy dans
Python
45
Le module matplotlib dans Python
Matplotlib est l'un des packages Python les plus
populaires utilisés pour le traçage des courbes &
visualisation de données. Il s'agit d'une bibliothèque
multiplateforme permettant de créer des tracés 2D à partir
de données dans des tableaux
46
Le module matplotlib dans Python
47
Le module matplotlib dans Python
48
Le module matplotlib dans
Python
49
Le module matplotlib dans Python
50
Le module matplotlib dans Python
51
Le module matplotlib dans Python
52
Le module matplotlib dans Python
53
PMG 615
À la prochaine
Islamic finance (part
one)
54