SlideShare ist ein Scribd-Unternehmen logo
1 von 32
Gauss-Seidel Method Jorge Eduardo Celis  Cod: 2073412
An  iterative  method. ,[object Object],[object Object],[object Object],[object Object],[object Object]
Why? The Gauss-Seidel Method allows the user to control round-off error . Elimination methods such as Gaussian Elimination and LU Decomposition are prone to prone to round-off error. Also: If the physics of the problem are understood, a close initial guess can be made, decreasing the number of iterations needed.
Algorithm A set of  n  equations and  n  unknowns: .  . .  . .  . If:  the diagonal elements are non-zero Rewrite  each equation solving for the corresponding unknown ex:   First equation, solve for x 1 Second equation, solve for x 2
Algorithm Rewriting each equation From Equation 1 From equation 2 From equation n-1 From equation n
Algorithm General Form of each equation
Algorithm General Form for any row ‘i’ How or where can this equation be used?
Gauss-Seidel Method Solve for the unknowns  Assume an initial guess for [X] Use rewritten equations to solve for each value of x i . Important: Remember to use the most recent value of x i . Which means to apply values calculated to the calculations remaining in the  current  iteration.
Calculate the Absolute Relative Approximate Error  So when has the answer been found? The iterations are stopped when the absolute relative approximate error is less than a prespecified tolerance for all unknowns.
Gauss-Seidel Method: Example 1 The upward velocity of a rocket is given at three different times The velocity data is approximated by a polynomial as: Table 1  Velocity vs. Time data. Time, Velocity 5 106.8 8 177.2 12 279.2
Gauss-Seidel Method: Example 1 Using a Matrix template of the form The system of equations becomes Initial Guess: Assume an initial guess of
Gauss-Seidel Method: Example 1 Rewriting each equation
Applying the initial guess and solving for a i Initial Guess When solving for a 2 , how many of the initial guess values were used?
Gauss-Seidel Method: Example 1 Finding the absolute relative approximate error At the end of the first iteration The maximum absolute relative approximate error is 125.47%
Gauss-Seidel Method: Example 1 Iteration #2 Using from iteration #1 the values of a i  are found:
Finding the absolute relative approximate error At the end of the second iteration The maximum absolute relative approximate error is 85.695%
Gauss-Seidel Method: Example 1 Repeating more iterations, the following values are obtained Notice – The relative errors are not decreasing at any significant rate Also, the solution is not converging to the true solution of Iteration a 1   a 2   a 3   1 2 3 4 5 6 3.6720 12.056 47.182 193.33 800.53 3322.6 72.767 69.543 74.447 75.595 75.850 75.906 − 7.8510 − 54.882 − 255.51 − 1093.4 − 4577.2 − 19049 125.47 85.695 78.521 76.632 76.112 75.972 − 155.36 − 798.34 − 3448.9 − 14440 − 60072 − 249580 103.22 80.540 76.852 76.116 75.963 75.931
What went wrong? Even though done correctly, the answer is not converging to the correct answer This example illustrates a pitfall of the Gauss-Siedel method: not all systems of equations will converge. Is there a fix? One class of system of equations always converges: One with a  diagonally dominant  coefficient matrix. Diagonally dominant: [A] in [A] [X] = [C] is diagonally dominant if: for all ‘i’  and for at least one ‘i’
Gauss-Seidel Method: Pitfall Diagonally dominant : The coefficient on the diagonal must be at least equal to the sum of the other coefficients in that row and at least one row with a diagonal coefficient greater than the sum of the other coefficients in that row. Which coefficient matrix is diagonally dominant? Most physical systems do result in simultaneous linear equations that have diagonally dominant coefficient matrices.
Given the system of equations With an initial guess of The coefficient matrix is: Will the solution converge using the Gauss-Siedel method?
Gauss-Seidel Method: Example 2 Checking if the coefficient matrix is diagonally dominant The inequalities are all true and at least one row is  strictly  greater than: Therefore: The solution should converge using the Gauss-Siedel Method
Gauss-Seidel Method: Example 2 Rewriting each equation With an initial guess of
The absolute relative approximate error The maximum absolute relative error after the first iteration is 100%
Gauss-Seidel Method: Example 2 After Iteration #1 Substituting the x values into the equations After Iteration #2
Iteration #2 absolute relative approximate error The maximum absolute relative error after the first iteration is 240.61% This is much larger than the maximum absolute relative error obtained in iteration #1. Is this a problem?
Repeating more iterations, the following values are obtained The solution obtained    is close to the exact solution of  . Iteration a 1 a 2 a 3 1 2 3 4 5 6 0.50000 0.14679 0.74275 0.94675 0.99177 0.99919 100.00 240.61 80.236 21.546 4.5391 0.74307 4.9000 3.7153 3.1644 3.0281 3.0034 3.0001 100.00 31.889 17.408 4.4996 0.82499 0.10856 3.0923 3.8118 3.9708 3.9971 4.0001 4.0001 67.662 18.876 4.0042 0.65772 0.074383 0.00101
Gauss-Seidel Method: Example 3 Given the system of equations With an initial guess of Rewriting the equations
Conducting six iterations, the following values are obtained The values are not converging. Does this mean that the Gauss-Seidel method cannot be used? Iteration a 1 A 2 a 3 1 2 3 4 5 6 21.000 − 196.15 − 1995.0 − 20149 2.0364×10 5 − 2.0579×10 5 95.238 110.71 109.83 109.90 109.89 109.89 0.80000 14.421 − 116.02 1204.6 − 12140 1.2272×10 5 100.00 94.453 112.43 109.63 109.92 109.89 50.680 − 462.30 4718.1 − 47636 4.8144×10 5 − 4.8653×10 6 98.027 110.96 109.80 109.90 109.89 109.89
Gauss-Seidel Method The Gauss-Seidel Method can still be used The coefficient matrix is not diagonally dominant But this is the same set of equations used in example #2, which did converge. If a system of linear equations is not diagonally dominant, check to see if rearranging the equations can form a diagonally dominant matrix.
Not every system of equations can be rearranged to have a diagonally dominant coefficient matrix. Observe the set of equations Which equation(s) prevents this set of equation from having a diagonally dominant coefficient matrix?
Summary ,[object Object],[object Object],[object Object]
Additional Resources ,[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt?

Partial differential equations
Partial differential equationsPartial differential equations
Partial differential equationsmuhammadabullah
 
application of differential equations
application of differential equationsapplication of differential equations
application of differential equationsVenkata.Manish Reddy
 
Partial differential equations
Partial differential equationsPartial differential equations
Partial differential equationsaman1894
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodMeet Nayak
 
Numerical
NumericalNumerical
Numerical1821986
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationSunny Chauhan
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson MethodJigisha Dabhi
 
Introduction to Differential Equations
Introduction to Differential EquationsIntroduction to Differential Equations
Introduction to Differential EquationsVishvaraj Chauhan
 
Ordinary differential equations
Ordinary differential equationsOrdinary differential equations
Ordinary differential equationsAhmed Haider
 
Finite difference method
Finite difference methodFinite difference method
Finite difference methodDivyansh Verma
 
Presentation on Numerical Integration
Presentation on Numerical IntegrationPresentation on Numerical Integration
Presentation on Numerical IntegrationTausif Shahanshah
 
Jacobi iteration method
Jacobi iteration methodJacobi iteration method
Jacobi iteration methodMONIRUL ISLAM
 
introduction to Numerical Analysis
introduction to Numerical Analysisintroduction to Numerical Analysis
introduction to Numerical AnalysisGhulam Mehdi Sahito
 

Was ist angesagt? (20)

Partial differential equations
Partial differential equationsPartial differential equations
Partial differential equations
 
application of differential equations
application of differential equationsapplication of differential equations
application of differential equations
 
Partial differential equations
Partial differential equationsPartial differential equations
Partial differential equations
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination method
 
Numerical
NumericalNumerical
Numerical
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson Method
 
Introduction to Differential Equations
Introduction to Differential EquationsIntroduction to Differential Equations
Introduction to Differential Equations
 
Taylor series
Taylor seriesTaylor series
Taylor series
 
Ordinary differential equations
Ordinary differential equationsOrdinary differential equations
Ordinary differential equations
 
Differential equations
Differential equationsDifferential equations
Differential equations
 
APPLICATION OF NUMERICAL METHODS IN SMALL SIZE
APPLICATION OF NUMERICAL METHODS IN SMALL SIZEAPPLICATION OF NUMERICAL METHODS IN SMALL SIZE
APPLICATION OF NUMERICAL METHODS IN SMALL SIZE
 
Interpolation
InterpolationInterpolation
Interpolation
 
Finite difference method
Finite difference methodFinite difference method
Finite difference method
 
Presentation on Numerical Integration
Presentation on Numerical IntegrationPresentation on Numerical Integration
Presentation on Numerical Integration
 
Double Integrals
Double IntegralsDouble Integrals
Double Integrals
 
Secant Method
Secant MethodSecant Method
Secant Method
 
Jacobi iteration method
Jacobi iteration methodJacobi iteration method
Jacobi iteration method
 
introduction to Numerical Analysis
introduction to Numerical Analysisintroduction to Numerical Analysis
introduction to Numerical Analysis
 

Andere mochten auch

Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidelarunsmm
 
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING Anu Bhatt
 
NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)krishnapriya R
 
