Example #1
0
        public void EulersTests(double expected, double step, double x, double y, double iterations, string function)
        {
            Queue <Element> calculated = RPN.SYA(function);
            double          value      = DiffEquations.Eulers(calculated, step, x, y, (int)iterations);

            Assert.AreEqual(expected, value, 1e-3);
        }
Example #2
0
        public void ImprovedEulersTests(double expected, double step, double iterations, string function, double x, params double[] y)
        {
            Queue <Element> calculated = RPN.SYA(function);
            double          value      = DiffEquations.ImprovedEulers(calculated, step, x, y.ToList(), (int)iterations);

            Assert.AreEqual(expected, value, 1e-3);
        }
        private void diff_Equations_Click(object sender, EventArgs e)
        {
            DiffEquations page = new DiffEquations();

            page.Show();
        }