Bibl math include include Biblmath ----------------------Dé ?nition de la fonction d'allocation d'un vecteur oat allouerVecteur unsigned int nbre oat ptr ptr oat malloc nbre sizeof oat if ptr NULL printf n Erreur d'allocation mémoire n exit return ptr ---
include include Biblmath ----------------------Dé ?nition de la fonction d'allocation d'un vecteur oat allouerVecteur unsigned int nbre oat ptr ptr oat malloc nbre sizeof oat if ptr NULL printf n Erreur d'allocation mémoire n exit return ptr ---------------La saisie des données du tableau -----------------------void saisirVecteur oat Vect unsigned int nbre unsigned int i for i i -----------------A ?chage des données du tableau--------void a ?cherVecteur oat Vect unsigned int nbre unsigned int i for i i --------------------Liberation de la mémoire------------void libererVecteur oat Vect free Vect ------------------Allocation dynamique d'une matrice----------- oat allouerMatrice unsigned int nl unsigned int nc oat A unsigned int i allocation des lignes de la matrice A oat malloc nl sizeof oat if A NULL Cprintf n Erreur d'allocation dynamique de la mémoire n exit Allocation des colonnes de la matrice for i i malloc nc sizeof oat if A i NULL printf n Erreur d'allocation dynamique de la mémoire n exit return A ----------------------------Saisie des données de la matrice------------------void saisirMatrice oat Mat unsigned int nl unsigned int nc unsigned int i j for i i Mat unsigned int nl unsigned int nc unsigned int i j for i iMat unsigned int nl unsigned int i for i i C ---------------------Produit Vecteur avec une matrice------------------- void produitVecteurMatrice oat Vres oat Vect oat Mat unsigned int nl unsigned int nc unsigned int i j for i iMat i j ---------------------Produit une matrice avec Vecteur ------------------- void produitMatriceVecteur oat Vres oat Mat oat Vect unsigned int nl unsigned int nc unsigned int i j for i i Vect j ---------------------Produit une matrice avec Matrice A n m B m p C n p ------------------- void produitMatriceMatrice oat C oat A oat B unsigned int m unsigned int n unsigned int p unsigned int i j k for i i C oat S unsigned int i S for i iV i return S --------------------------- Produit scalaire ------------------void produitVectoriel oat Vres oat V oat V unsigned int n unsigned int i for i iV i -----------------Méthode de gauss direct -------------------------------void Gauss oat X oat A oat B unsigned int nl int i j k oat s ------------------------Triangularisation de la matrice--------------for k kA k j A k k B i - A i k B k A k k A i k -----------------------Calcul de X --------------X nl- B nl- A nl- nl- attention à la déclaration ed i en unsigned int for i nl- i i-- s for j i jX j X i B i - s A i i void decompositionlu oat A oat L oat U unsigned int n oat s unsigned int i k j U A for j j Cfor i iU k i U i i A i i -s for j i jU k j U i j A i j -s s for k kU k i L j i A j i -s U i j s for k kU k n- U n- n- A n- n- -s GAUSS include include include oatallouerVecteur unsigned int
Documents similaires
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702233459uneel3ciku27qrabqmwhqee8roeoq7xsofvbqkiqqhlglyo9gzbf2on2khdxcejlmvezyqksujoru5jqv7xnnspoi8zem81mxxoa.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702418407qsljogmf8yygnwult39wwl5epohk8wohlcoorudjfrhyhr44suvpkcbjuu4ru2c2rtxmo5oiw5l4ok5qgtpan5ofb5dyo5byazrl.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702599216w1svggidfixuknj9gjc3mxuxy398elsd40tygotbdrgvbf4wmiyihg2hbjmenm71oaa9plvsy90qv8r7y2xyyv94jjopquuiljyy.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/ICwTLeELSeDA1R9CrWB3e1gVzulvCo18PWS90NbKSAviFNQ6Q0ghikhMiOiYkZmzyhWlYK24xwrMfiCiAvR837wN.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/EV3Q9V4zyTW77Yiw3ukb11AoBSPwUAJa5B0gKEeh2eyERZgqHArcjVrKHPLrcokVsP4r0E3Nq5o0ax1x7zQYqKS0.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702156198pgwahlmekvxt12r3ftpyqrrfwilj4orzhzrtlh6falmgenrxe4vmbdmg2gwxopaovznjqbgqsb92fiffm9yr7j6p3msbmquk9jm9.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/SgWeqfuO7b4jT3c7pX1Uz1tpoEGHgt6pdTJrvOwLL8KkA07FODJH37WvIih8B5boAqxUhzWV2Iiojgm0Zfu344eQ.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702551821bwdjzcttwppzbvt3jqow6k5trppaqdk4f9zvqhwh4iuk1qaddjbg05uajvdrf1zup9mecwgrektukby41t18dqaep5tjqvyyhrrl.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/hllhMzODHZN6Ad4HYS8L1UedmyvoEeAbhHv6IqMTAqWyxLqluhulIc59vLvdBOtSARJreO4sIHW2Z4qtgSLnlGtR.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11702140376vdc2kteq3vkxhekywhlmudbdracnjqqpl2ju6ngg3aiqlvduyrwvjjn6vow6koadyb1nzfwb9kfaoor10a5fwvm2ganeqvn4i1iz.png)
-
20
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise- Détails
- Publié le Jan 07, 2021
- Catégorie Industry / Industr...
- Langue French
- Taille du fichier 61.5kB