Newton Raphson method for load flow analysis
Newton Raphson method for load flow analysisNewton Raphson method for load flow analysis
Newton Raphson method for load flow analysisdivyanshuprakashrock
 
Regula falsi method
Regula falsi methodRegula falsi method
Regula falsi methodandrushow
 

Andere mochten auch (7)

Relaxation method
Relaxation methodRelaxation method
Relaxation method
 
Es272 ch3a
Es272 ch3aEs272 ch3a
Es272 ch3a
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidel
 
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
 
NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)
 
Newton Raphson method for load flow analysis
Newton Raphson method for load flow analysisNewton Raphson method for load flow analysis
Newton Raphson method for load flow analysis
 
Regula falsi method
Regula falsi methodRegula falsi method
Regula falsi method
 

Ähnlich wie Gauss sediel

Iterative method for linear systems and.
Iterative method for linear systems and.Iterative method for linear systems and.
Iterative method for linear systems and.aechkay379
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015Edhole.com
 
Gauss Seidal method.ppt
Gauss Seidal method.pptGauss Seidal method.ppt
Gauss Seidal method.pptMohitBhandwal1
 
Amissions in India
Amissions in India Amissions in India
Amissions in India Edhole.com
 
Top schools in faridabad
Top schools in faridabadTop schools in faridabad
Top schools in faridabadEdhole.com
 
