// sor.cpp : Defines the entry point for the console application. // SOR - Successive Over-Relaxation method for solving linear equations // #include "stdafx.h" #define N 4 // For this example we pick a relatively small value void solve(double a[N][N], double b[N], double x[N], int n) { // This function performs one iteration of Gauss-Seidel method int i, j, k; for (i=0; i