Beispiel #1
0
        public void testExp()
        {
            for (var i = 0; i < 10; ++i)
            {
                assertEquals(i + 1, S2.Exp(Math.Pow(2, i)));
            }

            for (var i = 0; i < 10; ++i)
            {
                assertEquals(i + 1, S2.Exp(-Math.Pow(2, i)));
            }

            assertEquals(0, S2.Exp(0));
            assertEquals(2, S2.Exp(3));
            assertEquals(3, S2.Exp(5));
        }