public frmOutput(EulerCount eulerCount) { InitializeComponent(); if (MyChart.Series.Count != 0) MyChart.Series.Clear(); DrawChart.drawChart(MyChart, "Solution", Color.Black, 5, eulerCount.x, eulerCount.solutionPoints); DrawChart.drawChart(MyChart, "Euler", Color.Red, 5, eulerCount.x, eulerCount.results); for (int i=0; i < eulerCount.results.Length; i++) { txtOutput.Text += "y(x" + i + ") = " + eulerCount.results[i].ToString("0.00") + " BLAD: y(x" + i + ") = " + eulerCount.methodErrors[i].ToString("0.00") + Environment.NewLine; } }
private void butEulerCount_Click(object sender, EventArgs e) { //Function function = new Function(); eulerCount = new EulerCount((double)numIntervalEnd.Value, (int)numNumberOfSteps.Value); }