Example #1
0
        private static void Main(string[] args)
        {
            Range range = new Range(0.2, 3);
            Func <double, double> func       = Function;
            Func <double, double> derivative = Derivative;

            Console.WriteLine("Start range: " + range);
            Console.WriteLine("\n");
            Execute.Bisection(range, func, 0.001f);
            range = new Range(0.2, 3);
            Console.WriteLine("\n");
            Execute.Chord(range, func, 0.001);
            Console.WriteLine("\n");
            Execute.Attached(range, func, derivative, 0.001);
            Console.WriteLine("\n");
            Execute.ChordAttached(range, func, derivative, 0.001f);
            Console.WriteLine("\n");
            Execute.Iterations(range, func, Fi, 0.001);
            //Console.WriteLine(Fi(Fi(0.2)));
        }