//---------------------------------------------------------------------------------------------- //Решить уравнение public static Complex[] Solve(double a, double b, double c) { VietoKardanoSolver vietoKardanoSolver = new VietoKardanoSolver(a, b, c); Complex[] roots = vietoKardanoSolver.Solve(); return(roots); }
//----------------------------------------------------------------------------------------- //Корни уравнения 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); }