SlideShare une entreprise Scribd logo
1  sur  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]

Contenu connexe

Tendances

Presentation on Numerical Method (Trapezoidal Method)
Presentation on Numerical Method (Trapezoidal Method)Presentation on Numerical Method (Trapezoidal Method)
Presentation on Numerical Method (Trapezoidal Method)Syed Ahmed Zaki
 
Multiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical MethodsMultiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical MethodsMeenakshisundaram N
 
Derivation of Simpson's 1/3 rule
Derivation of Simpson's 1/3 ruleDerivation of Simpson's 1/3 rule
Derivation of Simpson's 1/3 ruleHapPy SumOn
 
Jacobi iteration method
Jacobi iteration methodJacobi iteration method
Jacobi iteration methodMONIRUL ISLAM
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodMeet Nayak
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson methodBijay Mishra
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsJanki Shah
 
Matrices and System of Linear Equations ppt
Matrices and System of Linear Equations pptMatrices and System of Linear Equations ppt
Matrices and System of Linear Equations pptDrazzer_Dhruv
 
Partial differential equations
Partial differential equationsPartial differential equations
Partial differential equationsaman1894
 
Half range sine cosine fourier series
Half range sine cosine fourier seriesHalf range sine cosine fourier series
Half range sine cosine fourier seriesHardik Parmar
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination MethodAndi Firdaus
 
Laplace Transform and its applications
Laplace Transform and its applicationsLaplace Transform and its applications
Laplace Transform and its applicationsDeepRaval7
 

Tendances (20)

Superposition theorem
Superposition theoremSuperposition theorem
Superposition theorem
 
Presentation on Numerical Method (Trapezoidal Method)
Presentation on Numerical Method (Trapezoidal Method)Presentation on Numerical Method (Trapezoidal Method)
Presentation on Numerical Method (Trapezoidal Method)
 
Multiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical MethodsMultiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical Methods
 
Cayley Hamilton Theorem
Cayley Hamilton Theorem Cayley Hamilton Theorem
Cayley Hamilton Theorem
 
Derivation of Simpson's 1/3 rule
Derivation of Simpson's 1/3 ruleDerivation of Simpson's 1/3 rule
Derivation of Simpson's 1/3 rule
 
Jacobi method
Jacobi methodJacobi method
Jacobi method
 
Jacobi iteration method
Jacobi iteration methodJacobi iteration method
Jacobi iteration method
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination method
 
Interpolation
InterpolationInterpolation
Interpolation
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
 
Gauss jordan
Gauss jordanGauss jordan
Gauss jordan
 
Matrices and System of Linear Equations ppt
Matrices and System of Linear Equations pptMatrices and System of Linear Equations ppt
Matrices and System of Linear Equations ppt
 
Rolles theorem
Rolles theoremRolles theorem
Rolles theorem
 
Partial differential equations
Partial differential equationsPartial differential equations
Partial differential equations
 
Half range sine cosine fourier series
Half range sine cosine fourier seriesHalf range sine cosine fourier series
Half range sine cosine fourier series
 
MEAN VALUE THEOREM
MEAN VALUE THEOREMMEAN VALUE THEOREM
MEAN VALUE THEOREM
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination Method
 
GAUSS ELIMINATION METHOD
 GAUSS ELIMINATION METHOD GAUSS ELIMINATION METHOD
GAUSS ELIMINATION METHOD
 
Laplace Transform and its applications
Laplace Transform and its applicationsLaplace Transform and its applications
Laplace Transform and its applications
 

En vedette

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
 
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
 

En vedette (6)

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
 
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
 

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Plus de jorgeduardooo (8)

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
 
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
 

Dernier

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Dernier (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

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.