예제 #1
0
        public void Root2()
        {
            TComplex testClass = new TComplex(16, -2);

            testClass = testClass.Root(10, 4);
            string output = "-0.301 + i * 1.286";

            Assert.AreEqual(output, testClass.ToString());
        }
예제 #2
0
        public void Root1()
        {
            TComplex testClass = new TComplex(3, 4);

            testClass = testClass.Root(5, 3);
            string output = "-0.353 + i * 1.334";

            Assert.AreEqual(output, testClass.ToString());
        }