public frmOutput(HeunCount heunCount) { InitializeComponent(); if (MyChart.Series.Count != 0) MyChart.Series.Clear(); DrawChart.drawChart(MyChart, "Solution", Color.Black, 5, heunCount.x, heunCount.solutionPoints); DrawChart.drawChart(MyChart, "Heun", Color.Red, 5, heunCount.x, heunCount.results); for (int i = 0; i < heunCount.results.Length; i++) { txtOutput.Text += "y(x" + i + ") = " + heunCount.results[i].ToString("0.00") + " BLAD: y(x" + i + ") = " + heunCount.methodErrors[i].ToString("0.00") + Environment.NewLine; } }
private void butHeunCount_Click(object sender, EventArgs e) { heunCount = new HeunCount((double)numHeunB.Value, (int)numHeunN.Value); }