Interactives Methods
Interactives MethodsInteractives Methods
Interactives MethodsUIS
 
Linear Systems Gauss Seidel
Linear Systems   Gauss SeidelLinear Systems   Gauss Seidel
Linear Systems Gauss SeidelEric Davishahl
 
lecture-3 laplce and poisson.pptx .
lecture-3 laplce and poisson.pptx                .lecture-3 laplce and poisson.pptx                .
lecture-3 laplce and poisson.pptx .happycocoman
 
Numerical Analysis and Computer Applications
Numerical Analysis and Computer ApplicationsNumerical Analysis and Computer Applications
Numerical Analysis and Computer ApplicationsMujeeb UR Rahman
 
Problem Based Learning Presentation NACA
Problem Based Learning Presentation NACAProblem Based Learning Presentation NACA
Problem Based Learning Presentation NACAWahid Dino Samo
 
Iterativos Methods
Iterativos MethodsIterativos Methods
Iterativos MethodsJeannie
 
Iterativos methods
Iterativos methodsIterativos methods
Iterativos methodsJeannie
 
Metodos interactivos
Metodos interactivosMetodos interactivos
Metodos interactivosRobinson
 
Introduction-Accuracy-and-Errors.pdf
Introduction-Accuracy-and-Errors.pdfIntroduction-Accuracy-and-Errors.pdf
Introduction-Accuracy-and-Errors.pdfSTEVEDOMINICSISNO
 
