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); }
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 = "Реальная функция"; }
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); }
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 = "Половинный шаг"; }