Exemple #1
0
        public void TestCase2()
        {
            double test;

            test = FindNewtonRoot.NewtonRoot(8, 3, 0.0001);

            Assert.AreEqual(test, 2.0, 1);
        }
Exemple #2
0
        public void TestCase3()
        {
            double test;

            test = FindNewtonRoot.NewtonRoot(0.001, 3, 0.0001);

            Assert.AreEqual(test, 0.1, 1);
        }
Exemple #3
0
        public void TestCase1()
        {
            double test;

            test = FindNewtonRoot.NewtonRoot(1.0, 5, 0.0001);

            Assert.AreEqual(test, 1.0, 1);
        }