From e1360d5f36875711917e8ee04783a3770ee71a6a Mon Sep 17 00:00:00 2001 From: Patrice Matz Date: Wed, 1 Nov 2017 00:08:38 +0100 Subject: [PATCH] - fixed cramer --- SCE/SCE/SCE.cpp | 4 ++-- SCE/SCE/lgs.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SCE/SCE/SCE.cpp b/SCE/SCE/SCE.cpp index 1a82901..1069232 100644 --- a/SCE/SCE/SCE.cpp +++ b/SCE/SCE/SCE.cpp @@ -40,7 +40,7 @@ void lgs() { LGS lgs; lgs.data_entry(); - //lgs.gauss(); - lgs.cramer(); + cout << lgs.gauss(); + cout << lgs.cramer(); cout << endl; } diff --git a/SCE/SCE/lgs.cpp b/SCE/SCE/lgs.cpp index c37703f..365a8f6 100644 --- a/SCE/SCE/lgs.cpp +++ b/SCE/SCE/lgs.cpp @@ -66,7 +66,7 @@ void LGS::copy_array() void LGS::swap_column(long double** ca2, int col) { long double* temp = new long double[variables]; - + copy_array(); for(int i=0; i < variables ;i++) { temp[i] = CA[i][variables];