Class ODETest

    • Constructor Detail

      • ODETest

        public ODETest()
    • Method Detail

      • testODE

        public void testODE()
        tests the differential equation solvers on y' = x.y^(1/3); see F. Scheid, Numerical Analysis, 2nd Edition, p.204 (Schaum Outline Series). for x=1..5, solutions are: 1: 1.0; 2: 2.82843; 3: 7.02113; 4: 14.69694; 5: 27.0.
      • testODEStiff

        public void testODEStiff()
        tests the differential equation solvers on the stiff equation y" + 101y' + 100y = 0. This can be split into two equations: y' = p and p' = -100y -101p with y(0) = 1 and p(0) = -1. The exact solution is y(x) = exp(-x). see F. Scheid, Numerical Analysis, 2nd Edition, p.236 (Schaum Outline Series).