Example #1
0
        private void AdamsButton_Click(object sender, RoutedEventArgs e)
        {
            var           data = GetInputData();
            List <double> x;
            List <double> y;
            Function      func = new SampleFunction(data.A, data.M);

            GetAdamsSolves(func, data, out x, out y);
            DrawGraphic(x.ToArray(), y.ToArray(), Colors.Gold, "Адамса", 1.5);
        }
Example #2
0
        private void AdamsButton_Click(object sender, RoutedEventArgs e)
        {
            var data = GetInputData();
            List<double> x;
            List<double> y;
            Function func = new SampleFunction(data.A, data.M);

            GetAdamsSolves(func, data, out x, out y);
            DrawGraphic(x.ToArray(), y.ToArray(), Colors.Gold, "Адамса",1.5);
        }
Example #3
0
        private void EulerButton_Click(object sender, RoutedEventArgs e)
        {
            var           data = GetInputData();
            List <double> x;
            List <double> y;

            Function func = new SampleFunction(data.A, data.M);

            GetEulerSolves(func, data, out x, out y);
            DrawGraphic(x.ToArray(), y.ToArray(), Colors.Green, "Эйлер", 1);
        }
Example #4
0
        private void KytButton_Click(object sender, RoutedEventArgs e)
        {
            var           data = GetInputData();
            List <double> x;
            List <double> y;

            Function func = new SampleFunction(data.A, data.M);

            GetRungeKytSolves(func, data, out x, out y);
            DrawGraphic(x.ToArray(), y.ToArray(), Colors.Red, "Рунге-Кутт", 1);
        }
Example #5
0
        private void EulerMButton_Click(object sender, RoutedEventArgs e)
        {
            var           data = GetInputData();
            List <double> x;
            List <double> y;

            Function func = new SampleFunction(data.A, data.M);

            GetEulerMSolves(func, data, out x, out y);
            DrawGraphic(x.ToArray(), y.ToArray(), Colors.Blue, "Эйлер модиф.", 1);
            FillValueListBox(x, y);
        }
Example #6
0
        private void EulerButton_Click(object sender, RoutedEventArgs e)
        {
            var data = GetInputData();
            List<double> x;
            List<double> y;

            Function func = new SampleFunction(data.A,data.M);

            GetEulerSolves(func, data, out x, out y);
            DrawGraphic(x.ToArray(), y.ToArray(), Colors.Green, "Эйлер", 1);
        }
Example #7
0
        private void KytButton_Click(object sender, RoutedEventArgs e)
        {
            var data = GetInputData();
            List<double> x;
            List<double> y;

            Function func = new SampleFunction(data.A, data.M);
            GetRungeKytSolves(func, data, out x, out y);
            DrawGraphic(x.ToArray(), y.ToArray(), Colors.Red, "Рунге-Кутт", 1);
        }
        private void EulerMButton_Click(object sender, RoutedEventArgs e)
        {
            var data = GetInputData();
            List<double> x;
            List<double> y;

            Function func = new SampleFunction(data.A, data.M);
            GetEulerMSolves(func, data, out x, out y);
            DrawGraphic(x.ToArray(), y.ToArray(), Colors.Blue, "Эйлер модиф.", 1);
            FillValueListBox(x, y);
        }