Пример #1
0
        public void Test7()
        {
            ArrayList r = PiApprox.iterPi(0.000005);
            ArrayList c = new ArrayList {
                200001, 3.1415976536
            };

            Assert.AreEqual(c, r);
        }
Пример #2
0
        public void Test8()
        {
            ArrayList r = PiApprox.iterPi(0.5);
            ArrayList c = new ArrayList {
                2, 2.6666666667
            };

            Assert.AreEqual(c, r);
        }
Пример #3
0
        public void Test6()
        {
            ArrayList r = PiApprox.iterPi(0.0000001);
            ArrayList c = new ArrayList {
                10000001, 3.1415927536
            };

            Assert.AreEqual(c, r);
        }
Пример #4
0
        public void Test5()
        {
            ArrayList r = PiApprox.iterPi(0.005);
            ArrayList c = new ArrayList {
                200, 3.1365926848
            };

            Assert.AreEqual(c, r);
        }
Пример #5
0
        public void Test3()
        {
            ArrayList r = PiApprox.iterPi(0.001);
            ArrayList c = new ArrayList {
                1000, 3.1405926538
            };

            Assert.AreEqual(c, r);
        }
Пример #6
0
        public void Test2()
        {
            ArrayList r = PiApprox.iterPi(0.01);
            ArrayList c = new ArrayList {
                100, 3.1315929036
            };

            Assert.AreEqual(c, r);
        }
Пример #7
0
        public void Test1()
        {
            ArrayList r = PiApprox.iterPi(0.1);
            ArrayList c = new ArrayList {
                10, 3.0418396189
            };

            Assert.AreEqual(c, r);
        }