Пример #1
0
        public double MethodRectangle(BorderMethodRectangle border, double h)
        {
            double result = 0;

            for (double i = a; i <= b; i += h)
            {
                result += GetFunctionValue(i) * h;
            }

            return(result);
        }
        static double MethodRectangle(BorderMethodRectangle border, string function, double a, double b, double h)
        {
            double result = 0;

            for (double i = a; i <= b; i += h)
            {
                result += MathParse(function, i) * h;
            }

            return(result);
        }