Gauss Seidel with Relaxation

Version 1.0.1 (2.26 KB) by Robby Ching
A modified or improved Gauss-Seidel that employs relaxation for better convergence


Updated 30 Jun 2020

View License

It is a modified version of the Gauss-Seidel method that modifies the solved root with a weighted average for each iteration. The purpose of this is either to make the system convergent or enhances the convergence. It asks the user the coefficient and the RHD (Right-hand side) values matrix, and as well as the relaxation or weighing factor. It also lets the user choose which termination criterion to have, whether a %relative error or number of iterations. It checks if the system is diagonally dominant; if not, it would re-arrange the equations in the most diagonally dominant form possible, ensuring convergence. If the given system cannot be totally diagonally dominant, it alerts the user.

Cite As

Robby Ching (2023). Gauss Seidel with Relaxation (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

changed some overview details