Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }