Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 public function testPerpDotProductExceptionNNotBothTwo()
 {
     $A = new Vector([1, 2, 3]);
     $B = new Vector([1, 2, 3]);
     $this->setExpectedException('MathPHP\\Exception\\VectorException');
     $A->perpDotProduct($B);
 }