public Point(double[] x, IEquationSystem es) { this.x = x; f = new double[es.number()]; try { es.equations(x, f); } catch (Exception ex) { Debug.WriteLine(ex.StackTrace); f[0] = 10000.0; } m = 0.0; for (int j = 0; j < es.number(); j++) { double mm = Math.Abs(f[j]); if (mm > m) { m = mm; } } }
public Solver(IEquationSystem es) { this.es = es; }