Regression vs Neural Net
Regression vs Neural NetRegression vs Neural Net
Regression vs Neural NetRatul Alahy
 
Numerical Techniques
Numerical TechniquesNumerical Techniques
Numerical TechniquesYasir Mahdi
 
NUMERICA METHODS 1 final touch summary for test 1
NUMERICA METHODS 1 final touch summary for test 1NUMERICA METHODS 1 final touch summary for test 1
NUMERICA METHODS 1 final touch summary for test 1musadoto
 
Error analysis in numerical integration
Error analysis in numerical integrationError analysis in numerical integration
Error analysis in numerical integrationAmenahGondal1
 

Ähnlich wie Gauss sediel (20)

Iterative method for linear systems and.
Iterative method for linear systems and.Iterative method for linear systems and.
Iterative method for linear systems and.
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
 
Gauss Seidal method.ppt
Gauss Seidal method.pptGauss Seidal method.ppt
Gauss Seidal method.ppt
 
Amissions in India
Amissions in India Amissions in India
Amissions in India
 
Top schools in faridabad
Top schools in faridabadTop schools in faridabad
Top schools in faridabad
 
Interactives Methods
Interactives MethodsInteractives Methods
Interactives Methods
 
Linear Systems Gauss Seidel
Linear Systems   Gauss SeidelLinear Systems   Gauss Seidel
Linear Systems Gauss Seidel
 
lecture-3 laplce and poisson.pptx .
lecture-3 laplce and poisson.pptx                .lecture-3 laplce and poisson.pptx                .
lecture-3 laplce and poisson.pptx .
 
Numerical Analysis and Computer Applications
Numerical Analysis and Computer ApplicationsNumerical Analysis and Computer Applications
Numerical Analysis and Computer Applications
 
Problem Based Learning Presentation NACA
Problem Based Learning Presentation NACAProblem Based Learning Presentation NACA
Problem Based Learning Presentation NACA
 
Iterativos Methods
Iterativos MethodsIterativos Methods
Iterativos Methods
 
Iterativos methods
Iterativos methodsIterativos methods
Iterativos methods
 
Metodos interactivos
Metodos interactivosMetodos interactivos
Metodos interactivos
 
Introduction-Accuracy-and-Errors.pdf
Introduction-Accuracy-and-Errors.pdfIntroduction-Accuracy-and-Errors.pdf
Introduction-Accuracy-and-Errors.pdf
 
Lca10 0505
Lca10 0505Lca10 0505
Lca10 0505
 
Regression vs Neural Net
Regression vs Neural NetRegression vs Neural Net
Regression vs Neural Net
 
ilovepdf_merged
ilovepdf_mergedilovepdf_merged
ilovepdf_merged
 
Numerical Techniques
Numerical TechniquesNumerical Techniques
Numerical Techniques
 
NUMERICA METHODS 1 final touch summary for test 1
NUMERICA METHODS 1 final touch summary for test 1NUMERICA METHODS 1 final touch summary for test 1
NUMERICA METHODS 1 final touch summary for test 1
 
Error analysis in numerical integration
Error analysis in numerical integrationError analysis in numerical integration
Error analysis in numerical integration
 

Mehr von jorgeduardooo

Cholesky method and Thomas
Cholesky method and ThomasCholesky method and Thomas
Cholesky method and Thomasjorgeduardooo
 
Basic concepts. Systems of equations
Basic concepts. Systems of equationsBasic concepts. Systems of equations
Basic concepts. Systems of equationsjorgeduardooo
 
