MathPHP\LinearAlgebra\VectorAxiomsTest::testDotProductCommutative PHP Метод

testDotProductCommutative() публичный Метод

Axiom: A⋅B = B⋅A Dot product is commutative
public testDotProductCommutative ( array $A, array $B )
$A array
$B array
    public function testDotProductCommutative(array $A, array $B)
    {
        $A = new Vector($A);
        $B = new Vector($B);
        $A⋅B = $A->dotProduct($B);
        $B⋅A = $B->dotProduct($A);
        $this->assertEquals($A⋅B, $B⋅A);
    }