예제 #1
0
        public static void Test5()
        {
            double actual = NthRootOfNumber.FindRoot(6.25, 2);

            Assert.AreEqual(2.5, actual, 1e-9);
        }
예제 #2
0
        public static void Test1()
        {
            double actual = NthRootOfNumber.FindRoot(4, 2);

            Assert.AreEqual(2, actual, 1e-9);
        }
예제 #3
0
        public static void Test3()
        {
            double actual = NthRootOfNumber.FindRoot(256, 4);

            Assert.AreEqual(4, actual, 1e-9);
        }