Busqueda de una raiz-Metodos numericos
Busqueda de una raiz-Metodos numericosBusqueda de una raiz-Metodos numericos
Busqueda de una raiz-Metodos numericosjorgeduardooo
 

Mehr von jorgeduardooo (9)

METHOD OF JACOBI
METHOD OF JACOBIMETHOD OF JACOBI
METHOD OF JACOBI
 
Cholesky method and Thomas
Cholesky method and ThomasCholesky method and Thomas
Cholesky method and Thomas
 
Lu decomposition
Lu decompositionLu decomposition
Lu decomposition
 
Gauss jordan
Gauss jordanGauss jordan
Gauss jordan
 
Basic concepts. Systems of equations
Basic concepts. Systems of equationsBasic concepts. Systems of equations
Basic concepts. Systems of equations
 
NUMERICAL METHODS
NUMERICAL METHODSNUMERICAL METHODS
NUMERICAL METHODS
 
NUMERICAL METHODS
NUMERICAL METHODSNUMERICAL METHODS
NUMERICAL METHODS
 
METHOD
METHOD METHOD
METHOD
 
Busqueda de una raiz-Metodos numericos
Busqueda de una raiz-Metodos numericosBusqueda de una raiz-Metodos numericos
Busqueda de una raiz-Metodos numericos
 

Kürzlich hochgeladen

Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 

Kürzlich hochgeladen (20)

Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 

