コード例 #1
0
        //----------------------------------------------------------------------------------------------
        //Решить уравнение
        public static Complex[] Solve(double a, double b, double c)
        {
            VietoKardanoSolver vietoKardanoSolver = new VietoKardanoSolver(a, b, c);

            Complex[] roots = vietoKardanoSolver.Solve();
            return(roots);
        }
コード例 #2
0
        //-----------------------------------------------------------------------------------------
        //Корни уравнения
        public Complex[] GetRoots()
        {
            VietoKardanoSolver solver = new VietoKardanoSolver
                                            (this.b / this.a, this.c / this.a, this.d / this.a);

            Complex[] roots = solver.Solve();
            return(roots);
        }