|
@@ -0,0 +1,2996 @@
|
|
|
+using System;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.Linq;
|
|
|
+using System.Text;
|
|
|
+using System.Threading.Tasks;
|
|
|
+
|
|
|
+namespace Method_Gauss
|
|
|
+{
|
|
|
+ internal class Program
|
|
|
+ {
|
|
|
+ static void Main(string[] args)
|
|
|
+ {
|
|
|
+ do
|
|
|
+ {
|
|
|
+ Console.WriteLine("*** Метод Гаус ***");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("Ввиде количество переменных:");
|
|
|
+ int per = Convert.ToInt32(Console.ReadLine());
|
|
|
+ int a;
|
|
|
+ int b;
|
|
|
+ int[] B;
|
|
|
+ Console.WriteLine();
|
|
|
+ if (per == 2)
|
|
|
+ {
|
|
|
+ Console.WriteLine("------------- Заполните матрицу А -------------");
|
|
|
+ a = 2; b = 2;
|
|
|
+ int[,] A2 = new int[a, b];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ A2[x1, x2] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Заполните матрицу B -------------");
|
|
|
+ B = new int[a];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ B[x1] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Вывод матрицы -------------");
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ Console.Write("\t" + A2[x1, x2] + "\t|");
|
|
|
+ }
|
|
|
+ Console.WriteLine("|\t" + B[x1]);
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
|
|
|
+ int edin = 1;
|
|
|
+ foreach (int edinicha in A2)
|
|
|
+ {
|
|
|
+ if (edinicha == edin)
|
|
|
+ {
|
|
|
+ Console.WriteLine(string.Format("Едениц в матрице '{0}'",edin));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 1 -------------");
|
|
|
+ b = 3;
|
|
|
+ int[,] A2_1 = new int [a, b];
|
|
|
+ A2_1[0, 0] = A2[0, 0]/ A2[0, 0];
|
|
|
+ A2_1[0, 1] = A2[0, 1]/ A2[0, 0];
|
|
|
+ A2_1[0, 2] = B[0]/ A2[0, 0];
|
|
|
+ A2_1[1, 0] = A2[0, 0]*(-A2[1,0])+A2[1,0];
|
|
|
+ A2_1[1, 1] = A2[0, 1] * (-A2[1, 0]) + A2[1, 1];
|
|
|
+ A2_1[1, 2] = B[0] * (-A2[1, 0]) + B[1];
|
|
|
+ Console.WriteLine("|" + A2_1[0, 0] + "|" + A2_1[0, 1] + "||" + A2_1[0, 2] + "|");
|
|
|
+ Console.WriteLine("|" + A2_1[1, 0] + "|" + A2_1[1, 1] + "||" + A2_1[1, 2] + "|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 2 -------------");
|
|
|
+ int[,] A2_2 = new int[a, b];
|
|
|
+ A2_2[1, 0] = A2_1[1, 0]/ A2_1[1, 1];
|
|
|
+ A2_2[1, 1] = A2_1[1, 1]/ A2_1[1, 1];
|
|
|
+ A2_2[1, 2] = A2_1[1, 2] / A2_1[1, 1];
|
|
|
+ A2_2[0, 0] = A2_2[1, 0] * (-A2_1[0, 1]) + A2_1[0, 0];
|
|
|
+ A2_2[0, 1] = A2_2[1, 1] * (-A2_1[0, 1]) + A2_1[0, 1];
|
|
|
+ A2_2[0, 2] = A2_2[1, 2] * (-A2_1[0, 1]) + A2_1[0, 2];
|
|
|
+ Console.WriteLine("|" + A2_2[0, 0] + "|" + A2_2[0, 1] + "||" + A2_2[0, 2] + "|");
|
|
|
+ Console.WriteLine("|" + A2_2[1, 0] + "|" + A2_2[1, 1] + "||" + A2_2[1, 2] + "|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Ответ -------------");
|
|
|
+ Console.WriteLine("x1 = " + A2_2[0, 2]);
|
|
|
+ Console.WriteLine("x2 = " + A2_2[1, 2]);
|
|
|
+ }
|
|
|
+ else if (per == 3)
|
|
|
+ {
|
|
|
+ Console.WriteLine("------------- Заполните матрицу А -------------");
|
|
|
+ a = 3; b = 3;
|
|
|
+ double[,] A3 = new double[a, b];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ A3[x1, x2] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Заполните матрицу B -------------");
|
|
|
+ B = new int[a];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ B[x1] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Вывод матрицы -------------");
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ Console.Write(A3[x1, x2] + "\t|");
|
|
|
+ }
|
|
|
+ Console.WriteLine("|\t" + B[x1]);
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
|
|
|
+ int edin = 1;
|
|
|
+ foreach (int edinicha in A3)
|
|
|
+ {
|
|
|
+ if (edinicha == edin)
|
|
|
+ {
|
|
|
+ Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 1 -------------");
|
|
|
+ b = 4;
|
|
|
+ double[,] A3_1 = new double[a, b];
|
|
|
+ A3_1[0, 0] = A3[0, 0] / A3[0, 0];
|
|
|
+ A3_1[0, 1] = A3[0, 1] / A3[0, 0];
|
|
|
+ A3_1[0, 2] = A3[0, 2] / A3[0, 0];
|
|
|
+ A3_1[0, 3] = B[0] / A3[0, 0];
|
|
|
+ A3_1[1, 0] = (A3_1[0, 0] * (-A3[1, 0])) + A3[1, 0];
|
|
|
+ A3_1[1, 1] = (A3_1[0, 1] * (-A3[1, 0])) + A3[1, 1];
|
|
|
+ A3_1[1, 2] = (A3_1[0, 2] * (-A3[1, 0])) + A3[1, 2];
|
|
|
+ A3_1[1, 3] = (A3_1[0, 3] * (-A3[1, 0])) + B[1];
|
|
|
+ A3_1[2, 0] = (A3_1[0, 0] * (-A3[2, 0])) + A3[2, 0];
|
|
|
+ A3_1[2, 1] = (A3_1[0, 1] * (-A3[2, 0])) + A3[2, 1];
|
|
|
+ A3_1[2, 2] = (A3_1[0, 2] * (-A3[2, 0])) + A3[2, 2];
|
|
|
+ A3_1[2, 3] = (A3_1[0, 3] * (-A3[2, 0])) + B[2];
|
|
|
+ Console.WriteLine("\t|" + A3_1[0, 0] + "\t|" + A3_1[0, 1] + "\t|" + A3_1[0, 2] + "\t||" + A3_1[0, 3] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A3_1[1, 0] + "\t|" + A3_1[1, 1] + "\t|" + A3_1[1, 2] + "\t||" + A3_1[1, 3] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A3_1[2, 0] + "\t|" + A3_1[2, 1] + "\t|" + A3_1[2, 2] + "\t||" + A3_1[2, 3] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 2 -------------");
|
|
|
+ double[,] A3_2 = new double[a, b];
|
|
|
+ A3_2[1, 0] = A3_1[1, 0] / A3_1[1, 1];
|
|
|
+ A3_2[1, 1] = A3_1[1, 1] / A3_1[1, 1];
|
|
|
+ A3_2[1, 2] = A3_1[1, 2] / A3_1[1, 1];
|
|
|
+ A3_2[1, 3] = A3_1[1, 3] / A3_1[1, 1];
|
|
|
+ A3_2[0, 0] = (A3_2[1, 0] * (-A3_1[0, 1])) + A3_1[0, 0];
|
|
|
+ A3_2[0, 1] = (A3_2[1, 1] * (-A3_1[0, 1])) + A3_1[0, 1];
|
|
|
+ A3_2[0, 2] = (A3_2[1, 2] * (-A3_1[0, 1])) + A3_1[0, 2];
|
|
|
+ A3_2[0, 3] = (A3_2[1, 3] * (-A3_1[0, 1])) + A3_1[0, 3];
|
|
|
+ A3_2[2, 0] = (A3_2[1, 0] * (-A3_1[2, 1])) + A3_1[2, 0];
|
|
|
+ A3_2[2, 1] = (A3_2[1, 1] * (-A3_1[2, 1])) + A3_1[2, 1];
|
|
|
+ A3_2[2, 2] = (A3_2[1, 2] * (-A3_1[2, 1])) + A3_1[2, 2];
|
|
|
+ A3_2[2, 3] = (A3_2[1, 3] * (-A3_1[2, 1])) + A3_1[2, 3];
|
|
|
+ Console.WriteLine("\t|" + A3_2[0, 0] + "\t|" + A3_2[0, 1] + "\t|" + A3_2[0, 2] + "\t||" + A3_2[0, 3] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A3_2[1, 0] + "\t|" + A3_2[1, 1] + "\t|" + A3_2[1, 2] + "\t||" + A3_2[1, 3] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A3_2[2, 0] + "\t|" + A3_2[2, 1] + "\t|" + A3_2[2, 2] + "\t||" + A3_2[2, 3] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 3 -------------");
|
|
|
+ double[,] A3_3 = new double[a, b];
|
|
|
+ A3_3[2, 0] = A3_2[2, 0] / A3_2[2, 2];
|
|
|
+ A3_3[2, 1] = A3_2[2, 1] / A3_2[2, 2];
|
|
|
+ A3_3[2, 2] = A3_2[2, 2] / A3_2[2, 2];
|
|
|
+ A3_3[2, 3] = A3_2[2, 3] / A3_2[2, 2];
|
|
|
+ A3_3[0, 0] = (A3_3[2, 0] * (-A3_2[0, 2])) + A3_2[0, 0];
|
|
|
+ A3_3[0, 1] = (A3_3[2, 1] * (-A3_2[0, 2])) + A3_2[0, 1];
|
|
|
+ A3_3[0, 2] = (A3_3[2, 2] * (-A3_2[0, 2])) + A3_2[0, 2];
|
|
|
+ A3_3[0, 3] = (A3_3[2, 3] * (-A3_2[0, 2])) + A3_2[0, 3];
|
|
|
+ A3_3[1, 0] = (A3_3[2, 0] * (-A3_2[1, 2])) + A3_2[1, 0];
|
|
|
+ A3_3[1, 1] = (A3_3[2, 1] * (-A3_2[1, 2])) + A3_2[1, 1];
|
|
|
+ A3_3[1, 2] = (A3_3[2, 2] * (-A3_2[1, 2])) + A3_2[1, 2];
|
|
|
+ A3_3[1, 3] = (A3_3[2, 3] * (-A3_2[1, 2])) + A3_2[1, 3];
|
|
|
+ Console.WriteLine("\t|" + A3_3[0, 0] + "\t|" + A3_3[0, 1] + "\t|" + A3_3[0, 2] + "\t||" + A3_3[0, 3] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A3_3[1, 0] + "\t|" + A3_3[1, 1] + "\t|" + A3_3[1, 2] + "\t||" + A3_3[1, 3] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A3_3[2, 0] + "\t|" + A3_3[2, 1] + "\t|" + A3_3[2, 2] + "\t||" + A3_3[2, 3] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Ответ -------------");
|
|
|
+ Console.WriteLine("x1 = " + A3_3[0, 3]);
|
|
|
+ Console.WriteLine("x2 = " + A3_3[1, 3]);
|
|
|
+ Console.WriteLine("x3 = " + A3_3[2, 3]);
|
|
|
+ }
|
|
|
+ else if(per == 4)
|
|
|
+ {
|
|
|
+ Console.WriteLine("------------- Заполните матрицу А -------------");
|
|
|
+ a = 4; b = 4;
|
|
|
+ double[,] A4 = new double[a, b];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ A4[x1, x2] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Заполните матрицу B -------------");
|
|
|
+ B = new int[a];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ B[x1] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Вывод матрицы -------------");
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ Console.Write(A4[x1, x2] + "\t|");
|
|
|
+ }
|
|
|
+ Console.WriteLine("|\t" + B[x1]);
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
|
|
|
+ int edin = 1;
|
|
|
+ foreach (int edinicha in A4)
|
|
|
+ {
|
|
|
+ if (edinicha == edin)
|
|
|
+ {
|
|
|
+ Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 1 -------------");
|
|
|
+ b = 5;
|
|
|
+ double[,] A4_1 = new double[a, b];
|
|
|
+ A4_1[0, 0] = A4[0, 0] / A4[0, 0];
|
|
|
+ A4_1[0, 1] = A4[0, 1] / A4[0, 0];
|
|
|
+ A4_1[0, 2] = A4[0, 2] / A4[0, 0];
|
|
|
+ A4_1[0, 3] = A4[0, 3] / A4[0, 0];
|
|
|
+ A4_1[0, 4] = B[0] / A4[0, 0];
|
|
|
+ A4_1[1, 0] = (A4_1[0, 0] * (-A4[1, 0])) + A4[1, 0];
|
|
|
+ A4_1[1, 1] = (A4_1[0, 1] * (-A4[1, 0])) + A4[1, 1];
|
|
|
+ A4_1[1, 2] = (A4_1[0, 2] * (-A4[1, 0])) + A4[1, 2];
|
|
|
+ A4_1[1, 3] = (A4_1[0, 3] * (-A4[1, 0])) + A4[1, 3];
|
|
|
+ A4_1[1, 4] = (A4_1[0, 3] * (-A4[1, 0])) + A4[1, 3];
|
|
|
+ A4_1[1, 5] = (A4_1[0, 4] * (-A4[1, 0])) + B[1];
|
|
|
+ A4_1[2, 0] = (A4_1[0, 0] * (-A4[2, 0])) + A4[2, 0];
|
|
|
+ A4_1[2, 1] = (A4_1[0, 1] * (-A4[2, 0])) + A4[2, 1];
|
|
|
+ A4_1[2, 2] = (A4_1[0, 2] * (-A4[2, 0])) + A4[2, 2];
|
|
|
+ A4_1[2, 3] = (A4_1[0, 3] * (-A4[2, 0])) + A4[2, 3];
|
|
|
+ A4_1[2, 4] = (A4_1[0, 4] * (-A4[2, 0])) + B[2];
|
|
|
+ A4_1[3, 0] = (A4_1[0, 0] * (-A4[3, 0])) + A4[3, 0];
|
|
|
+ A4_1[3, 1] = (A4_1[0, 1] * (-A4[3, 0])) + A4[3, 1];
|
|
|
+ A4_1[3, 2] = (A4_1[0, 2] * (-A4[3, 0])) + A4[3, 2];
|
|
|
+ A4_1[3, 3] = (A4_1[0, 3] * (-A4[3, 0])) + A4[3, 3];
|
|
|
+ A4_1[3, 4] = (A4_1[0, 4] * (-A4[3, 0])) + B[3];
|
|
|
+ Console.WriteLine("\t|" + A4_1[0, 0] + "\t|" + A4_1[0, 1] + "\t|" + A4_1[0, 2] + "\t|" + A4_1[0, 3] + "\t||" + A4_1[0, 4] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A4_1[1, 0] + "\t|" + A4_1[1, 1] + "\t|" + A4_1[1, 2] + "\t|" + A4_1[1, 3] + "\t||" + A4_1[1, 4] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A4_1[2, 0] + "\t|" + A4_1[2, 1] + "\t|" + A4_1[2, 2] + "\t|" + A4_1[2, 3] + "\t||" + A4_1[2, 4] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A4_1[3, 0] + "\t|" + A4_1[3, 1] + "\t|" + A4_1[3, 2] + "\t|" + A4_1[3, 3] + "\t||" + A4_1[3, 4] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 2 -------------");
|
|
|
+ double[,] A4_2 = new double[a, b];
|
|
|
+ A4_2[1, 0] = A4_1[1, 0] / A4_1[1, 1];
|
|
|
+ A4_2[1, 1] = A4_1[1, 1] / A4_1[1, 1];
|
|
|
+ A4_2[1, 2] = A4_1[1, 2] / A4_1[1, 1];
|
|
|
+ A4_2[1, 3] = A4_1[1, 3] / A4_1[1, 1];
|
|
|
+ A4_2[1, 4] = A4_1[1, 4] / A4_1[1, 1];
|
|
|
+ A4_2[0, 0] = (A4_2[1, 0] * (-A4_1[0, 1])) + A4_1[0, 0];
|
|
|
+ A4_2[0, 1] = (A4_2[1, 1] * (-A4_1[0, 1])) + A4_1[0, 1];
|
|
|
+ A4_2[0, 2] = (A4_2[1, 2] * (-A4_1[0, 1])) + A4_1[0, 2];
|
|
|
+ A4_2[0, 3] = (A4_2[1, 3] * (-A4_1[0, 1])) + A4_1[0, 3];
|
|
|
+ A4_2[0, 4] = (A4_2[1, 4] * (-A4_1[0, 1])) + A4_1[0, 4];
|
|
|
+ A4_2[2, 0] = (A4_2[1, 0] * (-A4_1[2, 1])) + A4_1[2, 0];
|
|
|
+ A4_2[2, 1] = (A4_2[1, 1] * (-A4_1[2, 1])) + A4_1[2, 1];
|
|
|
+ A4_2[2, 2] = (A4_2[1, 2] * (-A4_1[2, 1])) + A4_1[2, 2];
|
|
|
+ A4_2[2, 3] = (A4_2[1, 3] * (-A4_1[2, 1])) + A4_1[2, 3];
|
|
|
+ A4_2[2, 4] = (A4_2[1, 4] * (-A4_1[2, 1])) + A4_1[2, 4];
|
|
|
+ A4_2[3, 0] = (A4_2[1, 0] * (-A4_1[3, 1])) + A4_1[3, 0];
|
|
|
+ A4_2[3, 1] = (A4_2[1, 1] * (-A4_1[3, 1])) + A4_1[3, 1];
|
|
|
+ A4_2[3, 2] = (A4_2[1, 2] * (-A4_1[3, 1])) + A4_1[3, 2];
|
|
|
+ A4_2[3, 3] = (A4_2[1, 3] * (-A4_1[3, 1])) + A4_1[3, 3];
|
|
|
+ A4_2[3, 4] = (A4_2[1, 4] * (-A4_1[3, 1])) + A4_1[3, 4];
|
|
|
+ Console.WriteLine("\t|" + A4_2[0, 0] + "\t|" + A4_2[0, 1] + "\t|" + A4_2[0, 2] + "\t|" + A4_2[0, 3] + "\t||" + A4_2[0, 4] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A4_2[1, 0] + "\t|" + A4_2[1, 1] + "\t|" + A4_2[1, 2] + "\t|" + A4_2[1, 3] + "\t||" + A4_2[1, 4] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A4_2[2, 0] + "\t|" + A4_2[2, 1] + "\t|" + A4_2[2, 2] + "\t|" + A4_2[2, 3] + "\t||" + A4_2[2, 4] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A4_2[3, 0] + "\t|" + A4_2[3, 1] + "\t|" + A4_2[3, 2] + "\t|" + A4_2[3, 3] + "\t||" + A4_2[3, 4] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 3 -------------");
|
|
|
+ double[,] A4_3 = new double[a, b];
|
|
|
+ A4_3[2, 0] = A4_2[2, 0] / A4_2[2, 2];
|
|
|
+ A4_3[2, 1] = A4_2[2, 1] / A4_2[2, 2];
|
|
|
+ A4_3[2, 2] = A4_2[2, 2] / A4_2[2, 2];
|
|
|
+ A4_3[2, 3] = A4_2[2, 3] / A4_2[2, 2];
|
|
|
+ A4_3[2, 4] = A4_2[2, 4] / A4_2[2, 2];
|
|
|
+ A4_3[0, 0] = (A4_3[2, 0] * (-A4_2[0, 2])) + A4_2[0, 0];
|
|
|
+ A4_3[0, 1] = (A4_3[2, 1] * (-A4_2[0, 2])) + A4_2[0, 1];
|
|
|
+ A4_3[0, 2] = (A4_3[2, 2] * (-A4_2[0, 2])) + A4_2[0, 2];
|
|
|
+ A4_3[0, 3] = (A4_3[2, 3] * (-A4_2[0, 2])) + A4_2[0, 3];
|
|
|
+ A4_3[0, 4] = (A4_3[2, 4] * (-A4_2[0, 2])) + A4_2[0, 4];
|
|
|
+ A4_3[1, 0] = (A4_3[2, 0] * (-A4_2[1, 2])) + A4_2[1, 0];
|
|
|
+ A4_3[1, 1] = (A4_3[2, 1] * (-A4_2[1, 2])) + A4_2[1, 1];
|
|
|
+ A4_3[1, 2] = (A4_3[2, 2] * (-A4_2[1, 2])) + A4_2[1, 2];
|
|
|
+ A4_3[1, 3] = (A4_3[2, 3] * (-A4_2[1, 2])) + A4_2[1, 3];
|
|
|
+ A4_3[1, 4] = (A4_3[2, 4] * (-A4_2[1, 2])) + A4_2[1, 4];
|
|
|
+ A4_3[3, 0] = (A4_3[2, 0] * (-A4_2[3, 2])) + A4_2[3, 0];
|
|
|
+ A4_3[3, 1] = (A4_3[2, 1] * (-A4_2[3, 2])) + A4_2[3, 1];
|
|
|
+ A4_3[3, 2] = (A4_3[2, 2] * (-A4_2[3, 2])) + A4_2[3, 2];
|
|
|
+ A4_3[3, 3] = (A4_3[2, 3] * (-A4_2[3, 2])) + A4_2[3, 3];
|
|
|
+ A4_3[3, 4] = (A4_3[2, 4] * (-A4_2[3, 2])) + A4_2[3, 4];
|
|
|
+ Console.WriteLine("\t|" + A4_3[0, 0] + "\t|" + A4_3[0, 1] + "\t|" + A4_3[0, 2] + "\t|" + A4_3[0, 3] + "\t||" + A4_3[0, 4] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A4_3[1, 0] + "\t|" + A4_3[1, 1] + "\t|" + A4_3[1, 2] + "\t|" + A4_3[1, 3] + "\t||" + A4_3[1, 4] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A4_3[2, 0] + "\t|" + A4_3[2, 1] + "\t|" + A4_3[2, 2] + "\t|" + A4_3[2, 3] + "\t||" + A4_3[2, 4] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A4_3[3, 0] + "\t|" + A4_3[3, 1] + "\t|" + A4_3[3, 2] + "\t|" + A4_3[3, 3] + "\t||" + A4_3[3, 4] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 4 -------------");
|
|
|
+ double[,] A4_4 = new double[a, b];
|
|
|
+ A4_4[3, 0] = A4_3[3, 0] / A4_3[3, 3];
|
|
|
+ A4_4[3, 1] = A4_3[3, 1] / A4_3[3, 3];
|
|
|
+ A4_4[3, 2] = A4_3[3, 2] / A4_3[3, 3];
|
|
|
+ A4_4[3, 3] = A4_3[3, 3] / A4_3[3, 3];
|
|
|
+ A4_4[3, 4] = A4_3[3, 4] / A4_3[3, 3];
|
|
|
+ A4_4[0, 0] = (A4_4[3, 0] * (-A4_3[0, 3])) + A4_3[0, 0];
|
|
|
+ A4_4[0, 1] = (A4_4[3, 1] * (-A4_3[0, 3])) + A4_3[0, 1];
|
|
|
+ A4_4[0, 2] = (A4_4[3, 2] * (-A4_3[0, 3])) + A4_3[0, 2];
|
|
|
+ A4_4[0, 3] = (A4_4[3, 3] * (-A4_3[0, 3])) + A4_3[0, 3];
|
|
|
+ A4_4[0, 4] = (A4_4[3, 4] * (-A4_3[0, 3])) + A4_3[0, 4];
|
|
|
+ A4_4[1, 0] = (A4_4[3, 0] * (-A4_3[1, 3])) + A4_3[1, 0];
|
|
|
+ A4_4[1, 1] = (A4_4[3, 1] * (-A4_3[1, 3])) + A4_3[1, 1];
|
|
|
+ A4_4[1, 2] = (A4_4[3, 2] * (-A4_3[1, 3])) + A4_3[1, 2];
|
|
|
+ A4_4[1, 3] = (A4_4[3, 3] * (-A4_3[1, 3])) + A4_3[1, 3];
|
|
|
+ A4_4[1, 4] = (A4_4[3, 4] * (-A4_3[1, 3])) + A4_3[1, 4];
|
|
|
+ A4_4[2, 0] = (A4_4[3, 0] * (-A4_3[2, 3])) + A4_3[2, 0];
|
|
|
+ A4_4[2, 1] = (A4_4[3, 1] * (-A4_3[2, 3])) + A4_3[2, 1];
|
|
|
+ A4_4[2, 2] = (A4_4[3, 2] * (-A4_3[2, 3])) + A4_3[2, 2];
|
|
|
+ A4_4[2, 3] = (A4_4[3, 3] * (-A4_3[2, 3])) + A4_3[2, 3];
|
|
|
+ A4_4[2, 4] = (A4_4[3, 4] * (-A4_3[2, 3])) + A4_3[2, 4];
|
|
|
+ Console.WriteLine("\t|" + A4_4[0, 0] + "\t|" + A4_4[0, 1] + "\t|" + A4_4[0, 2] + "\t|" + A4_4[0, 3] + "\t||" + A4_4[0, 4] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A4_4[1, 0] + "\t|" + A4_4[1, 1] + "\t|" + A4_4[1, 2] + "\t|" + A4_4[1, 3] + "\t||" + A4_4[1, 4] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A4_4[2, 0] + "\t|" + A4_4[2, 1] + "\t|" + A4_4[2, 2] + "\t|" + A4_4[2, 3] + "\t||" + A4_4[2, 4] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A4_4[3, 0] + "\t|" + A4_4[3, 1] + "\t|" + A4_4[3, 2] + "\t|" + A4_4[3, 3] + "\t||" + A4_4[3, 4] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Ответ -------------");
|
|
|
+ Console.WriteLine("x1 = " + A4_4[0, 4]);
|
|
|
+ Console.WriteLine("x2 = " + A4_4[1, 4]);
|
|
|
+ Console.WriteLine("x3 = " + A4_4[2, 4]);
|
|
|
+ Console.WriteLine("x4 = " + A4_4[3, 4]);
|
|
|
+ }
|
|
|
+ else if (per == 5)
|
|
|
+ {
|
|
|
+ Console.WriteLine("------------- Заполните матрицу А -------------");
|
|
|
+ a = 5; b = 5;
|
|
|
+ double[,] A5 = new double[a, b];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ A5[x1, x2] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Заполните матрицу B -------------");
|
|
|
+ B = new int[a];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ B[x1] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Вывод матрицы -------------");
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ Console.Write(A5[x1, x2] + "\t|");
|
|
|
+ }
|
|
|
+ Console.WriteLine("|\t" + B[x1]);
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
|
|
|
+ int edin = 1;
|
|
|
+ foreach (int edinicha in A5)
|
|
|
+ {
|
|
|
+ if (edinicha == edin)
|
|
|
+ {
|
|
|
+ Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 1 -------------");
|
|
|
+ b = 6;
|
|
|
+ double[,] A5_1 = new double[a, b];
|
|
|
+ A5_1[0, 0] = A5[0, 0] / A5[0, 0];
|
|
|
+ A5_1[0, 1] = A5[0, 1] / A5[0, 0];
|
|
|
+ A5_1[0, 2] = A5[0, 2] / A5[0, 0];
|
|
|
+ A5_1[0, 3] = A5[0, 3] / A5[0, 0];
|
|
|
+ A5_1[0, 4] = A5[0, 4] / A5[0, 0];
|
|
|
+ A5_1[0, 5] = B[0] / A5[0, 0];
|
|
|
+ A5_1[1, 0] = (A5_1[0, 0] * (-A5[1, 0])) + A5[1, 0];
|
|
|
+ A5_1[1, 1] = (A5_1[0, 1] * (-A5[1, 0])) + A5[1, 1];
|
|
|
+ A5_1[1, 2] = (A5_1[0, 2] * (-A5[1, 0])) + A5[1, 2];
|
|
|
+ A5_1[1, 3] = (A5_1[0, 3] * (-A5[1, 0])) + A5[1, 3];
|
|
|
+ A5_1[1, 4] = (A5_1[0, 4] * (-A5[1, 0])) + A5[1, 4];
|
|
|
+ A5_1[1, 5] = (A5_1[0, 5] * (-A5[1, 0])) + B[1];
|
|
|
+ A5_1[2, 0] = (A5_1[0, 0] * (-A5[2, 0])) + A5[2, 0];
|
|
|
+ A5_1[2, 1] = (A5_1[0, 1] * (-A5[2, 0])) + A5[2, 1];
|
|
|
+ A5_1[2, 2] = (A5_1[0, 2] * (-A5[2, 0])) + A5[2, 2];
|
|
|
+ A5_1[2, 3] = (A5_1[0, 3] * (-A5[2, 0])) + A5[2, 3];
|
|
|
+ A5_1[2, 4] = (A5_1[0, 4] * (-A5[2, 0])) + A5[2, 4];
|
|
|
+ A5_1[2, 5] = (A5_1[0, 5] * (-A5[2, 0])) + B[2];
|
|
|
+ A5_1[3, 0] = (A5_1[0, 0] * (-A5[3, 0])) + A5[3, 0];
|
|
|
+ A5_1[3, 1] = (A5_1[0, 1] * (-A5[3, 0])) + A5[3, 1];
|
|
|
+ A5_1[3, 2] = (A5_1[0, 2] * (-A5[3, 0])) + A5[3, 2];
|
|
|
+ A5_1[3, 3] = (A5_1[0, 3] * (-A5[3, 0])) + A5[3, 3];
|
|
|
+ A5_1[3, 4] = (A5_1[0, 4] * (-A5[3, 0])) + A5[3, 4];
|
|
|
+ A5_1[3, 5] = (A5_1[0, 5] * (-A5[3, 0])) + B[3];
|
|
|
+ A5_1[4, 0] = (A5_1[0, 0] * (-A5[4, 0])) + A5[4, 0];
|
|
|
+ A5_1[4, 1] = (A5_1[0, 1] * (-A5[4, 0])) + A5[4, 1];
|
|
|
+ A5_1[4, 2] = (A5_1[0, 2] * (-A5[4, 0])) + A5[4, 2];
|
|
|
+ A5_1[4, 3] = (A5_1[0, 3] * (-A5[4, 0])) + A5[4, 3];
|
|
|
+ A5_1[4, 4] = (A5_1[0, 4] * (-A5[4, 0])) + A5[4, 4];
|
|
|
+ A5_1[4, 5] = (A5_1[0, 5] * (-A5[4, 0])) + B[4];
|
|
|
+ Console.WriteLine("\t|" + A5_1[0, 0] + "\t|" + A5_1[0, 1] + "\t|" + A5_1[0, 2] + "\t|" + A5_1[0, 3] + "\t|" + A5_1[0, 4] + "\t||" + A5_1[0, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_1[1, 0] + "\t|" + A5_1[1, 1] + "\t|" + A5_1[1, 2] + "\t|" + A5_1[1, 3] + "\t|" + A5_1[1, 4] + "\t||" + A5_1[1, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_1[2, 0] + "\t|" + A5_1[2, 1] + "\t|" + A5_1[2, 2] + "\t|" + A5_1[2, 3] + "\t|" + A5_1[2, 4] + "\t||" + A5_1[2, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_1[3, 0] + "\t|" + A5_1[3, 1] + "\t|" + A5_1[3, 2] + "\t|" + A5_1[3, 3] + "\t|" + A5_1[3, 4] + "\t||" + A5_1[3, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_1[4, 0] + "\t|" + A5_1[4, 1] + "\t|" + A5_1[4, 2] + "\t|" + A5_1[4, 3] + "\t|" + A5_1[4, 4] + "\t||" + A5_1[4, 5] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 2 -------------");
|
|
|
+ double[,] A5_2 = new double[a, b];
|
|
|
+ A5_2[1, 0] = A5_1[1, 0] / A5_1[1, 1];
|
|
|
+ A5_2[1, 1] = A5_1[1, 1] / A5_1[1, 1];
|
|
|
+ A5_2[1, 2] = A5_1[1, 2] / A5_1[1, 1];
|
|
|
+ A5_2[1, 3] = A5_1[1, 3] / A5_1[1, 1];
|
|
|
+ A5_2[1, 4] = A5_1[1, 4] / A5_1[1, 1];
|
|
|
+ A5_2[1, 5] = A5_1[1, 5] / A5_1[1, 1];
|
|
|
+ A5_2[0, 0] = (A5_2[1, 0] * (-A5_1[0, 1])) + A5_1[0, 0];
|
|
|
+ A5_2[0, 1] = (A5_2[1, 1] * (-A5_1[0, 1])) + A5_1[0, 1];
|
|
|
+ A5_2[0, 2] = (A5_2[1, 2] * (-A5_1[0, 1])) + A5_1[0, 2];
|
|
|
+ A5_2[0, 3] = (A5_2[1, 3] * (-A5_1[0, 1])) + A5_1[0, 3];
|
|
|
+ A5_2[0, 4] = (A5_2[1, 4] * (-A5_1[0, 1])) + A5_1[0, 4];
|
|
|
+ A5_2[0, 5] = (A5_2[1, 5] * (-A5_1[0, 1])) + A5_1[0, 5];
|
|
|
+ A5_2[2, 0] = (A5_2[1, 0] * (-A5_1[2, 1])) + A5_1[2, 0];
|
|
|
+ A5_2[2, 1] = (A5_2[1, 1] * (-A5_1[2, 1])) + A5_1[2, 1];
|
|
|
+ A5_2[2, 2] = (A5_2[1, 2] * (-A5_1[2, 1])) + A5_1[2, 2];
|
|
|
+ A5_2[2, 3] = (A5_2[1, 3] * (-A5_1[2, 1])) + A5_1[2, 3];
|
|
|
+ A5_2[2, 4] = (A5_2[1, 4] * (-A5_1[2, 1])) + A5_1[2, 4];
|
|
|
+ A5_2[2, 5] = (A5_2[1, 5] * (-A5_1[2, 1])) + A5_1[2, 5];
|
|
|
+ A5_2[3, 0] = (A5_2[1, 0] * (-A5_1[3, 1])) + A5_1[3, 0];
|
|
|
+ A5_2[3, 1] = (A5_2[1, 1] * (-A5_1[3, 1])) + A5_1[3, 1];
|
|
|
+ A5_2[3, 2] = (A5_2[1, 2] * (-A5_1[3, 1])) + A5_1[3, 2];
|
|
|
+ A5_2[3, 3] = (A5_2[1, 3] * (-A5_1[3, 1])) + A5_1[3, 3];
|
|
|
+ A5_2[3, 4] = (A5_2[1, 4] * (-A5_1[3, 1])) + A5_1[3, 4];
|
|
|
+ A5_2[3, 5] = (A5_2[1, 5] * (-A5_1[3, 1])) + A5_1[3, 5];
|
|
|
+ A5_2[4, 0] = (A5_2[1, 0] * (-A5_1[4, 1])) + A5_1[4, 0];
|
|
|
+ A5_2[4, 1] = (A5_2[1, 1] * (-A5_1[4, 1])) + A5_1[4, 1];
|
|
|
+ A5_2[4, 2] = (A5_2[1, 2] * (-A5_1[4, 1])) + A5_1[4, 2];
|
|
|
+ A5_2[4, 3] = (A5_2[1, 3] * (-A5_1[4, 1])) + A5_1[4, 3];
|
|
|
+ A5_2[4, 4] = (A5_2[1, 4] * (-A5_1[4, 1])) + A5_1[4, 4];
|
|
|
+ A5_2[4, 5] = (A5_2[1, 5] * (-A5_1[4, 1])) + A5_1[4, 5];
|
|
|
+ Console.WriteLine("\t|" + A5_2[0, 0] + "\t|" + A5_2[0, 1] + "\t|" + A5_2[0, 2] + "\t|" + A5_2[0, 3] + "\t|" + A5_2[0, 4] + "\t||" + A5_2[0, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_2[1, 0] + "\t|" + A5_2[1, 1] + "\t|" + A5_2[1, 2] + "\t|" + A5_2[1, 3] + "\t|" + A5_2[1, 4] + "\t||" + A5_2[1, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_2[2, 0] + "\t|" + A5_2[2, 1] + "\t|" + A5_2[2, 2] + "\t|" + A5_2[2, 3] + "\t|" + A5_2[2, 4] + "\t||" + A5_2[2, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_2[3, 0] + "\t|" + A5_2[3, 1] + "\t|" + A5_2[3, 2] + "\t|" + A5_2[3, 3] + "\t|" + A5_2[3, 4] + "\t||" + A5_2[3, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_2[4, 0] + "\t|" + A5_2[4, 1] + "\t|" + A5_2[4, 2] + "\t|" + A5_2[4, 3] + "\t|" + A5_2[4, 4] + "\t||" + A5_2[4, 5] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 3 -------------");
|
|
|
+ double[,] A5_3 = new double[a, b];
|
|
|
+ A5_3[2, 0] = A5_2[2, 0] / A5_2[2, 2];
|
|
|
+ A5_3[2, 1] = A5_2[2, 1] / A5_2[2, 2];
|
|
|
+ A5_3[2, 2] = A5_2[2, 2] / A5_2[2, 2];
|
|
|
+ A5_3[2, 3] = A5_2[2, 3] / A5_2[2, 2];
|
|
|
+ A5_3[2, 4] = A5_2[2, 4] / A5_2[2, 2];
|
|
|
+ A5_3[2, 5] = A5_2[2, 5] / A5_2[2, 2];
|
|
|
+ A5_3[0, 0] = (A5_3[2, 0] * (-A5_2[0, 2])) + A5_2[0, 0];
|
|
|
+ A5_3[0, 1] = (A5_3[2, 1] * (-A5_2[0, 2])) + A5_2[0, 1];
|
|
|
+ A5_3[0, 2] = (A5_3[2, 2] * (-A5_2[0, 2])) + A5_2[0, 2];
|
|
|
+ A5_3[0, 3] = (A5_3[2, 3] * (-A5_2[0, 2])) + A5_2[0, 3];
|
|
|
+ A5_3[0, 4] = (A5_3[2, 4] * (-A5_2[0, 2])) + A5_2[0, 4];
|
|
|
+ A5_3[0, 5] = (A5_3[2, 5] * (-A5_2[0, 2])) + A5_2[0, 5];
|
|
|
+ A5_3[1, 0] = (A5_3[2, 0] * (-A5_2[1, 2])) + A5_2[1, 0];
|
|
|
+ A5_3[1, 1] = (A5_3[2, 1] * (-A5_2[1, 2])) + A5_2[1, 1];
|
|
|
+ A5_3[1, 2] = (A5_3[2, 2] * (-A5_2[1, 2])) + A5_2[1, 2];
|
|
|
+ A5_3[1, 3] = (A5_3[2, 3] * (-A5_2[1, 2])) + A5_2[1, 3];
|
|
|
+ A5_3[1, 4] = (A5_3[2, 4] * (-A5_2[1, 2])) + A5_2[1, 4];
|
|
|
+ A5_3[1, 5] = (A5_3[2, 5] * (-A5_2[1, 2])) + A5_2[1, 5];
|
|
|
+ A5_3[3, 0] = (A5_3[2, 0] * (-A5_2[3, 2])) + A5_2[3, 0];
|
|
|
+ A5_3[3, 1] = (A5_3[2, 1] * (-A5_2[3, 2])) + A5_2[3, 1];
|
|
|
+ A5_3[3, 2] = (A5_3[2, 2] * (-A5_2[3, 2])) + A5_2[3, 2];
|
|
|
+ A5_3[3, 3] = (A5_3[2, 3] * (-A5_2[3, 2])) + A5_2[3, 3];
|
|
|
+ A5_3[3, 4] = (A5_3[2, 4] * (-A5_2[3, 2])) + A5_2[3, 4];
|
|
|
+ A5_3[3, 5] = (A5_3[2, 5] * (-A5_2[3, 2])) + A5_2[3, 5];
|
|
|
+ A5_3[4, 0] = (A5_3[2, 0] * (-A5_2[4, 2])) + A5_2[4, 0];
|
|
|
+ A5_3[4, 1] = (A5_3[2, 1] * (-A5_2[4, 2])) + A5_2[4, 1];
|
|
|
+ A5_3[4, 2] = (A5_3[2, 2] * (-A5_2[4, 2])) + A5_2[4, 2];
|
|
|
+ A5_3[4, 3] = (A5_3[2, 3] * (-A5_2[4, 2])) + A5_2[4, 3];
|
|
|
+ A5_3[4, 4] = (A5_3[2, 4] * (-A5_2[4, 2])) + A5_2[4, 4];
|
|
|
+ A5_3[4, 5] = (A5_3[2, 5] * (-A5_2[4, 2])) + A5_2[4, 5];
|
|
|
+ Console.WriteLine("\t|" + A5_3[0, 0] + "\t|" + A5_3[0, 1] + "\t|" + A5_3[0, 2] + "\t|" + A5_3[0, 3] + "\t|" + A5_3[0, 4] + "\t||" + A5_3[0, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_3[1, 0] + "\t|" + A5_3[1, 1] + "\t|" + A5_3[1, 2] + "\t|" + A5_3[1, 3] + "\t|" + A5_3[1, 4] + "\t||" + A5_3[1, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_3[2, 0] + "\t|" + A5_3[2, 1] + "\t|" + A5_3[2, 2] + "\t|" + A5_3[2, 3] + "\t|" + A5_3[2, 4] + "\t||" + A5_3[2, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_3[3, 0] + "\t|" + A5_3[3, 1] + "\t|" + A5_3[3, 2] + "\t|" + A5_3[3, 3] + "\t|" + A5_3[3, 4] + "\t||" + A5_3[3, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_3[4, 0] + "\t|" + A5_3[4, 1] + "\t|" + A5_3[4, 2] + "\t|" + A5_3[4, 3] + "\t|" + A5_3[4, 4] + "\t||" + A5_3[4, 5] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 4 -------------");
|
|
|
+ double[,] A5_4 = new double[a, b];
|
|
|
+ A5_4[3, 0] = A5_3[3, 0] / A5_3[3, 3];
|
|
|
+ A5_4[3, 1] = A5_3[3, 1] / A5_3[3, 3];
|
|
|
+ A5_4[3, 2] = A5_3[3, 2] / A5_3[3, 3];
|
|
|
+ A5_4[3, 3] = A5_3[3, 3] / A5_3[3, 3];
|
|
|
+ A5_4[3, 4] = A5_3[3, 4] / A5_3[3, 3];
|
|
|
+ A5_4[3, 5] = A5_3[3, 5] / A5_3[3, 3];
|
|
|
+ A5_4[0, 0] = (A5_4[3, 0] * (-A5_3[0, 3])) + A5_3[0, 0];
|
|
|
+ A5_4[0, 1] = (A5_4[3, 1] * (-A5_3[0, 3])) + A5_3[0, 1];
|
|
|
+ A5_4[0, 2] = (A5_4[3, 2] * (-A5_3[0, 3])) + A5_3[0, 2];
|
|
|
+ A5_4[0, 3] = (A5_4[3, 3] * (-A5_3[0, 3])) + A5_3[0, 3];
|
|
|
+ A5_4[0, 4] = (A5_4[3, 4] * (-A5_3[0, 3])) + A5_3[0, 4];
|
|
|
+ A5_4[0, 5] = (A5_4[3, 5] * (-A5_3[0, 3])) + A5_3[0, 5];
|
|
|
+ A5_4[1, 0] = (A5_4[3, 0] * (-A5_3[1, 3])) + A5_3[1, 0];
|
|
|
+ A5_4[1, 1] = (A5_4[3, 1] * (-A5_3[1, 3])) + A5_3[1, 1];
|
|
|
+ A5_4[1, 2] = (A5_4[3, 2] * (-A5_3[1, 3])) + A5_3[1, 2];
|
|
|
+ A5_4[1, 3] = (A5_4[3, 3] * (-A5_3[1, 3])) + A5_3[1, 3];
|
|
|
+ A5_4[1, 4] = (A5_4[3, 4] * (-A5_3[1, 3])) + A5_3[1, 4];
|
|
|
+ A5_4[1, 5] = (A5_4[3, 5] * (-A5_3[1, 3])) + A5_3[1, 5];
|
|
|
+ A5_4[2, 0] = (A5_4[3, 0] * (-A5_3[2, 3])) + A5_3[2, 0];
|
|
|
+ A5_4[2, 1] = (A5_4[3, 1] * (-A5_3[2, 3])) + A5_3[2, 1];
|
|
|
+ A5_4[2, 2] = (A5_4[3, 2] * (-A5_3[2, 3])) + A5_3[2, 2];
|
|
|
+ A5_4[2, 3] = (A5_4[3, 3] * (-A5_3[2, 3])) + A5_3[2, 3];
|
|
|
+ A5_4[2, 4] = (A5_4[3, 4] * (-A5_3[2, 3])) + A5_3[2, 4];
|
|
|
+ A5_4[2, 5] = (A5_4[3, 5] * (-A5_3[2, 3])) + A5_3[2, 5];
|
|
|
+ A5_4[4, 0] = (A5_4[3, 0] * (-A5_3[4, 3])) + A5_3[1, 0];
|
|
|
+ A5_4[4, 1] = (A5_4[3, 1] * (-A5_3[4, 3])) + A5_3[1, 1];
|
|
|
+ A5_4[4, 2] = (A5_4[3, 2] * (-A5_3[4, 3])) + A5_3[1, 2];
|
|
|
+ A5_4[4, 3] = (A5_4[3, 3] * (-A5_3[4, 3])) + A5_3[1, 3];
|
|
|
+ A5_4[4, 4] = (A5_4[3, 4] * (-A5_3[4, 3])) + A5_3[1, 4];
|
|
|
+ A5_4[4, 5] = (A5_4[3, 5] * (-A5_3[4, 3])) + A5_3[1, 5];
|
|
|
+ Console.WriteLine("\t|" + A5_4[0, 0] + "\t|" + A5_4[0, 1] + "\t|" + A5_4[0, 2] + "\t|" + A5_4[0, 3] + "\t|" + A5_4[0, 4] + "\t||" + A5_4[0, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_4[1, 0] + "\t|" + A5_4[1, 1] + "\t|" + A5_4[1, 2] + "\t|" + A5_4[1, 3] + "\t|" + A5_4[1, 4] + "\t||" + A5_4[1, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_4[2, 0] + "\t|" + A5_4[2, 1] + "\t|" + A5_4[2, 2] + "\t|" + A5_4[2, 3] + "\t|" + A5_4[2, 4] + "\t||" + A5_4[2, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_4[3, 0] + "\t|" + A5_4[3, 1] + "\t|" + A5_4[3, 2] + "\t|" + A5_4[3, 3] + "\t|" + A5_4[3, 4] + "\t||" + A5_4[3, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_4[4, 0] + "\t|" + A5_4[4, 1] + "\t|" + A5_4[4, 2] + "\t|" + A5_4[4, 3] + "\t|" + A5_4[4, 4] + "\t||" + A5_4[4, 5] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 5 -------------");
|
|
|
+ double[,] A5_5 = new double[a, b];
|
|
|
+ A5_5[4, 0] = A5_4[4, 0] / A5_4[4, 4];
|
|
|
+ A5_5[4, 1] = A5_4[4, 1] / A5_4[4, 4];
|
|
|
+ A5_5[4, 2] = A5_4[4, 2] / A5_4[4, 4];
|
|
|
+ A5_5[4, 3] = A5_4[4, 3] / A5_4[4, 4];
|
|
|
+ A5_5[4, 4] = A5_4[4, 4] / A5_4[4, 4];
|
|
|
+ A5_5[4, 5] = A5_4[4, 5] / A5_4[4, 4];
|
|
|
+ A5_5[0, 0] = (A5_5[4, 0] * (-A5_4[0, 4])) + A5_4[0, 0];
|
|
|
+ A5_5[0, 1] = (A5_5[4, 1] * (-A5_4[0, 4])) + A5_4[0, 1];
|
|
|
+ A5_5[0, 2] = (A5_5[4, 2] * (-A5_4[0, 4])) + A5_4[0, 2];
|
|
|
+ A5_5[0, 3] = (A5_5[4, 3] * (-A5_4[0, 4])) + A5_4[0, 3];
|
|
|
+ A5_5[0, 4] = (A5_5[4, 4] * (-A5_4[0, 4])) + A5_4[0, 4];
|
|
|
+ A5_5[0, 5] = (A5_5[4, 5] * (-A5_4[0, 4])) + A5_4[0, 5];
|
|
|
+ A5_5[1, 0] = (A5_5[4, 0] * (-A5_4[1, 4])) + A5_4[1, 0];
|
|
|
+ A5_5[1, 1] = (A5_5[4, 1] * (-A5_4[1, 4])) + A5_4[1, 1];
|
|
|
+ A5_5[1, 2] = (A5_5[4, 2] * (-A5_4[1, 4])) + A5_4[1, 2];
|
|
|
+ A5_5[1, 3] = (A5_5[4, 3] * (-A5_4[1, 4])) + A5_4[1, 3];
|
|
|
+ A5_5[1, 4] = (A5_5[4, 4] * (-A5_4[1, 4])) + A5_4[1, 4];
|
|
|
+ A5_5[1, 5] = (A5_5[4, 5] * (-A5_4[1, 4])) + A5_4[1, 5];
|
|
|
+ A5_5[2, 0] = (A5_5[4, 0] * (-A5_4[2, 4])) + A5_4[2, 0];
|
|
|
+ A5_5[2, 1] = (A5_5[4, 1] * (-A5_4[2, 4])) + A5_4[2, 1];
|
|
|
+ A5_5[2, 2] = (A5_5[4, 2] * (-A5_4[2, 4])) + A5_4[2, 2];
|
|
|
+ A5_5[2, 3] = (A5_5[4, 3] * (-A5_4[2, 4])) + A5_4[2, 3];
|
|
|
+ A5_5[2, 4] = (A5_5[4, 4] * (-A5_4[2, 4])) + A5_4[2, 4];
|
|
|
+ A5_5[2, 5] = (A5_5[4, 5] * (-A5_4[2, 4])) + A5_4[2, 5];
|
|
|
+ A5_5[3, 0] = (A5_5[4, 0] * (-A5_4[3, 4])) + A5_4[3, 0];
|
|
|
+ A5_5[3, 1] = (A5_5[4, 1] * (-A5_4[3, 4])) + A5_4[3, 1];
|
|
|
+ A5_5[3, 2] = (A5_5[4, 2] * (-A5_4[3, 4])) + A5_4[3, 2];
|
|
|
+ A5_5[3, 3] = (A5_5[4, 3] * (-A5_4[3, 4])) + A5_4[3, 3];
|
|
|
+ A5_5[3, 4] = (A5_5[4, 4] * (-A5_4[3, 4])) + A5_4[3, 4];
|
|
|
+ A5_5[3, 5] = (A5_5[4, 5] * (-A5_4[3, 4])) + A5_4[3, 5];
|
|
|
+ Console.WriteLine("\t|" + A5_5[0, 0] + "\t|" + A5_5[0, 1] + "\t|" + A5_5[0, 2] + "\t|" + A5_5[0, 3] + "\t|" + A5_5[0, 4] + "\t||" + A5_5[0, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_5[1, 0] + "\t|" + A5_5[1, 1] + "\t|" + A5_5[1, 2] + "\t|" + A5_5[1, 3] + "\t|" + A5_5[1, 4] + "\t||" + A5_5[1, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_5[2, 0] + "\t|" + A5_5[2, 1] + "\t|" + A5_5[2, 2] + "\t|" + A5_5[2, 3] + "\t|" + A5_5[2, 4] + "\t||" + A5_5[2, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_5[3, 0] + "\t|" + A5_5[3, 1] + "\t|" + A5_5[3, 2] + "\t|" + A5_5[3, 3] + "\t|" + A5_5[3, 4] + "\t||" + A5_5[3, 5] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A5_5[4, 0] + "\t|" + A5_5[4, 1] + "\t|" + A5_5[4, 2] + "\t|" + A5_5[4, 3] + "\t|" + A5_5[4, 4] + "\t||" + A5_5[4, 5] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Ответ -------------");
|
|
|
+ Console.WriteLine("x1 = " + A5_5[0, 5]);
|
|
|
+ Console.WriteLine("x2 = " + A5_5[1, 5]);
|
|
|
+ Console.WriteLine("x3 = " + A5_5[2, 5]);
|
|
|
+ Console.WriteLine("x4 = " + A5_5[3, 5]);
|
|
|
+ Console.WriteLine("x5 = " + A5_5[4, 5]);
|
|
|
+ }
|
|
|
+ else if (per == 6)
|
|
|
+ {
|
|
|
+ Console.WriteLine("------------- Заполните матрицу А -------------");
|
|
|
+ a = 6; b = 6;
|
|
|
+ double[,] A6 = new double[a, b];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ A6[x1, x2] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Заполните матрицу B -------------");
|
|
|
+ B = new int[a];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ B[x1] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Вывод матрицы -------------");
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ Console.Write(A6[x1, x2] + "\t|");
|
|
|
+ }
|
|
|
+ Console.WriteLine("|\t" + B[x1]);
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
|
|
|
+ int edin = 1;
|
|
|
+ foreach (int edinicha in A6)
|
|
|
+ {
|
|
|
+ if (edinicha == edin)
|
|
|
+ {
|
|
|
+ Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 1 -------------");
|
|
|
+ b = 7;
|
|
|
+ double[,] A6_1 = new double[a, b];
|
|
|
+ A6_1[0, 0] = A6[0, 0] / A6[0, 0];
|
|
|
+ A6_1[0, 1] = A6[0, 1] / A6[0, 0];
|
|
|
+ A6_1[0, 2] = A6[0, 2] / A6[0, 0];
|
|
|
+ A6_1[0, 3] = A6[0, 3] / A6[0, 0];
|
|
|
+ A6_1[0, 4] = A6[0, 4] / A6[0, 0];
|
|
|
+ A6_1[0, 5] = A6[0, 5] / A6[0, 0];
|
|
|
+ A6_1[0, 6] = B[0] / A6[0, 0];
|
|
|
+ A6_1[1, 0] = (A6_1[0, 0] * (-A6[1, 0])) + A6[1, 0];
|
|
|
+ A6_1[1, 1] = (A6_1[0, 1] * (-A6[1, 0])) + A6[1, 1];
|
|
|
+ A6_1[1, 2] = (A6_1[0, 2] * (-A6[1, 0])) + A6[1, 2];
|
|
|
+ A6_1[1, 3] = (A6_1[0, 3] * (-A6[1, 0])) + A6[1, 3];
|
|
|
+ A6_1[1, 4] = (A6_1[0, 4] * (-A6[1, 0])) + A6[1, 4];
|
|
|
+ A6_1[1, 5] = (A6_1[0, 5] * (-A6[1, 0])) + A6[1, 5];
|
|
|
+ A6_1[1, 6] = (A6_1[0, 6] * (-A6[1, 0])) + B[1];
|
|
|
+ A6_1[2, 0] = (A6_1[0, 0] * (-A6[2, 0])) + A6[2, 0];
|
|
|
+ A6_1[2, 1] = (A6_1[0, 1] * (-A6[2, 0])) + A6[2, 1];
|
|
|
+ A6_1[2, 2] = (A6_1[0, 2] * (-A6[2, 0])) + A6[2, 2];
|
|
|
+ A6_1[2, 3] = (A6_1[0, 3] * (-A6[2, 0])) + A6[2, 3];
|
|
|
+ A6_1[2, 4] = (A6_1[0, 4] * (-A6[2, 0])) + A6[2, 4];
|
|
|
+ A6_1[2, 5] = (A6_1[0, 5] * (-A6[2, 0])) + A6[2, 5];
|
|
|
+ A6_1[2, 6] = (A6_1[0, 6] * (-A6[2, 0])) + B[2];
|
|
|
+ A6_1[3, 0] = (A6_1[0, 0] * (-A6[3, 0])) + A6[3, 0];
|
|
|
+ A6_1[3, 1] = (A6_1[0, 1] * (-A6[3, 0])) + A6[3, 1];
|
|
|
+ A6_1[3, 2] = (A6_1[0, 2] * (-A6[3, 0])) + A6[3, 2];
|
|
|
+ A6_1[3, 3] = (A6_1[0, 3] * (-A6[3, 0])) + A6[3, 3];
|
|
|
+ A6_1[3, 4] = (A6_1[0, 4] * (-A6[3, 0])) + A6[3, 4];
|
|
|
+ A6_1[3, 5] = (A6_1[0, 5] * (-A6[3, 0])) + A6[3, 5];
|
|
|
+ A6_1[3, 6] = (A6_1[0, 6] * (-A6[3, 0])) + B[3];
|
|
|
+ A6_1[4, 0] = (A6_1[0, 0] * (-A6[4, 0])) + A6[4, 0];
|
|
|
+ A6_1[4, 1] = (A6_1[0, 1] * (-A6[4, 0])) + A6[4, 1];
|
|
|
+ A6_1[4, 2] = (A6_1[0, 2] * (-A6[4, 0])) + A6[4, 2];
|
|
|
+ A6_1[4, 3] = (A6_1[0, 3] * (-A6[4, 0])) + A6[4, 3];
|
|
|
+ A6_1[4, 4] = (A6_1[0, 4] * (-A6[4, 0])) + A6[4, 4];
|
|
|
+ A6_1[4, 5] = (A6_1[0, 5] * (-A6[4, 0])) + A6[4, 5];
|
|
|
+ A6_1[4, 6] = (A6_1[0, 6] * (-A6[4, 0])) + B[4];
|
|
|
+ A6_1[5, 0] = (A6_1[0, 0] * (-A6[5, 0])) + A6[5, 0];
|
|
|
+ A6_1[5, 1] = (A6_1[0, 1] * (-A6[5, 0])) + A6[5, 1];
|
|
|
+ A6_1[5, 2] = (A6_1[0, 2] * (-A6[5, 0])) + A6[5, 2];
|
|
|
+ A6_1[5, 3] = (A6_1[0, 3] * (-A6[5, 0])) + A6[5, 3];
|
|
|
+ A6_1[5, 4] = (A6_1[0, 4] * (-A6[5, 0])) + A6[5, 4];
|
|
|
+ A6_1[5, 5] = (A6_1[0, 5] * (-A6[5, 0])) + A6[5, 5];
|
|
|
+ A6_1[5, 6] = (A6_1[0, 6] * (-A6[5, 0])) + B[5];
|
|
|
+ Console.WriteLine("\t|" + A6_1[0, 0] + "\t|" + A6_1[0, 1] + "\t|" + A6_1[0, 2] + "\t|" + A6_1[0, 3] + "\t|" + A6_1[0, 4] + "\t|" + A6_1[0, 5] + "\t||" + A6_1[0, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_1[1, 0] + "\t|" + A6_1[1, 1] + "\t|" + A6_1[1, 2] + "\t|" + A6_1[1, 3] + "\t|" + A6_1[1, 4] + "\t|" + A6_1[1, 5] + "\t||" + A6_1[1, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_1[2, 0] + "\t|" + A6_1[2, 1] + "\t|" + A6_1[2, 2] + "\t|" + A6_1[2, 3] + "\t|" + A6_1[2, 4] + "\t|" + A6_1[2, 5] + "\t||" + A6_1[2, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_1[3, 0] + "\t|" + A6_1[3, 1] + "\t|" + A6_1[3, 2] + "\t|" + A6_1[3, 3] + "\t|" + A6_1[3, 4] + "\t|" + A6_1[3, 5] + "\t||" + A6_1[3, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_1[4, 0] + "\t|" + A6_1[4, 1] + "\t|" + A6_1[4, 2] + "\t|" + A6_1[4, 3] + "\t|" + A6_1[4, 4] + "\t|" + A6_1[4, 5] + "\t||" + A6_1[4, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_1[5, 0] + "\t|" + A6_1[5, 1] + "\t|" + A6_1[5, 2] + "\t|" + A6_1[5, 3] + "\t|" + A6_1[5, 4] + "\t|" + A6_1[5, 5] + "\t||" + A6_1[5, 6] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 2 -------------");
|
|
|
+ double[,] A6_2 = new double[a, b];
|
|
|
+ A6_2[1, 0] = A6_1[1, 0] / A6_1[1, 1];
|
|
|
+ A6_2[1, 1] = A6_1[1, 1] / A6_1[1, 1];
|
|
|
+ A6_2[1, 2] = A6_1[1, 2] / A6_1[1, 1];
|
|
|
+ A6_2[1, 3] = A6_1[1, 3] / A6_1[1, 1];
|
|
|
+ A6_2[1, 4] = A6_1[1, 4] / A6_1[1, 1];
|
|
|
+ A6_2[1, 5] = A6_1[1, 5] / A6_1[1, 1];
|
|
|
+ A6_2[1, 6] = A6_1[1, 6] / A6_1[1, 1];
|
|
|
+ A6_2[0, 0] = (A6_2[1, 0] * (-A6_1[0, 1])) + A6_1[0, 0];
|
|
|
+ A6_2[0, 1] = (A6_2[1, 1] * (-A6_1[0, 1])) + A6_1[0, 1];
|
|
|
+ A6_2[0, 2] = (A6_2[1, 2] * (-A6_1[0, 1])) + A6_1[0, 2];
|
|
|
+ A6_2[0, 3] = (A6_2[1, 3] * (-A6_1[0, 1])) + A6_1[0, 3];
|
|
|
+ A6_2[0, 4] = (A6_2[1, 4] * (-A6_1[0, 1])) + A6_1[0, 4];
|
|
|
+ A6_2[0, 5] = (A6_2[1, 5] * (-A6_1[0, 1])) + A6_1[0, 5];
|
|
|
+ A6_2[0, 6] = (A6_2[1, 6] * (-A6_1[0, 1])) + A6_1[0, 6];
|
|
|
+ A6_2[2, 0] = (A6_2[1, 0] * (-A6_1[2, 1])) + A6_1[2, 0];
|
|
|
+ A6_2[2, 1] = (A6_2[1, 1] * (-A6_1[2, 1])) + A6_1[2, 1];
|
|
|
+ A6_2[2, 2] = (A6_2[1, 2] * (-A6_1[2, 1])) + A6_1[2, 2];
|
|
|
+ A6_2[2, 3] = (A6_2[1, 3] * (-A6_1[2, 1])) + A6_1[2, 3];
|
|
|
+ A6_2[2, 4] = (A6_2[1, 4] * (-A6_1[2, 1])) + A6_1[2, 4];
|
|
|
+ A6_2[2, 5] = (A6_2[1, 5] * (-A6_1[2, 1])) + A6_1[2, 5];
|
|
|
+ A6_2[2, 6] = (A6_2[1, 6] * (-A6_1[2, 1])) + A6_1[2, 6];
|
|
|
+ A6_2[3, 0] = (A6_2[1, 0] * (-A6_1[3, 1])) + A6_1[3, 0];
|
|
|
+ A6_2[3, 1] = (A6_2[1, 1] * (-A6_1[3, 1])) + A6_1[3, 1];
|
|
|
+ A6_2[3, 2] = (A6_2[1, 2] * (-A6_1[3, 1])) + A6_1[3, 2];
|
|
|
+ A6_2[3, 3] = (A6_2[1, 3] * (-A6_1[3, 1])) + A6_1[3, 3];
|
|
|
+ A6_2[3, 4] = (A6_2[1, 4] * (-A6_1[3, 1])) + A6_1[3, 4];
|
|
|
+ A6_2[3, 5] = (A6_2[1, 5] * (-A6_1[3, 1])) + A6_1[3, 5];
|
|
|
+ A6_2[3, 6] = (A6_2[1, 6] * (-A6_1[3, 1])) + A6_1[3, 6];
|
|
|
+ A6_2[4, 0] = (A6_2[1, 0] * (-A6_1[4, 1])) + A6_1[4, 0];
|
|
|
+ A6_2[4, 1] = (A6_2[1, 1] * (-A6_1[4, 1])) + A6_1[4, 1];
|
|
|
+ A6_2[4, 2] = (A6_2[1, 2] * (-A6_1[4, 1])) + A6_1[4, 2];
|
|
|
+ A6_2[4, 3] = (A6_2[1, 3] * (-A6_1[4, 1])) + A6_1[4, 3];
|
|
|
+ A6_2[4, 4] = (A6_2[1, 4] * (-A6_1[4, 1])) + A6_1[4, 4];
|
|
|
+ A6_2[4, 5] = (A6_2[1, 5] * (-A6_1[4, 1])) + A6_1[4, 5];
|
|
|
+ A6_2[4, 6] = (A6_2[1, 6] * (-A6_1[4, 1])) + A6_1[4, 6];
|
|
|
+ A6_2[5, 0] = (A6_2[1, 0] * (-A6_1[5, 1])) + A6_1[5, 0];
|
|
|
+ A6_2[5, 1] = (A6_2[1, 1] * (-A6_1[5, 1])) + A6_1[5, 1];
|
|
|
+ A6_2[5, 2] = (A6_2[1, 2] * (-A6_1[5, 1])) + A6_1[5, 2];
|
|
|
+ A6_2[5, 3] = (A6_2[1, 3] * (-A6_1[5, 1])) + A6_1[5, 3];
|
|
|
+ A6_2[5, 4] = (A6_2[1, 4] * (-A6_1[5, 1])) + A6_1[5, 4];
|
|
|
+ A6_2[5, 5] = (A6_2[1, 5] * (-A6_1[5, 1])) + A6_1[5, 5];
|
|
|
+ A6_2[5, 6] = (A6_2[1, 6] * (-A6_1[5, 1])) + A6_1[5, 6];
|
|
|
+ Console.WriteLine("\t|" + A6_2[0, 0] + "\t|" + A6_2[0, 1] + "\t|" + A6_2[0, 2] + "\t|" + A6_2[0, 3] + "\t|" + A6_2[0, 4] + "\t|" + A6_2[0, 5] + "\t||" + A6_2[0, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_2[1, 0] + "\t|" + A6_2[1, 1] + "\t|" + A6_2[1, 2] + "\t|" + A6_2[1, 3] + "\t|" + A6_2[1, 4] + "\t|" + A6_2[1, 5] + "\t||" + A6_2[1, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_2[2, 0] + "\t|" + A6_2[2, 1] + "\t|" + A6_2[2, 2] + "\t|" + A6_2[2, 3] + "\t|" + A6_2[2, 4] + "\t|" + A6_2[2, 5] + "\t||" + A6_2[2, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_2[3, 0] + "\t|" + A6_2[3, 1] + "\t|" + A6_2[3, 2] + "\t|" + A6_2[3, 3] + "\t|" + A6_2[3, 4] + "\t|" + A6_2[3, 5] + "\t||" + A6_2[3, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_2[4, 0] + "\t|" + A6_2[4, 1] + "\t|" + A6_2[4, 2] + "\t|" + A6_2[4, 3] + "\t|" + A6_2[4, 4] + "\t|" + A6_2[4, 5] + "\t||" + A6_2[4, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_2[5, 0] + "\t|" + A6_2[5, 1] + "\t|" + A6_2[5, 2] + "\t|" + A6_2[5, 3] + "\t|" + A6_2[5, 4] + "\t|" + A6_2[5, 5] + "\t||" + A6_2[5, 6] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 3 -------------");
|
|
|
+ double[,] A6_3 = new double[a, b];
|
|
|
+ A6_3[2, 0] = A6_2[2, 0] / A6_2[2, 2];
|
|
|
+ A6_3[2, 1] = A6_2[2, 1] / A6_2[2, 2];
|
|
|
+ A6_3[2, 2] = A6_2[2, 2] / A6_2[2, 2];
|
|
|
+ A6_3[2, 3] = A6_2[2, 3] / A6_2[2, 2];
|
|
|
+ A6_3[2, 4] = A6_2[2, 4] / A6_2[2, 2];
|
|
|
+ A6_3[2, 5] = A6_2[2, 5] / A6_2[2, 2];
|
|
|
+ A6_3[2, 6] = A6_2[2, 6] / A6_2[2, 2];
|
|
|
+ A6_3[0, 0] = (A6_3[2, 0] * (-A6_2[0, 2])) + A6_2[0, 0];
|
|
|
+ A6_3[0, 1] = (A6_3[2, 1] * (-A6_2[0, 2])) + A6_2[0, 1];
|
|
|
+ A6_3[0, 2] = (A6_3[2, 2] * (-A6_2[0, 2])) + A6_2[0, 2];
|
|
|
+ A6_3[0, 3] = (A6_3[2, 3] * (-A6_2[0, 2])) + A6_2[0, 3];
|
|
|
+ A6_3[0, 4] = (A6_3[2, 4] * (-A6_2[0, 2])) + A6_2[0, 4];
|
|
|
+ A6_3[0, 5] = (A6_3[2, 5] * (-A6_2[0, 2])) + A6_2[0, 5];
|
|
|
+ A6_3[0, 6] = (A6_3[2, 6] * (-A6_2[0, 2])) + A6_2[0, 6];
|
|
|
+ A6_3[1, 0] = (A6_3[2, 0] * (-A6_2[1, 2])) + A6_2[1, 0];
|
|
|
+ A6_3[1, 1] = (A6_3[2, 1] * (-A6_2[1, 2])) + A6_2[1, 1];
|
|
|
+ A6_3[1, 2] = (A6_3[2, 2] * (-A6_2[1, 2])) + A6_2[1, 2];
|
|
|
+ A6_3[1, 3] = (A6_3[2, 3] * (-A6_2[1, 2])) + A6_2[1, 3];
|
|
|
+ A6_3[1, 4] = (A6_3[2, 4] * (-A6_2[1, 2])) + A6_2[1, 4];
|
|
|
+ A6_3[1, 5] = (A6_3[2, 5] * (-A6_2[1, 2])) + A6_2[1, 5];
|
|
|
+ A6_3[1, 6] = (A6_3[2, 6] * (-A6_2[1, 2])) + A6_2[1, 6];
|
|
|
+ A6_3[3, 0] = (A6_3[2, 0] * (-A6_2[3, 2])) + A6_2[3, 0];
|
|
|
+ A6_3[3, 1] = (A6_3[2, 1] * (-A6_2[3, 2])) + A6_2[3, 1];
|
|
|
+ A6_3[3, 2] = (A6_3[2, 2] * (-A6_2[3, 2])) + A6_2[3, 2];
|
|
|
+ A6_3[3, 3] = (A6_3[2, 3] * (-A6_2[3, 2])) + A6_2[3, 3];
|
|
|
+ A6_3[3, 4] = (A6_3[2, 4] * (-A6_2[3, 2])) + A6_2[3, 4];
|
|
|
+ A6_3[3, 5] = (A6_3[2, 5] * (-A6_2[3, 2])) + A6_2[3, 5];
|
|
|
+ A6_3[3, 6] = (A6_3[2, 6] * (-A6_2[3, 2])) + A6_2[3, 6];
|
|
|
+ A6_3[4, 0] = (A6_3[2, 0] * (-A6_2[4, 2])) + A6_2[4, 0];
|
|
|
+ A6_3[4, 1] = (A6_3[2, 1] * (-A6_2[4, 2])) + A6_2[4, 1];
|
|
|
+ A6_3[4, 2] = (A6_3[2, 2] * (-A6_2[4, 2])) + A6_2[4, 2];
|
|
|
+ A6_3[4, 3] = (A6_3[2, 3] * (-A6_2[4, 2])) + A6_2[4, 3];
|
|
|
+ A6_3[4, 4] = (A6_3[2, 4] * (-A6_2[4, 2])) + A6_2[4, 4];
|
|
|
+ A6_3[4, 5] = (A6_3[2, 5] * (-A6_2[4, 2])) + A6_2[4, 5];
|
|
|
+ A6_3[4, 6] = (A6_3[2, 6] * (-A6_2[4, 2])) + A6_2[4, 6];
|
|
|
+ A6_3[5, 0] = (A6_3[2, 0] * (-A6_2[5, 2])) + A6_2[5, 0];
|
|
|
+ A6_3[5, 1] = (A6_3[2, 1] * (-A6_2[5, 2])) + A6_2[5, 1];
|
|
|
+ A6_3[5, 2] = (A6_3[2, 2] * (-A6_2[5, 2])) + A6_2[5, 2];
|
|
|
+ A6_3[5, 3] = (A6_3[2, 3] * (-A6_2[5, 2])) + A6_2[5, 3];
|
|
|
+ A6_3[5, 4] = (A6_3[2, 4] * (-A6_2[5, 2])) + A6_2[5, 4];
|
|
|
+ A6_3[5, 5] = (A6_3[2, 5] * (-A6_2[5, 2])) + A6_2[5, 5];
|
|
|
+ A6_3[5, 6] = (A6_3[2, 6] * (-A6_2[5, 2])) + A6_2[5, 6];
|
|
|
+ Console.WriteLine("\t|" + A6_3[0, 0] + "\t|" + A6_3[0, 1] + "\t|" + A6_3[0, 2] + "\t|" + A6_3[0, 3] + "\t|" + A6_3[0, 4] + "\t|" + A6_3[0, 5] + "\t||" + A6_3[0, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_3[1, 0] + "\t|" + A6_3[1, 1] + "\t|" + A6_3[1, 2] + "\t|" + A6_3[1, 3] + "\t|" + A6_3[1, 4] + "\t|" + A6_3[1, 5] + "\t||" + A6_3[1, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_3[2, 0] + "\t|" + A6_3[2, 1] + "\t|" + A6_3[2, 2] + "\t|" + A6_3[2, 3] + "\t|" + A6_3[2, 4] + "\t|" + A6_3[2, 5] + "\t||" + A6_3[2, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_3[3, 0] + "\t|" + A6_3[3, 1] + "\t|" + A6_3[3, 2] + "\t|" + A6_3[3, 3] + "\t|" + A6_3[3, 4] + "\t|" + A6_3[3, 5] + "\t||" + A6_3[3, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_3[4, 0] + "\t|" + A6_3[4, 1] + "\t|" + A6_3[4, 2] + "\t|" + A6_3[4, 3] + "\t|" + A6_3[4, 4] + "\t|" + A6_3[4, 5] + "\t||" + A6_3[4, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_3[5, 0] + "\t|" + A6_3[5, 1] + "\t|" + A6_3[5, 2] + "\t|" + A6_3[5, 3] + "\t|" + A6_3[5, 4] + "\t|" + A6_3[5, 5] + "\t||" + A6_3[5, 6] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 4 -------------");
|
|
|
+ double[,] A6_4 = new double[a, b];
|
|
|
+ A6_4[3, 0] = A6_3[3, 0] / A6_3[3, 3];
|
|
|
+ A6_4[3, 1] = A6_3[3, 1] / A6_3[3, 3];
|
|
|
+ A6_4[3, 2] = A6_3[3, 2] / A6_3[3, 3];
|
|
|
+ A6_4[3, 3] = A6_3[3, 3] / A6_3[3, 3];
|
|
|
+ A6_4[3, 4] = A6_3[3, 4] / A6_3[3, 3];
|
|
|
+ A6_4[3, 5] = A6_3[3, 5] / A6_3[3, 3];
|
|
|
+ A6_4[3, 6] = A6_3[3, 6] / A6_3[3, 3];
|
|
|
+ A6_4[0, 0] = (A6_4[3, 0] * (-A6_3[0, 3])) + A6_3[0, 0];
|
|
|
+ A6_4[0, 1] = (A6_4[3, 1] * (-A6_3[0, 3])) + A6_3[0, 1];
|
|
|
+ A6_4[0, 2] = (A6_4[3, 2] * (-A6_3[0, 3])) + A6_3[0, 2];
|
|
|
+ A6_4[0, 3] = (A6_4[3, 3] * (-A6_3[0, 3])) + A6_3[0, 3];
|
|
|
+ A6_4[0, 4] = (A6_4[3, 4] * (-A6_3[0, 3])) + A6_3[0, 4];
|
|
|
+ A6_4[0, 5] = (A6_4[3, 5] * (-A6_3[0, 3])) + A6_3[0, 5];
|
|
|
+ A6_4[0, 6] = (A6_4[3, 6] * (-A6_3[0, 3])) + A6_3[0, 6];
|
|
|
+ A6_4[1, 0] = (A6_4[3, 0] * (-A6_3[1, 3])) + A6_3[1, 0];
|
|
|
+ A6_4[1, 1] = (A6_4[3, 1] * (-A6_3[1, 3])) + A6_3[1, 1];
|
|
|
+ A6_4[1, 2] = (A6_4[3, 2] * (-A6_3[1, 3])) + A6_3[1, 2];
|
|
|
+ A6_4[1, 3] = (A6_4[3, 3] * (-A6_3[1, 3])) + A6_3[1, 3];
|
|
|
+ A6_4[1, 4] = (A6_4[3, 4] * (-A6_3[1, 3])) + A6_3[1, 4];
|
|
|
+ A6_4[1, 5] = (A6_4[3, 5] * (-A6_3[1, 3])) + A6_3[1, 5];
|
|
|
+ A6_4[1, 6] = (A6_4[3, 6] * (-A6_3[1, 3])) + A6_3[1, 6];
|
|
|
+ A6_4[2, 0] = (A6_4[3, 0] * (-A6_3[2, 3])) + A6_3[2, 0];
|
|
|
+ A6_4[2, 1] = (A6_4[3, 1] * (-A6_3[2, 3])) + A6_3[2, 1];
|
|
|
+ A6_4[2, 2] = (A6_4[3, 2] * (-A6_3[2, 3])) + A6_3[2, 2];
|
|
|
+ A6_4[2, 3] = (A6_4[3, 3] * (-A6_3[2, 3])) + A6_3[2, 3];
|
|
|
+ A6_4[2, 4] = (A6_4[3, 4] * (-A6_3[2, 3])) + A6_3[2, 4];
|
|
|
+ A6_4[2, 5] = (A6_4[3, 5] * (-A6_3[2, 3])) + A6_3[2, 5];
|
|
|
+ A6_4[2, 6] = (A6_4[3, 6] * (-A6_3[2, 3])) + A6_3[2, 6];
|
|
|
+ A6_4[4, 0] = (A6_4[3, 0] * (-A6_3[4, 3])) + A6_3[4, 0];
|
|
|
+ A6_4[4, 1] = (A6_4[3, 1] * (-A6_3[4, 3])) + A6_3[4, 1];
|
|
|
+ A6_4[4, 2] = (A6_4[3, 2] * (-A6_3[4, 3])) + A6_3[4, 2];
|
|
|
+ A6_4[4, 3] = (A6_4[3, 3] * (-A6_3[4, 3])) + A6_3[4, 3];
|
|
|
+ A6_4[4, 4] = (A6_4[3, 4] * (-A6_3[4, 3])) + A6_3[4, 4];
|
|
|
+ A6_4[4, 5] = (A6_4[3, 5] * (-A6_3[4, 3])) + A6_3[4, 5];
|
|
|
+ A6_4[4, 6] = (A6_4[3, 6] * (-A6_3[4, 3])) + A6_3[4, 6];
|
|
|
+ A6_4[5, 0] = (A6_4[3, 0] * (-A6_3[5, 3])) + A6_3[5, 0];
|
|
|
+ A6_4[5, 1] = (A6_4[3, 1] * (-A6_3[5, 3])) + A6_3[5, 1];
|
|
|
+ A6_4[5, 2] = (A6_4[3, 2] * (-A6_3[5, 3])) + A6_3[5, 2];
|
|
|
+ A6_4[5, 3] = (A6_4[3, 3] * (-A6_3[5, 3])) + A6_3[5, 3];
|
|
|
+ A6_4[5, 4] = (A6_4[3, 4] * (-A6_3[5, 3])) + A6_3[5, 4];
|
|
|
+ A6_4[5, 5] = (A6_4[3, 5] * (-A6_3[5, 3])) + A6_3[5, 5];
|
|
|
+ A6_4[5, 6] = (A6_4[3, 6] * (-A6_3[5, 3])) + A6_3[5, 6];
|
|
|
+ Console.WriteLine("\t|" + A6_4[0, 0] + "\t|" + A6_4[0, 1] + "\t|" + A6_4[0, 2] + "\t|" + A6_4[0, 3] + "\t|" + A6_4[0, 4] + "\t|" + A6_4[0, 5] + "\t||" + A6_4[0, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_4[1, 0] + "\t|" + A6_4[1, 1] + "\t|" + A6_4[1, 2] + "\t|" + A6_4[1, 3] + "\t|" + A6_4[1, 4] + "\t|" + A6_4[1, 5] + "\t||" + A6_4[1, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_4[2, 0] + "\t|" + A6_4[2, 1] + "\t|" + A6_4[2, 2] + "\t|" + A6_4[2, 3] + "\t|" + A6_4[2, 4] + "\t|" + A6_4[2, 5] + "\t||" + A6_4[2, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_4[3, 0] + "\t|" + A6_4[3, 1] + "\t|" + A6_4[3, 2] + "\t|" + A6_4[3, 3] + "\t|" + A6_4[3, 4] + "\t|" + A6_4[3, 5] + "\t||" + A6_4[3, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_4[4, 0] + "\t|" + A6_4[4, 1] + "\t|" + A6_4[4, 2] + "\t|" + A6_4[4, 3] + "\t|" + A6_4[4, 4] + "\t|" + A6_4[4, 5] + "\t||" + A6_4[4, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_4[5, 0] + "\t|" + A6_4[5, 1] + "\t|" + A6_4[5, 2] + "\t|" + A6_4[5, 3] + "\t|" + A6_4[5, 4] + "\t|" + A6_4[5, 5] + "\t||" + A6_4[5, 6] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 5 -------------");
|
|
|
+ double[,] A6_5 = new double[a, b];
|
|
|
+ A6_5[4, 0] = A6_4[4, 0] / A6_4[4, 4];
|
|
|
+ A6_5[4, 1] = A6_4[4, 1] / A6_4[4, 4];
|
|
|
+ A6_5[4, 2] = A6_4[4, 2] / A6_4[4, 4];
|
|
|
+ A6_5[4, 3] = A6_4[4, 3] / A6_4[4, 4];
|
|
|
+ A6_5[4, 4] = A6_4[4, 4] / A6_4[4, 4];
|
|
|
+ A6_5[4, 5] = A6_4[4, 5] / A6_4[4, 4];
|
|
|
+ A6_5[4, 6] = A6_4[4, 6] / A6_4[4, 4];
|
|
|
+ A6_5[0, 0] = (A6_5[4, 0] * (-A6_4[0, 4])) + A6_4[0, 0];
|
|
|
+ A6_5[0, 1] = (A6_5[4, 1] * (-A6_4[0, 4])) + A6_4[0, 1];
|
|
|
+ A6_5[0, 2] = (A6_5[4, 2] * (-A6_4[0, 4])) + A6_4[0, 2];
|
|
|
+ A6_5[0, 3] = (A6_5[4, 3] * (-A6_4[0, 4])) + A6_4[0, 3];
|
|
|
+ A6_5[0, 4] = (A6_5[4, 4] * (-A6_4[0, 4])) + A6_4[0, 4];
|
|
|
+ A6_5[0, 5] = (A6_5[4, 5] * (-A6_4[0, 4])) + A6_4[0, 5];
|
|
|
+ A6_5[0, 6] = (A6_5[4, 6] * (-A6_4[0, 4])) + A6_4[0, 6];
|
|
|
+ A6_5[1, 0] = (A6_5[4, 0] * (-A6_4[1, 4])) + A6_4[1, 0];
|
|
|
+ A6_5[1, 1] = (A6_5[4, 1] * (-A6_4[1, 4])) + A6_4[1, 1];
|
|
|
+ A6_5[1, 2] = (A6_5[4, 2] * (-A6_4[1, 4])) + A6_4[1, 2];
|
|
|
+ A6_5[1, 3] = (A6_5[4, 3] * (-A6_4[1, 4])) + A6_4[1, 3];
|
|
|
+ A6_5[1, 4] = (A6_5[4, 4] * (-A6_4[1, 4])) + A6_4[1, 4];
|
|
|
+ A6_5[1, 5] = (A6_5[4, 5] * (-A6_4[1, 4])) + A6_4[1, 5];
|
|
|
+ A6_5[1, 6] = (A6_5[4, 6] * (-A6_4[1, 4])) + A6_4[1, 6];
|
|
|
+ A6_5[2, 0] = (A6_5[4, 0] * (-A6_4[2, 4])) + A6_4[2, 0];
|
|
|
+ A6_5[2, 1] = (A6_5[4, 1] * (-A6_4[2, 4])) + A6_4[2, 1];
|
|
|
+ A6_5[2, 2] = (A6_5[4, 2] * (-A6_4[2, 4])) + A6_4[2, 2];
|
|
|
+ A6_5[2, 3] = (A6_5[4, 3] * (-A6_4[2, 4])) + A6_4[2, 3];
|
|
|
+ A6_5[2, 4] = (A6_5[4, 4] * (-A6_4[2, 4])) + A6_4[2, 4];
|
|
|
+ A6_5[2, 5] = (A6_5[4, 5] * (-A6_4[2, 4])) + A6_4[2, 5];
|
|
|
+ A6_5[2, 6] = (A6_5[4, 6] * (-A6_4[2, 4])) + A6_4[2, 6];
|
|
|
+ A6_5[3, 0] = (A6_5[4, 0] * (-A6_4[3, 4])) + A6_4[3, 0];
|
|
|
+ A6_5[3, 1] = (A6_5[4, 1] * (-A6_4[3, 4])) + A6_4[3, 1];
|
|
|
+ A6_5[3, 2] = (A6_5[4, 2] * (-A6_4[3, 4])) + A6_4[3, 2];
|
|
|
+ A6_5[3, 3] = (A6_5[4, 3] * (-A6_4[3, 4])) + A6_4[3, 3];
|
|
|
+ A6_5[3, 4] = (A6_5[4, 4] * (-A6_4[3, 4])) + A6_4[3, 4];
|
|
|
+ A6_5[3, 5] = (A6_5[4, 5] * (-A6_4[3, 4])) + A6_4[3, 5];
|
|
|
+ A6_5[3, 6] = (A6_5[4, 6] * (-A6_4[3, 4])) + A6_4[3, 6];
|
|
|
+ A6_5[5, 0] = (A6_5[4, 0] * (-A6_4[5, 4])) + A6_4[5, 0];
|
|
|
+ A6_5[5, 1] = (A6_5[4, 1] * (-A6_4[5, 4])) + A6_4[5, 1];
|
|
|
+ A6_5[5, 2] = (A6_5[4, 2] * (-A6_4[5, 4])) + A6_4[5, 2];
|
|
|
+ A6_5[5, 3] = (A6_5[4, 3] * (-A6_4[5, 4])) + A6_4[5, 3];
|
|
|
+ A6_5[5, 4] = (A6_5[4, 4] * (-A6_4[5, 4])) + A6_4[5, 4];
|
|
|
+ A6_5[5, 5] = (A6_5[4, 5] * (-A6_4[5, 4])) + A6_4[5, 5];
|
|
|
+ A6_5[5, 6] = (A6_5[4, 6] * (-A6_4[5, 4])) + A6_4[5, 6];
|
|
|
+ Console.WriteLine("\t|" + A6_5[0, 0] + "\t|" + A6_5[0, 1] + "\t|" + A6_5[0, 2] + "\t|" + A6_5[0, 3] + "\t|" + A6_5[0, 4] + "\t|" + A6_5[0, 5] + "\t||" + A6_5[0, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_5[1, 0] + "\t|" + A6_5[1, 1] + "\t|" + A6_5[1, 2] + "\t|" + A6_5[1, 3] + "\t|" + A6_5[1, 4] + "\t|" + A6_5[1, 5] + "\t||" + A6_5[1, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_5[2, 0] + "\t|" + A6_5[2, 1] + "\t|" + A6_5[2, 2] + "\t|" + A6_5[2, 3] + "\t|" + A6_5[2, 4] + "\t|" + A6_5[2, 5] + "\t||" + A6_5[2, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_5[3, 0] + "\t|" + A6_5[3, 1] + "\t|" + A6_5[3, 2] + "\t|" + A6_5[3, 3] + "\t|" + A6_5[3, 4] + "\t|" + A6_5[3, 5] + "\t||" + A6_5[3, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_5[4, 0] + "\t|" + A6_5[4, 1] + "\t|" + A6_5[4, 2] + "\t|" + A6_5[4, 3] + "\t|" + A6_5[4, 4] + "\t|" + A6_5[4, 5] + "\t||" + A6_5[4, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_5[5, 0] + "\t|" + A6_5[5, 1] + "\t|" + A6_5[5, 2] + "\t|" + A6_5[5, 3] + "\t|" + A6_5[5, 4] + "\t|" + A6_5[5, 5] + "\t||" + A6_5[5, 6] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 6 -------------");
|
|
|
+ double[,] A6_6 = new double[a, b];
|
|
|
+ A6_6[5, 0] = A6_5[5, 0] / A6_5[5, 5];
|
|
|
+ A6_6[5, 1] = A6_5[5, 1] / A6_5[5, 5];
|
|
|
+ A6_6[5, 2] = A6_5[5, 2] / A6_5[5, 5];
|
|
|
+ A6_6[5, 3] = A6_5[5, 3] / A6_5[5, 5];
|
|
|
+ A6_6[5, 4] = A6_5[5, 4] / A6_5[5, 5];
|
|
|
+ A6_6[5, 5] = A6_5[5, 5] / A6_5[5, 5];
|
|
|
+ A6_6[5, 6] = A6_5[5, 6] / A6_5[5, 5];
|
|
|
+ A6_6[0, 0] = (A6_6[5, 0] * (-A6_5[0, 5])) + A6_5[0, 0];
|
|
|
+ A6_6[0, 1] = (A6_6[5, 1] * (-A6_5[0, 5])) + A6_5[0, 1];
|
|
|
+ A6_6[0, 2] = (A6_6[5, 2] * (-A6_5[0, 5])) + A6_5[0, 2];
|
|
|
+ A6_6[0, 3] = (A6_6[5, 3] * (-A6_5[0, 5])) + A6_5[0, 3];
|
|
|
+ A6_6[0, 4] = (A6_6[5, 4] * (-A6_5[0, 5])) + A6_5[0, 4];
|
|
|
+ A6_6[0, 5] = (A6_6[5, 5] * (-A6_5[0, 5])) + A6_5[0, 5];
|
|
|
+ A6_6[0, 6] = (A6_6[5, 6] * (-A6_5[0, 5])) + A6_5[0, 6];
|
|
|
+ A6_6[1, 0] = (A6_6[5, 0] * (-A6_5[1, 5])) + A6_5[1, 0];
|
|
|
+ A6_6[1, 1] = (A6_6[5, 1] * (-A6_5[1, 5])) + A6_5[1, 1];
|
|
|
+ A6_6[1, 2] = (A6_6[5, 2] * (-A6_5[1, 5])) + A6_5[1, 2];
|
|
|
+ A6_6[1, 3] = (A6_6[5, 3] * (-A6_5[1, 5])) + A6_5[1, 3];
|
|
|
+ A6_6[1, 4] = (A6_6[5, 4] * (-A6_5[1, 5])) + A6_5[1, 4];
|
|
|
+ A6_6[1, 5] = (A6_6[5, 5] * (-A6_5[1, 5])) + A6_5[1, 5];
|
|
|
+ A6_6[1, 6] = (A6_6[5, 6] * (-A6_5[1, 5])) + A6_5[1, 6];
|
|
|
+ A6_6[2, 0] = (A6_6[5, 0] * (-A6_5[2, 5])) + A6_5[2, 0];
|
|
|
+ A6_6[2, 1] = (A6_6[5, 1] * (-A6_5[2, 5])) + A6_5[2, 1];
|
|
|
+ A6_6[2, 2] = (A6_6[5, 2] * (-A6_5[2, 5])) + A6_5[2, 2];
|
|
|
+ A6_6[2, 3] = (A6_6[5, 3] * (-A6_5[2, 5])) + A6_5[2, 3];
|
|
|
+ A6_6[2, 4] = (A6_6[5, 4] * (-A6_5[2, 5])) + A6_5[2, 4];
|
|
|
+ A6_6[2, 5] = (A6_6[5, 5] * (-A6_5[2, 5])) + A6_5[2, 5];
|
|
|
+ A6_6[2, 6] = (A6_6[5, 6] * (-A6_5[2, 5])) + A6_5[2, 6];
|
|
|
+ A6_6[3, 0] = (A6_6[5, 0] * (-A6_5[3, 5])) + A6_5[3, 0];
|
|
|
+ A6_6[3, 1] = (A6_6[5, 1] * (-A6_5[3, 5])) + A6_5[3, 1];
|
|
|
+ A6_6[3, 2] = (A6_6[5, 2] * (-A6_5[3, 5])) + A6_5[3, 2];
|
|
|
+ A6_6[3, 3] = (A6_6[5, 3] * (-A6_5[3, 5])) + A6_5[3, 3];
|
|
|
+ A6_6[3, 4] = (A6_6[5, 4] * (-A6_5[3, 5])) + A6_5[3, 4];
|
|
|
+ A6_6[3, 5] = (A6_6[5, 5] * (-A6_5[3, 5])) + A6_5[3, 5];
|
|
|
+ A6_6[3, 6] = (A6_6[5, 6] * (-A6_5[3, 5])) + A6_5[3, 6];
|
|
|
+ A6_6[4, 0] = (A6_6[5, 0] * (-A6_5[4, 5])) + A6_5[4, 0];
|
|
|
+ A6_6[4, 1] = (A6_6[5, 1] * (-A6_5[4, 5])) + A6_5[4, 1];
|
|
|
+ A6_6[4, 2] = (A6_6[5, 2] * (-A6_5[4, 5])) + A6_5[4, 2];
|
|
|
+ A6_6[4, 3] = (A6_6[5, 3] * (-A6_5[4, 5])) + A6_5[4, 3];
|
|
|
+ A6_6[4, 4] = (A6_6[5, 4] * (-A6_5[4, 5])) + A6_5[4, 4];
|
|
|
+ A6_6[4, 5] = (A6_6[5, 5] * (-A6_5[4, 5])) + A6_5[4, 5];
|
|
|
+ A6_6[4, 6] = (A6_6[5, 6] * (-A6_5[4, 5])) + A6_5[4, 6];
|
|
|
+ Console.WriteLine("\t|" + A6_6[0, 0] + "\t|" + A6_6[0, 1] + "\t|" + A6_6[0, 2] + "\t|" + A6_6[0, 3] + "\t|" + A6_6[0, 4] + "\t|" + A6_6[0, 5] + "\t||" + A6_6[0, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_6[1, 0] + "\t|" + A6_6[1, 1] + "\t|" + A6_6[1, 2] + "\t|" + A6_6[1, 3] + "\t|" + A6_6[1, 4] + "\t|" + A6_6[1, 5] + "\t||" + A6_6[1, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_6[2, 0] + "\t|" + A6_6[2, 1] + "\t|" + A6_6[2, 2] + "\t|" + A6_6[2, 3] + "\t|" + A6_6[2, 4] + "\t|" + A6_6[2, 5] + "\t||" + A6_6[2, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_6[3, 0] + "\t|" + A6_6[3, 1] + "\t|" + A6_6[3, 2] + "\t|" + A6_6[3, 3] + "\t|" + A6_6[3, 4] + "\t|" + A6_6[3, 5] + "\t||" + A6_6[3, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_6[4, 0] + "\t|" + A6_6[4, 1] + "\t|" + A6_6[4, 2] + "\t|" + A6_6[4, 3] + "\t|" + A6_6[4, 4] + "\t|" + A6_6[4, 5] + "\t||" + A6_6[4, 6] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A6_6[5, 0] + "\t|" + A6_6[5, 1] + "\t|" + A6_6[5, 2] + "\t|" + A6_6[5, 3] + "\t|" + A6_6[5, 4] + "\t|" + A6_6[5, 5] + "\t||" + A6_6[5, 6] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Ответ -------------");
|
|
|
+ Console.WriteLine("x1 = " + A6_6[0, 6]);
|
|
|
+ Console.WriteLine("x2 = " + A6_6[1, 6]);
|
|
|
+ Console.WriteLine("x3 = " + A6_6[2, 6]);
|
|
|
+ Console.WriteLine("x4 = " + A6_6[3, 6]);
|
|
|
+ Console.WriteLine("x5 = " + A6_6[4, 6]);
|
|
|
+ Console.WriteLine("x6 = " + A6_6[5, 6]);
|
|
|
+ }
|
|
|
+ else if (per == 7)
|
|
|
+ {
|
|
|
+ Console.WriteLine("------------- Заполните матрицу А -------------");
|
|
|
+ a = 7; b = 7;
|
|
|
+ double[,] A7 = new double[a, b];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ A7[x1, x2] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Заполните матрицу B -------------");
|
|
|
+ B = new int[a];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ B[x1] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Вывод матрицы -------------");
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ Console.Write(A7[x1, x2] + "\t|");
|
|
|
+ }
|
|
|
+ Console.WriteLine("|\t" + B[x1]);
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
|
|
|
+ int edin = 1;
|
|
|
+ foreach (int edinicha in A7)
|
|
|
+ {
|
|
|
+ if (edinicha == edin)
|
|
|
+ {
|
|
|
+ Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 1 -------------");
|
|
|
+ b = 8;
|
|
|
+ double[,] A7_1 = new double[a, b];
|
|
|
+ A7_1[0, 0] = A7[0, 0] / A7[0, 0];
|
|
|
+ A7_1[0, 1] = A7[0, 1] / A7[0, 0];
|
|
|
+ A7_1[0, 2] = A7[0, 2] / A7[0, 0];
|
|
|
+ A7_1[0, 3] = A7[0, 3] / A7[0, 0];
|
|
|
+ A7_1[0, 4] = A7[0, 4] / A7[0, 0];
|
|
|
+ A7_1[0, 5] = A7[0, 5] / A7[0, 0];
|
|
|
+ A7_1[0, 6] = A7[0, 6] / A7[0, 0];
|
|
|
+ A7_1[0, 7] = B[0] / A7[0, 0];
|
|
|
+ A7_1[1, 0] = (A7_1[0, 0] * (-A7[1, 0])) + A7[1, 0];
|
|
|
+ A7_1[1, 1] = (A7_1[0, 1] * (-A7[1, 0])) + A7[1, 1];
|
|
|
+ A7_1[1, 2] = (A7_1[0, 2] * (-A7[1, 0])) + A7[1, 2];
|
|
|
+ A7_1[1, 3] = (A7_1[0, 3] * (-A7[1, 0])) + A7[1, 3];
|
|
|
+ A7_1[1, 4] = (A7_1[0, 4] * (-A7[1, 0])) + A7[1, 4];
|
|
|
+ A7_1[1, 5] = (A7_1[0, 5] * (-A7[1, 0])) + A7[1, 5];
|
|
|
+ A7_1[1, 6] = (A7_1[0, 6] * (-A7[1, 0])) + A7[1, 6];
|
|
|
+ A7_1[1, 7] = (A7_1[0, 7] * (-A7[1, 0])) + B[1];
|
|
|
+ A7_1[2, 0] = (A7_1[0, 0] * (-A7[2, 0])) + A7[2, 0];
|
|
|
+ A7_1[2, 1] = (A7_1[0, 1] * (-A7[2, 0])) + A7[2, 1];
|
|
|
+ A7_1[2, 2] = (A7_1[0, 2] * (-A7[2, 0])) + A7[2, 2];
|
|
|
+ A7_1[2, 3] = (A7_1[0, 3] * (-A7[2, 0])) + A7[2, 3];
|
|
|
+ A7_1[2, 4] = (A7_1[0, 4] * (-A7[2, 0])) + A7[2, 4];
|
|
|
+ A7_1[2, 5] = (A7_1[0, 5] * (-A7[2, 0])) + A7[2, 5];
|
|
|
+ A7_1[2, 6] = (A7_1[0, 6] * (-A7[2, 0])) + A7[2, 6];
|
|
|
+ A7_1[2, 7] = (A7_1[0, 7] * (-A7[2, 0])) + B[2];
|
|
|
+ A7_1[3, 0] = (A7_1[0, 0] * (-A7[3, 0])) + A7[3, 0];
|
|
|
+ A7_1[3, 1] = (A7_1[0, 1] * (-A7[3, 0])) + A7[3, 1];
|
|
|
+ A7_1[3, 2] = (A7_1[0, 2] * (-A7[3, 0])) + A7[3, 2];
|
|
|
+ A7_1[3, 3] = (A7_1[0, 3] * (-A7[3, 0])) + A7[3, 3];
|
|
|
+ A7_1[3, 4] = (A7_1[0, 4] * (-A7[3, 0])) + A7[3, 4];
|
|
|
+ A7_1[3, 5] = (A7_1[0, 5] * (-A7[3, 0])) + A7[3, 5];
|
|
|
+ A7_1[3, 6] = (A7_1[0, 6] * (-A7[3, 0])) + A7[3, 6];
|
|
|
+ A7_1[3, 7] = (A7_1[0, 7] * (-A7[3, 0])) + B[3];
|
|
|
+ A7_1[4, 0] = (A7_1[0, 0] * (-A7[4, 0])) + A7[4, 0];
|
|
|
+ A7_1[4, 1] = (A7_1[0, 1] * (-A7[4, 0])) + A7[4, 1];
|
|
|
+ A7_1[4, 2] = (A7_1[0, 2] * (-A7[4, 0])) + A7[4, 2];
|
|
|
+ A7_1[4, 3] = (A7_1[0, 3] * (-A7[4, 0])) + A7[4, 3];
|
|
|
+ A7_1[4, 4] = (A7_1[0, 4] * (-A7[4, 0])) + A7[4, 4];
|
|
|
+ A7_1[4, 5] = (A7_1[0, 5] * (-A7[4, 0])) + A7[4, 5];
|
|
|
+ A7_1[4, 6] = (A7_1[0, 6] * (-A7[4, 0])) + A7[4, 6];
|
|
|
+ A7_1[4, 7] = (A7_1[0, 7] * (-A7[4, 0])) + B[4];
|
|
|
+ A7_1[5, 0] = (A7_1[0, 0] * (-A7[5, 0])) + A7[5, 0];
|
|
|
+ A7_1[5, 1] = (A7_1[0, 1] * (-A7[5, 0])) + A7[5, 1];
|
|
|
+ A7_1[5, 2] = (A7_1[0, 2] * (-A7[5, 0])) + A7[5, 2];
|
|
|
+ A7_1[5, 3] = (A7_1[0, 3] * (-A7[5, 0])) + A7[5, 3];
|
|
|
+ A7_1[5, 4] = (A7_1[0, 4] * (-A7[5, 0])) + A7[5, 4];
|
|
|
+ A7_1[5, 5] = (A7_1[0, 5] * (-A7[5, 0])) + A7[5, 5];
|
|
|
+ A7_1[5, 6] = (A7_1[0, 6] * (-A7[5, 0])) + A7[5, 6];
|
|
|
+ A7_1[5, 7] = (A7_1[0, 7] * (-A7[5, 0])) + B[5];
|
|
|
+ A7_1[6, 0] = (A7_1[0, 0] * (-A7[6, 0])) + A7[6, 0];
|
|
|
+ A7_1[6, 1] = (A7_1[0, 1] * (-A7[6, 0])) + A7[6, 1];
|
|
|
+ A7_1[6, 2] = (A7_1[0, 2] * (-A7[6, 0])) + A7[6, 2];
|
|
|
+ A7_1[6, 3] = (A7_1[0, 3] * (-A7[6, 0])) + A7[6, 3];
|
|
|
+ A7_1[6, 4] = (A7_1[0, 4] * (-A7[6, 0])) + A7[6, 4];
|
|
|
+ A7_1[6, 5] = (A7_1[0, 5] * (-A7[6, 0])) + A7[6, 5];
|
|
|
+ A7_1[6, 6] = (A7_1[0, 6] * (-A7[6, 0])) + A7[6, 6];
|
|
|
+ A7_1[6, 7] = (A7_1[0, 7] * (-A7[6, 0])) + B[6];
|
|
|
+ Console.WriteLine("\t|" + A7_1[0, 0] + "\t|" + A7_1[0, 1] + "\t|" + A7_1[0, 2] + "\t|" + A7_1[0, 3] + "\t|" + A7_1[0, 4] + "\t|" + A7_1[0, 5] + "\t|" + A7_1[0, 6] + "\t||" + A7_1[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[1, 0] + "\t|" + A7_1[1, 1] + "\t|" + A7_1[1, 2] + "\t|" + A7_1[1, 3] + "\t|" + A7_1[1, 4] + "\t|" + A7_1[1, 5] + "\t|" + A7_1[1, 6] + "\t||" + A7_1[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[2, 0] + "\t|" + A7_1[2, 1] + "\t|" + A7_1[2, 2] + "\t|" + A7_1[2, 3] + "\t|" + A7_1[2, 4] + "\t|" + A7_1[2, 5] + "\t|" + A7_1[2, 6] + "\t||" + A7_1[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[3, 0] + "\t|" + A7_1[3, 1] + "\t|" + A7_1[3, 2] + "\t|" + A7_1[3, 3] + "\t|" + A7_1[3, 4] + "\t|" + A7_1[3, 5] + "\t|" + A7_1[3, 6] + "\t||" + A7_1[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[4, 0] + "\t|" + A7_1[4, 1] + "\t|" + A7_1[4, 2] + "\t|" + A7_1[4, 3] + "\t|" + A7_1[4, 4] + "\t|" + A7_1[4, 5] + "\t|" + A7_1[4, 6] + "\t||" + A7_1[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[5, 0] + "\t|" + A7_1[5, 1] + "\t|" + A7_1[5, 2] + "\t|" + A7_1[5, 3] + "\t|" + A7_1[5, 4] + "\t|" + A7_1[5, 5] + "\t|" + A7_1[5, 6] + "\t||" + A7_1[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[6, 0] + "\t|" + A7_1[6, 1] + "\t|" + A7_1[6, 2] + "\t|" + A7_1[6, 3] + "\t|" + A7_1[6, 4] + "\t|" + A7_1[6, 5] + "\t|" + A7_1[6, 6] + "\t||" + A7_1[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 2 -------------");
|
|
|
+ double[,] A7_2 = new double[a, b];
|
|
|
+ A7_2[1, 0] = A7_1[1, 0] / A7_1[1, 1];
|
|
|
+ A7_2[1, 1] = A7_1[1, 1] / A7_1[1, 1];
|
|
|
+ A7_2[1, 2] = A7_1[1, 2] / A7_1[1, 1];
|
|
|
+ A7_2[1, 3] = A7_1[1, 3] / A7_1[1, 1];
|
|
|
+ A7_2[1, 4] = A7_1[1, 4] / A7_1[1, 1];
|
|
|
+ A7_2[1, 5] = A7_1[1, 5] / A7_1[1, 1];
|
|
|
+ A7_2[1, 6] = A7_1[1, 6] / A7_1[1, 1];
|
|
|
+ A7_2[1, 7] = A7_1[1, 7] / A7_1[1, 1];
|
|
|
+ A7_2[0, 0] = (A7_2[1, 0] * (-A7_1[0, 1])) + A7_1[0, 0];
|
|
|
+ A7_2[0, 1] = (A7_2[1, 1] * (-A7_1[0, 1])) + A7_1[0, 1];
|
|
|
+ A7_2[0, 2] = (A7_2[1, 2] * (-A7_1[0, 1])) + A7_1[0, 2];
|
|
|
+ A7_2[0, 3] = (A7_2[1, 3] * (-A7_1[0, 1])) + A7_1[0, 3];
|
|
|
+ A7_2[0, 4] = (A7_2[1, 4] * (-A7_1[0, 1])) + A7_1[0, 4];
|
|
|
+ A7_2[0, 5] = (A7_2[1, 5] * (-A7_1[0, 1])) + A7_1[0, 5];
|
|
|
+ A7_2[0, 6] = (A7_2[1, 6] * (-A7_1[0, 1])) + A7_1[0, 6];
|
|
|
+ A7_2[0, 7] = (A7_2[1, 7] * (-A7_1[0, 1])) + A7_1[0, 7];
|
|
|
+ A7_2[2, 0] = (A7_2[1, 0] * (-A7_1[2, 1])) + A7_1[2, 0];
|
|
|
+ A7_2[2, 1] = (A7_2[1, 1] * (-A7_1[2, 1])) + A7_1[2, 1];
|
|
|
+ A7_2[2, 2] = (A7_2[1, 2] * (-A7_1[2, 1])) + A7_1[2, 2];
|
|
|
+ A7_2[2, 3] = (A7_2[1, 3] * (-A7_1[2, 1])) + A7_1[2, 3];
|
|
|
+ A7_2[2, 4] = (A7_2[1, 4] * (-A7_1[2, 1])) + A7_1[2, 4];
|
|
|
+ A7_2[2, 5] = (A7_2[1, 5] * (-A7_1[2, 1])) + A7_1[2, 5];
|
|
|
+ A7_2[2, 6] = (A7_2[1, 6] * (-A7_1[2, 1])) + A7_1[2, 6];
|
|
|
+ A7_2[2, 7] = (A7_2[1, 7] * (-A7_1[2, 1])) + A7_1[2, 7];
|
|
|
+ A7_2[3, 0] = (A7_2[1, 0] * (-A7_1[3, 1])) + A7_1[3, 0];
|
|
|
+ A7_2[3, 1] = (A7_2[1, 1] * (-A7_1[3, 1])) + A7_1[3, 1];
|
|
|
+ A7_2[3, 2] = (A7_2[1, 2] * (-A7_1[3, 1])) + A7_1[3, 2];
|
|
|
+ A7_2[3, 3] = (A7_2[1, 3] * (-A7_1[3, 1])) + A7_1[3, 3];
|
|
|
+ A7_2[3, 4] = (A7_2[1, 4] * (-A7_1[3, 1])) + A7_1[3, 4];
|
|
|
+ A7_2[3, 5] = (A7_2[1, 5] * (-A7_1[3, 1])) + A7_1[3, 5];
|
|
|
+ A7_2[3, 6] = (A7_2[1, 6] * (-A7_1[3, 1])) + A7_1[3, 6];
|
|
|
+ A7_2[3, 7] = (A7_2[1, 7] * (-A7_1[3, 1])) + A7_1[3, 7];
|
|
|
+ A7_2[4, 0] = (A7_2[1, 0] * (-A7_1[4, 1])) + A7_1[4, 0];
|
|
|
+ A7_2[4, 1] = (A7_2[1, 1] * (-A7_1[4, 1])) + A7_1[4, 1];
|
|
|
+ A7_2[4, 2] = (A7_2[1, 2] * (-A7_1[4, 1])) + A7_1[4, 2];
|
|
|
+ A7_2[4, 3] = (A7_2[1, 3] * (-A7_1[4, 1])) + A7_1[4, 3];
|
|
|
+ A7_2[4, 4] = (A7_2[1, 4] * (-A7_1[4, 1])) + A7_1[4, 4];
|
|
|
+ A7_2[4, 5] = (A7_2[1, 5] * (-A7_1[4, 1])) + A7_1[4, 5];
|
|
|
+ A7_2[4, 6] = (A7_2[1, 6] * (-A7_1[4, 1])) + A7_1[4, 6];
|
|
|
+ A7_2[4, 7] = (A7_2[1, 7] * (-A7_1[4, 1])) + A7_1[4, 7];
|
|
|
+ A7_2[5, 0] = (A7_2[1, 0] * (-A7_1[5, 1])) + A7_1[5, 0];
|
|
|
+ A7_2[5, 1] = (A7_2[1, 1] * (-A7_1[5, 1])) + A7_1[5, 1];
|
|
|
+ A7_2[5, 2] = (A7_2[1, 2] * (-A7_1[5, 1])) + A7_1[5, 2];
|
|
|
+ A7_2[5, 3] = (A7_2[1, 3] * (-A7_1[5, 1])) + A7_1[5, 3];
|
|
|
+ A7_2[5, 4] = (A7_2[1, 4] * (-A7_1[5, 1])) + A7_1[5, 4];
|
|
|
+ A7_2[5, 5] = (A7_2[1, 5] * (-A7_1[5, 1])) + A7_1[5, 5];
|
|
|
+ A7_2[5, 6] = (A7_2[1, 6] * (-A7_1[5, 1])) + A7_1[5, 6];
|
|
|
+ A7_2[5, 7] = (A7_2[1, 7] * (-A7_1[5, 1])) + A7_1[5, 7];
|
|
|
+ A7_2[6, 0] = (A7_2[1, 0] * (-A7_1[6, 1])) + A7_1[6, 0];
|
|
|
+ A7_2[6, 1] = (A7_2[1, 1] * (-A7_1[6, 1])) + A7_1[6, 1];
|
|
|
+ A7_2[6, 2] = (A7_2[1, 2] * (-A7_1[6, 1])) + A7_1[6, 2];
|
|
|
+ A7_2[6, 3] = (A7_2[1, 3] * (-A7_1[6, 1])) + A7_1[6, 3];
|
|
|
+ A7_2[6, 4] = (A7_2[1, 4] * (-A7_1[6, 1])) + A7_1[6, 4];
|
|
|
+ A7_2[6, 5] = (A7_2[1, 5] * (-A7_1[6, 1])) + A7_1[6, 5];
|
|
|
+ A7_2[6, 6] = (A7_2[1, 6] * (-A7_1[6, 1])) + A7_1[6, 6];
|
|
|
+ A7_2[6, 7] = (A7_2[1, 7] * (-A7_1[6, 1])) + A7_1[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_2[0, 0] + "\t|" + A7_2[0, 1] + "\t|" + A7_2[0, 2] + "\t|" + A7_2[0, 3] + "\t|" + A7_2[0, 4] + "\t|" + A7_2[0, 5] + "\t|" + A7_2[0, 6] + "\t||" + A7_2[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[1, 0] + "\t|" + A7_2[1, 1] + "\t|" + A7_2[1, 2] + "\t|" + A7_2[1, 3] + "\t|" + A7_2[1, 4] + "\t|" + A7_2[1, 5] + "\t|" + A7_2[1, 6] + "\t||" + A7_2[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[2, 0] + "\t|" + A7_2[2, 1] + "\t|" + A7_2[2, 2] + "\t|" + A7_2[2, 3] + "\t|" + A7_2[2, 4] + "\t|" + A7_2[2, 5] + "\t|" + A7_2[2, 6] + "\t||" + A7_2[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[3, 0] + "\t|" + A7_2[3, 1] + "\t|" + A7_2[3, 2] + "\t|" + A7_2[3, 3] + "\t|" + A7_2[3, 4] + "\t|" + A7_2[3, 5] + "\t|" + A7_2[3, 6] + "\t||" + A7_2[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[4, 0] + "\t|" + A7_2[4, 1] + "\t|" + A7_2[4, 2] + "\t|" + A7_2[4, 3] + "\t|" + A7_2[4, 4] + "\t|" + A7_2[4, 5] + "\t|" + A7_2[4, 6] + "\t||" + A7_2[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[5, 0] + "\t|" + A7_2[5, 1] + "\t|" + A7_2[5, 2] + "\t|" + A7_2[5, 3] + "\t|" + A7_2[5, 4] + "\t|" + A7_2[5, 5] + "\t|" + A7_2[5, 6] + "\t||" + A7_2[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[6, 0] + "\t|" + A7_2[6, 1] + "\t|" + A7_2[6, 2] + "\t|" + A7_2[6, 3] + "\t|" + A7_2[6, 4] + "\t|" + A7_2[6, 5] + "\t|" + A7_2[6, 6] + "\t||" + A7_2[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 3 -------------");
|
|
|
+ double[,] A7_3 = new double[a, b];
|
|
|
+ A7_3[2, 0] = A7_2[2, 0] / A7_2[2, 2];
|
|
|
+ A7_3[2, 1] = A7_2[2, 1] / A7_2[2, 2];
|
|
|
+ A7_3[2, 2] = A7_2[2, 2] / A7_2[2, 2];
|
|
|
+ A7_3[2, 3] = A7_2[2, 3] / A7_2[2, 2];
|
|
|
+ A7_3[2, 4] = A7_2[2, 4] / A7_2[2, 2];
|
|
|
+ A7_3[2, 5] = A7_2[2, 5] / A7_2[2, 2];
|
|
|
+ A7_3[2, 6] = A7_2[2, 6] / A7_2[2, 2];
|
|
|
+ A7_3[2, 7] = A7_2[2, 7] / A7_2[2, 2];
|
|
|
+ A7_3[0, 0] = (A7_3[2, 0] * (-A7_2[0, 2])) + A7_2[0, 0];
|
|
|
+ A7_3[0, 1] = (A7_3[2, 1] * (-A7_2[0, 2])) + A7_2[0, 1];
|
|
|
+ A7_3[0, 2] = (A7_3[2, 2] * (-A7_2[0, 2])) + A7_2[0, 2];
|
|
|
+ A7_3[0, 3] = (A7_3[2, 3] * (-A7_2[0, 2])) + A7_2[0, 3];
|
|
|
+ A7_3[0, 4] = (A7_3[2, 4] * (-A7_2[0, 2])) + A7_2[0, 4];
|
|
|
+ A7_3[0, 5] = (A7_3[2, 5] * (-A7_2[0, 2])) + A7_2[0, 5];
|
|
|
+ A7_3[0, 6] = (A7_3[2, 6] * (-A7_2[0, 2])) + A7_2[0, 6];
|
|
|
+ A7_3[0, 7] = (A7_3[2, 7] * (-A7_2[0, 2])) + A7_2[0, 7];
|
|
|
+ A7_3[1, 0] = (A7_3[2, 0] * (-A7_2[1, 2])) + A7_2[1, 0];
|
|
|
+ A7_3[1, 1] = (A7_3[2, 1] * (-A7_2[1, 2])) + A7_2[1, 1];
|
|
|
+ A7_3[1, 2] = (A7_3[2, 2] * (-A7_2[1, 2])) + A7_2[1, 2];
|
|
|
+ A7_3[1, 3] = (A7_3[2, 3] * (-A7_2[1, 2])) + A7_2[1, 3];
|
|
|
+ A7_3[1, 4] = (A7_3[2, 4] * (-A7_2[1, 2])) + A7_2[1, 4];
|
|
|
+ A7_3[1, 5] = (A7_3[2, 5] * (-A7_2[1, 2])) + A7_2[1, 5];
|
|
|
+ A7_3[1, 6] = (A7_3[2, 6] * (-A7_2[1, 2])) + A7_2[1, 6];
|
|
|
+ A7_3[1, 7] = (A7_3[2, 7] * (-A7_2[1, 2])) + A7_2[1, 7];
|
|
|
+ A7_3[3, 0] = (A7_3[2, 0] * (-A7_2[3, 2])) + A7_2[3, 0];
|
|
|
+ A7_3[3, 1] = (A7_3[2, 1] * (-A7_2[3, 2])) + A7_2[3, 1];
|
|
|
+ A7_3[3, 2] = (A7_3[2, 2] * (-A7_2[3, 2])) + A7_2[3, 2];
|
|
|
+ A7_3[3, 3] = (A7_3[2, 3] * (-A7_2[3, 2])) + A7_2[3, 3];
|
|
|
+ A7_3[3, 4] = (A7_3[2, 4] * (-A7_2[3, 2])) + A7_2[3, 4];
|
|
|
+ A7_3[3, 5] = (A7_3[2, 5] * (-A7_2[3, 2])) + A7_2[3, 5];
|
|
|
+ A7_3[3, 6] = (A7_3[2, 6] * (-A7_2[3, 2])) + A7_2[3, 6];
|
|
|
+ A7_3[3, 7] = (A7_3[2, 7] * (-A7_2[3, 2])) + A7_2[3, 7];
|
|
|
+ A7_3[4, 0] = (A7_3[2, 0] * (-A7_2[4, 2])) + A7_2[4, 0];
|
|
|
+ A7_3[4, 1] = (A7_3[2, 1] * (-A7_2[4, 2])) + A7_2[4, 1];
|
|
|
+ A7_3[4, 2] = (A7_3[2, 2] * (-A7_2[4, 2])) + A7_2[4, 2];
|
|
|
+ A7_3[4, 3] = (A7_3[2, 3] * (-A7_2[4, 2])) + A7_2[4, 3];
|
|
|
+ A7_3[4, 4] = (A7_3[2, 4] * (-A7_2[4, 2])) + A7_2[4, 4];
|
|
|
+ A7_3[4, 5] = (A7_3[2, 5] * (-A7_2[4, 2])) + A7_2[4, 5];
|
|
|
+ A7_3[4, 6] = (A7_3[2, 6] * (-A7_2[4, 2])) + A7_2[4, 6];
|
|
|
+ A7_3[4, 7] = (A7_3[2, 7] * (-A7_2[4, 2])) + A7_2[4, 7];
|
|
|
+ A7_3[5, 0] = (A7_3[2, 0] * (-A7_2[5, 2])) + A7_2[5, 0];
|
|
|
+ A7_3[5, 1] = (A7_3[2, 1] * (-A7_2[5, 2])) + A7_2[5, 1];
|
|
|
+ A7_3[5, 2] = (A7_3[2, 2] * (-A7_2[5, 2])) + A7_2[5, 2];
|
|
|
+ A7_3[5, 3] = (A7_3[2, 3] * (-A7_2[5, 2])) + A7_2[5, 3];
|
|
|
+ A7_3[5, 4] = (A7_3[2, 4] * (-A7_2[5, 2])) + A7_2[5, 4];
|
|
|
+ A7_3[5, 5] = (A7_3[2, 5] * (-A7_2[5, 2])) + A7_2[5, 5];
|
|
|
+ A7_3[5, 6] = (A7_3[2, 6] * (-A7_2[5, 2])) + A7_2[5, 6];
|
|
|
+ A7_3[5, 7] = (A7_3[2, 7] * (-A7_2[5, 2])) + A7_2[5, 7];
|
|
|
+ A7_3[6, 0] = (A7_3[2, 0] * (-A7_2[6, 2])) + A7_2[6, 0];
|
|
|
+ A7_3[6, 1] = (A7_3[2, 1] * (-A7_2[6, 2])) + A7_2[6, 1];
|
|
|
+ A7_3[6, 2] = (A7_3[2, 2] * (-A7_2[6, 2])) + A7_2[6, 2];
|
|
|
+ A7_3[6, 3] = (A7_3[2, 3] * (-A7_2[6, 2])) + A7_2[6, 3];
|
|
|
+ A7_3[6, 4] = (A7_3[2, 4] * (-A7_2[6, 2])) + A7_2[6, 4];
|
|
|
+ A7_3[6, 5] = (A7_3[2, 5] * (-A7_2[6, 2])) + A7_2[6, 5];
|
|
|
+ A7_3[6, 6] = (A7_3[2, 6] * (-A7_2[6, 2])) + A7_2[6, 6];
|
|
|
+ A7_3[6, 7] = (A7_3[2, 7] * (-A7_2[6, 2])) + A7_2[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_3[0, 0] + "\t|" + A7_3[0, 1] + "\t|" + A7_3[0, 2] + "\t|" + A7_3[0, 3] + "\t|" + A7_3[0, 4] + "\t|" + A7_3[0, 5] + "\t|" + A7_3[0, 6] + "\t||" + A7_3[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[1, 0] + "\t|" + A7_3[1, 1] + "\t|" + A7_3[1, 2] + "\t|" + A7_3[1, 3] + "\t|" + A7_3[1, 4] + "\t|" + A7_3[1, 5] + "\t|" + A7_3[1, 6] + "\t||" + A7_3[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[2, 0] + "\t|" + A7_3[2, 1] + "\t|" + A7_3[2, 2] + "\t|" + A7_3[2, 3] + "\t|" + A7_3[2, 4] + "\t|" + A7_3[2, 5] + "\t|" + A7_3[2, 6] + "\t||" + A7_3[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[3, 0] + "\t|" + A7_3[3, 1] + "\t|" + A7_3[3, 2] + "\t|" + A7_3[3, 3] + "\t|" + A7_3[3, 4] + "\t|" + A7_3[3, 5] + "\t|" + A7_3[3, 6] + "\t||" + A7_3[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[4, 0] + "\t|" + A7_3[4, 1] + "\t|" + A7_3[4, 2] + "\t|" + A7_3[4, 3] + "\t|" + A7_3[4, 4] + "\t|" + A7_3[4, 5] + "\t|" + A7_3[4, 6] + "\t||" + A7_3[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[5, 0] + "\t|" + A7_3[5, 1] + "\t|" + A7_3[5, 2] + "\t|" + A7_3[5, 3] + "\t|" + A7_3[5, 4] + "\t|" + A7_3[5, 5] + "\t|" + A7_3[5, 6] + "\t||" + A7_3[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[6, 0] + "\t|" + A7_3[6, 1] + "\t|" + A7_3[6, 2] + "\t|" + A7_3[6, 3] + "\t|" + A7_3[6, 4] + "\t|" + A7_3[6, 5] + "\t|" + A7_3[6, 6] + "\t||" + A7_3[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 4 -------------");
|
|
|
+ double[,] A7_4 = new double[a, b];
|
|
|
+ A7_4[3, 0] = A7_3[3, 0] / A7_3[3, 3];
|
|
|
+ A7_4[3, 1] = A7_3[3, 1] / A7_3[3, 3];
|
|
|
+ A7_4[3, 2] = A7_3[3, 2] / A7_3[3, 3];
|
|
|
+ A7_4[3, 3] = A7_3[3, 3] / A7_3[3, 3];
|
|
|
+ A7_4[3, 4] = A7_3[3, 4] / A7_3[3, 3];
|
|
|
+ A7_4[3, 5] = A7_3[3, 5] / A7_3[3, 3];
|
|
|
+ A7_4[3, 6] = A7_3[3, 6] / A7_3[3, 3];
|
|
|
+ A7_4[3, 7] = A7_3[3, 7] / A7_3[3, 3];
|
|
|
+ A7_4[0, 0] = (A7_4[3, 0] * (-A7_3[0, 3])) + A7_3[0, 0];
|
|
|
+ A7_4[0, 1] = (A7_4[3, 1] * (-A7_3[0, 3])) + A7_3[0, 1];
|
|
|
+ A7_4[0, 2] = (A7_4[3, 2] * (-A7_3[0, 3])) + A7_3[0, 2];
|
|
|
+ A7_4[0, 3] = (A7_4[3, 3] * (-A7_3[0, 3])) + A7_3[0, 3];
|
|
|
+ A7_4[0, 4] = (A7_4[3, 4] * (-A7_3[0, 3])) + A7_3[0, 4];
|
|
|
+ A7_4[0, 5] = (A7_4[3, 5] * (-A7_3[0, 3])) + A7_3[0, 5];
|
|
|
+ A7_4[0, 6] = (A7_4[3, 6] * (-A7_3[0, 3])) + A7_3[0, 6];
|
|
|
+ A7_4[0, 7] = (A7_4[3, 7] * (-A7_3[0, 3])) + A7_3[0, 7];
|
|
|
+ A7_4[1, 0] = (A7_4[3, 0] * (-A7_3[1, 3])) + A7_3[1, 0];
|
|
|
+ A7_4[1, 1] = (A7_4[3, 1] * (-A7_3[1, 3])) + A7_3[1, 1];
|
|
|
+ A7_4[1, 2] = (A7_4[3, 2] * (-A7_3[1, 3])) + A7_3[1, 2];
|
|
|
+ A7_4[1, 3] = (A7_4[3, 3] * (-A7_3[1, 3])) + A7_3[1, 3];
|
|
|
+ A7_4[1, 4] = (A7_4[3, 4] * (-A7_3[1, 3])) + A7_3[1, 4];
|
|
|
+ A7_4[1, 5] = (A7_4[3, 5] * (-A7_3[1, 3])) + A7_3[1, 5];
|
|
|
+ A7_4[1, 6] = (A7_4[3, 6] * (-A7_3[1, 3])) + A7_3[1, 6];
|
|
|
+ A7_4[1, 7] = (A7_4[3, 7] * (-A7_3[1, 3])) + A7_3[1, 7];
|
|
|
+ A7_4[2, 0] = (A7_4[3, 0] * (-A7_3[2, 3])) + A7_3[2, 0];
|
|
|
+ A7_4[2, 1] = (A7_4[3, 1] * (-A7_3[2, 3])) + A7_3[2, 1];
|
|
|
+ A7_4[2, 2] = (A7_4[3, 2] * (-A7_3[2, 3])) + A7_3[2, 2];
|
|
|
+ A7_4[2, 3] = (A7_4[3, 3] * (-A7_3[2, 3])) + A7_3[2, 3];
|
|
|
+ A7_4[2, 4] = (A7_4[3, 4] * (-A7_3[2, 3])) + A7_3[2, 4];
|
|
|
+ A7_4[2, 5] = (A7_4[3, 5] * (-A7_3[2, 3])) + A7_3[2, 5];
|
|
|
+ A7_4[2, 6] = (A7_4[3, 6] * (-A7_3[2, 3])) + A7_3[2, 6];
|
|
|
+ A7_4[2, 7] = (A7_4[3, 7] * (-A7_3[2, 3])) + A7_3[2, 7];
|
|
|
+ A7_4[4, 0] = (A7_4[3, 0] * (-A7_3[4, 3])) + A7_3[4, 0];
|
|
|
+ A7_4[4, 1] = (A7_4[3, 1] * (-A7_3[4, 3])) + A7_3[4, 1];
|
|
|
+ A7_4[4, 2] = (A7_4[3, 2] * (-A7_3[4, 3])) + A7_3[4, 2];
|
|
|
+ A7_4[4, 3] = (A7_4[3, 3] * (-A7_3[4, 3])) + A7_3[4, 3];
|
|
|
+ A7_4[4, 4] = (A7_4[3, 4] * (-A7_3[4, 3])) + A7_3[4, 4];
|
|
|
+ A7_4[4, 5] = (A7_4[3, 5] * (-A7_3[4, 3])) + A7_3[4, 5];
|
|
|
+ A7_4[4, 6] = (A7_4[3, 6] * (-A7_3[4, 3])) + A7_3[4, 6];
|
|
|
+ A7_4[4, 7] = (A7_4[3, 7] * (-A7_3[4, 3])) + A7_3[4, 7];
|
|
|
+ A7_4[5, 0] = (A7_4[3, 0] * (-A7_3[5, 3])) + A7_3[5, 0];
|
|
|
+ A7_4[5, 1] = (A7_4[3, 1] * (-A7_3[5, 3])) + A7_3[5, 1];
|
|
|
+ A7_4[5, 2] = (A7_4[3, 2] * (-A7_3[5, 3])) + A7_3[5, 2];
|
|
|
+ A7_4[5, 3] = (A7_4[3, 3] * (-A7_3[5, 3])) + A7_3[5, 3];
|
|
|
+ A7_4[5, 4] = (A7_4[3, 4] * (-A7_3[5, 3])) + A7_3[5, 4];
|
|
|
+ A7_4[5, 5] = (A7_4[3, 5] * (-A7_3[5, 3])) + A7_3[5, 5];
|
|
|
+ A7_4[5, 6] = (A7_4[3, 6] * (-A7_3[5, 3])) + A7_3[5, 6];
|
|
|
+ A7_4[5, 7] = (A7_4[3, 7] * (-A7_3[5, 3])) + A7_3[5, 7];
|
|
|
+ A7_4[6, 0] = (A7_4[3, 0] * (-A7_3[6, 3])) + A7_3[6, 0];
|
|
|
+ A7_4[6, 1] = (A7_4[3, 1] * (-A7_3[6, 3])) + A7_3[6, 1];
|
|
|
+ A7_4[6, 2] = (A7_4[3, 2] * (-A7_3[6, 3])) + A7_3[6, 2];
|
|
|
+ A7_4[6, 3] = (A7_4[3, 3] * (-A7_3[6, 3])) + A7_3[6, 3];
|
|
|
+ A7_4[6, 4] = (A7_4[3, 4] * (-A7_3[6, 3])) + A7_3[6, 4];
|
|
|
+ A7_4[6, 5] = (A7_4[3, 5] * (-A7_3[6, 3])) + A7_3[6, 5];
|
|
|
+ A7_4[6, 6] = (A7_4[3, 6] * (-A7_3[6, 3])) + A7_3[6, 6];
|
|
|
+ A7_4[6, 7] = (A7_4[3, 7] * (-A7_3[6, 3])) + A7_3[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_4[0, 0] + "\t|" + A7_4[0, 1] + "\t|" + A7_4[0, 2] + "\t|" + A7_4[0, 3] + "\t|" + A7_4[0, 4] + "\t|" + A7_4[0, 5] + "\t|" + A7_4[0, 6] + "\t||" + A7_4[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[1, 0] + "\t|" + A7_4[1, 1] + "\t|" + A7_4[1, 2] + "\t|" + A7_4[1, 3] + "\t|" + A7_4[1, 4] + "\t|" + A7_4[1, 5] + "\t|" + A7_4[1, 6] + "\t||" + A7_4[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[2, 0] + "\t|" + A7_4[2, 1] + "\t|" + A7_4[2, 2] + "\t|" + A7_4[2, 3] + "\t|" + A7_4[2, 4] + "\t|" + A7_4[2, 5] + "\t|" + A7_4[2, 6] + "\t||" + A7_4[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[3, 0] + "\t|" + A7_4[3, 1] + "\t|" + A7_4[3, 2] + "\t|" + A7_4[3, 3] + "\t|" + A7_4[3, 4] + "\t|" + A7_4[3, 5] + "\t|" + A7_4[3, 6] + "\t||" + A7_4[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[4, 0] + "\t|" + A7_4[4, 1] + "\t|" + A7_4[4, 2] + "\t|" + A7_4[4, 3] + "\t|" + A7_4[4, 4] + "\t|" + A7_4[4, 5] + "\t|" + A7_4[4, 6] + "\t||" + A7_4[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[5, 0] + "\t|" + A7_4[5, 1] + "\t|" + A7_4[5, 2] + "\t|" + A7_4[5, 3] + "\t|" + A7_4[5, 4] + "\t|" + A7_4[5, 5] + "\t|" + A7_4[5, 6] + "\t||" + A7_4[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[6, 0] + "\t|" + A7_4[6, 1] + "\t|" + A7_4[6, 2] + "\t|" + A7_4[6, 3] + "\t|" + A7_4[6, 4] + "\t|" + A7_4[6, 5] + "\t|" + A7_4[6, 6] + "\t||" + A7_4[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 5 -------------");
|
|
|
+ double[,] A7_5 = new double[a, b];
|
|
|
+ A7_5[4, 0] = A7_4[4, 0] / A7_4[4, 4];
|
|
|
+ A7_5[4, 1] = A7_4[4, 1] / A7_4[4, 4];
|
|
|
+ A7_5[4, 2] = A7_4[4, 2] / A7_4[4, 4];
|
|
|
+ A7_5[4, 3] = A7_4[4, 3] / A7_4[4, 4];
|
|
|
+ A7_5[4, 4] = A7_4[4, 4] / A7_4[4, 4];
|
|
|
+ A7_5[4, 5] = A7_4[4, 5] / A7_4[4, 4];
|
|
|
+ A7_5[4, 6] = A7_4[4, 6] / A7_4[4, 4];
|
|
|
+ A7_5[4, 7] = A7_4[4, 7] / A7_4[4, 4];
|
|
|
+ A7_5[0, 0] = (A7_5[4, 0] * (-A7_4[0, 4])) + A7_4[0, 0];
|
|
|
+ A7_5[0, 1] = (A7_5[4, 1] * (-A7_4[0, 4])) + A7_4[0, 1];
|
|
|
+ A7_5[0, 2] = (A7_5[4, 2] * (-A7_4[0, 4])) + A7_4[0, 2];
|
|
|
+ A7_5[0, 3] = (A7_5[4, 3] * (-A7_4[0, 4])) + A7_4[0, 3];
|
|
|
+ A7_5[0, 4] = (A7_5[4, 4] * (-A7_4[0, 4])) + A7_4[0, 4];
|
|
|
+ A7_5[0, 5] = (A7_5[4, 5] * (-A7_4[0, 4])) + A7_4[0, 5];
|
|
|
+ A7_5[0, 6] = (A7_5[4, 6] * (-A7_4[0, 4])) + A7_4[0, 6];
|
|
|
+ A7_5[0, 7] = (A7_5[4, 7] * (-A7_4[0, 4])) + A7_4[0, 7];
|
|
|
+ A7_5[1, 0] = (A7_5[4, 0] * (-A7_4[1, 4])) + A7_4[1, 0];
|
|
|
+ A7_5[1, 1] = (A7_5[4, 1] * (-A7_4[1, 4])) + A7_4[1, 1];
|
|
|
+ A7_5[1, 2] = (A7_5[4, 2] * (-A7_4[1, 4])) + A7_4[1, 2];
|
|
|
+ A7_5[1, 3] = (A7_5[4, 3] * (-A7_4[1, 4])) + A7_4[1, 3];
|
|
|
+ A7_5[1, 4] = (A7_5[4, 4] * (-A7_4[1, 4])) + A7_4[1, 4];
|
|
|
+ A7_5[1, 5] = (A7_5[4, 5] * (-A7_4[1, 4])) + A7_4[1, 5];
|
|
|
+ A7_5[1, 6] = (A7_5[4, 6] * (-A7_4[1, 4])) + A7_4[1, 6];
|
|
|
+ A7_5[1, 7] = (A7_5[4, 7] * (-A7_4[1, 4])) + A7_4[1, 7];
|
|
|
+ A7_5[2, 0] = (A7_5[4, 0] * (-A7_4[2, 4])) + A7_4[2, 0];
|
|
|
+ A7_5[2, 1] = (A7_5[4, 1] * (-A7_4[2, 4])) + A7_4[2, 1];
|
|
|
+ A7_5[2, 2] = (A7_5[4, 2] * (-A7_4[2, 4])) + A7_4[2, 2];
|
|
|
+ A7_5[2, 3] = (A7_5[4, 3] * (-A7_4[2, 4])) + A7_4[2, 3];
|
|
|
+ A7_5[2, 4] = (A7_5[4, 4] * (-A7_4[2, 4])) + A7_4[2, 4];
|
|
|
+ A7_5[2, 5] = (A7_5[4, 5] * (-A7_4[2, 4])) + A7_4[2, 5];
|
|
|
+ A7_5[2, 6] = (A7_5[4, 6] * (-A7_4[2, 4])) + A7_4[2, 6];
|
|
|
+ A7_5[2, 7] = (A7_5[4, 7] * (-A7_4[2, 4])) + A7_4[2, 7];
|
|
|
+ A7_5[3, 0] = (A7_5[4, 0] * (-A7_4[3, 4])) + A7_4[3, 0];
|
|
|
+ A7_5[3, 1] = (A7_5[4, 1] * (-A7_4[3, 4])) + A7_4[3, 1];
|
|
|
+ A7_5[3, 2] = (A7_5[4, 2] * (-A7_4[3, 4])) + A7_4[3, 2];
|
|
|
+ A7_5[3, 3] = (A7_5[4, 3] * (-A7_4[3, 4])) + A7_4[3, 3];
|
|
|
+ A7_5[3, 4] = (A7_5[4, 4] * (-A7_4[3, 4])) + A7_4[3, 4];
|
|
|
+ A7_5[3, 5] = (A7_5[4, 5] * (-A7_4[3, 4])) + A7_4[3, 5];
|
|
|
+ A7_5[3, 6] = (A7_5[4, 6] * (-A7_4[3, 4])) + A7_4[3, 6];
|
|
|
+ A7_5[3, 7] = (A7_5[4, 7] * (-A7_4[3, 4])) + A7_4[3, 7];
|
|
|
+ A7_5[5, 0] = (A7_5[4, 0] * (-A7_4[5, 4])) + A7_4[5, 0];
|
|
|
+ A7_5[5, 1] = (A7_5[4, 1] * (-A7_4[5, 4])) + A7_4[5, 1];
|
|
|
+ A7_5[5, 2] = (A7_5[4, 2] * (-A7_4[5, 4])) + A7_4[5, 2];
|
|
|
+ A7_5[5, 3] = (A7_5[4, 3] * (-A7_4[5, 4])) + A7_4[5, 3];
|
|
|
+ A7_5[5, 4] = (A7_5[4, 4] * (-A7_4[5, 4])) + A7_4[5, 4];
|
|
|
+ A7_5[5, 5] = (A7_5[4, 5] * (-A7_4[5, 4])) + A7_4[5, 5];
|
|
|
+ A7_5[5, 6] = (A7_5[4, 6] * (-A7_4[5, 4])) + A7_4[5, 6];
|
|
|
+ A7_5[5, 7] = (A7_5[4, 7] * (-A7_4[5, 4])) + A7_4[5, 7];
|
|
|
+ A7_5[6, 0] = (A7_5[4, 0] * (-A7_4[6, 4])) + A7_4[6, 0];
|
|
|
+ A7_5[6, 1] = (A7_5[4, 1] * (-A7_4[6, 4])) + A7_4[6, 1];
|
|
|
+ A7_5[6, 2] = (A7_5[4, 2] * (-A7_4[6, 4])) + A7_4[6, 2];
|
|
|
+ A7_5[6, 3] = (A7_5[4, 3] * (-A7_4[6, 4])) + A7_4[6, 3];
|
|
|
+ A7_5[6, 4] = (A7_5[4, 4] * (-A7_4[6, 4])) + A7_4[6, 4];
|
|
|
+ A7_5[6, 5] = (A7_5[4, 5] * (-A7_4[6, 4])) + A7_4[6, 5];
|
|
|
+ A7_5[6, 6] = (A7_5[4, 6] * (-A7_4[6, 4])) + A7_4[6, 6];
|
|
|
+ A7_5[6, 7] = (A7_5[4, 7] * (-A7_4[6, 4])) + A7_4[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_5[0, 0] + "\t|" + A7_5[0, 1] + "\t|" + A7_5[0, 2] + "\t|" + A7_5[0, 3] + "\t|" + A7_5[0, 4] + "\t|" + A7_5[0, 5] + "\t|" + A7_5[0, 6] + "\t||" + A7_5[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[1, 0] + "\t|" + A7_5[1, 1] + "\t|" + A7_5[1, 2] + "\t|" + A7_5[1, 3] + "\t|" + A7_5[1, 4] + "\t|" + A7_5[1, 5] + "\t|" + A7_5[1, 6] + "\t||" + A7_5[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[2, 0] + "\t|" + A7_5[2, 1] + "\t|" + A7_5[2, 2] + "\t|" + A7_5[2, 3] + "\t|" + A7_5[2, 4] + "\t|" + A7_5[2, 5] + "\t|" + A7_5[2, 6] + "\t||" + A7_5[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[3, 0] + "\t|" + A7_5[3, 1] + "\t|" + A7_5[3, 2] + "\t|" + A7_5[3, 3] + "\t|" + A7_5[3, 4] + "\t|" + A7_5[3, 5] + "\t|" + A7_5[3, 6] + "\t||" + A7_5[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[4, 0] + "\t|" + A7_5[4, 1] + "\t|" + A7_5[4, 2] + "\t|" + A7_5[4, 3] + "\t|" + A7_5[4, 4] + "\t|" + A7_5[4, 5] + "\t|" + A7_5[4, 6] + "\t||" + A7_5[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[5, 0] + "\t|" + A7_5[5, 1] + "\t|" + A7_5[5, 2] + "\t|" + A7_5[5, 3] + "\t|" + A7_5[5, 4] + "\t|" + A7_5[5, 5] + "\t|" + A7_5[5, 6] + "\t||" + A7_5[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[6, 0] + "\t|" + A7_5[6, 1] + "\t|" + A7_5[6, 2] + "\t|" + A7_5[6, 3] + "\t|" + A7_5[6, 4] + "\t|" + A7_5[6, 5] + "\t|" + A7_5[6, 6] + "\t||" + A7_5[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 6 -------------");
|
|
|
+ double[,] A7_6 = new double[a, b];
|
|
|
+ A7_6[5, 0] = A7_5[5, 0] / A7_5[5, 5];
|
|
|
+ A7_6[5, 1] = A7_5[5, 1] / A7_5[5, 5];
|
|
|
+ A7_6[5, 2] = A7_5[5, 2] / A7_5[5, 5];
|
|
|
+ A7_6[5, 3] = A7_5[5, 3] / A7_5[5, 5];
|
|
|
+ A7_6[5, 4] = A7_5[5, 4] / A7_5[5, 5];
|
|
|
+ A7_6[5, 5] = A7_5[5, 5] / A7_5[5, 5];
|
|
|
+ A7_6[5, 6] = A7_5[5, 6] / A7_5[5, 5];
|
|
|
+ A7_6[5, 7] = A7_5[5, 7] / A7_5[5, 5];
|
|
|
+ A7_6[0, 0] = (A7_6[5, 0] * (-A7_5[0, 5])) + A7_5[0, 0];
|
|
|
+ A7_6[0, 1] = (A7_6[5, 1] * (-A7_5[0, 5])) + A7_5[0, 1];
|
|
|
+ A7_6[0, 2] = (A7_6[5, 2] * (-A7_5[0, 5])) + A7_5[0, 2];
|
|
|
+ A7_6[0, 3] = (A7_6[5, 3] * (-A7_5[0, 5])) + A7_5[0, 3];
|
|
|
+ A7_6[0, 4] = (A7_6[5, 4] * (-A7_5[0, 5])) + A7_5[0, 4];
|
|
|
+ A7_6[0, 5] = (A7_6[5, 5] * (-A7_5[0, 5])) + A7_5[0, 5];
|
|
|
+ A7_6[0, 6] = (A7_6[5, 6] * (-A7_5[0, 5])) + A7_5[0, 6];
|
|
|
+ A7_6[0, 7] = (A7_6[5, 7] * (-A7_5[0, 5])) + A7_5[0, 7];
|
|
|
+ A7_6[1, 0] = (A7_6[5, 0] * (-A7_5[1, 5])) + A7_5[1, 0];
|
|
|
+ A7_6[1, 1] = (A7_6[5, 1] * (-A7_5[1, 5])) + A7_5[1, 1];
|
|
|
+ A7_6[1, 2] = (A7_6[5, 2] * (-A7_5[1, 5])) + A7_5[1, 2];
|
|
|
+ A7_6[1, 3] = (A7_6[5, 3] * (-A7_5[1, 5])) + A7_5[1, 3];
|
|
|
+ A7_6[1, 4] = (A7_6[5, 4] * (-A7_5[1, 5])) + A7_5[1, 4];
|
|
|
+ A7_6[1, 5] = (A7_6[5, 5] * (-A7_5[1, 5])) + A7_5[1, 5];
|
|
|
+ A7_6[1, 6] = (A7_6[5, 6] * (-A7_5[1, 5])) + A7_5[1, 6];
|
|
|
+ A7_6[1, 7] = (A7_6[5, 7] * (-A7_5[1, 5])) + A7_5[1, 7];
|
|
|
+ A7_6[2, 0] = (A7_6[5, 0] * (-A7_5[2, 5])) + A7_5[2, 0];
|
|
|
+ A7_6[2, 1] = (A7_6[5, 1] * (-A7_5[2, 5])) + A7_5[2, 1];
|
|
|
+ A7_6[2, 2] = (A7_6[5, 2] * (-A7_5[2, 5])) + A7_5[2, 2];
|
|
|
+ A7_6[2, 3] = (A7_6[5, 3] * (-A7_5[2, 5])) + A7_5[2, 3];
|
|
|
+ A7_6[2, 4] = (A7_6[5, 4] * (-A7_5[2, 5])) + A7_5[2, 4];
|
|
|
+ A7_6[2, 5] = (A7_6[5, 5] * (-A7_5[2, 5])) + A7_5[2, 5];
|
|
|
+ A7_6[2, 6] = (A7_6[5, 6] * (-A7_5[2, 5])) + A7_5[2, 6];
|
|
|
+ A7_6[2, 7] = (A7_6[5, 7] * (-A7_5[2, 5])) + A7_5[2, 7];
|
|
|
+ A7_6[3, 0] = (A7_6[5, 0] * (-A7_5[3, 5])) + A7_5[3, 0];
|
|
|
+ A7_6[3, 1] = (A7_6[5, 1] * (-A7_5[3, 5])) + A7_5[3, 1];
|
|
|
+ A7_6[3, 2] = (A7_6[5, 2] * (-A7_5[3, 5])) + A7_5[3, 2];
|
|
|
+ A7_6[3, 3] = (A7_6[5, 3] * (-A7_5[3, 5])) + A7_5[3, 3];
|
|
|
+ A7_6[3, 4] = (A7_6[5, 4] * (-A7_5[3, 5])) + A7_5[3, 4];
|
|
|
+ A7_6[3, 5] = (A7_6[5, 5] * (-A7_5[3, 5])) + A7_5[3, 5];
|
|
|
+ A7_6[3, 6] = (A7_6[5, 6] * (-A7_5[3, 5])) + A7_5[3, 6];
|
|
|
+ A7_6[3, 7] = (A7_6[5, 7] * (-A7_5[3, 5])) + A7_5[3, 7];
|
|
|
+ A7_6[4, 0] = (A7_6[5, 0] * (-A7_5[4, 5])) + A7_5[4, 0];
|
|
|
+ A7_6[4, 1] = (A7_6[5, 1] * (-A7_5[4, 5])) + A7_5[4, 1];
|
|
|
+ A7_6[4, 2] = (A7_6[5, 2] * (-A7_5[4, 5])) + A7_5[4, 2];
|
|
|
+ A7_6[4, 3] = (A7_6[5, 3] * (-A7_5[4, 5])) + A7_5[4, 3];
|
|
|
+ A7_6[4, 4] = (A7_6[5, 4] * (-A7_5[4, 5])) + A7_5[4, 4];
|
|
|
+ A7_6[4, 5] = (A7_6[5, 5] * (-A7_5[4, 5])) + A7_5[4, 5];
|
|
|
+ A7_6[4, 6] = (A7_6[5, 6] * (-A7_5[4, 5])) + A7_5[4, 6];
|
|
|
+ A7_6[4, 7] = (A7_6[5, 7] * (-A7_5[4, 5])) + A7_5[4, 7];
|
|
|
+ A7_6[6, 0] = (A7_6[5, 0] * (-A7_5[6, 5])) + A7_5[6, 0];
|
|
|
+ A7_6[6, 1] = (A7_6[5, 1] * (-A7_5[6, 5])) + A7_5[6, 1];
|
|
|
+ A7_6[6, 2] = (A7_6[5, 2] * (-A7_5[6, 5])) + A7_5[6, 2];
|
|
|
+ A7_6[6, 3] = (A7_6[5, 3] * (-A7_5[6, 5])) + A7_5[6, 3];
|
|
|
+ A7_6[6, 4] = (A7_6[5, 4] * (-A7_5[6, 5])) + A7_5[6, 4];
|
|
|
+ A7_6[6, 5] = (A7_6[5, 5] * (-A7_5[6, 5])) + A7_5[6, 5];
|
|
|
+ A7_6[6, 6] = (A7_6[5, 6] * (-A7_5[6, 5])) + A7_5[6, 6];
|
|
|
+ A7_6[6, 7] = (A7_6[5, 7] * (-A7_5[6, 5])) + A7_5[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_6[0, 0] + "\t|" + A7_6[0, 1] + "\t|" + A7_6[0, 2] + "\t|" + A7_6[0, 3] + "\t|" + A7_6[0, 4] + "\t|" + A7_6[0, 5] + "\t|" + A7_6[0, 6] + "\t||" + A7_6[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[1, 0] + "\t|" + A7_6[1, 1] + "\t|" + A7_6[1, 2] + "\t|" + A7_6[1, 3] + "\t|" + A7_6[1, 4] + "\t|" + A7_6[1, 5] + "\t|" + A7_6[1, 6] + "\t||" + A7_6[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[2, 0] + "\t|" + A7_6[2, 1] + "\t|" + A7_6[2, 2] + "\t|" + A7_6[2, 3] + "\t|" + A7_6[2, 4] + "\t|" + A7_6[2, 5] + "\t|" + A7_6[2, 6] + "\t||" + A7_6[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[3, 0] + "\t|" + A7_6[3, 1] + "\t|" + A7_6[3, 2] + "\t|" + A7_6[3, 3] + "\t|" + A7_6[3, 4] + "\t|" + A7_6[3, 5] + "\t|" + A7_6[3, 6] + "\t||" + A7_6[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[4, 0] + "\t|" + A7_6[4, 1] + "\t|" + A7_6[4, 2] + "\t|" + A7_6[4, 3] + "\t|" + A7_6[4, 4] + "\t|" + A7_6[4, 5] + "\t|" + A7_6[4, 6] + "\t||" + A7_6[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[5, 0] + "\t|" + A7_6[5, 1] + "\t|" + A7_6[5, 2] + "\t|" + A7_6[5, 3] + "\t|" + A7_6[5, 4] + "\t|" + A7_6[5, 5] + "\t|" + A7_6[5, 6] + "\t||" + A7_6[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[6, 0] + "\t|" + A7_6[6, 1] + "\t|" + A7_6[6, 2] + "\t|" + A7_6[6, 3] + "\t|" + A7_6[6, 4] + "\t|" + A7_6[6, 5] + "\t|" + A7_6[6, 6] + "\t||" + A7_6[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 7 -------------");
|
|
|
+ double[,] A7_7 = new double[a, b];
|
|
|
+ A7_7[6, 0] = A7_6[6, 0] / A7_6[6, 6];
|
|
|
+ A7_7[6, 1] = A7_6[6, 1] / A7_6[6, 6];
|
|
|
+ A7_7[6, 2] = A7_6[6, 2] / A7_6[6, 6];
|
|
|
+ A7_7[6, 3] = A7_6[6, 3] / A7_6[6, 6];
|
|
|
+ A7_7[6, 4] = A7_6[6, 4] / A7_6[6, 6];
|
|
|
+ A7_7[6, 5] = A7_6[6, 5] / A7_6[6, 6];
|
|
|
+ A7_7[6, 6] = A7_6[6, 6] / A7_6[6, 6];
|
|
|
+ A7_7[6, 7] = A7_6[6, 7] / A7_6[6, 6];
|
|
|
+ A7_7[0, 0] = (A7_7[6, 0] * (-A7_6[0, 6])) + A7_6[0, 0];
|
|
|
+ A7_7[0, 1] = (A7_7[6, 1] * (-A7_6[0, 6])) + A7_6[0, 1];
|
|
|
+ A7_7[0, 2] = (A7_7[6, 2] * (-A7_6[0, 6])) + A7_6[0, 2];
|
|
|
+ A7_7[0, 3] = (A7_7[6, 3] * (-A7_6[0, 6])) + A7_6[0, 3];
|
|
|
+ A7_7[0, 4] = (A7_7[6, 4] * (-A7_6[0, 6])) + A7_6[0, 4];
|
|
|
+ A7_7[0, 5] = (A7_7[6, 5] * (-A7_6[0, 6])) + A7_6[0, 5];
|
|
|
+ A7_7[0, 6] = (A7_7[6, 6] * (-A7_6[0, 6])) + A7_6[0, 6];
|
|
|
+ A7_7[0, 7] = (A7_7[6, 7] * (-A7_6[0, 6])) + A7_6[0, 7];
|
|
|
+ A7_7[1, 0] = (A7_7[6, 0] * (-A7_6[1, 6])) + A7_6[1, 0];
|
|
|
+ A7_7[1, 1] = (A7_7[6, 1] * (-A7_6[1, 6])) + A7_6[1, 1];
|
|
|
+ A7_7[1, 2] = (A7_7[6, 2] * (-A7_6[1, 6])) + A7_6[1, 2];
|
|
|
+ A7_7[1, 3] = (A7_7[6, 3] * (-A7_6[1, 6])) + A7_6[1, 3];
|
|
|
+ A7_7[1, 4] = (A7_7[6, 4] * (-A7_6[1, 6])) + A7_6[1, 4];
|
|
|
+ A7_7[1, 5] = (A7_7[6, 5] * (-A7_6[1, 6])) + A7_6[1, 5];
|
|
|
+ A7_7[1, 6] = (A7_7[6, 6] * (-A7_6[1, 6])) + A7_6[1, 6];
|
|
|
+ A7_7[1, 7] = (A7_7[6, 7] * (-A7_6[1, 6])) + A7_6[1, 7];
|
|
|
+ A7_7[2, 0] = (A7_7[6, 0] * (-A7_6[2, 6])) + A7_6[2, 0];
|
|
|
+ A7_7[2, 1] = (A7_7[6, 1] * (-A7_6[2, 6])) + A7_6[2, 1];
|
|
|
+ A7_7[2, 2] = (A7_7[6, 2] * (-A7_6[2, 6])) + A7_6[2, 2];
|
|
|
+ A7_7[2, 3] = (A7_7[6, 3] * (-A7_6[2, 6])) + A7_6[2, 3];
|
|
|
+ A7_7[2, 4] = (A7_7[6, 4] * (-A7_6[2, 6])) + A7_6[2, 4];
|
|
|
+ A7_7[2, 5] = (A7_7[6, 5] * (-A7_6[2, 6])) + A7_6[2, 5];
|
|
|
+ A7_7[2, 6] = (A7_7[6, 6] * (-A7_6[2, 6])) + A7_6[2, 6];
|
|
|
+ A7_7[2, 7] = (A7_7[6, 7] * (-A7_6[2, 6])) + A7_6[2, 7];
|
|
|
+ A7_7[3, 0] = (A7_7[6, 0] * (-A7_6[3, 6])) + A7_6[3, 0];
|
|
|
+ A7_7[3, 1] = (A7_7[6, 1] * (-A7_6[3, 6])) + A7_6[3, 1];
|
|
|
+ A7_7[3, 2] = (A7_7[6, 2] * (-A7_6[3, 6])) + A7_6[3, 2];
|
|
|
+ A7_7[3, 3] = (A7_7[6, 3] * (-A7_6[3, 6])) + A7_6[3, 3];
|
|
|
+ A7_7[3, 4] = (A7_7[6, 4] * (-A7_6[3, 6])) + A7_6[3, 4];
|
|
|
+ A7_7[3, 5] = (A7_7[6, 5] * (-A7_6[3, 6])) + A7_6[3, 5];
|
|
|
+ A7_7[3, 6] = (A7_7[6, 6] * (-A7_6[3, 6])) + A7_6[3, 6];
|
|
|
+ A7_7[3, 7] = (A7_7[6, 7] * (-A7_6[3, 6])) + A7_6[3, 7];
|
|
|
+ A7_7[4, 0] = (A7_7[6, 0] * (-A7_6[4, 6])) + A7_6[4, 0];
|
|
|
+ A7_7[4, 1] = (A7_7[6, 1] * (-A7_6[4, 6])) + A7_6[4, 1];
|
|
|
+ A7_7[4, 2] = (A7_7[6, 2] * (-A7_6[4, 6])) + A7_6[4, 2];
|
|
|
+ A7_7[4, 3] = (A7_7[6, 3] * (-A7_6[4, 6])) + A7_6[4, 3];
|
|
|
+ A7_7[4, 4] = (A7_7[6, 4] * (-A7_6[4, 6])) + A7_6[4, 4];
|
|
|
+ A7_7[4, 5] = (A7_7[6, 5] * (-A7_6[4, 6])) + A7_6[4, 5];
|
|
|
+ A7_7[4, 6] = (A7_7[6, 6] * (-A7_6[4, 6])) + A7_6[4, 6];
|
|
|
+ A7_7[4, 7] = (A7_7[6, 7] * (-A7_6[4, 6])) + A7_6[4, 7];
|
|
|
+ A7_7[5, 0] = (A7_7[6, 0] * (-A7_6[5, 6])) + A7_6[5, 0];
|
|
|
+ A7_7[5, 1] = (A7_7[6, 1] * (-A7_6[5, 6])) + A7_6[5, 1];
|
|
|
+ A7_7[5, 2] = (A7_7[6, 2] * (-A7_6[5, 6])) + A7_6[5, 2];
|
|
|
+ A7_7[5, 3] = (A7_7[6, 3] * (-A7_6[5, 6])) + A7_6[5, 3];
|
|
|
+ A7_7[5, 4] = (A7_7[6, 4] * (-A7_6[5, 6])) + A7_6[5, 4];
|
|
|
+ A7_7[5, 5] = (A7_7[6, 5] * (-A7_6[5, 6])) + A7_6[5, 5];
|
|
|
+ A7_7[5, 6] = (A7_7[6, 6] * (-A7_6[5, 6])) + A7_6[5, 6];
|
|
|
+ A7_7[5, 7] = (A7_7[6, 7] * (-A7_6[5, 6])) + A7_6[5, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_7[0, 0] + "\t|" + A7_7[0, 1] + "\t|" + A7_7[0, 2] + "\t|" + A7_7[0, 3] + "\t|" + A7_7[0, 4] + "\t|" + A7_7[0, 5] + "\t|" + A7_7[0, 6] + "\t||" + A7_7[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[1, 0] + "\t|" + A7_7[1, 1] + "\t|" + A7_7[1, 2] + "\t|" + A7_7[1, 3] + "\t|" + A7_7[1, 4] + "\t|" + A7_7[1, 5] + "\t|" + A7_7[1, 6] + "\t||" + A7_7[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[2, 0] + "\t|" + A7_7[2, 1] + "\t|" + A7_7[2, 2] + "\t|" + A7_7[2, 3] + "\t|" + A7_7[2, 4] + "\t|" + A7_7[2, 5] + "\t|" + A7_7[2, 6] + "\t||" + A7_7[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[3, 0] + "\t|" + A7_7[3, 1] + "\t|" + A7_7[3, 2] + "\t|" + A7_7[3, 3] + "\t|" + A7_7[3, 4] + "\t|" + A7_7[3, 5] + "\t|" + A7_7[3, 6] + "\t||" + A7_7[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[4, 0] + "\t|" + A7_7[4, 1] + "\t|" + A7_7[4, 2] + "\t|" + A7_7[4, 3] + "\t|" + A7_7[4, 4] + "\t|" + A7_7[4, 5] + "\t|" + A7_7[4, 6] + "\t||" + A7_7[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[5, 0] + "\t|" + A7_7[5, 1] + "\t|" + A7_7[5, 2] + "\t|" + A7_7[5, 3] + "\t|" + A7_7[5, 4] + "\t|" + A7_7[5, 5] + "\t|" + A7_7[5, 6] + "\t||" + A7_7[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[6, 0] + "\t|" + A7_7[6, 1] + "\t|" + A7_7[6, 2] + "\t|" + A7_7[6, 3] + "\t|" + A7_7[6, 4] + "\t|" + A7_7[6, 5] + "\t|" + A7_7[6, 6] + "\t||" + A7_7[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Ответ -------------");
|
|
|
+ Console.WriteLine("x1 = " + A7_7[0, 7]);
|
|
|
+ Console.WriteLine("x2 = " + A7_7[1, 7]);
|
|
|
+ Console.WriteLine("x3 = " + A7_7[2, 7]);
|
|
|
+ Console.WriteLine("x4 = " + A7_7[3, 7]);
|
|
|
+ Console.WriteLine("x5 = " + A7_7[4, 7]);
|
|
|
+ Console.WriteLine("x6 = " + A7_7[5, 7]);
|
|
|
+ Console.WriteLine("x7 = " + A7_7[6, 7]);
|
|
|
+ }
|
|
|
+ else if (per == 8)
|
|
|
+ {
|
|
|
+ Console.WriteLine("------------- Заполните матрицу А -------------");
|
|
|
+ a = 7; b = 7;
|
|
|
+ double[,] A7 = new double[a, b];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ A7[x1, x2] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Заполните матрицу B -------------");
|
|
|
+ B = new int[a];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ B[x1] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Вывод матрицы -------------");
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ Console.Write(A7[x1, x2] + "\t|");
|
|
|
+ }
|
|
|
+ Console.WriteLine("|\t" + B[x1]);
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
|
|
|
+ int edin = 1;
|
|
|
+ foreach (int edinicha in A7)
|
|
|
+ {
|
|
|
+ if (edinicha == edin)
|
|
|
+ {
|
|
|
+ Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 1 -------------");
|
|
|
+ b = 8;
|
|
|
+ double[,] A7_1 = new double[a, b];
|
|
|
+ A7_1[0, 0] = A7[0, 0] / A7[0, 0];
|
|
|
+ A7_1[0, 1] = A7[0, 1] / A7[0, 0];
|
|
|
+ A7_1[0, 2] = A7[0, 2] / A7[0, 0];
|
|
|
+ A7_1[0, 3] = A7[0, 3] / A7[0, 0];
|
|
|
+ A7_1[0, 4] = A7[0, 4] / A7[0, 0];
|
|
|
+ A7_1[0, 5] = A7[0, 5] / A7[0, 0];
|
|
|
+ A7_1[0, 6] = A7[0, 6] / A7[0, 0];
|
|
|
+ A7_1[0, 7] = B[0] / A7[0, 0];
|
|
|
+ A7_1[1, 0] = (A7_1[0, 0] * (-A7[1, 0])) + A7[1, 0];
|
|
|
+ A7_1[1, 1] = (A7_1[0, 1] * (-A7[1, 0])) + A7[1, 1];
|
|
|
+ A7_1[1, 2] = (A7_1[0, 2] * (-A7[1, 0])) + A7[1, 2];
|
|
|
+ A7_1[1, 3] = (A7_1[0, 3] * (-A7[1, 0])) + A7[1, 3];
|
|
|
+ A7_1[1, 4] = (A7_1[0, 4] * (-A7[1, 0])) + A7[1, 4];
|
|
|
+ A7_1[1, 5] = (A7_1[0, 5] * (-A7[1, 0])) + A7[1, 5];
|
|
|
+ A7_1[1, 6] = (A7_1[0, 6] * (-A7[1, 0])) + A7[1, 6];
|
|
|
+ A7_1[1, 7] = (A7_1[0, 7] * (-A7[1, 0])) + B[1];
|
|
|
+ A7_1[2, 0] = (A7_1[0, 0] * (-A7[2, 0])) + A7[2, 0];
|
|
|
+ A7_1[2, 1] = (A7_1[0, 1] * (-A7[2, 0])) + A7[2, 1];
|
|
|
+ A7_1[2, 2] = (A7_1[0, 2] * (-A7[2, 0])) + A7[2, 2];
|
|
|
+ A7_1[2, 3] = (A7_1[0, 3] * (-A7[2, 0])) + A7[2, 3];
|
|
|
+ A7_1[2, 4] = (A7_1[0, 4] * (-A7[2, 0])) + A7[2, 4];
|
|
|
+ A7_1[2, 5] = (A7_1[0, 5] * (-A7[2, 0])) + A7[2, 5];
|
|
|
+ A7_1[2, 6] = (A7_1[0, 6] * (-A7[2, 0])) + A7[2, 6];
|
|
|
+ A7_1[2, 7] = (A7_1[0, 7] * (-A7[2, 0])) + B[2];
|
|
|
+ A7_1[3, 0] = (A7_1[0, 0] * (-A7[3, 0])) + A7[3, 0];
|
|
|
+ A7_1[3, 1] = (A7_1[0, 1] * (-A7[3, 0])) + A7[3, 1];
|
|
|
+ A7_1[3, 2] = (A7_1[0, 2] * (-A7[3, 0])) + A7[3, 2];
|
|
|
+ A7_1[3, 3] = (A7_1[0, 3] * (-A7[3, 0])) + A7[3, 3];
|
|
|
+ A7_1[3, 4] = (A7_1[0, 4] * (-A7[3, 0])) + A7[3, 4];
|
|
|
+ A7_1[3, 5] = (A7_1[0, 5] * (-A7[3, 0])) + A7[3, 5];
|
|
|
+ A7_1[3, 6] = (A7_1[0, 6] * (-A7[3, 0])) + A7[3, 6];
|
|
|
+ A7_1[3, 7] = (A7_1[0, 7] * (-A7[3, 0])) + B[3];
|
|
|
+ A7_1[4, 0] = (A7_1[0, 0] * (-A7[4, 0])) + A7[4, 0];
|
|
|
+ A7_1[4, 1] = (A7_1[0, 1] * (-A7[4, 0])) + A7[4, 1];
|
|
|
+ A7_1[4, 2] = (A7_1[0, 2] * (-A7[4, 0])) + A7[4, 2];
|
|
|
+ A7_1[4, 3] = (A7_1[0, 3] * (-A7[4, 0])) + A7[4, 3];
|
|
|
+ A7_1[4, 4] = (A7_1[0, 4] * (-A7[4, 0])) + A7[4, 4];
|
|
|
+ A7_1[4, 5] = (A7_1[0, 5] * (-A7[4, 0])) + A7[4, 5];
|
|
|
+ A7_1[4, 6] = (A7_1[0, 6] * (-A7[4, 0])) + A7[4, 6];
|
|
|
+ A7_1[4, 7] = (A7_1[0, 7] * (-A7[4, 0])) + B[4];
|
|
|
+ A7_1[5, 0] = (A7_1[0, 0] * (-A7[5, 0])) + A7[5, 0];
|
|
|
+ A7_1[5, 1] = (A7_1[0, 1] * (-A7[5, 0])) + A7[5, 1];
|
|
|
+ A7_1[5, 2] = (A7_1[0, 2] * (-A7[5, 0])) + A7[5, 2];
|
|
|
+ A7_1[5, 3] = (A7_1[0, 3] * (-A7[5, 0])) + A7[5, 3];
|
|
|
+ A7_1[5, 4] = (A7_1[0, 4] * (-A7[5, 0])) + A7[5, 4];
|
|
|
+ A7_1[5, 5] = (A7_1[0, 5] * (-A7[5, 0])) + A7[5, 5];
|
|
|
+ A7_1[5, 6] = (A7_1[0, 6] * (-A7[5, 0])) + A7[5, 6];
|
|
|
+ A7_1[5, 7] = (A7_1[0, 7] * (-A7[5, 0])) + B[5];
|
|
|
+ A7_1[6, 0] = (A7_1[0, 0] * (-A7[6, 0])) + A7[6, 0];
|
|
|
+ A7_1[6, 1] = (A7_1[0, 1] * (-A7[6, 0])) + A7[6, 1];
|
|
|
+ A7_1[6, 2] = (A7_1[0, 2] * (-A7[6, 0])) + A7[6, 2];
|
|
|
+ A7_1[6, 3] = (A7_1[0, 3] * (-A7[6, 0])) + A7[6, 3];
|
|
|
+ A7_1[6, 4] = (A7_1[0, 4] * (-A7[6, 0])) + A7[6, 4];
|
|
|
+ A7_1[6, 5] = (A7_1[0, 5] * (-A7[6, 0])) + A7[6, 5];
|
|
|
+ A7_1[6, 6] = (A7_1[0, 6] * (-A7[6, 0])) + A7[6, 6];
|
|
|
+ A7_1[6, 7] = (A7_1[0, 7] * (-A7[6, 0])) + B[6];
|
|
|
+ Console.WriteLine("\t|" + A7_1[0, 0] + "\t|" + A7_1[0, 1] + "\t|" + A7_1[0, 2] + "\t|" + A7_1[0, 3] + "\t|" + A7_1[0, 4] + "\t|" + A7_1[0, 5] + "\t|" + A7_1[0, 6] + "\t||" + A7_1[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[1, 0] + "\t|" + A7_1[1, 1] + "\t|" + A7_1[1, 2] + "\t|" + A7_1[1, 3] + "\t|" + A7_1[1, 4] + "\t|" + A7_1[1, 5] + "\t|" + A7_1[1, 6] + "\t||" + A7_1[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[2, 0] + "\t|" + A7_1[2, 1] + "\t|" + A7_1[2, 2] + "\t|" + A7_1[2, 3] + "\t|" + A7_1[2, 4] + "\t|" + A7_1[2, 5] + "\t|" + A7_1[2, 6] + "\t||" + A7_1[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[3, 0] + "\t|" + A7_1[3, 1] + "\t|" + A7_1[3, 2] + "\t|" + A7_1[3, 3] + "\t|" + A7_1[3, 4] + "\t|" + A7_1[3, 5] + "\t|" + A7_1[3, 6] + "\t||" + A7_1[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[4, 0] + "\t|" + A7_1[4, 1] + "\t|" + A7_1[4, 2] + "\t|" + A7_1[4, 3] + "\t|" + A7_1[4, 4] + "\t|" + A7_1[4, 5] + "\t|" + A7_1[4, 6] + "\t||" + A7_1[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[5, 0] + "\t|" + A7_1[5, 1] + "\t|" + A7_1[5, 2] + "\t|" + A7_1[5, 3] + "\t|" + A7_1[5, 4] + "\t|" + A7_1[5, 5] + "\t|" + A7_1[5, 6] + "\t||" + A7_1[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[6, 0] + "\t|" + A7_1[6, 1] + "\t|" + A7_1[6, 2] + "\t|" + A7_1[6, 3] + "\t|" + A7_1[6, 4] + "\t|" + A7_1[6, 5] + "\t|" + A7_1[6, 6] + "\t||" + A7_1[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 2 -------------");
|
|
|
+ double[,] A7_2 = new double[a, b];
|
|
|
+ A7_2[1, 0] = A7_1[1, 0] / A7_1[1, 1];
|
|
|
+ A7_2[1, 1] = A7_1[1, 1] / A7_1[1, 1];
|
|
|
+ A7_2[1, 2] = A7_1[1, 2] / A7_1[1, 1];
|
|
|
+ A7_2[1, 3] = A7_1[1, 3] / A7_1[1, 1];
|
|
|
+ A7_2[1, 4] = A7_1[1, 4] / A7_1[1, 1];
|
|
|
+ A7_2[1, 5] = A7_1[1, 5] / A7_1[1, 1];
|
|
|
+ A7_2[1, 6] = A7_1[1, 6] / A7_1[1, 1];
|
|
|
+ A7_2[1, 7] = A7_1[1, 7] / A7_1[1, 1];
|
|
|
+ A7_2[0, 0] = (A7_2[1, 0] * (-A7_1[0, 1])) + A7_1[0, 0];
|
|
|
+ A7_2[0, 1] = (A7_2[1, 1] * (-A7_1[0, 1])) + A7_1[0, 1];
|
|
|
+ A7_2[0, 2] = (A7_2[1, 2] * (-A7_1[0, 1])) + A7_1[0, 2];
|
|
|
+ A7_2[0, 3] = (A7_2[1, 3] * (-A7_1[0, 1])) + A7_1[0, 3];
|
|
|
+ A7_2[0, 4] = (A7_2[1, 4] * (-A7_1[0, 1])) + A7_1[0, 4];
|
|
|
+ A7_2[0, 5] = (A7_2[1, 5] * (-A7_1[0, 1])) + A7_1[0, 5];
|
|
|
+ A7_2[0, 6] = (A7_2[1, 6] * (-A7_1[0, 1])) + A7_1[0, 6];
|
|
|
+ A7_2[0, 7] = (A7_2[1, 7] * (-A7_1[0, 1])) + A7_1[0, 7];
|
|
|
+ A7_2[2, 0] = (A7_2[1, 0] * (-A7_1[2, 1])) + A7_1[2, 0];
|
|
|
+ A7_2[2, 1] = (A7_2[1, 1] * (-A7_1[2, 1])) + A7_1[2, 1];
|
|
|
+ A7_2[2, 2] = (A7_2[1, 2] * (-A7_1[2, 1])) + A7_1[2, 2];
|
|
|
+ A7_2[2, 3] = (A7_2[1, 3] * (-A7_1[2, 1])) + A7_1[2, 3];
|
|
|
+ A7_2[2, 4] = (A7_2[1, 4] * (-A7_1[2, 1])) + A7_1[2, 4];
|
|
|
+ A7_2[2, 5] = (A7_2[1, 5] * (-A7_1[2, 1])) + A7_1[2, 5];
|
|
|
+ A7_2[2, 6] = (A7_2[1, 6] * (-A7_1[2, 1])) + A7_1[2, 6];
|
|
|
+ A7_2[2, 7] = (A7_2[1, 7] * (-A7_1[2, 1])) + A7_1[2, 7];
|
|
|
+ A7_2[3, 0] = (A7_2[1, 0] * (-A7_1[3, 1])) + A7_1[3, 0];
|
|
|
+ A7_2[3, 1] = (A7_2[1, 1] * (-A7_1[3, 1])) + A7_1[3, 1];
|
|
|
+ A7_2[3, 2] = (A7_2[1, 2] * (-A7_1[3, 1])) + A7_1[3, 2];
|
|
|
+ A7_2[3, 3] = (A7_2[1, 3] * (-A7_1[3, 1])) + A7_1[3, 3];
|
|
|
+ A7_2[3, 4] = (A7_2[1, 4] * (-A7_1[3, 1])) + A7_1[3, 4];
|
|
|
+ A7_2[3, 5] = (A7_2[1, 5] * (-A7_1[3, 1])) + A7_1[3, 5];
|
|
|
+ A7_2[3, 6] = (A7_2[1, 6] * (-A7_1[3, 1])) + A7_1[3, 6];
|
|
|
+ A7_2[3, 7] = (A7_2[1, 7] * (-A7_1[3, 1])) + A7_1[3, 7];
|
|
|
+ A7_2[4, 0] = (A7_2[1, 0] * (-A7_1[4, 1])) + A7_1[4, 0];
|
|
|
+ A7_2[4, 1] = (A7_2[1, 1] * (-A7_1[4, 1])) + A7_1[4, 1];
|
|
|
+ A7_2[4, 2] = (A7_2[1, 2] * (-A7_1[4, 1])) + A7_1[4, 2];
|
|
|
+ A7_2[4, 3] = (A7_2[1, 3] * (-A7_1[4, 1])) + A7_1[4, 3];
|
|
|
+ A7_2[4, 4] = (A7_2[1, 4] * (-A7_1[4, 1])) + A7_1[4, 4];
|
|
|
+ A7_2[4, 5] = (A7_2[1, 5] * (-A7_1[4, 1])) + A7_1[4, 5];
|
|
|
+ A7_2[4, 6] = (A7_2[1, 6] * (-A7_1[4, 1])) + A7_1[4, 6];
|
|
|
+ A7_2[4, 7] = (A7_2[1, 7] * (-A7_1[4, 1])) + A7_1[4, 7];
|
|
|
+ A7_2[5, 0] = (A7_2[1, 0] * (-A7_1[5, 1])) + A7_1[5, 0];
|
|
|
+ A7_2[5, 1] = (A7_2[1, 1] * (-A7_1[5, 1])) + A7_1[5, 1];
|
|
|
+ A7_2[5, 2] = (A7_2[1, 2] * (-A7_1[5, 1])) + A7_1[5, 2];
|
|
|
+ A7_2[5, 3] = (A7_2[1, 3] * (-A7_1[5, 1])) + A7_1[5, 3];
|
|
|
+ A7_2[5, 4] = (A7_2[1, 4] * (-A7_1[5, 1])) + A7_1[5, 4];
|
|
|
+ A7_2[5, 5] = (A7_2[1, 5] * (-A7_1[5, 1])) + A7_1[5, 5];
|
|
|
+ A7_2[5, 6] = (A7_2[1, 6] * (-A7_1[5, 1])) + A7_1[5, 6];
|
|
|
+ A7_2[5, 7] = (A7_2[1, 7] * (-A7_1[5, 1])) + A7_1[5, 7];
|
|
|
+ A7_2[6, 0] = (A7_2[1, 0] * (-A7_1[6, 1])) + A7_1[6, 0];
|
|
|
+ A7_2[6, 1] = (A7_2[1, 1] * (-A7_1[6, 1])) + A7_1[6, 1];
|
|
|
+ A7_2[6, 2] = (A7_2[1, 2] * (-A7_1[6, 1])) + A7_1[6, 2];
|
|
|
+ A7_2[6, 3] = (A7_2[1, 3] * (-A7_1[6, 1])) + A7_1[6, 3];
|
|
|
+ A7_2[6, 4] = (A7_2[1, 4] * (-A7_1[6, 1])) + A7_1[6, 4];
|
|
|
+ A7_2[6, 5] = (A7_2[1, 5] * (-A7_1[6, 1])) + A7_1[6, 5];
|
|
|
+ A7_2[6, 6] = (A7_2[1, 6] * (-A7_1[6, 1])) + A7_1[6, 6];
|
|
|
+ A7_2[6, 7] = (A7_2[1, 7] * (-A7_1[6, 1])) + A7_1[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_2[0, 0] + "\t|" + A7_2[0, 1] + "\t|" + A7_2[0, 2] + "\t|" + A7_2[0, 3] + "\t|" + A7_2[0, 4] + "\t|" + A7_2[0, 5] + "\t|" + A7_2[0, 6] + "\t||" + A7_2[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[1, 0] + "\t|" + A7_2[1, 1] + "\t|" + A7_2[1, 2] + "\t|" + A7_2[1, 3] + "\t|" + A7_2[1, 4] + "\t|" + A7_2[1, 5] + "\t|" + A7_2[1, 6] + "\t||" + A7_2[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[2, 0] + "\t|" + A7_2[2, 1] + "\t|" + A7_2[2, 2] + "\t|" + A7_2[2, 3] + "\t|" + A7_2[2, 4] + "\t|" + A7_2[2, 5] + "\t|" + A7_2[2, 6] + "\t||" + A7_2[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[3, 0] + "\t|" + A7_2[3, 1] + "\t|" + A7_2[3, 2] + "\t|" + A7_2[3, 3] + "\t|" + A7_2[3, 4] + "\t|" + A7_2[3, 5] + "\t|" + A7_2[3, 6] + "\t||" + A7_2[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[4, 0] + "\t|" + A7_2[4, 1] + "\t|" + A7_2[4, 2] + "\t|" + A7_2[4, 3] + "\t|" + A7_2[4, 4] + "\t|" + A7_2[4, 5] + "\t|" + A7_2[4, 6] + "\t||" + A7_2[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[5, 0] + "\t|" + A7_2[5, 1] + "\t|" + A7_2[5, 2] + "\t|" + A7_2[5, 3] + "\t|" + A7_2[5, 4] + "\t|" + A7_2[5, 5] + "\t|" + A7_2[5, 6] + "\t||" + A7_2[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[6, 0] + "\t|" + A7_2[6, 1] + "\t|" + A7_2[6, 2] + "\t|" + A7_2[6, 3] + "\t|" + A7_2[6, 4] + "\t|" + A7_2[6, 5] + "\t|" + A7_2[6, 6] + "\t||" + A7_2[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 3 -------------");
|
|
|
+ double[,] A7_3 = new double[a, b];
|
|
|
+ A7_3[2, 0] = A7_2[2, 0] / A7_2[2, 2];
|
|
|
+ A7_3[2, 1] = A7_2[2, 1] / A7_2[2, 2];
|
|
|
+ A7_3[2, 2] = A7_2[2, 2] / A7_2[2, 2];
|
|
|
+ A7_3[2, 3] = A7_2[2, 3] / A7_2[2, 2];
|
|
|
+ A7_3[2, 4] = A7_2[2, 4] / A7_2[2, 2];
|
|
|
+ A7_3[2, 5] = A7_2[2, 5] / A7_2[2, 2];
|
|
|
+ A7_3[2, 6] = A7_2[2, 6] / A7_2[2, 2];
|
|
|
+ A7_3[2, 7] = A7_2[2, 7] / A7_2[2, 2];
|
|
|
+ A7_3[0, 0] = (A7_3[2, 0] * (-A7_2[0, 2])) + A7_2[0, 0];
|
|
|
+ A7_3[0, 1] = (A7_3[2, 1] * (-A7_2[0, 2])) + A7_2[0, 1];
|
|
|
+ A7_3[0, 2] = (A7_3[2, 2] * (-A7_2[0, 2])) + A7_2[0, 2];
|
|
|
+ A7_3[0, 3] = (A7_3[2, 3] * (-A7_2[0, 2])) + A7_2[0, 3];
|
|
|
+ A7_3[0, 4] = (A7_3[2, 4] * (-A7_2[0, 2])) + A7_2[0, 4];
|
|
|
+ A7_3[0, 5] = (A7_3[2, 5] * (-A7_2[0, 2])) + A7_2[0, 5];
|
|
|
+ A7_3[0, 6] = (A7_3[2, 6] * (-A7_2[0, 2])) + A7_2[0, 6];
|
|
|
+ A7_3[0, 7] = (A7_3[2, 7] * (-A7_2[0, 2])) + A7_2[0, 7];
|
|
|
+ A7_3[1, 0] = (A7_3[2, 0] * (-A7_2[1, 2])) + A7_2[1, 0];
|
|
|
+ A7_3[1, 1] = (A7_3[2, 1] * (-A7_2[1, 2])) + A7_2[1, 1];
|
|
|
+ A7_3[1, 2] = (A7_3[2, 2] * (-A7_2[1, 2])) + A7_2[1, 2];
|
|
|
+ A7_3[1, 3] = (A7_3[2, 3] * (-A7_2[1, 2])) + A7_2[1, 3];
|
|
|
+ A7_3[1, 4] = (A7_3[2, 4] * (-A7_2[1, 2])) + A7_2[1, 4];
|
|
|
+ A7_3[1, 5] = (A7_3[2, 5] * (-A7_2[1, 2])) + A7_2[1, 5];
|
|
|
+ A7_3[1, 6] = (A7_3[2, 6] * (-A7_2[1, 2])) + A7_2[1, 6];
|
|
|
+ A7_3[1, 7] = (A7_3[2, 7] * (-A7_2[1, 2])) + A7_2[1, 7];
|
|
|
+ A7_3[3, 0] = (A7_3[2, 0] * (-A7_2[3, 2])) + A7_2[3, 0];
|
|
|
+ A7_3[3, 1] = (A7_3[2, 1] * (-A7_2[3, 2])) + A7_2[3, 1];
|
|
|
+ A7_3[3, 2] = (A7_3[2, 2] * (-A7_2[3, 2])) + A7_2[3, 2];
|
|
|
+ A7_3[3, 3] = (A7_3[2, 3] * (-A7_2[3, 2])) + A7_2[3, 3];
|
|
|
+ A7_3[3, 4] = (A7_3[2, 4] * (-A7_2[3, 2])) + A7_2[3, 4];
|
|
|
+ A7_3[3, 5] = (A7_3[2, 5] * (-A7_2[3, 2])) + A7_2[3, 5];
|
|
|
+ A7_3[3, 6] = (A7_3[2, 6] * (-A7_2[3, 2])) + A7_2[3, 6];
|
|
|
+ A7_3[3, 7] = (A7_3[2, 7] * (-A7_2[3, 2])) + A7_2[3, 7];
|
|
|
+ A7_3[4, 0] = (A7_3[2, 0] * (-A7_2[4, 2])) + A7_2[4, 0];
|
|
|
+ A7_3[4, 1] = (A7_3[2, 1] * (-A7_2[4, 2])) + A7_2[4, 1];
|
|
|
+ A7_3[4, 2] = (A7_3[2, 2] * (-A7_2[4, 2])) + A7_2[4, 2];
|
|
|
+ A7_3[4, 3] = (A7_3[2, 3] * (-A7_2[4, 2])) + A7_2[4, 3];
|
|
|
+ A7_3[4, 4] = (A7_3[2, 4] * (-A7_2[4, 2])) + A7_2[4, 4];
|
|
|
+ A7_3[4, 5] = (A7_3[2, 5] * (-A7_2[4, 2])) + A7_2[4, 5];
|
|
|
+ A7_3[4, 6] = (A7_3[2, 6] * (-A7_2[4, 2])) + A7_2[4, 6];
|
|
|
+ A7_3[4, 7] = (A7_3[2, 7] * (-A7_2[4, 2])) + A7_2[4, 7];
|
|
|
+ A7_3[5, 0] = (A7_3[2, 0] * (-A7_2[5, 2])) + A7_2[5, 0];
|
|
|
+ A7_3[5, 1] = (A7_3[2, 1] * (-A7_2[5, 2])) + A7_2[5, 1];
|
|
|
+ A7_3[5, 2] = (A7_3[2, 2] * (-A7_2[5, 2])) + A7_2[5, 2];
|
|
|
+ A7_3[5, 3] = (A7_3[2, 3] * (-A7_2[5, 2])) + A7_2[5, 3];
|
|
|
+ A7_3[5, 4] = (A7_3[2, 4] * (-A7_2[5, 2])) + A7_2[5, 4];
|
|
|
+ A7_3[5, 5] = (A7_3[2, 5] * (-A7_2[5, 2])) + A7_2[5, 5];
|
|
|
+ A7_3[5, 6] = (A7_3[2, 6] * (-A7_2[5, 2])) + A7_2[5, 6];
|
|
|
+ A7_3[5, 7] = (A7_3[2, 7] * (-A7_2[5, 2])) + A7_2[5, 7];
|
|
|
+ A7_3[6, 0] = (A7_3[2, 0] * (-A7_2[6, 2])) + A7_2[6, 0];
|
|
|
+ A7_3[6, 1] = (A7_3[2, 1] * (-A7_2[6, 2])) + A7_2[6, 1];
|
|
|
+ A7_3[6, 2] = (A7_3[2, 2] * (-A7_2[6, 2])) + A7_2[6, 2];
|
|
|
+ A7_3[6, 3] = (A7_3[2, 3] * (-A7_2[6, 2])) + A7_2[6, 3];
|
|
|
+ A7_3[6, 4] = (A7_3[2, 4] * (-A7_2[6, 2])) + A7_2[6, 4];
|
|
|
+ A7_3[6, 5] = (A7_3[2, 5] * (-A7_2[6, 2])) + A7_2[6, 5];
|
|
|
+ A7_3[6, 6] = (A7_3[2, 6] * (-A7_2[6, 2])) + A7_2[6, 6];
|
|
|
+ A7_3[6, 7] = (A7_3[2, 7] * (-A7_2[6, 2])) + A7_2[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_3[0, 0] + "\t|" + A7_3[0, 1] + "\t|" + A7_3[0, 2] + "\t|" + A7_3[0, 3] + "\t|" + A7_3[0, 4] + "\t|" + A7_3[0, 5] + "\t|" + A7_3[0, 6] + "\t||" + A7_3[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[1, 0] + "\t|" + A7_3[1, 1] + "\t|" + A7_3[1, 2] + "\t|" + A7_3[1, 3] + "\t|" + A7_3[1, 4] + "\t|" + A7_3[1, 5] + "\t|" + A7_3[1, 6] + "\t||" + A7_3[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[2, 0] + "\t|" + A7_3[2, 1] + "\t|" + A7_3[2, 2] + "\t|" + A7_3[2, 3] + "\t|" + A7_3[2, 4] + "\t|" + A7_3[2, 5] + "\t|" + A7_3[2, 6] + "\t||" + A7_3[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[3, 0] + "\t|" + A7_3[3, 1] + "\t|" + A7_3[3, 2] + "\t|" + A7_3[3, 3] + "\t|" + A7_3[3, 4] + "\t|" + A7_3[3, 5] + "\t|" + A7_3[3, 6] + "\t||" + A7_3[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[4, 0] + "\t|" + A7_3[4, 1] + "\t|" + A7_3[4, 2] + "\t|" + A7_3[4, 3] + "\t|" + A7_3[4, 4] + "\t|" + A7_3[4, 5] + "\t|" + A7_3[4, 6] + "\t||" + A7_3[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[5, 0] + "\t|" + A7_3[5, 1] + "\t|" + A7_3[5, 2] + "\t|" + A7_3[5, 3] + "\t|" + A7_3[5, 4] + "\t|" + A7_3[5, 5] + "\t|" + A7_3[5, 6] + "\t||" + A7_3[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[6, 0] + "\t|" + A7_3[6, 1] + "\t|" + A7_3[6, 2] + "\t|" + A7_3[6, 3] + "\t|" + A7_3[6, 4] + "\t|" + A7_3[6, 5] + "\t|" + A7_3[6, 6] + "\t||" + A7_3[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 4 -------------");
|
|
|
+ double[,] A7_4 = new double[a, b];
|
|
|
+ A7_4[3, 0] = A7_3[3, 0] / A7_3[3, 3];
|
|
|
+ A7_4[3, 1] = A7_3[3, 1] / A7_3[3, 3];
|
|
|
+ A7_4[3, 2] = A7_3[3, 2] / A7_3[3, 3];
|
|
|
+ A7_4[3, 3] = A7_3[3, 3] / A7_3[3, 3];
|
|
|
+ A7_4[3, 4] = A7_3[3, 4] / A7_3[3, 3];
|
|
|
+ A7_4[3, 5] = A7_3[3, 5] / A7_3[3, 3];
|
|
|
+ A7_4[3, 6] = A7_3[3, 6] / A7_3[3, 3];
|
|
|
+ A7_4[3, 7] = A7_3[3, 7] / A7_3[3, 3];
|
|
|
+ A7_4[0, 0] = (A7_4[3, 0] * (-A7_3[0, 3])) + A7_3[0, 0];
|
|
|
+ A7_4[0, 1] = (A7_4[3, 1] * (-A7_3[0, 3])) + A7_3[0, 1];
|
|
|
+ A7_4[0, 2] = (A7_4[3, 2] * (-A7_3[0, 3])) + A7_3[0, 2];
|
|
|
+ A7_4[0, 3] = (A7_4[3, 3] * (-A7_3[0, 3])) + A7_3[0, 3];
|
|
|
+ A7_4[0, 4] = (A7_4[3, 4] * (-A7_3[0, 3])) + A7_3[0, 4];
|
|
|
+ A7_4[0, 5] = (A7_4[3, 5] * (-A7_3[0, 3])) + A7_3[0, 5];
|
|
|
+ A7_4[0, 6] = (A7_4[3, 6] * (-A7_3[0, 3])) + A7_3[0, 6];
|
|
|
+ A7_4[0, 7] = (A7_4[3, 7] * (-A7_3[0, 3])) + A7_3[0, 7];
|
|
|
+ A7_4[1, 0] = (A7_4[3, 0] * (-A7_3[1, 3])) + A7_3[1, 0];
|
|
|
+ A7_4[1, 1] = (A7_4[3, 1] * (-A7_3[1, 3])) + A7_3[1, 1];
|
|
|
+ A7_4[1, 2] = (A7_4[3, 2] * (-A7_3[1, 3])) + A7_3[1, 2];
|
|
|
+ A7_4[1, 3] = (A7_4[3, 3] * (-A7_3[1, 3])) + A7_3[1, 3];
|
|
|
+ A7_4[1, 4] = (A7_4[3, 4] * (-A7_3[1, 3])) + A7_3[1, 4];
|
|
|
+ A7_4[1, 5] = (A7_4[3, 5] * (-A7_3[1, 3])) + A7_3[1, 5];
|
|
|
+ A7_4[1, 6] = (A7_4[3, 6] * (-A7_3[1, 3])) + A7_3[1, 6];
|
|
|
+ A7_4[1, 7] = (A7_4[3, 7] * (-A7_3[1, 3])) + A7_3[1, 7];
|
|
|
+ A7_4[2, 0] = (A7_4[3, 0] * (-A7_3[2, 3])) + A7_3[2, 0];
|
|
|
+ A7_4[2, 1] = (A7_4[3, 1] * (-A7_3[2, 3])) + A7_3[2, 1];
|
|
|
+ A7_4[2, 2] = (A7_4[3, 2] * (-A7_3[2, 3])) + A7_3[2, 2];
|
|
|
+ A7_4[2, 3] = (A7_4[3, 3] * (-A7_3[2, 3])) + A7_3[2, 3];
|
|
|
+ A7_4[2, 4] = (A7_4[3, 4] * (-A7_3[2, 3])) + A7_3[2, 4];
|
|
|
+ A7_4[2, 5] = (A7_4[3, 5] * (-A7_3[2, 3])) + A7_3[2, 5];
|
|
|
+ A7_4[2, 6] = (A7_4[3, 6] * (-A7_3[2, 3])) + A7_3[2, 6];
|
|
|
+ A7_4[2, 7] = (A7_4[3, 7] * (-A7_3[2, 3])) + A7_3[2, 7];
|
|
|
+ A7_4[4, 0] = (A7_4[3, 0] * (-A7_3[4, 3])) + A7_3[4, 0];
|
|
|
+ A7_4[4, 1] = (A7_4[3, 1] * (-A7_3[4, 3])) + A7_3[4, 1];
|
|
|
+ A7_4[4, 2] = (A7_4[3, 2] * (-A7_3[4, 3])) + A7_3[4, 2];
|
|
|
+ A7_4[4, 3] = (A7_4[3, 3] * (-A7_3[4, 3])) + A7_3[4, 3];
|
|
|
+ A7_4[4, 4] = (A7_4[3, 4] * (-A7_3[4, 3])) + A7_3[4, 4];
|
|
|
+ A7_4[4, 5] = (A7_4[3, 5] * (-A7_3[4, 3])) + A7_3[4, 5];
|
|
|
+ A7_4[4, 6] = (A7_4[3, 6] * (-A7_3[4, 3])) + A7_3[4, 6];
|
|
|
+ A7_4[4, 7] = (A7_4[3, 7] * (-A7_3[4, 3])) + A7_3[4, 7];
|
|
|
+ A7_4[5, 0] = (A7_4[3, 0] * (-A7_3[5, 3])) + A7_3[5, 0];
|
|
|
+ A7_4[5, 1] = (A7_4[3, 1] * (-A7_3[5, 3])) + A7_3[5, 1];
|
|
|
+ A7_4[5, 2] = (A7_4[3, 2] * (-A7_3[5, 3])) + A7_3[5, 2];
|
|
|
+ A7_4[5, 3] = (A7_4[3, 3] * (-A7_3[5, 3])) + A7_3[5, 3];
|
|
|
+ A7_4[5, 4] = (A7_4[3, 4] * (-A7_3[5, 3])) + A7_3[5, 4];
|
|
|
+ A7_4[5, 5] = (A7_4[3, 5] * (-A7_3[5, 3])) + A7_3[5, 5];
|
|
|
+ A7_4[5, 6] = (A7_4[3, 6] * (-A7_3[5, 3])) + A7_3[5, 6];
|
|
|
+ A7_4[5, 7] = (A7_4[3, 7] * (-A7_3[5, 3])) + A7_3[5, 7];
|
|
|
+ A7_4[6, 0] = (A7_4[3, 0] * (-A7_3[6, 3])) + A7_3[6, 0];
|
|
|
+ A7_4[6, 1] = (A7_4[3, 1] * (-A7_3[6, 3])) + A7_3[6, 1];
|
|
|
+ A7_4[6, 2] = (A7_4[3, 2] * (-A7_3[6, 3])) + A7_3[6, 2];
|
|
|
+ A7_4[6, 3] = (A7_4[3, 3] * (-A7_3[6, 3])) + A7_3[6, 3];
|
|
|
+ A7_4[6, 4] = (A7_4[3, 4] * (-A7_3[6, 3])) + A7_3[6, 4];
|
|
|
+ A7_4[6, 5] = (A7_4[3, 5] * (-A7_3[6, 3])) + A7_3[6, 5];
|
|
|
+ A7_4[6, 6] = (A7_4[3, 6] * (-A7_3[6, 3])) + A7_3[6, 6];
|
|
|
+ A7_4[6, 7] = (A7_4[3, 7] * (-A7_3[6, 3])) + A7_3[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_4[0, 0] + "\t|" + A7_4[0, 1] + "\t|" + A7_4[0, 2] + "\t|" + A7_4[0, 3] + "\t|" + A7_4[0, 4] + "\t|" + A7_4[0, 5] + "\t|" + A7_4[0, 6] + "\t||" + A7_4[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[1, 0] + "\t|" + A7_4[1, 1] + "\t|" + A7_4[1, 2] + "\t|" + A7_4[1, 3] + "\t|" + A7_4[1, 4] + "\t|" + A7_4[1, 5] + "\t|" + A7_4[1, 6] + "\t||" + A7_4[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[2, 0] + "\t|" + A7_4[2, 1] + "\t|" + A7_4[2, 2] + "\t|" + A7_4[2, 3] + "\t|" + A7_4[2, 4] + "\t|" + A7_4[2, 5] + "\t|" + A7_4[2, 6] + "\t||" + A7_4[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[3, 0] + "\t|" + A7_4[3, 1] + "\t|" + A7_4[3, 2] + "\t|" + A7_4[3, 3] + "\t|" + A7_4[3, 4] + "\t|" + A7_4[3, 5] + "\t|" + A7_4[3, 6] + "\t||" + A7_4[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[4, 0] + "\t|" + A7_4[4, 1] + "\t|" + A7_4[4, 2] + "\t|" + A7_4[4, 3] + "\t|" + A7_4[4, 4] + "\t|" + A7_4[4, 5] + "\t|" + A7_4[4, 6] + "\t||" + A7_4[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[5, 0] + "\t|" + A7_4[5, 1] + "\t|" + A7_4[5, 2] + "\t|" + A7_4[5, 3] + "\t|" + A7_4[5, 4] + "\t|" + A7_4[5, 5] + "\t|" + A7_4[5, 6] + "\t||" + A7_4[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[6, 0] + "\t|" + A7_4[6, 1] + "\t|" + A7_4[6, 2] + "\t|" + A7_4[6, 3] + "\t|" + A7_4[6, 4] + "\t|" + A7_4[6, 5] + "\t|" + A7_4[6, 6] + "\t||" + A7_4[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 5 -------------");
|
|
|
+ double[,] A7_5 = new double[a, b];
|
|
|
+ A7_5[4, 0] = A7_4[4, 0] / A7_4[4, 4];
|
|
|
+ A7_5[4, 1] = A7_4[4, 1] / A7_4[4, 4];
|
|
|
+ A7_5[4, 2] = A7_4[4, 2] / A7_4[4, 4];
|
|
|
+ A7_5[4, 3] = A7_4[4, 3] / A7_4[4, 4];
|
|
|
+ A7_5[4, 4] = A7_4[4, 4] / A7_4[4, 4];
|
|
|
+ A7_5[4, 5] = A7_4[4, 5] / A7_4[4, 4];
|
|
|
+ A7_5[4, 6] = A7_4[4, 6] / A7_4[4, 4];
|
|
|
+ A7_5[4, 7] = A7_4[4, 7] / A7_4[4, 4];
|
|
|
+ A7_5[0, 0] = (A7_5[4, 0] * (-A7_4[0, 4])) + A7_4[0, 0];
|
|
|
+ A7_5[0, 1] = (A7_5[4, 1] * (-A7_4[0, 4])) + A7_4[0, 1];
|
|
|
+ A7_5[0, 2] = (A7_5[4, 2] * (-A7_4[0, 4])) + A7_4[0, 2];
|
|
|
+ A7_5[0, 3] = (A7_5[4, 3] * (-A7_4[0, 4])) + A7_4[0, 3];
|
|
|
+ A7_5[0, 4] = (A7_5[4, 4] * (-A7_4[0, 4])) + A7_4[0, 4];
|
|
|
+ A7_5[0, 5] = (A7_5[4, 5] * (-A7_4[0, 4])) + A7_4[0, 5];
|
|
|
+ A7_5[0, 6] = (A7_5[4, 6] * (-A7_4[0, 4])) + A7_4[0, 6];
|
|
|
+ A7_5[0, 7] = (A7_5[4, 7] * (-A7_4[0, 4])) + A7_4[0, 7];
|
|
|
+ A7_5[1, 0] = (A7_5[4, 0] * (-A7_4[1, 4])) + A7_4[1, 0];
|
|
|
+ A7_5[1, 1] = (A7_5[4, 1] * (-A7_4[1, 4])) + A7_4[1, 1];
|
|
|
+ A7_5[1, 2] = (A7_5[4, 2] * (-A7_4[1, 4])) + A7_4[1, 2];
|
|
|
+ A7_5[1, 3] = (A7_5[4, 3] * (-A7_4[1, 4])) + A7_4[1, 3];
|
|
|
+ A7_5[1, 4] = (A7_5[4, 4] * (-A7_4[1, 4])) + A7_4[1, 4];
|
|
|
+ A7_5[1, 5] = (A7_5[4, 5] * (-A7_4[1, 4])) + A7_4[1, 5];
|
|
|
+ A7_5[1, 6] = (A7_5[4, 6] * (-A7_4[1, 4])) + A7_4[1, 6];
|
|
|
+ A7_5[1, 7] = (A7_5[4, 7] * (-A7_4[1, 4])) + A7_4[1, 7];
|
|
|
+ A7_5[2, 0] = (A7_5[4, 0] * (-A7_4[2, 4])) + A7_4[2, 0];
|
|
|
+ A7_5[2, 1] = (A7_5[4, 1] * (-A7_4[2, 4])) + A7_4[2, 1];
|
|
|
+ A7_5[2, 2] = (A7_5[4, 2] * (-A7_4[2, 4])) + A7_4[2, 2];
|
|
|
+ A7_5[2, 3] = (A7_5[4, 3] * (-A7_4[2, 4])) + A7_4[2, 3];
|
|
|
+ A7_5[2, 4] = (A7_5[4, 4] * (-A7_4[2, 4])) + A7_4[2, 4];
|
|
|
+ A7_5[2, 5] = (A7_5[4, 5] * (-A7_4[2, 4])) + A7_4[2, 5];
|
|
|
+ A7_5[2, 6] = (A7_5[4, 6] * (-A7_4[2, 4])) + A7_4[2, 6];
|
|
|
+ A7_5[2, 7] = (A7_5[4, 7] * (-A7_4[2, 4])) + A7_4[2, 7];
|
|
|
+ A7_5[3, 0] = (A7_5[4, 0] * (-A7_4[3, 4])) + A7_4[3, 0];
|
|
|
+ A7_5[3, 1] = (A7_5[4, 1] * (-A7_4[3, 4])) + A7_4[3, 1];
|
|
|
+ A7_5[3, 2] = (A7_5[4, 2] * (-A7_4[3, 4])) + A7_4[3, 2];
|
|
|
+ A7_5[3, 3] = (A7_5[4, 3] * (-A7_4[3, 4])) + A7_4[3, 3];
|
|
|
+ A7_5[3, 4] = (A7_5[4, 4] * (-A7_4[3, 4])) + A7_4[3, 4];
|
|
|
+ A7_5[3, 5] = (A7_5[4, 5] * (-A7_4[3, 4])) + A7_4[3, 5];
|
|
|
+ A7_5[3, 6] = (A7_5[4, 6] * (-A7_4[3, 4])) + A7_4[3, 6];
|
|
|
+ A7_5[3, 7] = (A7_5[4, 7] * (-A7_4[3, 4])) + A7_4[3, 7];
|
|
|
+ A7_5[5, 0] = (A7_5[4, 0] * (-A7_4[5, 4])) + A7_4[5, 0];
|
|
|
+ A7_5[5, 1] = (A7_5[4, 1] * (-A7_4[5, 4])) + A7_4[5, 1];
|
|
|
+ A7_5[5, 2] = (A7_5[4, 2] * (-A7_4[5, 4])) + A7_4[5, 2];
|
|
|
+ A7_5[5, 3] = (A7_5[4, 3] * (-A7_4[5, 4])) + A7_4[5, 3];
|
|
|
+ A7_5[5, 4] = (A7_5[4, 4] * (-A7_4[5, 4])) + A7_4[5, 4];
|
|
|
+ A7_5[5, 5] = (A7_5[4, 5] * (-A7_4[5, 4])) + A7_4[5, 5];
|
|
|
+ A7_5[5, 6] = (A7_5[4, 6] * (-A7_4[5, 4])) + A7_4[5, 6];
|
|
|
+ A7_5[5, 7] = (A7_5[4, 7] * (-A7_4[5, 4])) + A7_4[5, 7];
|
|
|
+ A7_5[6, 0] = (A7_5[4, 0] * (-A7_4[6, 4])) + A7_4[6, 0];
|
|
|
+ A7_5[6, 1] = (A7_5[4, 1] * (-A7_4[6, 4])) + A7_4[6, 1];
|
|
|
+ A7_5[6, 2] = (A7_5[4, 2] * (-A7_4[6, 4])) + A7_4[6, 2];
|
|
|
+ A7_5[6, 3] = (A7_5[4, 3] * (-A7_4[6, 4])) + A7_4[6, 3];
|
|
|
+ A7_5[6, 4] = (A7_5[4, 4] * (-A7_4[6, 4])) + A7_4[6, 4];
|
|
|
+ A7_5[6, 5] = (A7_5[4, 5] * (-A7_4[6, 4])) + A7_4[6, 5];
|
|
|
+ A7_5[6, 6] = (A7_5[4, 6] * (-A7_4[6, 4])) + A7_4[6, 6];
|
|
|
+ A7_5[6, 7] = (A7_5[4, 7] * (-A7_4[6, 4])) + A7_4[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_5[0, 0] + "\t|" + A7_5[0, 1] + "\t|" + A7_5[0, 2] + "\t|" + A7_5[0, 3] + "\t|" + A7_5[0, 4] + "\t|" + A7_5[0, 5] + "\t|" + A7_5[0, 6] + "\t||" + A7_5[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[1, 0] + "\t|" + A7_5[1, 1] + "\t|" + A7_5[1, 2] + "\t|" + A7_5[1, 3] + "\t|" + A7_5[1, 4] + "\t|" + A7_5[1, 5] + "\t|" + A7_5[1, 6] + "\t||" + A7_5[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[2, 0] + "\t|" + A7_5[2, 1] + "\t|" + A7_5[2, 2] + "\t|" + A7_5[2, 3] + "\t|" + A7_5[2, 4] + "\t|" + A7_5[2, 5] + "\t|" + A7_5[2, 6] + "\t||" + A7_5[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[3, 0] + "\t|" + A7_5[3, 1] + "\t|" + A7_5[3, 2] + "\t|" + A7_5[3, 3] + "\t|" + A7_5[3, 4] + "\t|" + A7_5[3, 5] + "\t|" + A7_5[3, 6] + "\t||" + A7_5[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[4, 0] + "\t|" + A7_5[4, 1] + "\t|" + A7_5[4, 2] + "\t|" + A7_5[4, 3] + "\t|" + A7_5[4, 4] + "\t|" + A7_5[4, 5] + "\t|" + A7_5[4, 6] + "\t||" + A7_5[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[5, 0] + "\t|" + A7_5[5, 1] + "\t|" + A7_5[5, 2] + "\t|" + A7_5[5, 3] + "\t|" + A7_5[5, 4] + "\t|" + A7_5[5, 5] + "\t|" + A7_5[5, 6] + "\t||" + A7_5[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[6, 0] + "\t|" + A7_5[6, 1] + "\t|" + A7_5[6, 2] + "\t|" + A7_5[6, 3] + "\t|" + A7_5[6, 4] + "\t|" + A7_5[6, 5] + "\t|" + A7_5[6, 6] + "\t||" + A7_5[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 6 -------------");
|
|
|
+ double[,] A7_6 = new double[a, b];
|
|
|
+ A7_6[5, 0] = A7_5[5, 0] / A7_5[5, 5];
|
|
|
+ A7_6[5, 1] = A7_5[5, 1] / A7_5[5, 5];
|
|
|
+ A7_6[5, 2] = A7_5[5, 2] / A7_5[5, 5];
|
|
|
+ A7_6[5, 3] = A7_5[5, 3] / A7_5[5, 5];
|
|
|
+ A7_6[5, 4] = A7_5[5, 4] / A7_5[5, 5];
|
|
|
+ A7_6[5, 5] = A7_5[5, 5] / A7_5[5, 5];
|
|
|
+ A7_6[5, 6] = A7_5[5, 6] / A7_5[5, 5];
|
|
|
+ A7_6[5, 7] = A7_5[5, 7] / A7_5[5, 5];
|
|
|
+ A7_6[0, 0] = (A7_6[5, 0] * (-A7_5[0, 5])) + A7_5[0, 0];
|
|
|
+ A7_6[0, 1] = (A7_6[5, 1] * (-A7_5[0, 5])) + A7_5[0, 1];
|
|
|
+ A7_6[0, 2] = (A7_6[5, 2] * (-A7_5[0, 5])) + A7_5[0, 2];
|
|
|
+ A7_6[0, 3] = (A7_6[5, 3] * (-A7_5[0, 5])) + A7_5[0, 3];
|
|
|
+ A7_6[0, 4] = (A7_6[5, 4] * (-A7_5[0, 5])) + A7_5[0, 4];
|
|
|
+ A7_6[0, 5] = (A7_6[5, 5] * (-A7_5[0, 5])) + A7_5[0, 5];
|
|
|
+ A7_6[0, 6] = (A7_6[5, 6] * (-A7_5[0, 5])) + A7_5[0, 6];
|
|
|
+ A7_6[0, 7] = (A7_6[5, 7] * (-A7_5[0, 5])) + A7_5[0, 7];
|
|
|
+ A7_6[1, 0] = (A7_6[5, 0] * (-A7_5[1, 5])) + A7_5[1, 0];
|
|
|
+ A7_6[1, 1] = (A7_6[5, 1] * (-A7_5[1, 5])) + A7_5[1, 1];
|
|
|
+ A7_6[1, 2] = (A7_6[5, 2] * (-A7_5[1, 5])) + A7_5[1, 2];
|
|
|
+ A7_6[1, 3] = (A7_6[5, 3] * (-A7_5[1, 5])) + A7_5[1, 3];
|
|
|
+ A7_6[1, 4] = (A7_6[5, 4] * (-A7_5[1, 5])) + A7_5[1, 4];
|
|
|
+ A7_6[1, 5] = (A7_6[5, 5] * (-A7_5[1, 5])) + A7_5[1, 5];
|
|
|
+ A7_6[1, 6] = (A7_6[5, 6] * (-A7_5[1, 5])) + A7_5[1, 6];
|
|
|
+ A7_6[1, 7] = (A7_6[5, 7] * (-A7_5[1, 5])) + A7_5[1, 7];
|
|
|
+ A7_6[2, 0] = (A7_6[5, 0] * (-A7_5[2, 5])) + A7_5[2, 0];
|
|
|
+ A7_6[2, 1] = (A7_6[5, 1] * (-A7_5[2, 5])) + A7_5[2, 1];
|
|
|
+ A7_6[2, 2] = (A7_6[5, 2] * (-A7_5[2, 5])) + A7_5[2, 2];
|
|
|
+ A7_6[2, 3] = (A7_6[5, 3] * (-A7_5[2, 5])) + A7_5[2, 3];
|
|
|
+ A7_6[2, 4] = (A7_6[5, 4] * (-A7_5[2, 5])) + A7_5[2, 4];
|
|
|
+ A7_6[2, 5] = (A7_6[5, 5] * (-A7_5[2, 5])) + A7_5[2, 5];
|
|
|
+ A7_6[2, 6] = (A7_6[5, 6] * (-A7_5[2, 5])) + A7_5[2, 6];
|
|
|
+ A7_6[2, 7] = (A7_6[5, 7] * (-A7_5[2, 5])) + A7_5[2, 7];
|
|
|
+ A7_6[3, 0] = (A7_6[5, 0] * (-A7_5[3, 5])) + A7_5[3, 0];
|
|
|
+ A7_6[3, 1] = (A7_6[5, 1] * (-A7_5[3, 5])) + A7_5[3, 1];
|
|
|
+ A7_6[3, 2] = (A7_6[5, 2] * (-A7_5[3, 5])) + A7_5[3, 2];
|
|
|
+ A7_6[3, 3] = (A7_6[5, 3] * (-A7_5[3, 5])) + A7_5[3, 3];
|
|
|
+ A7_6[3, 4] = (A7_6[5, 4] * (-A7_5[3, 5])) + A7_5[3, 4];
|
|
|
+ A7_6[3, 5] = (A7_6[5, 5] * (-A7_5[3, 5])) + A7_5[3, 5];
|
|
|
+ A7_6[3, 6] = (A7_6[5, 6] * (-A7_5[3, 5])) + A7_5[3, 6];
|
|
|
+ A7_6[3, 7] = (A7_6[5, 7] * (-A7_5[3, 5])) + A7_5[3, 7];
|
|
|
+ A7_6[4, 0] = (A7_6[5, 0] * (-A7_5[4, 5])) + A7_5[4, 0];
|
|
|
+ A7_6[4, 1] = (A7_6[5, 1] * (-A7_5[4, 5])) + A7_5[4, 1];
|
|
|
+ A7_6[4, 2] = (A7_6[5, 2] * (-A7_5[4, 5])) + A7_5[4, 2];
|
|
|
+ A7_6[4, 3] = (A7_6[5, 3] * (-A7_5[4, 5])) + A7_5[4, 3];
|
|
|
+ A7_6[4, 4] = (A7_6[5, 4] * (-A7_5[4, 5])) + A7_5[4, 4];
|
|
|
+ A7_6[4, 5] = (A7_6[5, 5] * (-A7_5[4, 5])) + A7_5[4, 5];
|
|
|
+ A7_6[4, 6] = (A7_6[5, 6] * (-A7_5[4, 5])) + A7_5[4, 6];
|
|
|
+ A7_6[4, 7] = (A7_6[5, 7] * (-A7_5[4, 5])) + A7_5[4, 7];
|
|
|
+ A7_6[6, 0] = (A7_6[5, 0] * (-A7_5[6, 5])) + A7_5[6, 0];
|
|
|
+ A7_6[6, 1] = (A7_6[5, 1] * (-A7_5[6, 5])) + A7_5[6, 1];
|
|
|
+ A7_6[6, 2] = (A7_6[5, 2] * (-A7_5[6, 5])) + A7_5[6, 2];
|
|
|
+ A7_6[6, 3] = (A7_6[5, 3] * (-A7_5[6, 5])) + A7_5[6, 3];
|
|
|
+ A7_6[6, 4] = (A7_6[5, 4] * (-A7_5[6, 5])) + A7_5[6, 4];
|
|
|
+ A7_6[6, 5] = (A7_6[5, 5] * (-A7_5[6, 5])) + A7_5[6, 5];
|
|
|
+ A7_6[6, 6] = (A7_6[5, 6] * (-A7_5[6, 5])) + A7_5[6, 6];
|
|
|
+ A7_6[6, 7] = (A7_6[5, 7] * (-A7_5[6, 5])) + A7_5[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_6[0, 0] + "\t|" + A7_6[0, 1] + "\t|" + A7_6[0, 2] + "\t|" + A7_6[0, 3] + "\t|" + A7_6[0, 4] + "\t|" + A7_6[0, 5] + "\t|" + A7_6[0, 6] + "\t||" + A7_6[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[1, 0] + "\t|" + A7_6[1, 1] + "\t|" + A7_6[1, 2] + "\t|" + A7_6[1, 3] + "\t|" + A7_6[1, 4] + "\t|" + A7_6[1, 5] + "\t|" + A7_6[1, 6] + "\t||" + A7_6[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[2, 0] + "\t|" + A7_6[2, 1] + "\t|" + A7_6[2, 2] + "\t|" + A7_6[2, 3] + "\t|" + A7_6[2, 4] + "\t|" + A7_6[2, 5] + "\t|" + A7_6[2, 6] + "\t||" + A7_6[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[3, 0] + "\t|" + A7_6[3, 1] + "\t|" + A7_6[3, 2] + "\t|" + A7_6[3, 3] + "\t|" + A7_6[3, 4] + "\t|" + A7_6[3, 5] + "\t|" + A7_6[3, 6] + "\t||" + A7_6[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[4, 0] + "\t|" + A7_6[4, 1] + "\t|" + A7_6[4, 2] + "\t|" + A7_6[4, 3] + "\t|" + A7_6[4, 4] + "\t|" + A7_6[4, 5] + "\t|" + A7_6[4, 6] + "\t||" + A7_6[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[5, 0] + "\t|" + A7_6[5, 1] + "\t|" + A7_6[5, 2] + "\t|" + A7_6[5, 3] + "\t|" + A7_6[5, 4] + "\t|" + A7_6[5, 5] + "\t|" + A7_6[5, 6] + "\t||" + A7_6[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[6, 0] + "\t|" + A7_6[6, 1] + "\t|" + A7_6[6, 2] + "\t|" + A7_6[6, 3] + "\t|" + A7_6[6, 4] + "\t|" + A7_6[6, 5] + "\t|" + A7_6[6, 6] + "\t||" + A7_6[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 7 -------------");
|
|
|
+ double[,] A7_7 = new double[a, b];
|
|
|
+ A7_7[6, 0] = A7_6[6, 0] / A7_6[6, 6];
|
|
|
+ A7_7[6, 1] = A7_6[6, 1] / A7_6[6, 6];
|
|
|
+ A7_7[6, 2] = A7_6[6, 2] / A7_6[6, 6];
|
|
|
+ A7_7[6, 3] = A7_6[6, 3] / A7_6[6, 6];
|
|
|
+ A7_7[6, 4] = A7_6[6, 4] / A7_6[6, 6];
|
|
|
+ A7_7[6, 5] = A7_6[6, 5] / A7_6[6, 6];
|
|
|
+ A7_7[6, 6] = A7_6[6, 6] / A7_6[6, 6];
|
|
|
+ A7_7[6, 7] = A7_6[6, 7] / A7_6[6, 6];
|
|
|
+ A7_7[0, 0] = (A7_7[6, 0] * (-A7_6[0, 6])) + A7_6[0, 0];
|
|
|
+ A7_7[0, 1] = (A7_7[6, 1] * (-A7_6[0, 6])) + A7_6[0, 1];
|
|
|
+ A7_7[0, 2] = (A7_7[6, 2] * (-A7_6[0, 6])) + A7_6[0, 2];
|
|
|
+ A7_7[0, 3] = (A7_7[6, 3] * (-A7_6[0, 6])) + A7_6[0, 3];
|
|
|
+ A7_7[0, 4] = (A7_7[6, 4] * (-A7_6[0, 6])) + A7_6[0, 4];
|
|
|
+ A7_7[0, 5] = (A7_7[6, 5] * (-A7_6[0, 6])) + A7_6[0, 5];
|
|
|
+ A7_7[0, 6] = (A7_7[6, 6] * (-A7_6[0, 6])) + A7_6[0, 6];
|
|
|
+ A7_7[0, 7] = (A7_7[6, 7] * (-A7_6[0, 6])) + A7_6[0, 7];
|
|
|
+ A7_7[1, 0] = (A7_7[6, 0] * (-A7_6[1, 6])) + A7_6[1, 0];
|
|
|
+ A7_7[1, 1] = (A7_7[6, 1] * (-A7_6[1, 6])) + A7_6[1, 1];
|
|
|
+ A7_7[1, 2] = (A7_7[6, 2] * (-A7_6[1, 6])) + A7_6[1, 2];
|
|
|
+ A7_7[1, 3] = (A7_7[6, 3] * (-A7_6[1, 6])) + A7_6[1, 3];
|
|
|
+ A7_7[1, 4] = (A7_7[6, 4] * (-A7_6[1, 6])) + A7_6[1, 4];
|
|
|
+ A7_7[1, 5] = (A7_7[6, 5] * (-A7_6[1, 6])) + A7_6[1, 5];
|
|
|
+ A7_7[1, 6] = (A7_7[6, 6] * (-A7_6[1, 6])) + A7_6[1, 6];
|
|
|
+ A7_7[1, 7] = (A7_7[6, 7] * (-A7_6[1, 6])) + A7_6[1, 7];
|
|
|
+ A7_7[2, 0] = (A7_7[6, 0] * (-A7_6[2, 6])) + A7_6[2, 0];
|
|
|
+ A7_7[2, 1] = (A7_7[6, 1] * (-A7_6[2, 6])) + A7_6[2, 1];
|
|
|
+ A7_7[2, 2] = (A7_7[6, 2] * (-A7_6[2, 6])) + A7_6[2, 2];
|
|
|
+ A7_7[2, 3] = (A7_7[6, 3] * (-A7_6[2, 6])) + A7_6[2, 3];
|
|
|
+ A7_7[2, 4] = (A7_7[6, 4] * (-A7_6[2, 6])) + A7_6[2, 4];
|
|
|
+ A7_7[2, 5] = (A7_7[6, 5] * (-A7_6[2, 6])) + A7_6[2, 5];
|
|
|
+ A7_7[2, 6] = (A7_7[6, 6] * (-A7_6[2, 6])) + A7_6[2, 6];
|
|
|
+ A7_7[2, 7] = (A7_7[6, 7] * (-A7_6[2, 6])) + A7_6[2, 7];
|
|
|
+ A7_7[3, 0] = (A7_7[6, 0] * (-A7_6[3, 6])) + A7_6[3, 0];
|
|
|
+ A7_7[3, 1] = (A7_7[6, 1] * (-A7_6[3, 6])) + A7_6[3, 1];
|
|
|
+ A7_7[3, 2] = (A7_7[6, 2] * (-A7_6[3, 6])) + A7_6[3, 2];
|
|
|
+ A7_7[3, 3] = (A7_7[6, 3] * (-A7_6[3, 6])) + A7_6[3, 3];
|
|
|
+ A7_7[3, 4] = (A7_7[6, 4] * (-A7_6[3, 6])) + A7_6[3, 4];
|
|
|
+ A7_7[3, 5] = (A7_7[6, 5] * (-A7_6[3, 6])) + A7_6[3, 5];
|
|
|
+ A7_7[3, 6] = (A7_7[6, 6] * (-A7_6[3, 6])) + A7_6[3, 6];
|
|
|
+ A7_7[3, 7] = (A7_7[6, 7] * (-A7_6[3, 6])) + A7_6[3, 7];
|
|
|
+ A7_7[4, 0] = (A7_7[6, 0] * (-A7_6[4, 6])) + A7_6[4, 0];
|
|
|
+ A7_7[4, 1] = (A7_7[6, 1] * (-A7_6[4, 6])) + A7_6[4, 1];
|
|
|
+ A7_7[4, 2] = (A7_7[6, 2] * (-A7_6[4, 6])) + A7_6[4, 2];
|
|
|
+ A7_7[4, 3] = (A7_7[6, 3] * (-A7_6[4, 6])) + A7_6[4, 3];
|
|
|
+ A7_7[4, 4] = (A7_7[6, 4] * (-A7_6[4, 6])) + A7_6[4, 4];
|
|
|
+ A7_7[4, 5] = (A7_7[6, 5] * (-A7_6[4, 6])) + A7_6[4, 5];
|
|
|
+ A7_7[4, 6] = (A7_7[6, 6] * (-A7_6[4, 6])) + A7_6[4, 6];
|
|
|
+ A7_7[4, 7] = (A7_7[6, 7] * (-A7_6[4, 6])) + A7_6[4, 7];
|
|
|
+ A7_7[5, 0] = (A7_7[6, 0] * (-A7_6[5, 6])) + A7_6[5, 0];
|
|
|
+ A7_7[5, 1] = (A7_7[6, 1] * (-A7_6[5, 6])) + A7_6[5, 1];
|
|
|
+ A7_7[5, 2] = (A7_7[6, 2] * (-A7_6[5, 6])) + A7_6[5, 2];
|
|
|
+ A7_7[5, 3] = (A7_7[6, 3] * (-A7_6[5, 6])) + A7_6[5, 3];
|
|
|
+ A7_7[5, 4] = (A7_7[6, 4] * (-A7_6[5, 6])) + A7_6[5, 4];
|
|
|
+ A7_7[5, 5] = (A7_7[6, 5] * (-A7_6[5, 6])) + A7_6[5, 5];
|
|
|
+ A7_7[5, 6] = (A7_7[6, 6] * (-A7_6[5, 6])) + A7_6[5, 6];
|
|
|
+ A7_7[5, 7] = (A7_7[6, 7] * (-A7_6[5, 6])) + A7_6[5, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_7[0, 0] + "\t|" + A7_7[0, 1] + "\t|" + A7_7[0, 2] + "\t|" + A7_7[0, 3] + "\t|" + A7_7[0, 4] + "\t|" + A7_7[0, 5] + "\t|" + A7_7[0, 6] + "\t||" + A7_7[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[1, 0] + "\t|" + A7_7[1, 1] + "\t|" + A7_7[1, 2] + "\t|" + A7_7[1, 3] + "\t|" + A7_7[1, 4] + "\t|" + A7_7[1, 5] + "\t|" + A7_7[1, 6] + "\t||" + A7_7[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[2, 0] + "\t|" + A7_7[2, 1] + "\t|" + A7_7[2, 2] + "\t|" + A7_7[2, 3] + "\t|" + A7_7[2, 4] + "\t|" + A7_7[2, 5] + "\t|" + A7_7[2, 6] + "\t||" + A7_7[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[3, 0] + "\t|" + A7_7[3, 1] + "\t|" + A7_7[3, 2] + "\t|" + A7_7[3, 3] + "\t|" + A7_7[3, 4] + "\t|" + A7_7[3, 5] + "\t|" + A7_7[3, 6] + "\t||" + A7_7[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[4, 0] + "\t|" + A7_7[4, 1] + "\t|" + A7_7[4, 2] + "\t|" + A7_7[4, 3] + "\t|" + A7_7[4, 4] + "\t|" + A7_7[4, 5] + "\t|" + A7_7[4, 6] + "\t||" + A7_7[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[5, 0] + "\t|" + A7_7[5, 1] + "\t|" + A7_7[5, 2] + "\t|" + A7_7[5, 3] + "\t|" + A7_7[5, 4] + "\t|" + A7_7[5, 5] + "\t|" + A7_7[5, 6] + "\t||" + A7_7[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[6, 0] + "\t|" + A7_7[6, 1] + "\t|" + A7_7[6, 2] + "\t|" + A7_7[6, 3] + "\t|" + A7_7[6, 4] + "\t|" + A7_7[6, 5] + "\t|" + A7_7[6, 6] + "\t||" + A7_7[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Ответ -------------");
|
|
|
+ Console.WriteLine("x1 = " + A7_7[0, 7]);
|
|
|
+ Console.WriteLine("x2 = " + A7_7[1, 7]);
|
|
|
+ Console.WriteLine("x3 = " + A7_7[2, 7]);
|
|
|
+ Console.WriteLine("x4 = " + A7_7[3, 7]);
|
|
|
+ Console.WriteLine("x5 = " + A7_7[4, 7]);
|
|
|
+ Console.WriteLine("x6 = " + A7_7[5, 7]);
|
|
|
+ Console.WriteLine("x7 = " + A7_7[6, 7]);
|
|
|
+ }
|
|
|
+ else if (per == 9)
|
|
|
+ {
|
|
|
+ Console.WriteLine("------------- Заполните матрицу А -------------");
|
|
|
+ a = 7; b = 7;
|
|
|
+ double[,] A7 = new double[a, b];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ A7[x1, x2] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Заполните матрицу B -------------");
|
|
|
+ B = new int[a];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ B[x1] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Вывод матрицы -------------");
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ Console.Write(A7[x1, x2] + "\t|");
|
|
|
+ }
|
|
|
+ Console.WriteLine("|\t" + B[x1]);
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
|
|
|
+ int edin = 1;
|
|
|
+ foreach (int edinicha in A7)
|
|
|
+ {
|
|
|
+ if (edinicha == edin)
|
|
|
+ {
|
|
|
+ Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 1 -------------");
|
|
|
+ b = 8;
|
|
|
+ double[,] A7_1 = new double[a, b];
|
|
|
+ A7_1[0, 0] = A7[0, 0] / A7[0, 0];
|
|
|
+ A7_1[0, 1] = A7[0, 1] / A7[0, 0];
|
|
|
+ A7_1[0, 2] = A7[0, 2] / A7[0, 0];
|
|
|
+ A7_1[0, 3] = A7[0, 3] / A7[0, 0];
|
|
|
+ A7_1[0, 4] = A7[0, 4] / A7[0, 0];
|
|
|
+ A7_1[0, 5] = A7[0, 5] / A7[0, 0];
|
|
|
+ A7_1[0, 6] = A7[0, 6] / A7[0, 0];
|
|
|
+ A7_1[0, 7] = B[0] / A7[0, 0];
|
|
|
+ A7_1[1, 0] = (A7_1[0, 0] * (-A7[1, 0])) + A7[1, 0];
|
|
|
+ A7_1[1, 1] = (A7_1[0, 1] * (-A7[1, 0])) + A7[1, 1];
|
|
|
+ A7_1[1, 2] = (A7_1[0, 2] * (-A7[1, 0])) + A7[1, 2];
|
|
|
+ A7_1[1, 3] = (A7_1[0, 3] * (-A7[1, 0])) + A7[1, 3];
|
|
|
+ A7_1[1, 4] = (A7_1[0, 4] * (-A7[1, 0])) + A7[1, 4];
|
|
|
+ A7_1[1, 5] = (A7_1[0, 5] * (-A7[1, 0])) + A7[1, 5];
|
|
|
+ A7_1[1, 6] = (A7_1[0, 6] * (-A7[1, 0])) + A7[1, 6];
|
|
|
+ A7_1[1, 7] = (A7_1[0, 7] * (-A7[1, 0])) + B[1];
|
|
|
+ A7_1[2, 0] = (A7_1[0, 0] * (-A7[2, 0])) + A7[2, 0];
|
|
|
+ A7_1[2, 1] = (A7_1[0, 1] * (-A7[2, 0])) + A7[2, 1];
|
|
|
+ A7_1[2, 2] = (A7_1[0, 2] * (-A7[2, 0])) + A7[2, 2];
|
|
|
+ A7_1[2, 3] = (A7_1[0, 3] * (-A7[2, 0])) + A7[2, 3];
|
|
|
+ A7_1[2, 4] = (A7_1[0, 4] * (-A7[2, 0])) + A7[2, 4];
|
|
|
+ A7_1[2, 5] = (A7_1[0, 5] * (-A7[2, 0])) + A7[2, 5];
|
|
|
+ A7_1[2, 6] = (A7_1[0, 6] * (-A7[2, 0])) + A7[2, 6];
|
|
|
+ A7_1[2, 7] = (A7_1[0, 7] * (-A7[2, 0])) + B[2];
|
|
|
+ A7_1[3, 0] = (A7_1[0, 0] * (-A7[3, 0])) + A7[3, 0];
|
|
|
+ A7_1[3, 1] = (A7_1[0, 1] * (-A7[3, 0])) + A7[3, 1];
|
|
|
+ A7_1[3, 2] = (A7_1[0, 2] * (-A7[3, 0])) + A7[3, 2];
|
|
|
+ A7_1[3, 3] = (A7_1[0, 3] * (-A7[3, 0])) + A7[3, 3];
|
|
|
+ A7_1[3, 4] = (A7_1[0, 4] * (-A7[3, 0])) + A7[3, 4];
|
|
|
+ A7_1[3, 5] = (A7_1[0, 5] * (-A7[3, 0])) + A7[3, 5];
|
|
|
+ A7_1[3, 6] = (A7_1[0, 6] * (-A7[3, 0])) + A7[3, 6];
|
|
|
+ A7_1[3, 7] = (A7_1[0, 7] * (-A7[3, 0])) + B[3];
|
|
|
+ A7_1[4, 0] = (A7_1[0, 0] * (-A7[4, 0])) + A7[4, 0];
|
|
|
+ A7_1[4, 1] = (A7_1[0, 1] * (-A7[4, 0])) + A7[4, 1];
|
|
|
+ A7_1[4, 2] = (A7_1[0, 2] * (-A7[4, 0])) + A7[4, 2];
|
|
|
+ A7_1[4, 3] = (A7_1[0, 3] * (-A7[4, 0])) + A7[4, 3];
|
|
|
+ A7_1[4, 4] = (A7_1[0, 4] * (-A7[4, 0])) + A7[4, 4];
|
|
|
+ A7_1[4, 5] = (A7_1[0, 5] * (-A7[4, 0])) + A7[4, 5];
|
|
|
+ A7_1[4, 6] = (A7_1[0, 6] * (-A7[4, 0])) + A7[4, 6];
|
|
|
+ A7_1[4, 7] = (A7_1[0, 7] * (-A7[4, 0])) + B[4];
|
|
|
+ A7_1[5, 0] = (A7_1[0, 0] * (-A7[5, 0])) + A7[5, 0];
|
|
|
+ A7_1[5, 1] = (A7_1[0, 1] * (-A7[5, 0])) + A7[5, 1];
|
|
|
+ A7_1[5, 2] = (A7_1[0, 2] * (-A7[5, 0])) + A7[5, 2];
|
|
|
+ A7_1[5, 3] = (A7_1[0, 3] * (-A7[5, 0])) + A7[5, 3];
|
|
|
+ A7_1[5, 4] = (A7_1[0, 4] * (-A7[5, 0])) + A7[5, 4];
|
|
|
+ A7_1[5, 5] = (A7_1[0, 5] * (-A7[5, 0])) + A7[5, 5];
|
|
|
+ A7_1[5, 6] = (A7_1[0, 6] * (-A7[5, 0])) + A7[5, 6];
|
|
|
+ A7_1[5, 7] = (A7_1[0, 7] * (-A7[5, 0])) + B[5];
|
|
|
+ A7_1[6, 0] = (A7_1[0, 0] * (-A7[6, 0])) + A7[6, 0];
|
|
|
+ A7_1[6, 1] = (A7_1[0, 1] * (-A7[6, 0])) + A7[6, 1];
|
|
|
+ A7_1[6, 2] = (A7_1[0, 2] * (-A7[6, 0])) + A7[6, 2];
|
|
|
+ A7_1[6, 3] = (A7_1[0, 3] * (-A7[6, 0])) + A7[6, 3];
|
|
|
+ A7_1[6, 4] = (A7_1[0, 4] * (-A7[6, 0])) + A7[6, 4];
|
|
|
+ A7_1[6, 5] = (A7_1[0, 5] * (-A7[6, 0])) + A7[6, 5];
|
|
|
+ A7_1[6, 6] = (A7_1[0, 6] * (-A7[6, 0])) + A7[6, 6];
|
|
|
+ A7_1[6, 7] = (A7_1[0, 7] * (-A7[6, 0])) + B[6];
|
|
|
+ Console.WriteLine("\t|" + A7_1[0, 0] + "\t|" + A7_1[0, 1] + "\t|" + A7_1[0, 2] + "\t|" + A7_1[0, 3] + "\t|" + A7_1[0, 4] + "\t|" + A7_1[0, 5] + "\t|" + A7_1[0, 6] + "\t||" + A7_1[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[1, 0] + "\t|" + A7_1[1, 1] + "\t|" + A7_1[1, 2] + "\t|" + A7_1[1, 3] + "\t|" + A7_1[1, 4] + "\t|" + A7_1[1, 5] + "\t|" + A7_1[1, 6] + "\t||" + A7_1[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[2, 0] + "\t|" + A7_1[2, 1] + "\t|" + A7_1[2, 2] + "\t|" + A7_1[2, 3] + "\t|" + A7_1[2, 4] + "\t|" + A7_1[2, 5] + "\t|" + A7_1[2, 6] + "\t||" + A7_1[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[3, 0] + "\t|" + A7_1[3, 1] + "\t|" + A7_1[3, 2] + "\t|" + A7_1[3, 3] + "\t|" + A7_1[3, 4] + "\t|" + A7_1[3, 5] + "\t|" + A7_1[3, 6] + "\t||" + A7_1[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[4, 0] + "\t|" + A7_1[4, 1] + "\t|" + A7_1[4, 2] + "\t|" + A7_1[4, 3] + "\t|" + A7_1[4, 4] + "\t|" + A7_1[4, 5] + "\t|" + A7_1[4, 6] + "\t||" + A7_1[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[5, 0] + "\t|" + A7_1[5, 1] + "\t|" + A7_1[5, 2] + "\t|" + A7_1[5, 3] + "\t|" + A7_1[5, 4] + "\t|" + A7_1[5, 5] + "\t|" + A7_1[5, 6] + "\t||" + A7_1[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[6, 0] + "\t|" + A7_1[6, 1] + "\t|" + A7_1[6, 2] + "\t|" + A7_1[6, 3] + "\t|" + A7_1[6, 4] + "\t|" + A7_1[6, 5] + "\t|" + A7_1[6, 6] + "\t||" + A7_1[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 2 -------------");
|
|
|
+ double[,] A7_2 = new double[a, b];
|
|
|
+ A7_2[1, 0] = A7_1[1, 0] / A7_1[1, 1];
|
|
|
+ A7_2[1, 1] = A7_1[1, 1] / A7_1[1, 1];
|
|
|
+ A7_2[1, 2] = A7_1[1, 2] / A7_1[1, 1];
|
|
|
+ A7_2[1, 3] = A7_1[1, 3] / A7_1[1, 1];
|
|
|
+ A7_2[1, 4] = A7_1[1, 4] / A7_1[1, 1];
|
|
|
+ A7_2[1, 5] = A7_1[1, 5] / A7_1[1, 1];
|
|
|
+ A7_2[1, 6] = A7_1[1, 6] / A7_1[1, 1];
|
|
|
+ A7_2[1, 7] = A7_1[1, 7] / A7_1[1, 1];
|
|
|
+ A7_2[0, 0] = (A7_2[1, 0] * (-A7_1[0, 1])) + A7_1[0, 0];
|
|
|
+ A7_2[0, 1] = (A7_2[1, 1] * (-A7_1[0, 1])) + A7_1[0, 1];
|
|
|
+ A7_2[0, 2] = (A7_2[1, 2] * (-A7_1[0, 1])) + A7_1[0, 2];
|
|
|
+ A7_2[0, 3] = (A7_2[1, 3] * (-A7_1[0, 1])) + A7_1[0, 3];
|
|
|
+ A7_2[0, 4] = (A7_2[1, 4] * (-A7_1[0, 1])) + A7_1[0, 4];
|
|
|
+ A7_2[0, 5] = (A7_2[1, 5] * (-A7_1[0, 1])) + A7_1[0, 5];
|
|
|
+ A7_2[0, 6] = (A7_2[1, 6] * (-A7_1[0, 1])) + A7_1[0, 6];
|
|
|
+ A7_2[0, 7] = (A7_2[1, 7] * (-A7_1[0, 1])) + A7_1[0, 7];
|
|
|
+ A7_2[2, 0] = (A7_2[1, 0] * (-A7_1[2, 1])) + A7_1[2, 0];
|
|
|
+ A7_2[2, 1] = (A7_2[1, 1] * (-A7_1[2, 1])) + A7_1[2, 1];
|
|
|
+ A7_2[2, 2] = (A7_2[1, 2] * (-A7_1[2, 1])) + A7_1[2, 2];
|
|
|
+ A7_2[2, 3] = (A7_2[1, 3] * (-A7_1[2, 1])) + A7_1[2, 3];
|
|
|
+ A7_2[2, 4] = (A7_2[1, 4] * (-A7_1[2, 1])) + A7_1[2, 4];
|
|
|
+ A7_2[2, 5] = (A7_2[1, 5] * (-A7_1[2, 1])) + A7_1[2, 5];
|
|
|
+ A7_2[2, 6] = (A7_2[1, 6] * (-A7_1[2, 1])) + A7_1[2, 6];
|
|
|
+ A7_2[2, 7] = (A7_2[1, 7] * (-A7_1[2, 1])) + A7_1[2, 7];
|
|
|
+ A7_2[3, 0] = (A7_2[1, 0] * (-A7_1[3, 1])) + A7_1[3, 0];
|
|
|
+ A7_2[3, 1] = (A7_2[1, 1] * (-A7_1[3, 1])) + A7_1[3, 1];
|
|
|
+ A7_2[3, 2] = (A7_2[1, 2] * (-A7_1[3, 1])) + A7_1[3, 2];
|
|
|
+ A7_2[3, 3] = (A7_2[1, 3] * (-A7_1[3, 1])) + A7_1[3, 3];
|
|
|
+ A7_2[3, 4] = (A7_2[1, 4] * (-A7_1[3, 1])) + A7_1[3, 4];
|
|
|
+ A7_2[3, 5] = (A7_2[1, 5] * (-A7_1[3, 1])) + A7_1[3, 5];
|
|
|
+ A7_2[3, 6] = (A7_2[1, 6] * (-A7_1[3, 1])) + A7_1[3, 6];
|
|
|
+ A7_2[3, 7] = (A7_2[1, 7] * (-A7_1[3, 1])) + A7_1[3, 7];
|
|
|
+ A7_2[4, 0] = (A7_2[1, 0] * (-A7_1[4, 1])) + A7_1[4, 0];
|
|
|
+ A7_2[4, 1] = (A7_2[1, 1] * (-A7_1[4, 1])) + A7_1[4, 1];
|
|
|
+ A7_2[4, 2] = (A7_2[1, 2] * (-A7_1[4, 1])) + A7_1[4, 2];
|
|
|
+ A7_2[4, 3] = (A7_2[1, 3] * (-A7_1[4, 1])) + A7_1[4, 3];
|
|
|
+ A7_2[4, 4] = (A7_2[1, 4] * (-A7_1[4, 1])) + A7_1[4, 4];
|
|
|
+ A7_2[4, 5] = (A7_2[1, 5] * (-A7_1[4, 1])) + A7_1[4, 5];
|
|
|
+ A7_2[4, 6] = (A7_2[1, 6] * (-A7_1[4, 1])) + A7_1[4, 6];
|
|
|
+ A7_2[4, 7] = (A7_2[1, 7] * (-A7_1[4, 1])) + A7_1[4, 7];
|
|
|
+ A7_2[5, 0] = (A7_2[1, 0] * (-A7_1[5, 1])) + A7_1[5, 0];
|
|
|
+ A7_2[5, 1] = (A7_2[1, 1] * (-A7_1[5, 1])) + A7_1[5, 1];
|
|
|
+ A7_2[5, 2] = (A7_2[1, 2] * (-A7_1[5, 1])) + A7_1[5, 2];
|
|
|
+ A7_2[5, 3] = (A7_2[1, 3] * (-A7_1[5, 1])) + A7_1[5, 3];
|
|
|
+ A7_2[5, 4] = (A7_2[1, 4] * (-A7_1[5, 1])) + A7_1[5, 4];
|
|
|
+ A7_2[5, 5] = (A7_2[1, 5] * (-A7_1[5, 1])) + A7_1[5, 5];
|
|
|
+ A7_2[5, 6] = (A7_2[1, 6] * (-A7_1[5, 1])) + A7_1[5, 6];
|
|
|
+ A7_2[5, 7] = (A7_2[1, 7] * (-A7_1[5, 1])) + A7_1[5, 7];
|
|
|
+ A7_2[6, 0] = (A7_2[1, 0] * (-A7_1[6, 1])) + A7_1[6, 0];
|
|
|
+ A7_2[6, 1] = (A7_2[1, 1] * (-A7_1[6, 1])) + A7_1[6, 1];
|
|
|
+ A7_2[6, 2] = (A7_2[1, 2] * (-A7_1[6, 1])) + A7_1[6, 2];
|
|
|
+ A7_2[6, 3] = (A7_2[1, 3] * (-A7_1[6, 1])) + A7_1[6, 3];
|
|
|
+ A7_2[6, 4] = (A7_2[1, 4] * (-A7_1[6, 1])) + A7_1[6, 4];
|
|
|
+ A7_2[6, 5] = (A7_2[1, 5] * (-A7_1[6, 1])) + A7_1[6, 5];
|
|
|
+ A7_2[6, 6] = (A7_2[1, 6] * (-A7_1[6, 1])) + A7_1[6, 6];
|
|
|
+ A7_2[6, 7] = (A7_2[1, 7] * (-A7_1[6, 1])) + A7_1[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_2[0, 0] + "\t|" + A7_2[0, 1] + "\t|" + A7_2[0, 2] + "\t|" + A7_2[0, 3] + "\t|" + A7_2[0, 4] + "\t|" + A7_2[0, 5] + "\t|" + A7_2[0, 6] + "\t||" + A7_2[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[1, 0] + "\t|" + A7_2[1, 1] + "\t|" + A7_2[1, 2] + "\t|" + A7_2[1, 3] + "\t|" + A7_2[1, 4] + "\t|" + A7_2[1, 5] + "\t|" + A7_2[1, 6] + "\t||" + A7_2[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[2, 0] + "\t|" + A7_2[2, 1] + "\t|" + A7_2[2, 2] + "\t|" + A7_2[2, 3] + "\t|" + A7_2[2, 4] + "\t|" + A7_2[2, 5] + "\t|" + A7_2[2, 6] + "\t||" + A7_2[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[3, 0] + "\t|" + A7_2[3, 1] + "\t|" + A7_2[3, 2] + "\t|" + A7_2[3, 3] + "\t|" + A7_2[3, 4] + "\t|" + A7_2[3, 5] + "\t|" + A7_2[3, 6] + "\t||" + A7_2[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[4, 0] + "\t|" + A7_2[4, 1] + "\t|" + A7_2[4, 2] + "\t|" + A7_2[4, 3] + "\t|" + A7_2[4, 4] + "\t|" + A7_2[4, 5] + "\t|" + A7_2[4, 6] + "\t||" + A7_2[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[5, 0] + "\t|" + A7_2[5, 1] + "\t|" + A7_2[5, 2] + "\t|" + A7_2[5, 3] + "\t|" + A7_2[5, 4] + "\t|" + A7_2[5, 5] + "\t|" + A7_2[5, 6] + "\t||" + A7_2[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[6, 0] + "\t|" + A7_2[6, 1] + "\t|" + A7_2[6, 2] + "\t|" + A7_2[6, 3] + "\t|" + A7_2[6, 4] + "\t|" + A7_2[6, 5] + "\t|" + A7_2[6, 6] + "\t||" + A7_2[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 3 -------------");
|
|
|
+ double[,] A7_3 = new double[a, b];
|
|
|
+ A7_3[2, 0] = A7_2[2, 0] / A7_2[2, 2];
|
|
|
+ A7_3[2, 1] = A7_2[2, 1] / A7_2[2, 2];
|
|
|
+ A7_3[2, 2] = A7_2[2, 2] / A7_2[2, 2];
|
|
|
+ A7_3[2, 3] = A7_2[2, 3] / A7_2[2, 2];
|
|
|
+ A7_3[2, 4] = A7_2[2, 4] / A7_2[2, 2];
|
|
|
+ A7_3[2, 5] = A7_2[2, 5] / A7_2[2, 2];
|
|
|
+ A7_3[2, 6] = A7_2[2, 6] / A7_2[2, 2];
|
|
|
+ A7_3[2, 7] = A7_2[2, 7] / A7_2[2, 2];
|
|
|
+ A7_3[0, 0] = (A7_3[2, 0] * (-A7_2[0, 2])) + A7_2[0, 0];
|
|
|
+ A7_3[0, 1] = (A7_3[2, 1] * (-A7_2[0, 2])) + A7_2[0, 1];
|
|
|
+ A7_3[0, 2] = (A7_3[2, 2] * (-A7_2[0, 2])) + A7_2[0, 2];
|
|
|
+ A7_3[0, 3] = (A7_3[2, 3] * (-A7_2[0, 2])) + A7_2[0, 3];
|
|
|
+ A7_3[0, 4] = (A7_3[2, 4] * (-A7_2[0, 2])) + A7_2[0, 4];
|
|
|
+ A7_3[0, 5] = (A7_3[2, 5] * (-A7_2[0, 2])) + A7_2[0, 5];
|
|
|
+ A7_3[0, 6] = (A7_3[2, 6] * (-A7_2[0, 2])) + A7_2[0, 6];
|
|
|
+ A7_3[0, 7] = (A7_3[2, 7] * (-A7_2[0, 2])) + A7_2[0, 7];
|
|
|
+ A7_3[1, 0] = (A7_3[2, 0] * (-A7_2[1, 2])) + A7_2[1, 0];
|
|
|
+ A7_3[1, 1] = (A7_3[2, 1] * (-A7_2[1, 2])) + A7_2[1, 1];
|
|
|
+ A7_3[1, 2] = (A7_3[2, 2] * (-A7_2[1, 2])) + A7_2[1, 2];
|
|
|
+ A7_3[1, 3] = (A7_3[2, 3] * (-A7_2[1, 2])) + A7_2[1, 3];
|
|
|
+ A7_3[1, 4] = (A7_3[2, 4] * (-A7_2[1, 2])) + A7_2[1, 4];
|
|
|
+ A7_3[1, 5] = (A7_3[2, 5] * (-A7_2[1, 2])) + A7_2[1, 5];
|
|
|
+ A7_3[1, 6] = (A7_3[2, 6] * (-A7_2[1, 2])) + A7_2[1, 6];
|
|
|
+ A7_3[1, 7] = (A7_3[2, 7] * (-A7_2[1, 2])) + A7_2[1, 7];
|
|
|
+ A7_3[3, 0] = (A7_3[2, 0] * (-A7_2[3, 2])) + A7_2[3, 0];
|
|
|
+ A7_3[3, 1] = (A7_3[2, 1] * (-A7_2[3, 2])) + A7_2[3, 1];
|
|
|
+ A7_3[3, 2] = (A7_3[2, 2] * (-A7_2[3, 2])) + A7_2[3, 2];
|
|
|
+ A7_3[3, 3] = (A7_3[2, 3] * (-A7_2[3, 2])) + A7_2[3, 3];
|
|
|
+ A7_3[3, 4] = (A7_3[2, 4] * (-A7_2[3, 2])) + A7_2[3, 4];
|
|
|
+ A7_3[3, 5] = (A7_3[2, 5] * (-A7_2[3, 2])) + A7_2[3, 5];
|
|
|
+ A7_3[3, 6] = (A7_3[2, 6] * (-A7_2[3, 2])) + A7_2[3, 6];
|
|
|
+ A7_3[3, 7] = (A7_3[2, 7] * (-A7_2[3, 2])) + A7_2[3, 7];
|
|
|
+ A7_3[4, 0] = (A7_3[2, 0] * (-A7_2[4, 2])) + A7_2[4, 0];
|
|
|
+ A7_3[4, 1] = (A7_3[2, 1] * (-A7_2[4, 2])) + A7_2[4, 1];
|
|
|
+ A7_3[4, 2] = (A7_3[2, 2] * (-A7_2[4, 2])) + A7_2[4, 2];
|
|
|
+ A7_3[4, 3] = (A7_3[2, 3] * (-A7_2[4, 2])) + A7_2[4, 3];
|
|
|
+ A7_3[4, 4] = (A7_3[2, 4] * (-A7_2[4, 2])) + A7_2[4, 4];
|
|
|
+ A7_3[4, 5] = (A7_3[2, 5] * (-A7_2[4, 2])) + A7_2[4, 5];
|
|
|
+ A7_3[4, 6] = (A7_3[2, 6] * (-A7_2[4, 2])) + A7_2[4, 6];
|
|
|
+ A7_3[4, 7] = (A7_3[2, 7] * (-A7_2[4, 2])) + A7_2[4, 7];
|
|
|
+ A7_3[5, 0] = (A7_3[2, 0] * (-A7_2[5, 2])) + A7_2[5, 0];
|
|
|
+ A7_3[5, 1] = (A7_3[2, 1] * (-A7_2[5, 2])) + A7_2[5, 1];
|
|
|
+ A7_3[5, 2] = (A7_3[2, 2] * (-A7_2[5, 2])) + A7_2[5, 2];
|
|
|
+ A7_3[5, 3] = (A7_3[2, 3] * (-A7_2[5, 2])) + A7_2[5, 3];
|
|
|
+ A7_3[5, 4] = (A7_3[2, 4] * (-A7_2[5, 2])) + A7_2[5, 4];
|
|
|
+ A7_3[5, 5] = (A7_3[2, 5] * (-A7_2[5, 2])) + A7_2[5, 5];
|
|
|
+ A7_3[5, 6] = (A7_3[2, 6] * (-A7_2[5, 2])) + A7_2[5, 6];
|
|
|
+ A7_3[5, 7] = (A7_3[2, 7] * (-A7_2[5, 2])) + A7_2[5, 7];
|
|
|
+ A7_3[6, 0] = (A7_3[2, 0] * (-A7_2[6, 2])) + A7_2[6, 0];
|
|
|
+ A7_3[6, 1] = (A7_3[2, 1] * (-A7_2[6, 2])) + A7_2[6, 1];
|
|
|
+ A7_3[6, 2] = (A7_3[2, 2] * (-A7_2[6, 2])) + A7_2[6, 2];
|
|
|
+ A7_3[6, 3] = (A7_3[2, 3] * (-A7_2[6, 2])) + A7_2[6, 3];
|
|
|
+ A7_3[6, 4] = (A7_3[2, 4] * (-A7_2[6, 2])) + A7_2[6, 4];
|
|
|
+ A7_3[6, 5] = (A7_3[2, 5] * (-A7_2[6, 2])) + A7_2[6, 5];
|
|
|
+ A7_3[6, 6] = (A7_3[2, 6] * (-A7_2[6, 2])) + A7_2[6, 6];
|
|
|
+ A7_3[6, 7] = (A7_3[2, 7] * (-A7_2[6, 2])) + A7_2[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_3[0, 0] + "\t|" + A7_3[0, 1] + "\t|" + A7_3[0, 2] + "\t|" + A7_3[0, 3] + "\t|" + A7_3[0, 4] + "\t|" + A7_3[0, 5] + "\t|" + A7_3[0, 6] + "\t||" + A7_3[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[1, 0] + "\t|" + A7_3[1, 1] + "\t|" + A7_3[1, 2] + "\t|" + A7_3[1, 3] + "\t|" + A7_3[1, 4] + "\t|" + A7_3[1, 5] + "\t|" + A7_3[1, 6] + "\t||" + A7_3[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[2, 0] + "\t|" + A7_3[2, 1] + "\t|" + A7_3[2, 2] + "\t|" + A7_3[2, 3] + "\t|" + A7_3[2, 4] + "\t|" + A7_3[2, 5] + "\t|" + A7_3[2, 6] + "\t||" + A7_3[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[3, 0] + "\t|" + A7_3[3, 1] + "\t|" + A7_3[3, 2] + "\t|" + A7_3[3, 3] + "\t|" + A7_3[3, 4] + "\t|" + A7_3[3, 5] + "\t|" + A7_3[3, 6] + "\t||" + A7_3[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[4, 0] + "\t|" + A7_3[4, 1] + "\t|" + A7_3[4, 2] + "\t|" + A7_3[4, 3] + "\t|" + A7_3[4, 4] + "\t|" + A7_3[4, 5] + "\t|" + A7_3[4, 6] + "\t||" + A7_3[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[5, 0] + "\t|" + A7_3[5, 1] + "\t|" + A7_3[5, 2] + "\t|" + A7_3[5, 3] + "\t|" + A7_3[5, 4] + "\t|" + A7_3[5, 5] + "\t|" + A7_3[5, 6] + "\t||" + A7_3[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[6, 0] + "\t|" + A7_3[6, 1] + "\t|" + A7_3[6, 2] + "\t|" + A7_3[6, 3] + "\t|" + A7_3[6, 4] + "\t|" + A7_3[6, 5] + "\t|" + A7_3[6, 6] + "\t||" + A7_3[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 4 -------------");
|
|
|
+ double[,] A7_4 = new double[a, b];
|
|
|
+ A7_4[3, 0] = A7_3[3, 0] / A7_3[3, 3];
|
|
|
+ A7_4[3, 1] = A7_3[3, 1] / A7_3[3, 3];
|
|
|
+ A7_4[3, 2] = A7_3[3, 2] / A7_3[3, 3];
|
|
|
+ A7_4[3, 3] = A7_3[3, 3] / A7_3[3, 3];
|
|
|
+ A7_4[3, 4] = A7_3[3, 4] / A7_3[3, 3];
|
|
|
+ A7_4[3, 5] = A7_3[3, 5] / A7_3[3, 3];
|
|
|
+ A7_4[3, 6] = A7_3[3, 6] / A7_3[3, 3];
|
|
|
+ A7_4[3, 7] = A7_3[3, 7] / A7_3[3, 3];
|
|
|
+ A7_4[0, 0] = (A7_4[3, 0] * (-A7_3[0, 3])) + A7_3[0, 0];
|
|
|
+ A7_4[0, 1] = (A7_4[3, 1] * (-A7_3[0, 3])) + A7_3[0, 1];
|
|
|
+ A7_4[0, 2] = (A7_4[3, 2] * (-A7_3[0, 3])) + A7_3[0, 2];
|
|
|
+ A7_4[0, 3] = (A7_4[3, 3] * (-A7_3[0, 3])) + A7_3[0, 3];
|
|
|
+ A7_4[0, 4] = (A7_4[3, 4] * (-A7_3[0, 3])) + A7_3[0, 4];
|
|
|
+ A7_4[0, 5] = (A7_4[3, 5] * (-A7_3[0, 3])) + A7_3[0, 5];
|
|
|
+ A7_4[0, 6] = (A7_4[3, 6] * (-A7_3[0, 3])) + A7_3[0, 6];
|
|
|
+ A7_4[0, 7] = (A7_4[3, 7] * (-A7_3[0, 3])) + A7_3[0, 7];
|
|
|
+ A7_4[1, 0] = (A7_4[3, 0] * (-A7_3[1, 3])) + A7_3[1, 0];
|
|
|
+ A7_4[1, 1] = (A7_4[3, 1] * (-A7_3[1, 3])) + A7_3[1, 1];
|
|
|
+ A7_4[1, 2] = (A7_4[3, 2] * (-A7_3[1, 3])) + A7_3[1, 2];
|
|
|
+ A7_4[1, 3] = (A7_4[3, 3] * (-A7_3[1, 3])) + A7_3[1, 3];
|
|
|
+ A7_4[1, 4] = (A7_4[3, 4] * (-A7_3[1, 3])) + A7_3[1, 4];
|
|
|
+ A7_4[1, 5] = (A7_4[3, 5] * (-A7_3[1, 3])) + A7_3[1, 5];
|
|
|
+ A7_4[1, 6] = (A7_4[3, 6] * (-A7_3[1, 3])) + A7_3[1, 6];
|
|
|
+ A7_4[1, 7] = (A7_4[3, 7] * (-A7_3[1, 3])) + A7_3[1, 7];
|
|
|
+ A7_4[2, 0] = (A7_4[3, 0] * (-A7_3[2, 3])) + A7_3[2, 0];
|
|
|
+ A7_4[2, 1] = (A7_4[3, 1] * (-A7_3[2, 3])) + A7_3[2, 1];
|
|
|
+ A7_4[2, 2] = (A7_4[3, 2] * (-A7_3[2, 3])) + A7_3[2, 2];
|
|
|
+ A7_4[2, 3] = (A7_4[3, 3] * (-A7_3[2, 3])) + A7_3[2, 3];
|
|
|
+ A7_4[2, 4] = (A7_4[3, 4] * (-A7_3[2, 3])) + A7_3[2, 4];
|
|
|
+ A7_4[2, 5] = (A7_4[3, 5] * (-A7_3[2, 3])) + A7_3[2, 5];
|
|
|
+ A7_4[2, 6] = (A7_4[3, 6] * (-A7_3[2, 3])) + A7_3[2, 6];
|
|
|
+ A7_4[2, 7] = (A7_4[3, 7] * (-A7_3[2, 3])) + A7_3[2, 7];
|
|
|
+ A7_4[4, 0] = (A7_4[3, 0] * (-A7_3[4, 3])) + A7_3[4, 0];
|
|
|
+ A7_4[4, 1] = (A7_4[3, 1] * (-A7_3[4, 3])) + A7_3[4, 1];
|
|
|
+ A7_4[4, 2] = (A7_4[3, 2] * (-A7_3[4, 3])) + A7_3[4, 2];
|
|
|
+ A7_4[4, 3] = (A7_4[3, 3] * (-A7_3[4, 3])) + A7_3[4, 3];
|
|
|
+ A7_4[4, 4] = (A7_4[3, 4] * (-A7_3[4, 3])) + A7_3[4, 4];
|
|
|
+ A7_4[4, 5] = (A7_4[3, 5] * (-A7_3[4, 3])) + A7_3[4, 5];
|
|
|
+ A7_4[4, 6] = (A7_4[3, 6] * (-A7_3[4, 3])) + A7_3[4, 6];
|
|
|
+ A7_4[4, 7] = (A7_4[3, 7] * (-A7_3[4, 3])) + A7_3[4, 7];
|
|
|
+ A7_4[5, 0] = (A7_4[3, 0] * (-A7_3[5, 3])) + A7_3[5, 0];
|
|
|
+ A7_4[5, 1] = (A7_4[3, 1] * (-A7_3[5, 3])) + A7_3[5, 1];
|
|
|
+ A7_4[5, 2] = (A7_4[3, 2] * (-A7_3[5, 3])) + A7_3[5, 2];
|
|
|
+ A7_4[5, 3] = (A7_4[3, 3] * (-A7_3[5, 3])) + A7_3[5, 3];
|
|
|
+ A7_4[5, 4] = (A7_4[3, 4] * (-A7_3[5, 3])) + A7_3[5, 4];
|
|
|
+ A7_4[5, 5] = (A7_4[3, 5] * (-A7_3[5, 3])) + A7_3[5, 5];
|
|
|
+ A7_4[5, 6] = (A7_4[3, 6] * (-A7_3[5, 3])) + A7_3[5, 6];
|
|
|
+ A7_4[5, 7] = (A7_4[3, 7] * (-A7_3[5, 3])) + A7_3[5, 7];
|
|
|
+ A7_4[6, 0] = (A7_4[3, 0] * (-A7_3[6, 3])) + A7_3[6, 0];
|
|
|
+ A7_4[6, 1] = (A7_4[3, 1] * (-A7_3[6, 3])) + A7_3[6, 1];
|
|
|
+ A7_4[6, 2] = (A7_4[3, 2] * (-A7_3[6, 3])) + A7_3[6, 2];
|
|
|
+ A7_4[6, 3] = (A7_4[3, 3] * (-A7_3[6, 3])) + A7_3[6, 3];
|
|
|
+ A7_4[6, 4] = (A7_4[3, 4] * (-A7_3[6, 3])) + A7_3[6, 4];
|
|
|
+ A7_4[6, 5] = (A7_4[3, 5] * (-A7_3[6, 3])) + A7_3[6, 5];
|
|
|
+ A7_4[6, 6] = (A7_4[3, 6] * (-A7_3[6, 3])) + A7_3[6, 6];
|
|
|
+ A7_4[6, 7] = (A7_4[3, 7] * (-A7_3[6, 3])) + A7_3[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_4[0, 0] + "\t|" + A7_4[0, 1] + "\t|" + A7_4[0, 2] + "\t|" + A7_4[0, 3] + "\t|" + A7_4[0, 4] + "\t|" + A7_4[0, 5] + "\t|" + A7_4[0, 6] + "\t||" + A7_4[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[1, 0] + "\t|" + A7_4[1, 1] + "\t|" + A7_4[1, 2] + "\t|" + A7_4[1, 3] + "\t|" + A7_4[1, 4] + "\t|" + A7_4[1, 5] + "\t|" + A7_4[1, 6] + "\t||" + A7_4[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[2, 0] + "\t|" + A7_4[2, 1] + "\t|" + A7_4[2, 2] + "\t|" + A7_4[2, 3] + "\t|" + A7_4[2, 4] + "\t|" + A7_4[2, 5] + "\t|" + A7_4[2, 6] + "\t||" + A7_4[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[3, 0] + "\t|" + A7_4[3, 1] + "\t|" + A7_4[3, 2] + "\t|" + A7_4[3, 3] + "\t|" + A7_4[3, 4] + "\t|" + A7_4[3, 5] + "\t|" + A7_4[3, 6] + "\t||" + A7_4[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[4, 0] + "\t|" + A7_4[4, 1] + "\t|" + A7_4[4, 2] + "\t|" + A7_4[4, 3] + "\t|" + A7_4[4, 4] + "\t|" + A7_4[4, 5] + "\t|" + A7_4[4, 6] + "\t||" + A7_4[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[5, 0] + "\t|" + A7_4[5, 1] + "\t|" + A7_4[5, 2] + "\t|" + A7_4[5, 3] + "\t|" + A7_4[5, 4] + "\t|" + A7_4[5, 5] + "\t|" + A7_4[5, 6] + "\t||" + A7_4[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[6, 0] + "\t|" + A7_4[6, 1] + "\t|" + A7_4[6, 2] + "\t|" + A7_4[6, 3] + "\t|" + A7_4[6, 4] + "\t|" + A7_4[6, 5] + "\t|" + A7_4[6, 6] + "\t||" + A7_4[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 5 -------------");
|
|
|
+ double[,] A7_5 = new double[a, b];
|
|
|
+ A7_5[4, 0] = A7_4[4, 0] / A7_4[4, 4];
|
|
|
+ A7_5[4, 1] = A7_4[4, 1] / A7_4[4, 4];
|
|
|
+ A7_5[4, 2] = A7_4[4, 2] / A7_4[4, 4];
|
|
|
+ A7_5[4, 3] = A7_4[4, 3] / A7_4[4, 4];
|
|
|
+ A7_5[4, 4] = A7_4[4, 4] / A7_4[4, 4];
|
|
|
+ A7_5[4, 5] = A7_4[4, 5] / A7_4[4, 4];
|
|
|
+ A7_5[4, 6] = A7_4[4, 6] / A7_4[4, 4];
|
|
|
+ A7_5[4, 7] = A7_4[4, 7] / A7_4[4, 4];
|
|
|
+ A7_5[0, 0] = (A7_5[4, 0] * (-A7_4[0, 4])) + A7_4[0, 0];
|
|
|
+ A7_5[0, 1] = (A7_5[4, 1] * (-A7_4[0, 4])) + A7_4[0, 1];
|
|
|
+ A7_5[0, 2] = (A7_5[4, 2] * (-A7_4[0, 4])) + A7_4[0, 2];
|
|
|
+ A7_5[0, 3] = (A7_5[4, 3] * (-A7_4[0, 4])) + A7_4[0, 3];
|
|
|
+ A7_5[0, 4] = (A7_5[4, 4] * (-A7_4[0, 4])) + A7_4[0, 4];
|
|
|
+ A7_5[0, 5] = (A7_5[4, 5] * (-A7_4[0, 4])) + A7_4[0, 5];
|
|
|
+ A7_5[0, 6] = (A7_5[4, 6] * (-A7_4[0, 4])) + A7_4[0, 6];
|
|
|
+ A7_5[0, 7] = (A7_5[4, 7] * (-A7_4[0, 4])) + A7_4[0, 7];
|
|
|
+ A7_5[1, 0] = (A7_5[4, 0] * (-A7_4[1, 4])) + A7_4[1, 0];
|
|
|
+ A7_5[1, 1] = (A7_5[4, 1] * (-A7_4[1, 4])) + A7_4[1, 1];
|
|
|
+ A7_5[1, 2] = (A7_5[4, 2] * (-A7_4[1, 4])) + A7_4[1, 2];
|
|
|
+ A7_5[1, 3] = (A7_5[4, 3] * (-A7_4[1, 4])) + A7_4[1, 3];
|
|
|
+ A7_5[1, 4] = (A7_5[4, 4] * (-A7_4[1, 4])) + A7_4[1, 4];
|
|
|
+ A7_5[1, 5] = (A7_5[4, 5] * (-A7_4[1, 4])) + A7_4[1, 5];
|
|
|
+ A7_5[1, 6] = (A7_5[4, 6] * (-A7_4[1, 4])) + A7_4[1, 6];
|
|
|
+ A7_5[1, 7] = (A7_5[4, 7] * (-A7_4[1, 4])) + A7_4[1, 7];
|
|
|
+ A7_5[2, 0] = (A7_5[4, 0] * (-A7_4[2, 4])) + A7_4[2, 0];
|
|
|
+ A7_5[2, 1] = (A7_5[4, 1] * (-A7_4[2, 4])) + A7_4[2, 1];
|
|
|
+ A7_5[2, 2] = (A7_5[4, 2] * (-A7_4[2, 4])) + A7_4[2, 2];
|
|
|
+ A7_5[2, 3] = (A7_5[4, 3] * (-A7_4[2, 4])) + A7_4[2, 3];
|
|
|
+ A7_5[2, 4] = (A7_5[4, 4] * (-A7_4[2, 4])) + A7_4[2, 4];
|
|
|
+ A7_5[2, 5] = (A7_5[4, 5] * (-A7_4[2, 4])) + A7_4[2, 5];
|
|
|
+ A7_5[2, 6] = (A7_5[4, 6] * (-A7_4[2, 4])) + A7_4[2, 6];
|
|
|
+ A7_5[2, 7] = (A7_5[4, 7] * (-A7_4[2, 4])) + A7_4[2, 7];
|
|
|
+ A7_5[3, 0] = (A7_5[4, 0] * (-A7_4[3, 4])) + A7_4[3, 0];
|
|
|
+ A7_5[3, 1] = (A7_5[4, 1] * (-A7_4[3, 4])) + A7_4[3, 1];
|
|
|
+ A7_5[3, 2] = (A7_5[4, 2] * (-A7_4[3, 4])) + A7_4[3, 2];
|
|
|
+ A7_5[3, 3] = (A7_5[4, 3] * (-A7_4[3, 4])) + A7_4[3, 3];
|
|
|
+ A7_5[3, 4] = (A7_5[4, 4] * (-A7_4[3, 4])) + A7_4[3, 4];
|
|
|
+ A7_5[3, 5] = (A7_5[4, 5] * (-A7_4[3, 4])) + A7_4[3, 5];
|
|
|
+ A7_5[3, 6] = (A7_5[4, 6] * (-A7_4[3, 4])) + A7_4[3, 6];
|
|
|
+ A7_5[3, 7] = (A7_5[4, 7] * (-A7_4[3, 4])) + A7_4[3, 7];
|
|
|
+ A7_5[5, 0] = (A7_5[4, 0] * (-A7_4[5, 4])) + A7_4[5, 0];
|
|
|
+ A7_5[5, 1] = (A7_5[4, 1] * (-A7_4[5, 4])) + A7_4[5, 1];
|
|
|
+ A7_5[5, 2] = (A7_5[4, 2] * (-A7_4[5, 4])) + A7_4[5, 2];
|
|
|
+ A7_5[5, 3] = (A7_5[4, 3] * (-A7_4[5, 4])) + A7_4[5, 3];
|
|
|
+ A7_5[5, 4] = (A7_5[4, 4] * (-A7_4[5, 4])) + A7_4[5, 4];
|
|
|
+ A7_5[5, 5] = (A7_5[4, 5] * (-A7_4[5, 4])) + A7_4[5, 5];
|
|
|
+ A7_5[5, 6] = (A7_5[4, 6] * (-A7_4[5, 4])) + A7_4[5, 6];
|
|
|
+ A7_5[5, 7] = (A7_5[4, 7] * (-A7_4[5, 4])) + A7_4[5, 7];
|
|
|
+ A7_5[6, 0] = (A7_5[4, 0] * (-A7_4[6, 4])) + A7_4[6, 0];
|
|
|
+ A7_5[6, 1] = (A7_5[4, 1] * (-A7_4[6, 4])) + A7_4[6, 1];
|
|
|
+ A7_5[6, 2] = (A7_5[4, 2] * (-A7_4[6, 4])) + A7_4[6, 2];
|
|
|
+ A7_5[6, 3] = (A7_5[4, 3] * (-A7_4[6, 4])) + A7_4[6, 3];
|
|
|
+ A7_5[6, 4] = (A7_5[4, 4] * (-A7_4[6, 4])) + A7_4[6, 4];
|
|
|
+ A7_5[6, 5] = (A7_5[4, 5] * (-A7_4[6, 4])) + A7_4[6, 5];
|
|
|
+ A7_5[6, 6] = (A7_5[4, 6] * (-A7_4[6, 4])) + A7_4[6, 6];
|
|
|
+ A7_5[6, 7] = (A7_5[4, 7] * (-A7_4[6, 4])) + A7_4[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_5[0, 0] + "\t|" + A7_5[0, 1] + "\t|" + A7_5[0, 2] + "\t|" + A7_5[0, 3] + "\t|" + A7_5[0, 4] + "\t|" + A7_5[0, 5] + "\t|" + A7_5[0, 6] + "\t||" + A7_5[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[1, 0] + "\t|" + A7_5[1, 1] + "\t|" + A7_5[1, 2] + "\t|" + A7_5[1, 3] + "\t|" + A7_5[1, 4] + "\t|" + A7_5[1, 5] + "\t|" + A7_5[1, 6] + "\t||" + A7_5[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[2, 0] + "\t|" + A7_5[2, 1] + "\t|" + A7_5[2, 2] + "\t|" + A7_5[2, 3] + "\t|" + A7_5[2, 4] + "\t|" + A7_5[2, 5] + "\t|" + A7_5[2, 6] + "\t||" + A7_5[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[3, 0] + "\t|" + A7_5[3, 1] + "\t|" + A7_5[3, 2] + "\t|" + A7_5[3, 3] + "\t|" + A7_5[3, 4] + "\t|" + A7_5[3, 5] + "\t|" + A7_5[3, 6] + "\t||" + A7_5[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[4, 0] + "\t|" + A7_5[4, 1] + "\t|" + A7_5[4, 2] + "\t|" + A7_5[4, 3] + "\t|" + A7_5[4, 4] + "\t|" + A7_5[4, 5] + "\t|" + A7_5[4, 6] + "\t||" + A7_5[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[5, 0] + "\t|" + A7_5[5, 1] + "\t|" + A7_5[5, 2] + "\t|" + A7_5[5, 3] + "\t|" + A7_5[5, 4] + "\t|" + A7_5[5, 5] + "\t|" + A7_5[5, 6] + "\t||" + A7_5[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[6, 0] + "\t|" + A7_5[6, 1] + "\t|" + A7_5[6, 2] + "\t|" + A7_5[6, 3] + "\t|" + A7_5[6, 4] + "\t|" + A7_5[6, 5] + "\t|" + A7_5[6, 6] + "\t||" + A7_5[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 6 -------------");
|
|
|
+ double[,] A7_6 = new double[a, b];
|
|
|
+ A7_6[5, 0] = A7_5[5, 0] / A7_5[5, 5];
|
|
|
+ A7_6[5, 1] = A7_5[5, 1] / A7_5[5, 5];
|
|
|
+ A7_6[5, 2] = A7_5[5, 2] / A7_5[5, 5];
|
|
|
+ A7_6[5, 3] = A7_5[5, 3] / A7_5[5, 5];
|
|
|
+ A7_6[5, 4] = A7_5[5, 4] / A7_5[5, 5];
|
|
|
+ A7_6[5, 5] = A7_5[5, 5] / A7_5[5, 5];
|
|
|
+ A7_6[5, 6] = A7_5[5, 6] / A7_5[5, 5];
|
|
|
+ A7_6[5, 7] = A7_5[5, 7] / A7_5[5, 5];
|
|
|
+ A7_6[0, 0] = (A7_6[5, 0] * (-A7_5[0, 5])) + A7_5[0, 0];
|
|
|
+ A7_6[0, 1] = (A7_6[5, 1] * (-A7_5[0, 5])) + A7_5[0, 1];
|
|
|
+ A7_6[0, 2] = (A7_6[5, 2] * (-A7_5[0, 5])) + A7_5[0, 2];
|
|
|
+ A7_6[0, 3] = (A7_6[5, 3] * (-A7_5[0, 5])) + A7_5[0, 3];
|
|
|
+ A7_6[0, 4] = (A7_6[5, 4] * (-A7_5[0, 5])) + A7_5[0, 4];
|
|
|
+ A7_6[0, 5] = (A7_6[5, 5] * (-A7_5[0, 5])) + A7_5[0, 5];
|
|
|
+ A7_6[0, 6] = (A7_6[5, 6] * (-A7_5[0, 5])) + A7_5[0, 6];
|
|
|
+ A7_6[0, 7] = (A7_6[5, 7] * (-A7_5[0, 5])) + A7_5[0, 7];
|
|
|
+ A7_6[1, 0] = (A7_6[5, 0] * (-A7_5[1, 5])) + A7_5[1, 0];
|
|
|
+ A7_6[1, 1] = (A7_6[5, 1] * (-A7_5[1, 5])) + A7_5[1, 1];
|
|
|
+ A7_6[1, 2] = (A7_6[5, 2] * (-A7_5[1, 5])) + A7_5[1, 2];
|
|
|
+ A7_6[1, 3] = (A7_6[5, 3] * (-A7_5[1, 5])) + A7_5[1, 3];
|
|
|
+ A7_6[1, 4] = (A7_6[5, 4] * (-A7_5[1, 5])) + A7_5[1, 4];
|
|
|
+ A7_6[1, 5] = (A7_6[5, 5] * (-A7_5[1, 5])) + A7_5[1, 5];
|
|
|
+ A7_6[1, 6] = (A7_6[5, 6] * (-A7_5[1, 5])) + A7_5[1, 6];
|
|
|
+ A7_6[1, 7] = (A7_6[5, 7] * (-A7_5[1, 5])) + A7_5[1, 7];
|
|
|
+ A7_6[2, 0] = (A7_6[5, 0] * (-A7_5[2, 5])) + A7_5[2, 0];
|
|
|
+ A7_6[2, 1] = (A7_6[5, 1] * (-A7_5[2, 5])) + A7_5[2, 1];
|
|
|
+ A7_6[2, 2] = (A7_6[5, 2] * (-A7_5[2, 5])) + A7_5[2, 2];
|
|
|
+ A7_6[2, 3] = (A7_6[5, 3] * (-A7_5[2, 5])) + A7_5[2, 3];
|
|
|
+ A7_6[2, 4] = (A7_6[5, 4] * (-A7_5[2, 5])) + A7_5[2, 4];
|
|
|
+ A7_6[2, 5] = (A7_6[5, 5] * (-A7_5[2, 5])) + A7_5[2, 5];
|
|
|
+ A7_6[2, 6] = (A7_6[5, 6] * (-A7_5[2, 5])) + A7_5[2, 6];
|
|
|
+ A7_6[2, 7] = (A7_6[5, 7] * (-A7_5[2, 5])) + A7_5[2, 7];
|
|
|
+ A7_6[3, 0] = (A7_6[5, 0] * (-A7_5[3, 5])) + A7_5[3, 0];
|
|
|
+ A7_6[3, 1] = (A7_6[5, 1] * (-A7_5[3, 5])) + A7_5[3, 1];
|
|
|
+ A7_6[3, 2] = (A7_6[5, 2] * (-A7_5[3, 5])) + A7_5[3, 2];
|
|
|
+ A7_6[3, 3] = (A7_6[5, 3] * (-A7_5[3, 5])) + A7_5[3, 3];
|
|
|
+ A7_6[3, 4] = (A7_6[5, 4] * (-A7_5[3, 5])) + A7_5[3, 4];
|
|
|
+ A7_6[3, 5] = (A7_6[5, 5] * (-A7_5[3, 5])) + A7_5[3, 5];
|
|
|
+ A7_6[3, 6] = (A7_6[5, 6] * (-A7_5[3, 5])) + A7_5[3, 6];
|
|
|
+ A7_6[3, 7] = (A7_6[5, 7] * (-A7_5[3, 5])) + A7_5[3, 7];
|
|
|
+ A7_6[4, 0] = (A7_6[5, 0] * (-A7_5[4, 5])) + A7_5[4, 0];
|
|
|
+ A7_6[4, 1] = (A7_6[5, 1] * (-A7_5[4, 5])) + A7_5[4, 1];
|
|
|
+ A7_6[4, 2] = (A7_6[5, 2] * (-A7_5[4, 5])) + A7_5[4, 2];
|
|
|
+ A7_6[4, 3] = (A7_6[5, 3] * (-A7_5[4, 5])) + A7_5[4, 3];
|
|
|
+ A7_6[4, 4] = (A7_6[5, 4] * (-A7_5[4, 5])) + A7_5[4, 4];
|
|
|
+ A7_6[4, 5] = (A7_6[5, 5] * (-A7_5[4, 5])) + A7_5[4, 5];
|
|
|
+ A7_6[4, 6] = (A7_6[5, 6] * (-A7_5[4, 5])) + A7_5[4, 6];
|
|
|
+ A7_6[4, 7] = (A7_6[5, 7] * (-A7_5[4, 5])) + A7_5[4, 7];
|
|
|
+ A7_6[6, 0] = (A7_6[5, 0] * (-A7_5[6, 5])) + A7_5[6, 0];
|
|
|
+ A7_6[6, 1] = (A7_6[5, 1] * (-A7_5[6, 5])) + A7_5[6, 1];
|
|
|
+ A7_6[6, 2] = (A7_6[5, 2] * (-A7_5[6, 5])) + A7_5[6, 2];
|
|
|
+ A7_6[6, 3] = (A7_6[5, 3] * (-A7_5[6, 5])) + A7_5[6, 3];
|
|
|
+ A7_6[6, 4] = (A7_6[5, 4] * (-A7_5[6, 5])) + A7_5[6, 4];
|
|
|
+ A7_6[6, 5] = (A7_6[5, 5] * (-A7_5[6, 5])) + A7_5[6, 5];
|
|
|
+ A7_6[6, 6] = (A7_6[5, 6] * (-A7_5[6, 5])) + A7_5[6, 6];
|
|
|
+ A7_6[6, 7] = (A7_6[5, 7] * (-A7_5[6, 5])) + A7_5[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_6[0, 0] + "\t|" + A7_6[0, 1] + "\t|" + A7_6[0, 2] + "\t|" + A7_6[0, 3] + "\t|" + A7_6[0, 4] + "\t|" + A7_6[0, 5] + "\t|" + A7_6[0, 6] + "\t||" + A7_6[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[1, 0] + "\t|" + A7_6[1, 1] + "\t|" + A7_6[1, 2] + "\t|" + A7_6[1, 3] + "\t|" + A7_6[1, 4] + "\t|" + A7_6[1, 5] + "\t|" + A7_6[1, 6] + "\t||" + A7_6[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[2, 0] + "\t|" + A7_6[2, 1] + "\t|" + A7_6[2, 2] + "\t|" + A7_6[2, 3] + "\t|" + A7_6[2, 4] + "\t|" + A7_6[2, 5] + "\t|" + A7_6[2, 6] + "\t||" + A7_6[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[3, 0] + "\t|" + A7_6[3, 1] + "\t|" + A7_6[3, 2] + "\t|" + A7_6[3, 3] + "\t|" + A7_6[3, 4] + "\t|" + A7_6[3, 5] + "\t|" + A7_6[3, 6] + "\t||" + A7_6[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[4, 0] + "\t|" + A7_6[4, 1] + "\t|" + A7_6[4, 2] + "\t|" + A7_6[4, 3] + "\t|" + A7_6[4, 4] + "\t|" + A7_6[4, 5] + "\t|" + A7_6[4, 6] + "\t||" + A7_6[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[5, 0] + "\t|" + A7_6[5, 1] + "\t|" + A7_6[5, 2] + "\t|" + A7_6[5, 3] + "\t|" + A7_6[5, 4] + "\t|" + A7_6[5, 5] + "\t|" + A7_6[5, 6] + "\t||" + A7_6[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[6, 0] + "\t|" + A7_6[6, 1] + "\t|" + A7_6[6, 2] + "\t|" + A7_6[6, 3] + "\t|" + A7_6[6, 4] + "\t|" + A7_6[6, 5] + "\t|" + A7_6[6, 6] + "\t||" + A7_6[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 7 -------------");
|
|
|
+ double[,] A7_7 = new double[a, b];
|
|
|
+ A7_7[6, 0] = A7_6[6, 0] / A7_6[6, 6];
|
|
|
+ A7_7[6, 1] = A7_6[6, 1] / A7_6[6, 6];
|
|
|
+ A7_7[6, 2] = A7_6[6, 2] / A7_6[6, 6];
|
|
|
+ A7_7[6, 3] = A7_6[6, 3] / A7_6[6, 6];
|
|
|
+ A7_7[6, 4] = A7_6[6, 4] / A7_6[6, 6];
|
|
|
+ A7_7[6, 5] = A7_6[6, 5] / A7_6[6, 6];
|
|
|
+ A7_7[6, 6] = A7_6[6, 6] / A7_6[6, 6];
|
|
|
+ A7_7[6, 7] = A7_6[6, 7] / A7_6[6, 6];
|
|
|
+ A7_7[0, 0] = (A7_7[6, 0] * (-A7_6[0, 6])) + A7_6[0, 0];
|
|
|
+ A7_7[0, 1] = (A7_7[6, 1] * (-A7_6[0, 6])) + A7_6[0, 1];
|
|
|
+ A7_7[0, 2] = (A7_7[6, 2] * (-A7_6[0, 6])) + A7_6[0, 2];
|
|
|
+ A7_7[0, 3] = (A7_7[6, 3] * (-A7_6[0, 6])) + A7_6[0, 3];
|
|
|
+ A7_7[0, 4] = (A7_7[6, 4] * (-A7_6[0, 6])) + A7_6[0, 4];
|
|
|
+ A7_7[0, 5] = (A7_7[6, 5] * (-A7_6[0, 6])) + A7_6[0, 5];
|
|
|
+ A7_7[0, 6] = (A7_7[6, 6] * (-A7_6[0, 6])) + A7_6[0, 6];
|
|
|
+ A7_7[0, 7] = (A7_7[6, 7] * (-A7_6[0, 6])) + A7_6[0, 7];
|
|
|
+ A7_7[1, 0] = (A7_7[6, 0] * (-A7_6[1, 6])) + A7_6[1, 0];
|
|
|
+ A7_7[1, 1] = (A7_7[6, 1] * (-A7_6[1, 6])) + A7_6[1, 1];
|
|
|
+ A7_7[1, 2] = (A7_7[6, 2] * (-A7_6[1, 6])) + A7_6[1, 2];
|
|
|
+ A7_7[1, 3] = (A7_7[6, 3] * (-A7_6[1, 6])) + A7_6[1, 3];
|
|
|
+ A7_7[1, 4] = (A7_7[6, 4] * (-A7_6[1, 6])) + A7_6[1, 4];
|
|
|
+ A7_7[1, 5] = (A7_7[6, 5] * (-A7_6[1, 6])) + A7_6[1, 5];
|
|
|
+ A7_7[1, 6] = (A7_7[6, 6] * (-A7_6[1, 6])) + A7_6[1, 6];
|
|
|
+ A7_7[1, 7] = (A7_7[6, 7] * (-A7_6[1, 6])) + A7_6[1, 7];
|
|
|
+ A7_7[2, 0] = (A7_7[6, 0] * (-A7_6[2, 6])) + A7_6[2, 0];
|
|
|
+ A7_7[2, 1] = (A7_7[6, 1] * (-A7_6[2, 6])) + A7_6[2, 1];
|
|
|
+ A7_7[2, 2] = (A7_7[6, 2] * (-A7_6[2, 6])) + A7_6[2, 2];
|
|
|
+ A7_7[2, 3] = (A7_7[6, 3] * (-A7_6[2, 6])) + A7_6[2, 3];
|
|
|
+ A7_7[2, 4] = (A7_7[6, 4] * (-A7_6[2, 6])) + A7_6[2, 4];
|
|
|
+ A7_7[2, 5] = (A7_7[6, 5] * (-A7_6[2, 6])) + A7_6[2, 5];
|
|
|
+ A7_7[2, 6] = (A7_7[6, 6] * (-A7_6[2, 6])) + A7_6[2, 6];
|
|
|
+ A7_7[2, 7] = (A7_7[6, 7] * (-A7_6[2, 6])) + A7_6[2, 7];
|
|
|
+ A7_7[3, 0] = (A7_7[6, 0] * (-A7_6[3, 6])) + A7_6[3, 0];
|
|
|
+ A7_7[3, 1] = (A7_7[6, 1] * (-A7_6[3, 6])) + A7_6[3, 1];
|
|
|
+ A7_7[3, 2] = (A7_7[6, 2] * (-A7_6[3, 6])) + A7_6[3, 2];
|
|
|
+ A7_7[3, 3] = (A7_7[6, 3] * (-A7_6[3, 6])) + A7_6[3, 3];
|
|
|
+ A7_7[3, 4] = (A7_7[6, 4] * (-A7_6[3, 6])) + A7_6[3, 4];
|
|
|
+ A7_7[3, 5] = (A7_7[6, 5] * (-A7_6[3, 6])) + A7_6[3, 5];
|
|
|
+ A7_7[3, 6] = (A7_7[6, 6] * (-A7_6[3, 6])) + A7_6[3, 6];
|
|
|
+ A7_7[3, 7] = (A7_7[6, 7] * (-A7_6[3, 6])) + A7_6[3, 7];
|
|
|
+ A7_7[4, 0] = (A7_7[6, 0] * (-A7_6[4, 6])) + A7_6[4, 0];
|
|
|
+ A7_7[4, 1] = (A7_7[6, 1] * (-A7_6[4, 6])) + A7_6[4, 1];
|
|
|
+ A7_7[4, 2] = (A7_7[6, 2] * (-A7_6[4, 6])) + A7_6[4, 2];
|
|
|
+ A7_7[4, 3] = (A7_7[6, 3] * (-A7_6[4, 6])) + A7_6[4, 3];
|
|
|
+ A7_7[4, 4] = (A7_7[6, 4] * (-A7_6[4, 6])) + A7_6[4, 4];
|
|
|
+ A7_7[4, 5] = (A7_7[6, 5] * (-A7_6[4, 6])) + A7_6[4, 5];
|
|
|
+ A7_7[4, 6] = (A7_7[6, 6] * (-A7_6[4, 6])) + A7_6[4, 6];
|
|
|
+ A7_7[4, 7] = (A7_7[6, 7] * (-A7_6[4, 6])) + A7_6[4, 7];
|
|
|
+ A7_7[5, 0] = (A7_7[6, 0] * (-A7_6[5, 6])) + A7_6[5, 0];
|
|
|
+ A7_7[5, 1] = (A7_7[6, 1] * (-A7_6[5, 6])) + A7_6[5, 1];
|
|
|
+ A7_7[5, 2] = (A7_7[6, 2] * (-A7_6[5, 6])) + A7_6[5, 2];
|
|
|
+ A7_7[5, 3] = (A7_7[6, 3] * (-A7_6[5, 6])) + A7_6[5, 3];
|
|
|
+ A7_7[5, 4] = (A7_7[6, 4] * (-A7_6[5, 6])) + A7_6[5, 4];
|
|
|
+ A7_7[5, 5] = (A7_7[6, 5] * (-A7_6[5, 6])) + A7_6[5, 5];
|
|
|
+ A7_7[5, 6] = (A7_7[6, 6] * (-A7_6[5, 6])) + A7_6[5, 6];
|
|
|
+ A7_7[5, 7] = (A7_7[6, 7] * (-A7_6[5, 6])) + A7_6[5, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_7[0, 0] + "\t|" + A7_7[0, 1] + "\t|" + A7_7[0, 2] + "\t|" + A7_7[0, 3] + "\t|" + A7_7[0, 4] + "\t|" + A7_7[0, 5] + "\t|" + A7_7[0, 6] + "\t||" + A7_7[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[1, 0] + "\t|" + A7_7[1, 1] + "\t|" + A7_7[1, 2] + "\t|" + A7_7[1, 3] + "\t|" + A7_7[1, 4] + "\t|" + A7_7[1, 5] + "\t|" + A7_7[1, 6] + "\t||" + A7_7[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[2, 0] + "\t|" + A7_7[2, 1] + "\t|" + A7_7[2, 2] + "\t|" + A7_7[2, 3] + "\t|" + A7_7[2, 4] + "\t|" + A7_7[2, 5] + "\t|" + A7_7[2, 6] + "\t||" + A7_7[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[3, 0] + "\t|" + A7_7[3, 1] + "\t|" + A7_7[3, 2] + "\t|" + A7_7[3, 3] + "\t|" + A7_7[3, 4] + "\t|" + A7_7[3, 5] + "\t|" + A7_7[3, 6] + "\t||" + A7_7[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[4, 0] + "\t|" + A7_7[4, 1] + "\t|" + A7_7[4, 2] + "\t|" + A7_7[4, 3] + "\t|" + A7_7[4, 4] + "\t|" + A7_7[4, 5] + "\t|" + A7_7[4, 6] + "\t||" + A7_7[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[5, 0] + "\t|" + A7_7[5, 1] + "\t|" + A7_7[5, 2] + "\t|" + A7_7[5, 3] + "\t|" + A7_7[5, 4] + "\t|" + A7_7[5, 5] + "\t|" + A7_7[5, 6] + "\t||" + A7_7[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[6, 0] + "\t|" + A7_7[6, 1] + "\t|" + A7_7[6, 2] + "\t|" + A7_7[6, 3] + "\t|" + A7_7[6, 4] + "\t|" + A7_7[6, 5] + "\t|" + A7_7[6, 6] + "\t||" + A7_7[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Ответ -------------");
|
|
|
+ Console.WriteLine("x1 = " + A7_7[0, 7]);
|
|
|
+ Console.WriteLine("x2 = " + A7_7[1, 7]);
|
|
|
+ Console.WriteLine("x3 = " + A7_7[2, 7]);
|
|
|
+ Console.WriteLine("x4 = " + A7_7[3, 7]);
|
|
|
+ Console.WriteLine("x5 = " + A7_7[4, 7]);
|
|
|
+ Console.WriteLine("x6 = " + A7_7[5, 7]);
|
|
|
+ Console.WriteLine("x7 = " + A7_7[6, 7]);
|
|
|
+ }
|
|
|
+ else if (per == 10)
|
|
|
+ {
|
|
|
+ Console.WriteLine("------------- Заполните матрицу А -------------");
|
|
|
+ a = 7; b = 7;
|
|
|
+ double[,] A7 = new double[a, b];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ A7[x1, x2] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Заполните матрицу B -------------");
|
|
|
+ B = new int[a];
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ B[x1] = int.Parse(Console.ReadLine());
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Вывод матрицы -------------");
|
|
|
+ for (int x1 = 0; x1 < a; x1++)
|
|
|
+ {
|
|
|
+ for (int x2 = 0; x2 < b; x2++)
|
|
|
+ {
|
|
|
+ Console.Write(A7[x1, x2] + "\t|");
|
|
|
+ }
|
|
|
+ Console.WriteLine("|\t" + B[x1]);
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
|
|
|
+ int edin = 1;
|
|
|
+ foreach (int edinicha in A7)
|
|
|
+ {
|
|
|
+ if (edinicha == edin)
|
|
|
+ {
|
|
|
+ Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 1 -------------");
|
|
|
+ b = 8;
|
|
|
+ double[,] A7_1 = new double[a, b];
|
|
|
+ A7_1[0, 0] = A7[0, 0] / A7[0, 0];
|
|
|
+ A7_1[0, 1] = A7[0, 1] / A7[0, 0];
|
|
|
+ A7_1[0, 2] = A7[0, 2] / A7[0, 0];
|
|
|
+ A7_1[0, 3] = A7[0, 3] / A7[0, 0];
|
|
|
+ A7_1[0, 4] = A7[0, 4] / A7[0, 0];
|
|
|
+ A7_1[0, 5] = A7[0, 5] / A7[0, 0];
|
|
|
+ A7_1[0, 6] = A7[0, 6] / A7[0, 0];
|
|
|
+ A7_1[0, 7] = B[0] / A7[0, 0];
|
|
|
+ A7_1[1, 0] = (A7_1[0, 0] * (-A7[1, 0])) + A7[1, 0];
|
|
|
+ A7_1[1, 1] = (A7_1[0, 1] * (-A7[1, 0])) + A7[1, 1];
|
|
|
+ A7_1[1, 2] = (A7_1[0, 2] * (-A7[1, 0])) + A7[1, 2];
|
|
|
+ A7_1[1, 3] = (A7_1[0, 3] * (-A7[1, 0])) + A7[1, 3];
|
|
|
+ A7_1[1, 4] = (A7_1[0, 4] * (-A7[1, 0])) + A7[1, 4];
|
|
|
+ A7_1[1, 5] = (A7_1[0, 5] * (-A7[1, 0])) + A7[1, 5];
|
|
|
+ A7_1[1, 6] = (A7_1[0, 6] * (-A7[1, 0])) + A7[1, 6];
|
|
|
+ A7_1[1, 7] = (A7_1[0, 7] * (-A7[1, 0])) + B[1];
|
|
|
+ A7_1[2, 0] = (A7_1[0, 0] * (-A7[2, 0])) + A7[2, 0];
|
|
|
+ A7_1[2, 1] = (A7_1[0, 1] * (-A7[2, 0])) + A7[2, 1];
|
|
|
+ A7_1[2, 2] = (A7_1[0, 2] * (-A7[2, 0])) + A7[2, 2];
|
|
|
+ A7_1[2, 3] = (A7_1[0, 3] * (-A7[2, 0])) + A7[2, 3];
|
|
|
+ A7_1[2, 4] = (A7_1[0, 4] * (-A7[2, 0])) + A7[2, 4];
|
|
|
+ A7_1[2, 5] = (A7_1[0, 5] * (-A7[2, 0])) + A7[2, 5];
|
|
|
+ A7_1[2, 6] = (A7_1[0, 6] * (-A7[2, 0])) + A7[2, 6];
|
|
|
+ A7_1[2, 7] = (A7_1[0, 7] * (-A7[2, 0])) + B[2];
|
|
|
+ A7_1[3, 0] = (A7_1[0, 0] * (-A7[3, 0])) + A7[3, 0];
|
|
|
+ A7_1[3, 1] = (A7_1[0, 1] * (-A7[3, 0])) + A7[3, 1];
|
|
|
+ A7_1[3, 2] = (A7_1[0, 2] * (-A7[3, 0])) + A7[3, 2];
|
|
|
+ A7_1[3, 3] = (A7_1[0, 3] * (-A7[3, 0])) + A7[3, 3];
|
|
|
+ A7_1[3, 4] = (A7_1[0, 4] * (-A7[3, 0])) + A7[3, 4];
|
|
|
+ A7_1[3, 5] = (A7_1[0, 5] * (-A7[3, 0])) + A7[3, 5];
|
|
|
+ A7_1[3, 6] = (A7_1[0, 6] * (-A7[3, 0])) + A7[3, 6];
|
|
|
+ A7_1[3, 7] = (A7_1[0, 7] * (-A7[3, 0])) + B[3];
|
|
|
+ A7_1[4, 0] = (A7_1[0, 0] * (-A7[4, 0])) + A7[4, 0];
|
|
|
+ A7_1[4, 1] = (A7_1[0, 1] * (-A7[4, 0])) + A7[4, 1];
|
|
|
+ A7_1[4, 2] = (A7_1[0, 2] * (-A7[4, 0])) + A7[4, 2];
|
|
|
+ A7_1[4, 3] = (A7_1[0, 3] * (-A7[4, 0])) + A7[4, 3];
|
|
|
+ A7_1[4, 4] = (A7_1[0, 4] * (-A7[4, 0])) + A7[4, 4];
|
|
|
+ A7_1[4, 5] = (A7_1[0, 5] * (-A7[4, 0])) + A7[4, 5];
|
|
|
+ A7_1[4, 6] = (A7_1[0, 6] * (-A7[4, 0])) + A7[4, 6];
|
|
|
+ A7_1[4, 7] = (A7_1[0, 7] * (-A7[4, 0])) + B[4];
|
|
|
+ A7_1[5, 0] = (A7_1[0, 0] * (-A7[5, 0])) + A7[5, 0];
|
|
|
+ A7_1[5, 1] = (A7_1[0, 1] * (-A7[5, 0])) + A7[5, 1];
|
|
|
+ A7_1[5, 2] = (A7_1[0, 2] * (-A7[5, 0])) + A7[5, 2];
|
|
|
+ A7_1[5, 3] = (A7_1[0, 3] * (-A7[5, 0])) + A7[5, 3];
|
|
|
+ A7_1[5, 4] = (A7_1[0, 4] * (-A7[5, 0])) + A7[5, 4];
|
|
|
+ A7_1[5, 5] = (A7_1[0, 5] * (-A7[5, 0])) + A7[5, 5];
|
|
|
+ A7_1[5, 6] = (A7_1[0, 6] * (-A7[5, 0])) + A7[5, 6];
|
|
|
+ A7_1[5, 7] = (A7_1[0, 7] * (-A7[5, 0])) + B[5];
|
|
|
+ A7_1[6, 0] = (A7_1[0, 0] * (-A7[6, 0])) + A7[6, 0];
|
|
|
+ A7_1[6, 1] = (A7_1[0, 1] * (-A7[6, 0])) + A7[6, 1];
|
|
|
+ A7_1[6, 2] = (A7_1[0, 2] * (-A7[6, 0])) + A7[6, 2];
|
|
|
+ A7_1[6, 3] = (A7_1[0, 3] * (-A7[6, 0])) + A7[6, 3];
|
|
|
+ A7_1[6, 4] = (A7_1[0, 4] * (-A7[6, 0])) + A7[6, 4];
|
|
|
+ A7_1[6, 5] = (A7_1[0, 5] * (-A7[6, 0])) + A7[6, 5];
|
|
|
+ A7_1[6, 6] = (A7_1[0, 6] * (-A7[6, 0])) + A7[6, 6];
|
|
|
+ A7_1[6, 7] = (A7_1[0, 7] * (-A7[6, 0])) + B[6];
|
|
|
+ Console.WriteLine("\t|" + A7_1[0, 0] + "\t|" + A7_1[0, 1] + "\t|" + A7_1[0, 2] + "\t|" + A7_1[0, 3] + "\t|" + A7_1[0, 4] + "\t|" + A7_1[0, 5] + "\t|" + A7_1[0, 6] + "\t||" + A7_1[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[1, 0] + "\t|" + A7_1[1, 1] + "\t|" + A7_1[1, 2] + "\t|" + A7_1[1, 3] + "\t|" + A7_1[1, 4] + "\t|" + A7_1[1, 5] + "\t|" + A7_1[1, 6] + "\t||" + A7_1[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[2, 0] + "\t|" + A7_1[2, 1] + "\t|" + A7_1[2, 2] + "\t|" + A7_1[2, 3] + "\t|" + A7_1[2, 4] + "\t|" + A7_1[2, 5] + "\t|" + A7_1[2, 6] + "\t||" + A7_1[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[3, 0] + "\t|" + A7_1[3, 1] + "\t|" + A7_1[3, 2] + "\t|" + A7_1[3, 3] + "\t|" + A7_1[3, 4] + "\t|" + A7_1[3, 5] + "\t|" + A7_1[3, 6] + "\t||" + A7_1[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[4, 0] + "\t|" + A7_1[4, 1] + "\t|" + A7_1[4, 2] + "\t|" + A7_1[4, 3] + "\t|" + A7_1[4, 4] + "\t|" + A7_1[4, 5] + "\t|" + A7_1[4, 6] + "\t||" + A7_1[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[5, 0] + "\t|" + A7_1[5, 1] + "\t|" + A7_1[5, 2] + "\t|" + A7_1[5, 3] + "\t|" + A7_1[5, 4] + "\t|" + A7_1[5, 5] + "\t|" + A7_1[5, 6] + "\t||" + A7_1[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_1[6, 0] + "\t|" + A7_1[6, 1] + "\t|" + A7_1[6, 2] + "\t|" + A7_1[6, 3] + "\t|" + A7_1[6, 4] + "\t|" + A7_1[6, 5] + "\t|" + A7_1[6, 6] + "\t||" + A7_1[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 2 -------------");
|
|
|
+ double[,] A7_2 = new double[a, b];
|
|
|
+ A7_2[1, 0] = A7_1[1, 0] / A7_1[1, 1];
|
|
|
+ A7_2[1, 1] = A7_1[1, 1] / A7_1[1, 1];
|
|
|
+ A7_2[1, 2] = A7_1[1, 2] / A7_1[1, 1];
|
|
|
+ A7_2[1, 3] = A7_1[1, 3] / A7_1[1, 1];
|
|
|
+ A7_2[1, 4] = A7_1[1, 4] / A7_1[1, 1];
|
|
|
+ A7_2[1, 5] = A7_1[1, 5] / A7_1[1, 1];
|
|
|
+ A7_2[1, 6] = A7_1[1, 6] / A7_1[1, 1];
|
|
|
+ A7_2[1, 7] = A7_1[1, 7] / A7_1[1, 1];
|
|
|
+ A7_2[0, 0] = (A7_2[1, 0] * (-A7_1[0, 1])) + A7_1[0, 0];
|
|
|
+ A7_2[0, 1] = (A7_2[1, 1] * (-A7_1[0, 1])) + A7_1[0, 1];
|
|
|
+ A7_2[0, 2] = (A7_2[1, 2] * (-A7_1[0, 1])) + A7_1[0, 2];
|
|
|
+ A7_2[0, 3] = (A7_2[1, 3] * (-A7_1[0, 1])) + A7_1[0, 3];
|
|
|
+ A7_2[0, 4] = (A7_2[1, 4] * (-A7_1[0, 1])) + A7_1[0, 4];
|
|
|
+ A7_2[0, 5] = (A7_2[1, 5] * (-A7_1[0, 1])) + A7_1[0, 5];
|
|
|
+ A7_2[0, 6] = (A7_2[1, 6] * (-A7_1[0, 1])) + A7_1[0, 6];
|
|
|
+ A7_2[0, 7] = (A7_2[1, 7] * (-A7_1[0, 1])) + A7_1[0, 7];
|
|
|
+ A7_2[2, 0] = (A7_2[1, 0] * (-A7_1[2, 1])) + A7_1[2, 0];
|
|
|
+ A7_2[2, 1] = (A7_2[1, 1] * (-A7_1[2, 1])) + A7_1[2, 1];
|
|
|
+ A7_2[2, 2] = (A7_2[1, 2] * (-A7_1[2, 1])) + A7_1[2, 2];
|
|
|
+ A7_2[2, 3] = (A7_2[1, 3] * (-A7_1[2, 1])) + A7_1[2, 3];
|
|
|
+ A7_2[2, 4] = (A7_2[1, 4] * (-A7_1[2, 1])) + A7_1[2, 4];
|
|
|
+ A7_2[2, 5] = (A7_2[1, 5] * (-A7_1[2, 1])) + A7_1[2, 5];
|
|
|
+ A7_2[2, 6] = (A7_2[1, 6] * (-A7_1[2, 1])) + A7_1[2, 6];
|
|
|
+ A7_2[2, 7] = (A7_2[1, 7] * (-A7_1[2, 1])) + A7_1[2, 7];
|
|
|
+ A7_2[3, 0] = (A7_2[1, 0] * (-A7_1[3, 1])) + A7_1[3, 0];
|
|
|
+ A7_2[3, 1] = (A7_2[1, 1] * (-A7_1[3, 1])) + A7_1[3, 1];
|
|
|
+ A7_2[3, 2] = (A7_2[1, 2] * (-A7_1[3, 1])) + A7_1[3, 2];
|
|
|
+ A7_2[3, 3] = (A7_2[1, 3] * (-A7_1[3, 1])) + A7_1[3, 3];
|
|
|
+ A7_2[3, 4] = (A7_2[1, 4] * (-A7_1[3, 1])) + A7_1[3, 4];
|
|
|
+ A7_2[3, 5] = (A7_2[1, 5] * (-A7_1[3, 1])) + A7_1[3, 5];
|
|
|
+ A7_2[3, 6] = (A7_2[1, 6] * (-A7_1[3, 1])) + A7_1[3, 6];
|
|
|
+ A7_2[3, 7] = (A7_2[1, 7] * (-A7_1[3, 1])) + A7_1[3, 7];
|
|
|
+ A7_2[4, 0] = (A7_2[1, 0] * (-A7_1[4, 1])) + A7_1[4, 0];
|
|
|
+ A7_2[4, 1] = (A7_2[1, 1] * (-A7_1[4, 1])) + A7_1[4, 1];
|
|
|
+ A7_2[4, 2] = (A7_2[1, 2] * (-A7_1[4, 1])) + A7_1[4, 2];
|
|
|
+ A7_2[4, 3] = (A7_2[1, 3] * (-A7_1[4, 1])) + A7_1[4, 3];
|
|
|
+ A7_2[4, 4] = (A7_2[1, 4] * (-A7_1[4, 1])) + A7_1[4, 4];
|
|
|
+ A7_2[4, 5] = (A7_2[1, 5] * (-A7_1[4, 1])) + A7_1[4, 5];
|
|
|
+ A7_2[4, 6] = (A7_2[1, 6] * (-A7_1[4, 1])) + A7_1[4, 6];
|
|
|
+ A7_2[4, 7] = (A7_2[1, 7] * (-A7_1[4, 1])) + A7_1[4, 7];
|
|
|
+ A7_2[5, 0] = (A7_2[1, 0] * (-A7_1[5, 1])) + A7_1[5, 0];
|
|
|
+ A7_2[5, 1] = (A7_2[1, 1] * (-A7_1[5, 1])) + A7_1[5, 1];
|
|
|
+ A7_2[5, 2] = (A7_2[1, 2] * (-A7_1[5, 1])) + A7_1[5, 2];
|
|
|
+ A7_2[5, 3] = (A7_2[1, 3] * (-A7_1[5, 1])) + A7_1[5, 3];
|
|
|
+ A7_2[5, 4] = (A7_2[1, 4] * (-A7_1[5, 1])) + A7_1[5, 4];
|
|
|
+ A7_2[5, 5] = (A7_2[1, 5] * (-A7_1[5, 1])) + A7_1[5, 5];
|
|
|
+ A7_2[5, 6] = (A7_2[1, 6] * (-A7_1[5, 1])) + A7_1[5, 6];
|
|
|
+ A7_2[5, 7] = (A7_2[1, 7] * (-A7_1[5, 1])) + A7_1[5, 7];
|
|
|
+ A7_2[6, 0] = (A7_2[1, 0] * (-A7_1[6, 1])) + A7_1[6, 0];
|
|
|
+ A7_2[6, 1] = (A7_2[1, 1] * (-A7_1[6, 1])) + A7_1[6, 1];
|
|
|
+ A7_2[6, 2] = (A7_2[1, 2] * (-A7_1[6, 1])) + A7_1[6, 2];
|
|
|
+ A7_2[6, 3] = (A7_2[1, 3] * (-A7_1[6, 1])) + A7_1[6, 3];
|
|
|
+ A7_2[6, 4] = (A7_2[1, 4] * (-A7_1[6, 1])) + A7_1[6, 4];
|
|
|
+ A7_2[6, 5] = (A7_2[1, 5] * (-A7_1[6, 1])) + A7_1[6, 5];
|
|
|
+ A7_2[6, 6] = (A7_2[1, 6] * (-A7_1[6, 1])) + A7_1[6, 6];
|
|
|
+ A7_2[6, 7] = (A7_2[1, 7] * (-A7_1[6, 1])) + A7_1[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_2[0, 0] + "\t|" + A7_2[0, 1] + "\t|" + A7_2[0, 2] + "\t|" + A7_2[0, 3] + "\t|" + A7_2[0, 4] + "\t|" + A7_2[0, 5] + "\t|" + A7_2[0, 6] + "\t||" + A7_2[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[1, 0] + "\t|" + A7_2[1, 1] + "\t|" + A7_2[1, 2] + "\t|" + A7_2[1, 3] + "\t|" + A7_2[1, 4] + "\t|" + A7_2[1, 5] + "\t|" + A7_2[1, 6] + "\t||" + A7_2[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[2, 0] + "\t|" + A7_2[2, 1] + "\t|" + A7_2[2, 2] + "\t|" + A7_2[2, 3] + "\t|" + A7_2[2, 4] + "\t|" + A7_2[2, 5] + "\t|" + A7_2[2, 6] + "\t||" + A7_2[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[3, 0] + "\t|" + A7_2[3, 1] + "\t|" + A7_2[3, 2] + "\t|" + A7_2[3, 3] + "\t|" + A7_2[3, 4] + "\t|" + A7_2[3, 5] + "\t|" + A7_2[3, 6] + "\t||" + A7_2[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[4, 0] + "\t|" + A7_2[4, 1] + "\t|" + A7_2[4, 2] + "\t|" + A7_2[4, 3] + "\t|" + A7_2[4, 4] + "\t|" + A7_2[4, 5] + "\t|" + A7_2[4, 6] + "\t||" + A7_2[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[5, 0] + "\t|" + A7_2[5, 1] + "\t|" + A7_2[5, 2] + "\t|" + A7_2[5, 3] + "\t|" + A7_2[5, 4] + "\t|" + A7_2[5, 5] + "\t|" + A7_2[5, 6] + "\t||" + A7_2[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_2[6, 0] + "\t|" + A7_2[6, 1] + "\t|" + A7_2[6, 2] + "\t|" + A7_2[6, 3] + "\t|" + A7_2[6, 4] + "\t|" + A7_2[6, 5] + "\t|" + A7_2[6, 6] + "\t||" + A7_2[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 3 -------------");
|
|
|
+ double[,] A7_3 = new double[a, b];
|
|
|
+ A7_3[2, 0] = A7_2[2, 0] / A7_2[2, 2];
|
|
|
+ A7_3[2, 1] = A7_2[2, 1] / A7_2[2, 2];
|
|
|
+ A7_3[2, 2] = A7_2[2, 2] / A7_2[2, 2];
|
|
|
+ A7_3[2, 3] = A7_2[2, 3] / A7_2[2, 2];
|
|
|
+ A7_3[2, 4] = A7_2[2, 4] / A7_2[2, 2];
|
|
|
+ A7_3[2, 5] = A7_2[2, 5] / A7_2[2, 2];
|
|
|
+ A7_3[2, 6] = A7_2[2, 6] / A7_2[2, 2];
|
|
|
+ A7_3[2, 7] = A7_2[2, 7] / A7_2[2, 2];
|
|
|
+ A7_3[0, 0] = (A7_3[2, 0] * (-A7_2[0, 2])) + A7_2[0, 0];
|
|
|
+ A7_3[0, 1] = (A7_3[2, 1] * (-A7_2[0, 2])) + A7_2[0, 1];
|
|
|
+ A7_3[0, 2] = (A7_3[2, 2] * (-A7_2[0, 2])) + A7_2[0, 2];
|
|
|
+ A7_3[0, 3] = (A7_3[2, 3] * (-A7_2[0, 2])) + A7_2[0, 3];
|
|
|
+ A7_3[0, 4] = (A7_3[2, 4] * (-A7_2[0, 2])) + A7_2[0, 4];
|
|
|
+ A7_3[0, 5] = (A7_3[2, 5] * (-A7_2[0, 2])) + A7_2[0, 5];
|
|
|
+ A7_3[0, 6] = (A7_3[2, 6] * (-A7_2[0, 2])) + A7_2[0, 6];
|
|
|
+ A7_3[0, 7] = (A7_3[2, 7] * (-A7_2[0, 2])) + A7_2[0, 7];
|
|
|
+ A7_3[1, 0] = (A7_3[2, 0] * (-A7_2[1, 2])) + A7_2[1, 0];
|
|
|
+ A7_3[1, 1] = (A7_3[2, 1] * (-A7_2[1, 2])) + A7_2[1, 1];
|
|
|
+ A7_3[1, 2] = (A7_3[2, 2] * (-A7_2[1, 2])) + A7_2[1, 2];
|
|
|
+ A7_3[1, 3] = (A7_3[2, 3] * (-A7_2[1, 2])) + A7_2[1, 3];
|
|
|
+ A7_3[1, 4] = (A7_3[2, 4] * (-A7_2[1, 2])) + A7_2[1, 4];
|
|
|
+ A7_3[1, 5] = (A7_3[2, 5] * (-A7_2[1, 2])) + A7_2[1, 5];
|
|
|
+ A7_3[1, 6] = (A7_3[2, 6] * (-A7_2[1, 2])) + A7_2[1, 6];
|
|
|
+ A7_3[1, 7] = (A7_3[2, 7] * (-A7_2[1, 2])) + A7_2[1, 7];
|
|
|
+ A7_3[3, 0] = (A7_3[2, 0] * (-A7_2[3, 2])) + A7_2[3, 0];
|
|
|
+ A7_3[3, 1] = (A7_3[2, 1] * (-A7_2[3, 2])) + A7_2[3, 1];
|
|
|
+ A7_3[3, 2] = (A7_3[2, 2] * (-A7_2[3, 2])) + A7_2[3, 2];
|
|
|
+ A7_3[3, 3] = (A7_3[2, 3] * (-A7_2[3, 2])) + A7_2[3, 3];
|
|
|
+ A7_3[3, 4] = (A7_3[2, 4] * (-A7_2[3, 2])) + A7_2[3, 4];
|
|
|
+ A7_3[3, 5] = (A7_3[2, 5] * (-A7_2[3, 2])) + A7_2[3, 5];
|
|
|
+ A7_3[3, 6] = (A7_3[2, 6] * (-A7_2[3, 2])) + A7_2[3, 6];
|
|
|
+ A7_3[3, 7] = (A7_3[2, 7] * (-A7_2[3, 2])) + A7_2[3, 7];
|
|
|
+ A7_3[4, 0] = (A7_3[2, 0] * (-A7_2[4, 2])) + A7_2[4, 0];
|
|
|
+ A7_3[4, 1] = (A7_3[2, 1] * (-A7_2[4, 2])) + A7_2[4, 1];
|
|
|
+ A7_3[4, 2] = (A7_3[2, 2] * (-A7_2[4, 2])) + A7_2[4, 2];
|
|
|
+ A7_3[4, 3] = (A7_3[2, 3] * (-A7_2[4, 2])) + A7_2[4, 3];
|
|
|
+ A7_3[4, 4] = (A7_3[2, 4] * (-A7_2[4, 2])) + A7_2[4, 4];
|
|
|
+ A7_3[4, 5] = (A7_3[2, 5] * (-A7_2[4, 2])) + A7_2[4, 5];
|
|
|
+ A7_3[4, 6] = (A7_3[2, 6] * (-A7_2[4, 2])) + A7_2[4, 6];
|
|
|
+ A7_3[4, 7] = (A7_3[2, 7] * (-A7_2[4, 2])) + A7_2[4, 7];
|
|
|
+ A7_3[5, 0] = (A7_3[2, 0] * (-A7_2[5, 2])) + A7_2[5, 0];
|
|
|
+ A7_3[5, 1] = (A7_3[2, 1] * (-A7_2[5, 2])) + A7_2[5, 1];
|
|
|
+ A7_3[5, 2] = (A7_3[2, 2] * (-A7_2[5, 2])) + A7_2[5, 2];
|
|
|
+ A7_3[5, 3] = (A7_3[2, 3] * (-A7_2[5, 2])) + A7_2[5, 3];
|
|
|
+ A7_3[5, 4] = (A7_3[2, 4] * (-A7_2[5, 2])) + A7_2[5, 4];
|
|
|
+ A7_3[5, 5] = (A7_3[2, 5] * (-A7_2[5, 2])) + A7_2[5, 5];
|
|
|
+ A7_3[5, 6] = (A7_3[2, 6] * (-A7_2[5, 2])) + A7_2[5, 6];
|
|
|
+ A7_3[5, 7] = (A7_3[2, 7] * (-A7_2[5, 2])) + A7_2[5, 7];
|
|
|
+ A7_3[6, 0] = (A7_3[2, 0] * (-A7_2[6, 2])) + A7_2[6, 0];
|
|
|
+ A7_3[6, 1] = (A7_3[2, 1] * (-A7_2[6, 2])) + A7_2[6, 1];
|
|
|
+ A7_3[6, 2] = (A7_3[2, 2] * (-A7_2[6, 2])) + A7_2[6, 2];
|
|
|
+ A7_3[6, 3] = (A7_3[2, 3] * (-A7_2[6, 2])) + A7_2[6, 3];
|
|
|
+ A7_3[6, 4] = (A7_3[2, 4] * (-A7_2[6, 2])) + A7_2[6, 4];
|
|
|
+ A7_3[6, 5] = (A7_3[2, 5] * (-A7_2[6, 2])) + A7_2[6, 5];
|
|
|
+ A7_3[6, 6] = (A7_3[2, 6] * (-A7_2[6, 2])) + A7_2[6, 6];
|
|
|
+ A7_3[6, 7] = (A7_3[2, 7] * (-A7_2[6, 2])) + A7_2[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_3[0, 0] + "\t|" + A7_3[0, 1] + "\t|" + A7_3[0, 2] + "\t|" + A7_3[0, 3] + "\t|" + A7_3[0, 4] + "\t|" + A7_3[0, 5] + "\t|" + A7_3[0, 6] + "\t||" + A7_3[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[1, 0] + "\t|" + A7_3[1, 1] + "\t|" + A7_3[1, 2] + "\t|" + A7_3[1, 3] + "\t|" + A7_3[1, 4] + "\t|" + A7_3[1, 5] + "\t|" + A7_3[1, 6] + "\t||" + A7_3[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[2, 0] + "\t|" + A7_3[2, 1] + "\t|" + A7_3[2, 2] + "\t|" + A7_3[2, 3] + "\t|" + A7_3[2, 4] + "\t|" + A7_3[2, 5] + "\t|" + A7_3[2, 6] + "\t||" + A7_3[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[3, 0] + "\t|" + A7_3[3, 1] + "\t|" + A7_3[3, 2] + "\t|" + A7_3[3, 3] + "\t|" + A7_3[3, 4] + "\t|" + A7_3[3, 5] + "\t|" + A7_3[3, 6] + "\t||" + A7_3[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[4, 0] + "\t|" + A7_3[4, 1] + "\t|" + A7_3[4, 2] + "\t|" + A7_3[4, 3] + "\t|" + A7_3[4, 4] + "\t|" + A7_3[4, 5] + "\t|" + A7_3[4, 6] + "\t||" + A7_3[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[5, 0] + "\t|" + A7_3[5, 1] + "\t|" + A7_3[5, 2] + "\t|" + A7_3[5, 3] + "\t|" + A7_3[5, 4] + "\t|" + A7_3[5, 5] + "\t|" + A7_3[5, 6] + "\t||" + A7_3[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_3[6, 0] + "\t|" + A7_3[6, 1] + "\t|" + A7_3[6, 2] + "\t|" + A7_3[6, 3] + "\t|" + A7_3[6, 4] + "\t|" + A7_3[6, 5] + "\t|" + A7_3[6, 6] + "\t||" + A7_3[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 4 -------------");
|
|
|
+ double[,] A7_4 = new double[a, b];
|
|
|
+ A7_4[3, 0] = A7_3[3, 0] / A7_3[3, 3];
|
|
|
+ A7_4[3, 1] = A7_3[3, 1] / A7_3[3, 3];
|
|
|
+ A7_4[3, 2] = A7_3[3, 2] / A7_3[3, 3];
|
|
|
+ A7_4[3, 3] = A7_3[3, 3] / A7_3[3, 3];
|
|
|
+ A7_4[3, 4] = A7_3[3, 4] / A7_3[3, 3];
|
|
|
+ A7_4[3, 5] = A7_3[3, 5] / A7_3[3, 3];
|
|
|
+ A7_4[3, 6] = A7_3[3, 6] / A7_3[3, 3];
|
|
|
+ A7_4[3, 7] = A7_3[3, 7] / A7_3[3, 3];
|
|
|
+ A7_4[0, 0] = (A7_4[3, 0] * (-A7_3[0, 3])) + A7_3[0, 0];
|
|
|
+ A7_4[0, 1] = (A7_4[3, 1] * (-A7_3[0, 3])) + A7_3[0, 1];
|
|
|
+ A7_4[0, 2] = (A7_4[3, 2] * (-A7_3[0, 3])) + A7_3[0, 2];
|
|
|
+ A7_4[0, 3] = (A7_4[3, 3] * (-A7_3[0, 3])) + A7_3[0, 3];
|
|
|
+ A7_4[0, 4] = (A7_4[3, 4] * (-A7_3[0, 3])) + A7_3[0, 4];
|
|
|
+ A7_4[0, 5] = (A7_4[3, 5] * (-A7_3[0, 3])) + A7_3[0, 5];
|
|
|
+ A7_4[0, 6] = (A7_4[3, 6] * (-A7_3[0, 3])) + A7_3[0, 6];
|
|
|
+ A7_4[0, 7] = (A7_4[3, 7] * (-A7_3[0, 3])) + A7_3[0, 7];
|
|
|
+ A7_4[1, 0] = (A7_4[3, 0] * (-A7_3[1, 3])) + A7_3[1, 0];
|
|
|
+ A7_4[1, 1] = (A7_4[3, 1] * (-A7_3[1, 3])) + A7_3[1, 1];
|
|
|
+ A7_4[1, 2] = (A7_4[3, 2] * (-A7_3[1, 3])) + A7_3[1, 2];
|
|
|
+ A7_4[1, 3] = (A7_4[3, 3] * (-A7_3[1, 3])) + A7_3[1, 3];
|
|
|
+ A7_4[1, 4] = (A7_4[3, 4] * (-A7_3[1, 3])) + A7_3[1, 4];
|
|
|
+ A7_4[1, 5] = (A7_4[3, 5] * (-A7_3[1, 3])) + A7_3[1, 5];
|
|
|
+ A7_4[1, 6] = (A7_4[3, 6] * (-A7_3[1, 3])) + A7_3[1, 6];
|
|
|
+ A7_4[1, 7] = (A7_4[3, 7] * (-A7_3[1, 3])) + A7_3[1, 7];
|
|
|
+ A7_4[2, 0] = (A7_4[3, 0] * (-A7_3[2, 3])) + A7_3[2, 0];
|
|
|
+ A7_4[2, 1] = (A7_4[3, 1] * (-A7_3[2, 3])) + A7_3[2, 1];
|
|
|
+ A7_4[2, 2] = (A7_4[3, 2] * (-A7_3[2, 3])) + A7_3[2, 2];
|
|
|
+ A7_4[2, 3] = (A7_4[3, 3] * (-A7_3[2, 3])) + A7_3[2, 3];
|
|
|
+ A7_4[2, 4] = (A7_4[3, 4] * (-A7_3[2, 3])) + A7_3[2, 4];
|
|
|
+ A7_4[2, 5] = (A7_4[3, 5] * (-A7_3[2, 3])) + A7_3[2, 5];
|
|
|
+ A7_4[2, 6] = (A7_4[3, 6] * (-A7_3[2, 3])) + A7_3[2, 6];
|
|
|
+ A7_4[2, 7] = (A7_4[3, 7] * (-A7_3[2, 3])) + A7_3[2, 7];
|
|
|
+ A7_4[4, 0] = (A7_4[3, 0] * (-A7_3[4, 3])) + A7_3[4, 0];
|
|
|
+ A7_4[4, 1] = (A7_4[3, 1] * (-A7_3[4, 3])) + A7_3[4, 1];
|
|
|
+ A7_4[4, 2] = (A7_4[3, 2] * (-A7_3[4, 3])) + A7_3[4, 2];
|
|
|
+ A7_4[4, 3] = (A7_4[3, 3] * (-A7_3[4, 3])) + A7_3[4, 3];
|
|
|
+ A7_4[4, 4] = (A7_4[3, 4] * (-A7_3[4, 3])) + A7_3[4, 4];
|
|
|
+ A7_4[4, 5] = (A7_4[3, 5] * (-A7_3[4, 3])) + A7_3[4, 5];
|
|
|
+ A7_4[4, 6] = (A7_4[3, 6] * (-A7_3[4, 3])) + A7_3[4, 6];
|
|
|
+ A7_4[4, 7] = (A7_4[3, 7] * (-A7_3[4, 3])) + A7_3[4, 7];
|
|
|
+ A7_4[5, 0] = (A7_4[3, 0] * (-A7_3[5, 3])) + A7_3[5, 0];
|
|
|
+ A7_4[5, 1] = (A7_4[3, 1] * (-A7_3[5, 3])) + A7_3[5, 1];
|
|
|
+ A7_4[5, 2] = (A7_4[3, 2] * (-A7_3[5, 3])) + A7_3[5, 2];
|
|
|
+ A7_4[5, 3] = (A7_4[3, 3] * (-A7_3[5, 3])) + A7_3[5, 3];
|
|
|
+ A7_4[5, 4] = (A7_4[3, 4] * (-A7_3[5, 3])) + A7_3[5, 4];
|
|
|
+ A7_4[5, 5] = (A7_4[3, 5] * (-A7_3[5, 3])) + A7_3[5, 5];
|
|
|
+ A7_4[5, 6] = (A7_4[3, 6] * (-A7_3[5, 3])) + A7_3[5, 6];
|
|
|
+ A7_4[5, 7] = (A7_4[3, 7] * (-A7_3[5, 3])) + A7_3[5, 7];
|
|
|
+ A7_4[6, 0] = (A7_4[3, 0] * (-A7_3[6, 3])) + A7_3[6, 0];
|
|
|
+ A7_4[6, 1] = (A7_4[3, 1] * (-A7_3[6, 3])) + A7_3[6, 1];
|
|
|
+ A7_4[6, 2] = (A7_4[3, 2] * (-A7_3[6, 3])) + A7_3[6, 2];
|
|
|
+ A7_4[6, 3] = (A7_4[3, 3] * (-A7_3[6, 3])) + A7_3[6, 3];
|
|
|
+ A7_4[6, 4] = (A7_4[3, 4] * (-A7_3[6, 3])) + A7_3[6, 4];
|
|
|
+ A7_4[6, 5] = (A7_4[3, 5] * (-A7_3[6, 3])) + A7_3[6, 5];
|
|
|
+ A7_4[6, 6] = (A7_4[3, 6] * (-A7_3[6, 3])) + A7_3[6, 6];
|
|
|
+ A7_4[6, 7] = (A7_4[3, 7] * (-A7_3[6, 3])) + A7_3[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_4[0, 0] + "\t|" + A7_4[0, 1] + "\t|" + A7_4[0, 2] + "\t|" + A7_4[0, 3] + "\t|" + A7_4[0, 4] + "\t|" + A7_4[0, 5] + "\t|" + A7_4[0, 6] + "\t||" + A7_4[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[1, 0] + "\t|" + A7_4[1, 1] + "\t|" + A7_4[1, 2] + "\t|" + A7_4[1, 3] + "\t|" + A7_4[1, 4] + "\t|" + A7_4[1, 5] + "\t|" + A7_4[1, 6] + "\t||" + A7_4[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[2, 0] + "\t|" + A7_4[2, 1] + "\t|" + A7_4[2, 2] + "\t|" + A7_4[2, 3] + "\t|" + A7_4[2, 4] + "\t|" + A7_4[2, 5] + "\t|" + A7_4[2, 6] + "\t||" + A7_4[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[3, 0] + "\t|" + A7_4[3, 1] + "\t|" + A7_4[3, 2] + "\t|" + A7_4[3, 3] + "\t|" + A7_4[3, 4] + "\t|" + A7_4[3, 5] + "\t|" + A7_4[3, 6] + "\t||" + A7_4[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[4, 0] + "\t|" + A7_4[4, 1] + "\t|" + A7_4[4, 2] + "\t|" + A7_4[4, 3] + "\t|" + A7_4[4, 4] + "\t|" + A7_4[4, 5] + "\t|" + A7_4[4, 6] + "\t||" + A7_4[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[5, 0] + "\t|" + A7_4[5, 1] + "\t|" + A7_4[5, 2] + "\t|" + A7_4[5, 3] + "\t|" + A7_4[5, 4] + "\t|" + A7_4[5, 5] + "\t|" + A7_4[5, 6] + "\t||" + A7_4[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_4[6, 0] + "\t|" + A7_4[6, 1] + "\t|" + A7_4[6, 2] + "\t|" + A7_4[6, 3] + "\t|" + A7_4[6, 4] + "\t|" + A7_4[6, 5] + "\t|" + A7_4[6, 6] + "\t||" + A7_4[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 5 -------------");
|
|
|
+ double[,] A7_5 = new double[a, b];
|
|
|
+ A7_5[4, 0] = A7_4[4, 0] / A7_4[4, 4];
|
|
|
+ A7_5[4, 1] = A7_4[4, 1] / A7_4[4, 4];
|
|
|
+ A7_5[4, 2] = A7_4[4, 2] / A7_4[4, 4];
|
|
|
+ A7_5[4, 3] = A7_4[4, 3] / A7_4[4, 4];
|
|
|
+ A7_5[4, 4] = A7_4[4, 4] / A7_4[4, 4];
|
|
|
+ A7_5[4, 5] = A7_4[4, 5] / A7_4[4, 4];
|
|
|
+ A7_5[4, 6] = A7_4[4, 6] / A7_4[4, 4];
|
|
|
+ A7_5[4, 7] = A7_4[4, 7] / A7_4[4, 4];
|
|
|
+ A7_5[0, 0] = (A7_5[4, 0] * (-A7_4[0, 4])) + A7_4[0, 0];
|
|
|
+ A7_5[0, 1] = (A7_5[4, 1] * (-A7_4[0, 4])) + A7_4[0, 1];
|
|
|
+ A7_5[0, 2] = (A7_5[4, 2] * (-A7_4[0, 4])) + A7_4[0, 2];
|
|
|
+ A7_5[0, 3] = (A7_5[4, 3] * (-A7_4[0, 4])) + A7_4[0, 3];
|
|
|
+ A7_5[0, 4] = (A7_5[4, 4] * (-A7_4[0, 4])) + A7_4[0, 4];
|
|
|
+ A7_5[0, 5] = (A7_5[4, 5] * (-A7_4[0, 4])) + A7_4[0, 5];
|
|
|
+ A7_5[0, 6] = (A7_5[4, 6] * (-A7_4[0, 4])) + A7_4[0, 6];
|
|
|
+ A7_5[0, 7] = (A7_5[4, 7] * (-A7_4[0, 4])) + A7_4[0, 7];
|
|
|
+ A7_5[1, 0] = (A7_5[4, 0] * (-A7_4[1, 4])) + A7_4[1, 0];
|
|
|
+ A7_5[1, 1] = (A7_5[4, 1] * (-A7_4[1, 4])) + A7_4[1, 1];
|
|
|
+ A7_5[1, 2] = (A7_5[4, 2] * (-A7_4[1, 4])) + A7_4[1, 2];
|
|
|
+ A7_5[1, 3] = (A7_5[4, 3] * (-A7_4[1, 4])) + A7_4[1, 3];
|
|
|
+ A7_5[1, 4] = (A7_5[4, 4] * (-A7_4[1, 4])) + A7_4[1, 4];
|
|
|
+ A7_5[1, 5] = (A7_5[4, 5] * (-A7_4[1, 4])) + A7_4[1, 5];
|
|
|
+ A7_5[1, 6] = (A7_5[4, 6] * (-A7_4[1, 4])) + A7_4[1, 6];
|
|
|
+ A7_5[1, 7] = (A7_5[4, 7] * (-A7_4[1, 4])) + A7_4[1, 7];
|
|
|
+ A7_5[2, 0] = (A7_5[4, 0] * (-A7_4[2, 4])) + A7_4[2, 0];
|
|
|
+ A7_5[2, 1] = (A7_5[4, 1] * (-A7_4[2, 4])) + A7_4[2, 1];
|
|
|
+ A7_5[2, 2] = (A7_5[4, 2] * (-A7_4[2, 4])) + A7_4[2, 2];
|
|
|
+ A7_5[2, 3] = (A7_5[4, 3] * (-A7_4[2, 4])) + A7_4[2, 3];
|
|
|
+ A7_5[2, 4] = (A7_5[4, 4] * (-A7_4[2, 4])) + A7_4[2, 4];
|
|
|
+ A7_5[2, 5] = (A7_5[4, 5] * (-A7_4[2, 4])) + A7_4[2, 5];
|
|
|
+ A7_5[2, 6] = (A7_5[4, 6] * (-A7_4[2, 4])) + A7_4[2, 6];
|
|
|
+ A7_5[2, 7] = (A7_5[4, 7] * (-A7_4[2, 4])) + A7_4[2, 7];
|
|
|
+ A7_5[3, 0] = (A7_5[4, 0] * (-A7_4[3, 4])) + A7_4[3, 0];
|
|
|
+ A7_5[3, 1] = (A7_5[4, 1] * (-A7_4[3, 4])) + A7_4[3, 1];
|
|
|
+ A7_5[3, 2] = (A7_5[4, 2] * (-A7_4[3, 4])) + A7_4[3, 2];
|
|
|
+ A7_5[3, 3] = (A7_5[4, 3] * (-A7_4[3, 4])) + A7_4[3, 3];
|
|
|
+ A7_5[3, 4] = (A7_5[4, 4] * (-A7_4[3, 4])) + A7_4[3, 4];
|
|
|
+ A7_5[3, 5] = (A7_5[4, 5] * (-A7_4[3, 4])) + A7_4[3, 5];
|
|
|
+ A7_5[3, 6] = (A7_5[4, 6] * (-A7_4[3, 4])) + A7_4[3, 6];
|
|
|
+ A7_5[3, 7] = (A7_5[4, 7] * (-A7_4[3, 4])) + A7_4[3, 7];
|
|
|
+ A7_5[5, 0] = (A7_5[4, 0] * (-A7_4[5, 4])) + A7_4[5, 0];
|
|
|
+ A7_5[5, 1] = (A7_5[4, 1] * (-A7_4[5, 4])) + A7_4[5, 1];
|
|
|
+ A7_5[5, 2] = (A7_5[4, 2] * (-A7_4[5, 4])) + A7_4[5, 2];
|
|
|
+ A7_5[5, 3] = (A7_5[4, 3] * (-A7_4[5, 4])) + A7_4[5, 3];
|
|
|
+ A7_5[5, 4] = (A7_5[4, 4] * (-A7_4[5, 4])) + A7_4[5, 4];
|
|
|
+ A7_5[5, 5] = (A7_5[4, 5] * (-A7_4[5, 4])) + A7_4[5, 5];
|
|
|
+ A7_5[5, 6] = (A7_5[4, 6] * (-A7_4[5, 4])) + A7_4[5, 6];
|
|
|
+ A7_5[5, 7] = (A7_5[4, 7] * (-A7_4[5, 4])) + A7_4[5, 7];
|
|
|
+ A7_5[6, 0] = (A7_5[4, 0] * (-A7_4[6, 4])) + A7_4[6, 0];
|
|
|
+ A7_5[6, 1] = (A7_5[4, 1] * (-A7_4[6, 4])) + A7_4[6, 1];
|
|
|
+ A7_5[6, 2] = (A7_5[4, 2] * (-A7_4[6, 4])) + A7_4[6, 2];
|
|
|
+ A7_5[6, 3] = (A7_5[4, 3] * (-A7_4[6, 4])) + A7_4[6, 3];
|
|
|
+ A7_5[6, 4] = (A7_5[4, 4] * (-A7_4[6, 4])) + A7_4[6, 4];
|
|
|
+ A7_5[6, 5] = (A7_5[4, 5] * (-A7_4[6, 4])) + A7_4[6, 5];
|
|
|
+ A7_5[6, 6] = (A7_5[4, 6] * (-A7_4[6, 4])) + A7_4[6, 6];
|
|
|
+ A7_5[6, 7] = (A7_5[4, 7] * (-A7_4[6, 4])) + A7_4[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_5[0, 0] + "\t|" + A7_5[0, 1] + "\t|" + A7_5[0, 2] + "\t|" + A7_5[0, 3] + "\t|" + A7_5[0, 4] + "\t|" + A7_5[0, 5] + "\t|" + A7_5[0, 6] + "\t||" + A7_5[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[1, 0] + "\t|" + A7_5[1, 1] + "\t|" + A7_5[1, 2] + "\t|" + A7_5[1, 3] + "\t|" + A7_5[1, 4] + "\t|" + A7_5[1, 5] + "\t|" + A7_5[1, 6] + "\t||" + A7_5[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[2, 0] + "\t|" + A7_5[2, 1] + "\t|" + A7_5[2, 2] + "\t|" + A7_5[2, 3] + "\t|" + A7_5[2, 4] + "\t|" + A7_5[2, 5] + "\t|" + A7_5[2, 6] + "\t||" + A7_5[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[3, 0] + "\t|" + A7_5[3, 1] + "\t|" + A7_5[3, 2] + "\t|" + A7_5[3, 3] + "\t|" + A7_5[3, 4] + "\t|" + A7_5[3, 5] + "\t|" + A7_5[3, 6] + "\t||" + A7_5[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[4, 0] + "\t|" + A7_5[4, 1] + "\t|" + A7_5[4, 2] + "\t|" + A7_5[4, 3] + "\t|" + A7_5[4, 4] + "\t|" + A7_5[4, 5] + "\t|" + A7_5[4, 6] + "\t||" + A7_5[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[5, 0] + "\t|" + A7_5[5, 1] + "\t|" + A7_5[5, 2] + "\t|" + A7_5[5, 3] + "\t|" + A7_5[5, 4] + "\t|" + A7_5[5, 5] + "\t|" + A7_5[5, 6] + "\t||" + A7_5[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_5[6, 0] + "\t|" + A7_5[6, 1] + "\t|" + A7_5[6, 2] + "\t|" + A7_5[6, 3] + "\t|" + A7_5[6, 4] + "\t|" + A7_5[6, 5] + "\t|" + A7_5[6, 6] + "\t||" + A7_5[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 6 -------------");
|
|
|
+ double[,] A7_6 = new double[a, b];
|
|
|
+ A7_6[5, 0] = A7_5[5, 0] / A7_5[5, 5];
|
|
|
+ A7_6[5, 1] = A7_5[5, 1] / A7_5[5, 5];
|
|
|
+ A7_6[5, 2] = A7_5[5, 2] / A7_5[5, 5];
|
|
|
+ A7_6[5, 3] = A7_5[5, 3] / A7_5[5, 5];
|
|
|
+ A7_6[5, 4] = A7_5[5, 4] / A7_5[5, 5];
|
|
|
+ A7_6[5, 5] = A7_5[5, 5] / A7_5[5, 5];
|
|
|
+ A7_6[5, 6] = A7_5[5, 6] / A7_5[5, 5];
|
|
|
+ A7_6[5, 7] = A7_5[5, 7] / A7_5[5, 5];
|
|
|
+ A7_6[0, 0] = (A7_6[5, 0] * (-A7_5[0, 5])) + A7_5[0, 0];
|
|
|
+ A7_6[0, 1] = (A7_6[5, 1] * (-A7_5[0, 5])) + A7_5[0, 1];
|
|
|
+ A7_6[0, 2] = (A7_6[5, 2] * (-A7_5[0, 5])) + A7_5[0, 2];
|
|
|
+ A7_6[0, 3] = (A7_6[5, 3] * (-A7_5[0, 5])) + A7_5[0, 3];
|
|
|
+ A7_6[0, 4] = (A7_6[5, 4] * (-A7_5[0, 5])) + A7_5[0, 4];
|
|
|
+ A7_6[0, 5] = (A7_6[5, 5] * (-A7_5[0, 5])) + A7_5[0, 5];
|
|
|
+ A7_6[0, 6] = (A7_6[5, 6] * (-A7_5[0, 5])) + A7_5[0, 6];
|
|
|
+ A7_6[0, 7] = (A7_6[5, 7] * (-A7_5[0, 5])) + A7_5[0, 7];
|
|
|
+ A7_6[1, 0] = (A7_6[5, 0] * (-A7_5[1, 5])) + A7_5[1, 0];
|
|
|
+ A7_6[1, 1] = (A7_6[5, 1] * (-A7_5[1, 5])) + A7_5[1, 1];
|
|
|
+ A7_6[1, 2] = (A7_6[5, 2] * (-A7_5[1, 5])) + A7_5[1, 2];
|
|
|
+ A7_6[1, 3] = (A7_6[5, 3] * (-A7_5[1, 5])) + A7_5[1, 3];
|
|
|
+ A7_6[1, 4] = (A7_6[5, 4] * (-A7_5[1, 5])) + A7_5[1, 4];
|
|
|
+ A7_6[1, 5] = (A7_6[5, 5] * (-A7_5[1, 5])) + A7_5[1, 5];
|
|
|
+ A7_6[1, 6] = (A7_6[5, 6] * (-A7_5[1, 5])) + A7_5[1, 6];
|
|
|
+ A7_6[1, 7] = (A7_6[5, 7] * (-A7_5[1, 5])) + A7_5[1, 7];
|
|
|
+ A7_6[2, 0] = (A7_6[5, 0] * (-A7_5[2, 5])) + A7_5[2, 0];
|
|
|
+ A7_6[2, 1] = (A7_6[5, 1] * (-A7_5[2, 5])) + A7_5[2, 1];
|
|
|
+ A7_6[2, 2] = (A7_6[5, 2] * (-A7_5[2, 5])) + A7_5[2, 2];
|
|
|
+ A7_6[2, 3] = (A7_6[5, 3] * (-A7_5[2, 5])) + A7_5[2, 3];
|
|
|
+ A7_6[2, 4] = (A7_6[5, 4] * (-A7_5[2, 5])) + A7_5[2, 4];
|
|
|
+ A7_6[2, 5] = (A7_6[5, 5] * (-A7_5[2, 5])) + A7_5[2, 5];
|
|
|
+ A7_6[2, 6] = (A7_6[5, 6] * (-A7_5[2, 5])) + A7_5[2, 6];
|
|
|
+ A7_6[2, 7] = (A7_6[5, 7] * (-A7_5[2, 5])) + A7_5[2, 7];
|
|
|
+ A7_6[3, 0] = (A7_6[5, 0] * (-A7_5[3, 5])) + A7_5[3, 0];
|
|
|
+ A7_6[3, 1] = (A7_6[5, 1] * (-A7_5[3, 5])) + A7_5[3, 1];
|
|
|
+ A7_6[3, 2] = (A7_6[5, 2] * (-A7_5[3, 5])) + A7_5[3, 2];
|
|
|
+ A7_6[3, 3] = (A7_6[5, 3] * (-A7_5[3, 5])) + A7_5[3, 3];
|
|
|
+ A7_6[3, 4] = (A7_6[5, 4] * (-A7_5[3, 5])) + A7_5[3, 4];
|
|
|
+ A7_6[3, 5] = (A7_6[5, 5] * (-A7_5[3, 5])) + A7_5[3, 5];
|
|
|
+ A7_6[3, 6] = (A7_6[5, 6] * (-A7_5[3, 5])) + A7_5[3, 6];
|
|
|
+ A7_6[3, 7] = (A7_6[5, 7] * (-A7_5[3, 5])) + A7_5[3, 7];
|
|
|
+ A7_6[4, 0] = (A7_6[5, 0] * (-A7_5[4, 5])) + A7_5[4, 0];
|
|
|
+ A7_6[4, 1] = (A7_6[5, 1] * (-A7_5[4, 5])) + A7_5[4, 1];
|
|
|
+ A7_6[4, 2] = (A7_6[5, 2] * (-A7_5[4, 5])) + A7_5[4, 2];
|
|
|
+ A7_6[4, 3] = (A7_6[5, 3] * (-A7_5[4, 5])) + A7_5[4, 3];
|
|
|
+ A7_6[4, 4] = (A7_6[5, 4] * (-A7_5[4, 5])) + A7_5[4, 4];
|
|
|
+ A7_6[4, 5] = (A7_6[5, 5] * (-A7_5[4, 5])) + A7_5[4, 5];
|
|
|
+ A7_6[4, 6] = (A7_6[5, 6] * (-A7_5[4, 5])) + A7_5[4, 6];
|
|
|
+ A7_6[4, 7] = (A7_6[5, 7] * (-A7_5[4, 5])) + A7_5[4, 7];
|
|
|
+ A7_6[6, 0] = (A7_6[5, 0] * (-A7_5[6, 5])) + A7_5[6, 0];
|
|
|
+ A7_6[6, 1] = (A7_6[5, 1] * (-A7_5[6, 5])) + A7_5[6, 1];
|
|
|
+ A7_6[6, 2] = (A7_6[5, 2] * (-A7_5[6, 5])) + A7_5[6, 2];
|
|
|
+ A7_6[6, 3] = (A7_6[5, 3] * (-A7_5[6, 5])) + A7_5[6, 3];
|
|
|
+ A7_6[6, 4] = (A7_6[5, 4] * (-A7_5[6, 5])) + A7_5[6, 4];
|
|
|
+ A7_6[6, 5] = (A7_6[5, 5] * (-A7_5[6, 5])) + A7_5[6, 5];
|
|
|
+ A7_6[6, 6] = (A7_6[5, 6] * (-A7_5[6, 5])) + A7_5[6, 6];
|
|
|
+ A7_6[6, 7] = (A7_6[5, 7] * (-A7_5[6, 5])) + A7_5[6, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_6[0, 0] + "\t|" + A7_6[0, 1] + "\t|" + A7_6[0, 2] + "\t|" + A7_6[0, 3] + "\t|" + A7_6[0, 4] + "\t|" + A7_6[0, 5] + "\t|" + A7_6[0, 6] + "\t||" + A7_6[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[1, 0] + "\t|" + A7_6[1, 1] + "\t|" + A7_6[1, 2] + "\t|" + A7_6[1, 3] + "\t|" + A7_6[1, 4] + "\t|" + A7_6[1, 5] + "\t|" + A7_6[1, 6] + "\t||" + A7_6[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[2, 0] + "\t|" + A7_6[2, 1] + "\t|" + A7_6[2, 2] + "\t|" + A7_6[2, 3] + "\t|" + A7_6[2, 4] + "\t|" + A7_6[2, 5] + "\t|" + A7_6[2, 6] + "\t||" + A7_6[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[3, 0] + "\t|" + A7_6[3, 1] + "\t|" + A7_6[3, 2] + "\t|" + A7_6[3, 3] + "\t|" + A7_6[3, 4] + "\t|" + A7_6[3, 5] + "\t|" + A7_6[3, 6] + "\t||" + A7_6[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[4, 0] + "\t|" + A7_6[4, 1] + "\t|" + A7_6[4, 2] + "\t|" + A7_6[4, 3] + "\t|" + A7_6[4, 4] + "\t|" + A7_6[4, 5] + "\t|" + A7_6[4, 6] + "\t||" + A7_6[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[5, 0] + "\t|" + A7_6[5, 1] + "\t|" + A7_6[5, 2] + "\t|" + A7_6[5, 3] + "\t|" + A7_6[5, 4] + "\t|" + A7_6[5, 5] + "\t|" + A7_6[5, 6] + "\t||" + A7_6[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_6[6, 0] + "\t|" + A7_6[6, 1] + "\t|" + A7_6[6, 2] + "\t|" + A7_6[6, 3] + "\t|" + A7_6[6, 4] + "\t|" + A7_6[6, 5] + "\t|" + A7_6[6, 6] + "\t||" + A7_6[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Итерация 7 -------------");
|
|
|
+ double[,] A7_7 = new double[a, b];
|
|
|
+ A7_7[6, 0] = A7_6[6, 0] / A7_6[6, 6];
|
|
|
+ A7_7[6, 1] = A7_6[6, 1] / A7_6[6, 6];
|
|
|
+ A7_7[6, 2] = A7_6[6, 2] / A7_6[6, 6];
|
|
|
+ A7_7[6, 3] = A7_6[6, 3] / A7_6[6, 6];
|
|
|
+ A7_7[6, 4] = A7_6[6, 4] / A7_6[6, 6];
|
|
|
+ A7_7[6, 5] = A7_6[6, 5] / A7_6[6, 6];
|
|
|
+ A7_7[6, 6] = A7_6[6, 6] / A7_6[6, 6];
|
|
|
+ A7_7[6, 7] = A7_6[6, 7] / A7_6[6, 6];
|
|
|
+ A7_7[0, 0] = (A7_7[6, 0] * (-A7_6[0, 6])) + A7_6[0, 0];
|
|
|
+ A7_7[0, 1] = (A7_7[6, 1] * (-A7_6[0, 6])) + A7_6[0, 1];
|
|
|
+ A7_7[0, 2] = (A7_7[6, 2] * (-A7_6[0, 6])) + A7_6[0, 2];
|
|
|
+ A7_7[0, 3] = (A7_7[6, 3] * (-A7_6[0, 6])) + A7_6[0, 3];
|
|
|
+ A7_7[0, 4] = (A7_7[6, 4] * (-A7_6[0, 6])) + A7_6[0, 4];
|
|
|
+ A7_7[0, 5] = (A7_7[6, 5] * (-A7_6[0, 6])) + A7_6[0, 5];
|
|
|
+ A7_7[0, 6] = (A7_7[6, 6] * (-A7_6[0, 6])) + A7_6[0, 6];
|
|
|
+ A7_7[0, 7] = (A7_7[6, 7] * (-A7_6[0, 6])) + A7_6[0, 7];
|
|
|
+ A7_7[1, 0] = (A7_7[6, 0] * (-A7_6[1, 6])) + A7_6[1, 0];
|
|
|
+ A7_7[1, 1] = (A7_7[6, 1] * (-A7_6[1, 6])) + A7_6[1, 1];
|
|
|
+ A7_7[1, 2] = (A7_7[6, 2] * (-A7_6[1, 6])) + A7_6[1, 2];
|
|
|
+ A7_7[1, 3] = (A7_7[6, 3] * (-A7_6[1, 6])) + A7_6[1, 3];
|
|
|
+ A7_7[1, 4] = (A7_7[6, 4] * (-A7_6[1, 6])) + A7_6[1, 4];
|
|
|
+ A7_7[1, 5] = (A7_7[6, 5] * (-A7_6[1, 6])) + A7_6[1, 5];
|
|
|
+ A7_7[1, 6] = (A7_7[6, 6] * (-A7_6[1, 6])) + A7_6[1, 6];
|
|
|
+ A7_7[1, 7] = (A7_7[6, 7] * (-A7_6[1, 6])) + A7_6[1, 7];
|
|
|
+ A7_7[2, 0] = (A7_7[6, 0] * (-A7_6[2, 6])) + A7_6[2, 0];
|
|
|
+ A7_7[2, 1] = (A7_7[6, 1] * (-A7_6[2, 6])) + A7_6[2, 1];
|
|
|
+ A7_7[2, 2] = (A7_7[6, 2] * (-A7_6[2, 6])) + A7_6[2, 2];
|
|
|
+ A7_7[2, 3] = (A7_7[6, 3] * (-A7_6[2, 6])) + A7_6[2, 3];
|
|
|
+ A7_7[2, 4] = (A7_7[6, 4] * (-A7_6[2, 6])) + A7_6[2, 4];
|
|
|
+ A7_7[2, 5] = (A7_7[6, 5] * (-A7_6[2, 6])) + A7_6[2, 5];
|
|
|
+ A7_7[2, 6] = (A7_7[6, 6] * (-A7_6[2, 6])) + A7_6[2, 6];
|
|
|
+ A7_7[2, 7] = (A7_7[6, 7] * (-A7_6[2, 6])) + A7_6[2, 7];
|
|
|
+ A7_7[3, 0] = (A7_7[6, 0] * (-A7_6[3, 6])) + A7_6[3, 0];
|
|
|
+ A7_7[3, 1] = (A7_7[6, 1] * (-A7_6[3, 6])) + A7_6[3, 1];
|
|
|
+ A7_7[3, 2] = (A7_7[6, 2] * (-A7_6[3, 6])) + A7_6[3, 2];
|
|
|
+ A7_7[3, 3] = (A7_7[6, 3] * (-A7_6[3, 6])) + A7_6[3, 3];
|
|
|
+ A7_7[3, 4] = (A7_7[6, 4] * (-A7_6[3, 6])) + A7_6[3, 4];
|
|
|
+ A7_7[3, 5] = (A7_7[6, 5] * (-A7_6[3, 6])) + A7_6[3, 5];
|
|
|
+ A7_7[3, 6] = (A7_7[6, 6] * (-A7_6[3, 6])) + A7_6[3, 6];
|
|
|
+ A7_7[3, 7] = (A7_7[6, 7] * (-A7_6[3, 6])) + A7_6[3, 7];
|
|
|
+ A7_7[4, 0] = (A7_7[6, 0] * (-A7_6[4, 6])) + A7_6[4, 0];
|
|
|
+ A7_7[4, 1] = (A7_7[6, 1] * (-A7_6[4, 6])) + A7_6[4, 1];
|
|
|
+ A7_7[4, 2] = (A7_7[6, 2] * (-A7_6[4, 6])) + A7_6[4, 2];
|
|
|
+ A7_7[4, 3] = (A7_7[6, 3] * (-A7_6[4, 6])) + A7_6[4, 3];
|
|
|
+ A7_7[4, 4] = (A7_7[6, 4] * (-A7_6[4, 6])) + A7_6[4, 4];
|
|
|
+ A7_7[4, 5] = (A7_7[6, 5] * (-A7_6[4, 6])) + A7_6[4, 5];
|
|
|
+ A7_7[4, 6] = (A7_7[6, 6] * (-A7_6[4, 6])) + A7_6[4, 6];
|
|
|
+ A7_7[4, 7] = (A7_7[6, 7] * (-A7_6[4, 6])) + A7_6[4, 7];
|
|
|
+ A7_7[5, 0] = (A7_7[6, 0] * (-A7_6[5, 6])) + A7_6[5, 0];
|
|
|
+ A7_7[5, 1] = (A7_7[6, 1] * (-A7_6[5, 6])) + A7_6[5, 1];
|
|
|
+ A7_7[5, 2] = (A7_7[6, 2] * (-A7_6[5, 6])) + A7_6[5, 2];
|
|
|
+ A7_7[5, 3] = (A7_7[6, 3] * (-A7_6[5, 6])) + A7_6[5, 3];
|
|
|
+ A7_7[5, 4] = (A7_7[6, 4] * (-A7_6[5, 6])) + A7_6[5, 4];
|
|
|
+ A7_7[5, 5] = (A7_7[6, 5] * (-A7_6[5, 6])) + A7_6[5, 5];
|
|
|
+ A7_7[5, 6] = (A7_7[6, 6] * (-A7_6[5, 6])) + A7_6[5, 6];
|
|
|
+ A7_7[5, 7] = (A7_7[6, 7] * (-A7_6[5, 6])) + A7_6[5, 7];
|
|
|
+ Console.WriteLine("\t|" + A7_7[0, 0] + "\t|" + A7_7[0, 1] + "\t|" + A7_7[0, 2] + "\t|" + A7_7[0, 3] + "\t|" + A7_7[0, 4] + "\t|" + A7_7[0, 5] + "\t|" + A7_7[0, 6] + "\t||" + A7_7[0, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[1, 0] + "\t|" + A7_7[1, 1] + "\t|" + A7_7[1, 2] + "\t|" + A7_7[1, 3] + "\t|" + A7_7[1, 4] + "\t|" + A7_7[1, 5] + "\t|" + A7_7[1, 6] + "\t||" + A7_7[1, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[2, 0] + "\t|" + A7_7[2, 1] + "\t|" + A7_7[2, 2] + "\t|" + A7_7[2, 3] + "\t|" + A7_7[2, 4] + "\t|" + A7_7[2, 5] + "\t|" + A7_7[2, 6] + "\t||" + A7_7[2, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[3, 0] + "\t|" + A7_7[3, 1] + "\t|" + A7_7[3, 2] + "\t|" + A7_7[3, 3] + "\t|" + A7_7[3, 4] + "\t|" + A7_7[3, 5] + "\t|" + A7_7[3, 6] + "\t||" + A7_7[3, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[4, 0] + "\t|" + A7_7[4, 1] + "\t|" + A7_7[4, 2] + "\t|" + A7_7[4, 3] + "\t|" + A7_7[4, 4] + "\t|" + A7_7[4, 5] + "\t|" + A7_7[4, 6] + "\t||" + A7_7[4, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[5, 0] + "\t|" + A7_7[5, 1] + "\t|" + A7_7[5, 2] + "\t|" + A7_7[5, 3] + "\t|" + A7_7[5, 4] + "\t|" + A7_7[5, 5] + "\t|" + A7_7[5, 6] + "\t||" + A7_7[5, 7] + "\t|");
|
|
|
+ Console.WriteLine("\t|" + A7_7[6, 0] + "\t|" + A7_7[6, 1] + "\t|" + A7_7[6, 2] + "\t|" + A7_7[6, 3] + "\t|" + A7_7[6, 4] + "\t|" + A7_7[6, 5] + "\t|" + A7_7[6, 6] + "\t||" + A7_7[6, 7] + "\t|");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("------------- Ответ -------------");
|
|
|
+ Console.WriteLine("x1 = " + A7_7[0, 7]);
|
|
|
+ Console.WriteLine("x2 = " + A7_7[1, 7]);
|
|
|
+ Console.WriteLine("x3 = " + A7_7[2, 7]);
|
|
|
+ Console.WriteLine("x4 = " + A7_7[3, 7]);
|
|
|
+ Console.WriteLine("x5 = " + A7_7[4, 7]);
|
|
|
+ Console.WriteLine("x6 = " + A7_7[5, 7]);
|
|
|
+ Console.WriteLine("x7 = " + A7_7[6, 7]);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Console.WriteLine("Введите кол-во переменных от 2 до 10");
|
|
|
+ }
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine("Вы хотите продолжить (Y/N)? ");
|
|
|
+ } while (Console.ReadKey().KeyChar != 'N');
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|