Esempio n. 1
0
        static void Main(string[] args)
        {
            Integrator integrator = new Integrator();
            double result = integrator.Integrate(new SimpleFunction(), 1000000, 10000);
            Console.WriteLine(result);

            result = integrator.Integrate(new ComplexFunction(), 1000000, 10000);
            Console.WriteLine(result);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Integrator integrator = new Integrator();
            double     result     = integrator.Integrate(new SimpleFunction(), 1000000, 10000);

            Console.WriteLine(result);

            result = integrator.Integrate(new ComplexFunction(), 1000000, 10000);
            Console.WriteLine(result);
        }