/** * Axiom: A⊥⋅A = 0 * Perp dot product with itself will be zero. * @dataProvider dataProviderForPerpendicularIdentity */ public function testPerpDotProductZero(array $A) { $A = new Vector($A); $A⊥⋅A = $A->perpDotProduct($A); $this->assertEquals(0, $A⊥⋅A); }
public function testPerpDotProductExceptionNNotBothTwo() { $A = new Vector([1, 2, 3]); $B = new Vector([1, 2, 3]); $this->setExpectedException('MathPHP\\Exception\\VectorException'); $A->perpDotProduct($B); }