Example #1
0
        public void Test2()
        {
            /*
             * the eighth expansion, 1393/985,
             * is the first example where the number of digits in the numerator exceeds the number of digits in the denominator..
             *
             */
            var sut = new E057SquareRootConvergents();

            Assert.True(sut.NumeratorHasMoreDigitsThanDenominator(iterationNumber: 8));
            Assert.False(sut.NumeratorHasMoreDigitsThanDenominator(iterationNumber: 7));
            Assert.False(sut.NumeratorHasMoreDigitsThanDenominator(iterationNumber: 9));
        }