void JacobiM() { //if (!Initial.SequenceEqual(Iteration.MassX)) //{ Jacobi.Iteration(Iteration.MassX); dataGridView1.ColumnCount += 1; for (int i = 0; i < Iteration.Count_x; i++) { dataGridView1[1, i].Value = Iteration.MassX[i]; } Second = new int[Iteration.Count_x]; Iteration.MassX.CopyTo(Second, 0); do { int n; Jacobi.Iteration(Iteration.MassX); dataGridView1.ColumnCount += 1; n = dataGridView1.ColumnCount; for (int i = 0; i < Iteration.Count_x; i++) { dataGridView1[n - 1, i].Value = Iteration.MassX[i]; } } while (!Second.SequenceEqual(Iteration.MassX)); //} }