public double Calc(double x) { Method met; if (x > a + (b - a) / m && x < b - (b - a) / m) { met = new GaussMethod(); } else { met = new NewtonMethod(); } return(met.calc(x, mFunc, n, mPoints)); //return m.calc(x, mFunc, n, mPoints); }
public double Calc(double x) { Method met; if (x > a + (b - a)/m && x < b - (b - a)/m) met = new GaussMethod(); else met = new NewtonMethod(); return met.calc(x, mFunc, n, mPoints); //return m.calc(x, mFunc, n, mPoints); }