示例#1
0
        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();
        }
示例#2
0
        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);
        }