SlideServe
Menu
Préférences
© SlideServe · v2026

Engineering Analysis Gauss Elimination

migueln avatar
16 diapositives · 314 Views · Jan 07, 2020

Engineering Analysis Gauss Elimination. Yasser F. O. Mohammad Assiut University Egypt. Previously in NM. Introduction to NM Solving single equation System of Linear Equations Vectors and Matrices Solving Upper Triangular Form Matrices. Introduction.

Engineering Analysis Gauss Elimination - slide 1
01 / 16Engineering Analysis Gauss Elimination
1 / 17

Télécharger la présentation

Engineering Analysis Gauss Elimination
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Engineering AnalysisGauss Elimination Yasser F. O. Mohammad Assiut University Egypt

  2. Previously in NM • Introduction to NM • Solving single equation • System of Linear Equations • Vectors and Matrices • Solving Upper Triangular Form Matrices

  3. Introduction • Solving three equations in three unknowns

  4. Gauss Elimination (Main Idea) • Convert the system to UTF then solve it • The following operations do not change the system or the solution of (AX=B): • Interchanges: changing order • Scaling: Multiplying an equation with a constant • Replacement: replacing an equation with the sum of itself with a nonzero multiple of another

  5. Basic Gauss Elimination Procedure • Write in matrix-vector form : Ax = b combine in the augmented matrix • Basic Gaussian elimination procedure

  6. Pivot • At the kth stage of Gaussian elimination procedure, the appropriate multiple of the kth row is used to reduce each of the entries in the kth column below the kth row to zero • kth row : pivot row • kth column : pivot column • element akk : pivot element • ex : If at 3rd elimination procedure,

  7. Example • The sum of the voltage drops around a closed loop is zero • V=IR

  8. System

  9. Solution • Step 1 • The pivot is a11 = 30 • Multiply the first row by 20/30 and add it to the second row • Multiply the first row by 10/30 and add it to the third row

  10. Solution • Step 2 • The pivot is a22 = 125/3 • Multiply the second row by 2/5 and add it to the third row to get

  11. Solution • Step 3: By back substitution,

  12. Pivoting Strategies1. No pivoting • Use as the pivot element in step i. • May fail even if a solution exists

  13. Pivoting Strategies2. Trivial Pivoting • Will find a solution if one exists • May cause large rounding error if aii is small

  14. Pivoting Strategies3. Partial Pivoting • Find the row with maximum value in the pivot column and use it as the pivot row (exchange with current pivot)

  15. Pivoting Strategies4. Scaled Partial Pivoting • Find the row with the maximum relative value in the pivot column and use it as the pivot row

  16. Matlab: Simplest Implementation • % Gaussian Elimination function which can solve k systems of the form Ax=b1,....,Ax=bk at the same time • function x = Gauss( A , b ) • [n,k1] = size(A); [n1,k] = size(b); x = zeros(n,k); • for i=1 : n-1 • m = -A(i+1:n , i) / A(i,i); • A(i+1:n , : ) = A(i+1:n , : ) + m*A(i,:); • b(i+1:n , : ) = b(i+1:n , : ) + m*b(i,:); • end • x(n,:) = b(n,:) ./ A(n,n); • for i=n-1 : -1 : 1 • x(i,:) = ( b(i,:) - A(i , i+1:n) * x(i+1:n , : ) ) ./ A(i,i); • end