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

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

Axiom: A⋅A⊥ = -A⊥⋅A Swapping operands changes the sign of the perp dot product
    public function testPerpDotProdcutSwapOperandsChangeSign(array $A)
    {
        $A = new Vector($A);
        $A⊥ = $A->perpendicular();
        $A⋅A⊥ = $A->dotProduct($A⊥);
        $A⊥⋅A = $A⊥->dotProduct($A);
        $this->assertEquals($A⋅A⊥, -$A⊥⋅A);
    }