MathPHP\LinearAlgebra\MatrixAxiomsTest::testDeterminantProductSameAsProductOfDeterminants PHP Method

testDeterminantProductSameAsProductOfDeterminants() public method

det(AB) = det(A)det(B) Determinant of product of matrices is the same as the product of determinants.
    public function testDeterminantProductSameAsProductOfDeterminants(array $A, array $B)
    {
        $A = MatrixFactory::create($A);
        $B = MatrixFactory::create($B);
        // det(AB)
        $det⟮AB⟯ = $A->multiply($B)->det();
        // det(A)det(B)
        $det⟮A⟯ = $A->det();
        $det⟮B⟯ = $B->det();
        $det⟮A⟯det⟮B⟯ = $det⟮A⟯ * $det⟮B⟯;
        $this->assertEquals($det⟮AB⟯, $det⟮A⟯det⟮B⟯, '', 1.0E-6);
    }
MatrixAxiomsTest