Exemplo n.º 1
0
 public function testDeriveWillReturnValue()
 {
     $derivative = new \Chippyash\Math\Matrix\Derivative\Determinant();
     $testArray = [[1, 2, 3], [3, 2, 1], [2, 1, 3]];
     $mA = new NumericMatrix($testArray);
     $this->assertEquals(-12, $mA->derive($derivative)->get());
 }