Example #1
0
        public static void DemoMain(string[] args)
        {
            ISeries progression = new ArithmeticalProgression(2, 2);

            Console.WriteLine("Progression:");
            PrintSeries(progression);

            ISeries list = new List(new double[] { 5, 8, 6, 3, 1 });

            Console.WriteLine("List:");
            PrintSeries(list);
        }
Example #2
0
        static void Main(string[] args)
        {
            IIndexableSeries progression = new ArithmeticalProgression(2, 2);

            Console.WriteLine("Progression:");
            PrintSeries(progression);

            IIndexableSeries list = new List(new double[] { 5, 8, 6, 3, 1 });

            Console.WriteLine("List:");
            PrintSeries(list);

            Console.ReadKey();
        }
Example #3
0
        static void Main(string[] args)
        {
            ISeries arithmeticalProgression = new ArithmeticalProgression(2, 2);

            Console.WriteLine("Arithmetical progression:");
            PrintSeries(arithmeticalProgression);

            ISeries list = new List(new double[] { 5, 8, 6, 3, 1 });

            Console.WriteLine("List:");
            PrintSeries(list);

            ISeries geometricProgression = new GeometricProgression(2, 2);

            Console.WriteLine("Geometric progression:");
            PrintSeries(geometricProgression);

            Console.ReadKey();
        }