Ejemplo n.º 1
0
        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;
                }
            }
        }
Ejemplo n.º 2
0
 public Solver(IEquationSystem es)
 {
     this.es = es;
 }