Exemplo n.º 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();
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        private void AddFullErrOfK(string chartArea)
        {
            Series mySeriesOfPoint = new Series("FullErrOfK")
            {
                ChartType = SeriesChartType.Line,
                ChartArea = chartArea
            };

            for (int k = 5; k <= 10; ++k)
            {
                var x = Math.Pow(2.0, -k);
                var y = (ERKMethod.RealFunction(5) - ERKMethod.Method(x)).L2Norm();
                mySeriesOfPoint.Points.AddXY(y, x);
            }
            myChart.Series.Add(mySeriesOfPoint);
        }