Gauss sediel

  • 1. Gauss-Seidel Method Jorge Eduardo Celis Cod: 2073412
  • 2.
  • 3. Why? The Gauss-Seidel Method allows the user to control round-off error . Elimination methods such as Gaussian Elimination and LU Decomposition are prone to prone to round-off error. Also: If the physics of the problem are understood, a close initial guess can be made, decreasing the number of iterations needed.
  • 4. Algorithm A set of n equations and n unknowns: . . . . . . If: the diagonal elements are non-zero Rewrite each equation solving for the corresponding unknown ex: First equation, solve for x 1 Second equation, solve for x 2
  • 5. Algorithm Rewriting each equation From Equation 1 From equation 2 From equation n-1 From equation n
  • 6. Algorithm General Form of each equation
  • 7. Algorithm General Form for any row ‘i’ How or where can this equation be used?
  • 8. Gauss-Seidel Method Solve for the unknowns Assume an initial guess for [X] Use rewritten equations to solve for each value of x i . Important: Remember to use the most recent value of x i . Which means to apply values calculated to the calculations remaining in the current iteration.
  • 9. Calculate the Absolute Relative Approximate Error So when has the answer been found? The iterations are stopped when the absolute relative approximate error is less than a prespecified tolerance for all unknowns.
  • 10. Gauss-Seidel Method: Example 1 The upward velocity of a rocket is given at three different times The velocity data is approximated by a polynomial as: Table 1 Velocity vs. Time data. Time, Velocity 5 106.8 8 177.2 12 279.2
  • 11. Gauss-Seidel Method: Example 1 Using a Matrix template of the form The system of equations becomes Initial Guess: Assume an initial guess of
  • 12. Gauss-Seidel Method: Example 1 Rewriting each equation
  • 13. Applying the initial guess and solving for a i Initial Guess When solving for a 2 , how many of the initial guess values were used?
  • 14. Gauss-Seidel Method: Example 1 Finding the absolute relative approximate error At the end of the first iteration The maximum absolute relative approximate error is 125.47%
  • 15. Gauss-Seidel Method: Example 1 Iteration #2 Using from iteration #1 the values of a i are found:
  • 16. Finding the absolute relative approximate error At the end of the second iteration The maximum absolute relative approximate error is 85.695%
  • 17. Gauss-Seidel Method: Example 1 Repeating more iterations, the following values are obtained Notice – The relative errors are not decreasing at any significant rate Also, the solution is not converging to the true solution of Iteration a 1 a 2 a 3 1 2 3 4 5 6 3.6720 12.056 47.182 193.33 800.53 3322.6 72.767 69.543 74.447 75.595 75.850 75.906 − 7.8510 − 54.882 − 255.51 − 1093.4 − 4577.2 − 19049 125.47 85.695 78.521 76.632 76.112 75.972 − 155.36 − 798.34 − 3448.9 − 14440 − 60072 − 249580 103.22 80.540 76.852 76.116 75.963 75.931
  • 18. What went wrong? Even though done correctly, the answer is not converging to the correct answer This example illustrates a pitfall of the Gauss-Siedel method: not all systems of equations will converge. Is there a fix? One class of system of equations always converges: One with a diagonally dominant coefficient matrix. Diagonally dominant: [A] in [A] [X] = [C] is diagonally dominant if: for all ‘i’ and for at least one ‘i’
  • 19. Gauss-Seidel Method: Pitfall Diagonally dominant : The coefficient on the diagonal must be at least equal to the sum of the other coefficients in that row and at least one row with a diagonal coefficient greater than the sum of the other coefficients in that row. Which coefficient matrix is diagonally dominant? Most physical systems do result in simultaneous linear equations that have diagonally dominant coefficient matrices.
  • 20. Given the system of equations With an initial guess of The coefficient matrix is: Will the solution converge using the Gauss-Siedel method?
  • 21. Gauss-Seidel Method: Example 2 Checking if the coefficient matrix is diagonally dominant The inequalities are all true and at least one row is strictly greater than: Therefore: The solution should converge using the Gauss-Siedel Method
  • 22. Gauss-Seidel Method: Example 2 Rewriting each equation With an initial guess of
  • 23. The absolute relative approximate error The maximum absolute relative error after the first iteration is 100%
  • 24. Gauss-Seidel Method: Example 2 After Iteration #1 Substituting the x values into the equations After Iteration #2
  • 25. Iteration #2 absolute relative approximate error The maximum absolute relative error after the first iteration is 240.61% This is much larger than the maximum absolute relative error obtained in iteration #1. Is this a problem?
  • 26. Repeating more iterations, the following values are obtained The solution obtained is close to the exact solution of . Iteration a 1 a 2 a 3 1 2 3 4 5 6 0.50000 0.14679 0.74275 0.94675 0.99177 0.99919 100.00 240.61 80.236 21.546 4.5391 0.74307 4.9000 3.7153 3.1644 3.0281 3.0034 3.0001 100.00 31.889 17.408 4.4996 0.82499 0.10856 3.0923 3.8118 3.9708 3.9971 4.0001 4.0001 67.662 18.876 4.0042 0.65772 0.074383 0.00101
  • 27. Gauss-Seidel Method: Example 3 Given the system of equations With an initial guess of Rewriting the equations
  • 28. Conducting six iterations, the following values are obtained The values are not converging. Does this mean that the Gauss-Seidel method cannot be used? Iteration a 1 A 2 a 3 1 2 3 4 5 6 21.000 − 196.15 − 1995.0 − 20149 2.0364×10 5 − 2.0579×10 5 95.238 110.71 109.83 109.90 109.89 109.89 0.80000 14.421 − 116.02 1204.6 − 12140 1.2272×10 5 100.00 94.453 112.43 109.63 109.92 109.89 50.680 − 462.30 4718.1 − 47636 4.8144×10 5 − 4.8653×10 6 98.027 110.96 109.80 109.90 109.89 109.89
  • 29. Gauss-Seidel Method The Gauss-Seidel Method can still be used The coefficient matrix is not diagonally dominant But this is the same set of equations used in example #2, which did converge. If a system of linear equations is not diagonally dominant, check to see if rearranging the equations can form a diagonally dominant matrix.
  • 30. Not every system of equations can be rearranged to have a diagonally dominant coefficient matrix. Observe the set of equations Which equation(s) prevents this set of equation from having a diagonally dominant coefficient matrix?
  • 31.
  • 32.