Beispiel #1
0
        public static double IterationSolve(IFunc func, double from, double to, int eps)
        {
            double x, prev;

            prev = x = from;
            do
            {
                prev = x;
                x    = func.Xequals(prev);
            } while (Math.Round(x, eps) != Math.Round(prev, eps));
            return(x);
        }