-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
J'ai complété ma révision jusqu'a la date du 2024-09-06
- Loading branch information
Inlinkcraft
committed
Sep 11, 2024
1 parent
92b2c23
commit 6eed07a
Showing
8 changed files
with
215 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
"state": { | ||
"type": "markdown", | ||
"state": { | ||
"file": "GLO-2100-REV-1.md", | ||
"file": "README.md", | ||
"mode": "source", | ||
"backlinks": true, | ||
"source": true | ||
|
@@ -35,7 +35,7 @@ | |
"state": { | ||
"type": "markdown", | ||
"state": { | ||
"file": "GLO-2100-REV-1.md", | ||
"file": "README.md", | ||
"mode": "source", | ||
"backlinks": true, | ||
"source": false | ||
|
@@ -127,7 +127,7 @@ | |
"state": { | ||
"type": "outline", | ||
"state": { | ||
"file": "GLO-2100-REV-1.md" | ||
"file": "README.md" | ||
} | ||
} | ||
} | ||
|
@@ -144,7 +144,7 @@ | |
"state": { | ||
"type": "backlink", | ||
"state": { | ||
"file": "GLO-2100-REV-1.md", | ||
"file": "README.md", | ||
"collapseAll": false, | ||
"extraContext": false, | ||
"sortOrder": "alphabetical", | ||
|
@@ -173,34 +173,34 @@ | |
"workspaces:Manage workspace layouts": false | ||
} | ||
}, | ||
"active": "3ce35993eb66e939", | ||
"active": "558473a00c944deb", | ||
"lastOpenFiles": [ | ||
"Récursivité.md", | ||
"GLO-2100-REV-1.md", | ||
"Notation asymptotique.md", | ||
"GLO-2100.md", | ||
"STT-2920-REV-1.md", | ||
"GLO-2100-Labo-1.md", | ||
"GLO-2100-REV-Labo-1.md", | ||
"CMake.md", | ||
"Flag de compilation.md", | ||
"MAT-2930-REV-1.md", | ||
"Vecteur.md", | ||
"MAT-2930.md", | ||
"README.md", | ||
"GLO-2100-REV-1.md", | ||
"Récursivité.md", | ||
"Notation asymptotique.md", | ||
"Opération baromètre.md", | ||
"Approche algorithmique.md", | ||
"Approche empirique.md", | ||
"MAT-2930.md", | ||
"Calendar.md", | ||
"Algorithme.md", | ||
"STT-2920-REV-1.md", | ||
"[email protected]", | ||
"Templates/Class-Template.md", | ||
"GEL-1000.md", | ||
"STT-2920-EX-1.md", | ||
"STT-2920.md", | ||
"GLO-2100-Labo-1.md", | ||
"GEL-1000-EX-Socrative-1.md", | ||
"GEL-1000-EX-1.md", | ||
"Résistance électrique.md", | ||
"Templates/Exercise-Template.md", | ||
"Cas discret.md", | ||
"Cas continue.md", | ||
"Admittance.md", | ||
"Circuit électrique.md", | ||
"Templates", | ||
"Classes/Untitled", | ||
"Classes" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: CMake | ||
type: wiki | ||
--- | ||
### Setup initial | ||
--- | ||
Pour initialiser un project avec cmake. | ||
1. Créé un fichier nommer exactement `CMakeLists.txt` | ||
2. Écrire ce qui suit dans le fichier | ||
```c | ||
# CMakeLists.txt | ||
|
||
cmake_minimum_require(VERSION 3.10) | ||
|
||
project(nom_du_projet) | ||
|
||
add_executable(nom_executable main.cpp autre_fichier.cpp) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
name: Flag de compilation | ||
type: Matière | ||
--- | ||
Les flag de compilation sont des spécification pour le compilateur afin d'optimiser le code et le rendre plus rapide ou plus léger aux besoin. | ||
|
||
### Flag d'optimisation | ||
--- | ||
Les flag d'optimisation sont les droit donné aux compilateur pour qu'il simplifie le code. | ||
``` | ||
-O0 # Aucune optimisation | ||
-O1 # Optimisation de base | ||
-O2 # Optimisation supplémentaire (Est le plus courant) | ||
-O3 # Optimisation maximal | ||
-Os # Optimisation pour la taille | ||
-Ofast # Optimisation pour la vitesse d'execution | ||
``` | ||
|
||
### Flag sécurité | ||
--- | ||
Les drapeau de sécurité permette de spécifier les message qui vont être visible | ||
``` | ||
-Wall # Tous les warning | ||
-Wextra # Message supplémantaire | ||
-Werror # Les avertissement seront des erreur | ||
-pdantic # Conforme aux norme | ||
-g # Permet de spécifier un débauger externe | ||
``` | ||
|
||
### Autre flag | ||
--- | ||
Voir la documentation du compilateur... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: Révision laboratoire 1 | ||
type: Revision | ||
class: GLO-2100 | ||
date: 2024-09-06 | ||
--- | ||
# Introduction à la compilation | ||
Pour compiler des fichier c++ en version longue il suffit de faire les étape suivante | ||
``` | ||
c++ fichier.cpp -E fichier.i # Préprocessing | ||
c++ fichier.i -S fichier.s # Compilation | ||
c++ fichier.s -c fichier.o # Objet | ||
c++ fichier.o -o nomDuProgram.exe # Executable | ||
``` | ||
|
||
Version "plus rapide" | ||
``` | ||
c++ fichier.cpp -o nomDuProgram.exe # Executable | ||
``` | ||
|
||
## Flag de compilation | ||
Lors de la compilation il est possible de spécifier des [[Flag de compilation|flag de compilation]] qui aide a optimiser le code et le rendre plus rapide. | ||
|
||
# CMAKE | ||
![[CMake]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
name: Révision cours-1 | ||
type: Revision | ||
class: MAT-2930 | ||
date: 2024-09-05 | ||
--- | ||
# Plan de cours | ||
- Lundi: 2em heure -> Atelier | ||
- Exercise diriger en python | ||
- Exercise sur PAX | ||
|
||
# Module 1 : Vecteur | ||
|
||
Un [[Vecteur|vecteur]] est une façons de représenter un couple de valeur numérique qui peut représenter une point dans un plan cartésiens. Celui-ci à un sens, direction et longueur. | ||
|
||
voir [[Vecteur]]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
name: Vecteur | ||
type: Matière | ||
--- | ||
|
||
Un [[Vecteur|vecteur]] est une façons de représenter un couple de valeur numérique qui peut représenter une point dans un plan cartésiens. Celui-ci à un sens, direction et longueur. | ||
|
||
> [!Info] | ||
> Deux vecteur sont équivalent si et seulement si: | ||
> - Longueur | ||
> - Direction | ||
> - Sens | ||
> | ||
> sont égale entre les deux vecteur | ||
### Représentation mathématique | ||
--- | ||
Les vecteur en mathématique sont représenter par des lettre minuscule avec une flèche aux dessus. | ||
$$\vec{a} = \vec{OA} = \left[\array{a_{1} \\ a_{2} \\ \vdots}\right]$$ | ||
|
||
> [!Info] | ||
> La représentation majuscule $\vec{OA}$ signifie un vecteur allant du point $O$ aux point $A$ | ||
> $$\vec{AB} = \left[\array{b_{1} \\ b_{2}}\right] - \left[\array{a_{1} \\ a_{2}}\right]$$ | ||
### Vecteur nul | ||
--- | ||
Le vecteur nul est le vecteur où tous ces composante sont égale à 0. | ||
$$\vec{0} = \left[\array{0 \\ 0 \\ \vdots}\right]$$ | ||
|
||
### Opération mathématique | ||
--- | ||
#### Addition de vecteur | ||
$$\vec{a} + \vec{b} = \left[\array{a_{1} \\ a_{2} \\ \vdots }\right] + \left[\array{b_{1} \\ b_{2} \\ \vdots}\right] = \left[\array{a_{1} + b_{1} \\ a_{2} + b_{2} \\ \vdots }\right]$$ | ||
|
||
#### Soustraction de vecteur | ||
$$\vec{a} - \vec{b} = \vec{a} + (-\vec{b}) = \left[\array{a_{1} \\ a_{2} \\ \vdots }\right] - \left[\array{b_{1} \\ b_{2} \\ \vdots}\right] = \left[\array{a_{1} \\ a_{2} \\ \vdots }\right] + \left[\array{-b_{1} \\ -b_{2} \\ \vdots}\right] = \left[\array{a_{1} - b_{1} \\ a_{2} - b_{2} \\ \vdots }\right]$$ | ||
|
||
#### Multiplication par un scalaire | ||
$$n\vec{a} = n\left[\array{a_{1} \\ a_{2} \\ \vdots }\right] = \left[\array{na_{1} \\ na_{2} \\ \vdots }\right]$$ | ||
|
||
### Combinaison Linéaire | ||
--- | ||
La combinaison linéaire est une combinaison de $n$ vecteur et $n$ scalaire afin de décrire une espace. Les constante permette de naviguer cet espace. | ||
$$\vec{y} = c_1\vec{v_{1}} + c_2\vec{v_{2}}$$ | ||
|
||
> [!info] Indépendance linéaire | ||
> L'indépendance linéaire est lorsque qu'un vecteur ne peut pas être décrit à l'aide d'une combinaison linéaire de d'autre vecteur. En d'autre mots le [[Vecteur#Produit scalaire (dot product)|produit scalaire]] est égale à $0$ | ||
### Produit scalaire (dot product) | ||
--- | ||
Le produit scalaire permet de trouver la norme et différente propriété d'un vecteur. | ||
$$\vec{u} \cdot \vec{v} = u_{1}v_{1} + u_{2}u_{2} + \dots + u_{i}v_{i} = a$$ | ||
|
||
#### Trouver la norme | ||
Trouver la [[Norme|norme]], longueur du vecteur. | ||
$$||\vec{u}|| = \sqrt{\vec{u} \cdot \vec{u}}$$ | ||
|
||
> [!Info] Inégalité du triangle | ||
> Le plus long que l'addition de deux vecteur peut être ces quand il on le même sens | ||
> $$||\vec{u} + \vec{v}|| = ||\vec{u}|| + ||\vec{v}||$$ |