示例#1
0
        public void getFrom(GetterListOfValues getter, BoundaryValue boundaryValue)
        {
            double step = (boundaryValue.endX - boundaryValue.beginX) / numberOfIntervals;

            for (int i = 0; i <= numberOfIntervals; i++)
            {
                x.Add(boundaryValue.beginX + i * step);
            }

            y = getter.getValues(boundaryValue, numberOfIntervals);
        }
示例#2
0
        private void radioButtonTestTwo_CheckedChanged(object sender, EventArgs e)
        {
            one = new TestTwoEquation();
            two = new FunctionTestTwo();

            graphicOne = new Graphic(numberOfSteps);
            graphicTwo = new Graphic(numberOfSteps);

            graph.Series["series1"].LegendText = "Аппроксимация";
            graph.Series["series2"].LegendText = "Реальная функция";
        }
示例#3
0
        public Form1()
        {
            InitializeComponent();

            one = new MainEquation(ksi);
            two = new MainEquation(ksi);

            graphicOne    = new Graphic(5);
            graphicTwo    = new Graphic(10);
            boundaryValue = new BoundaryValue(0.0, 0.0, 1.0, 1.0);
        }
示例#4
0
        private void radioButtonMain_CheckedChanged(object sender, EventArgs e)
        {
            one = new MainEquation(ksi);
            two = new MainEquation(ksi);

            graphicOne = new Graphic(numberOfSteps);
            graphicTwo = new Graphic(numberOfSteps * 2);

            graph.Series["series1"].LegendText = "Обычный шаг";
            graph.Series["series2"].LegendText = "Половинный шаг";
        }