예제 #1
0
        public void T10_CoFactors()
        {
            Mat3 mat3 = new Mat3(3, 5, 0, 2, -1, -7, 6, -1, 5);

            Assert.AreEqual(-12, mat3.Minor(0, 0));
            Assert.AreEqual(-12, mat3.Cofactor(0, 0));
            Assert.AreEqual(25, mat3.Minor(1, 0));
            Assert.AreEqual(-25, mat3.Cofactor(1, 0));
        }
예제 #2
0
        public void T09_Minors()
        {
            Mat3 mat3 = new Mat3(3, 5, 0, 2, -1, -7, 6, -1, 5);
            Mat2 b    = mat3.Sub(1, 0);

            Assert.AreEqual(25, b.Det());
            Assert.AreEqual(25, mat3.Minor(1, 0));
        }