Beispiel #1
0
 public static Matrix Inverse_Fadeev(Matrix val)
 {
     Matrix A = new Matrix(val);
     Matrix rez = new Matrix(val.RowCount, val.ColumnCount);
     Fadeev fadeev = new Fadeev(A);
     rez = fadeev.F;
     rez = 1 / Convert.ToDouble(fadeev.Q[rez.ColumnCount - 1]) * fadeev.B_n;
     return rez;
 }
        public static Vector Fadeev_Values(Matrix val, double e = 0.001)
        {
            Fadeev fadeev = new Fadeev(val);
            Console.WriteLine("Q=" + fadeev.Q);
            double temp = 0;
            Vector eigenvalues = new Vector(val.ColumnCount);
            Vector I = Intervals(val, fadeev.Q);
            for (int i = 0; i < val.ColumnCount; i++)
            {
                temp = method_bisection(fadeev.Q, I[i], I[i + 1], e);
                eigenvalues[i] = temp;
            }

            return eigenvalues;
        }