static void Main(string[] args) { Console.WriteLine(ERKMethod.RealFunction(5)); Console.WriteLine(ERKMethod.Method(ERKMethod.RungeRuleGlobal(0.00001))); Console.WriteLine(ERKMethod.Method(ERKMethod.RungeRuleGlobal(0.00001), MyMethod: false)); ChartForm window = new ChartForm(); window.ShowDialog(); }
private void AddFullErrOfInd(string chartArea) { Series mySeriesOfPoint = new Series("FullErrOfInd") { ChartType = SeriesChartType.Line, ChartArea = chartArea }; for (int i = 1; i <= 5; ++i) { double h = ERKMethod.RungeRuleGlobal(0.00001, b: i); var y = (ERKMethod.RealFunction(i) - ERKMethod.Method(h, b: i)).L2Norm(); mySeriesOfPoint.Points.AddXY(i, y); } myChart.Series.Add(mySeriesOfPoint); }