public function testInverseMatrix() { //http://ncalculators.com/matrix/inverse-matrix.htm $matrix = new Matrix([[3, 4, 2], [4, 5, 5], [1, 1, 1]]); $inverseMatrix = [[0, -1, 5], [1 / 2, 1 / 2, -7 / 2], [-1 / 2, 1 / 2, -1 / 2]]; $this->assertEquals($inverseMatrix, $matrix->inverse()->toArray(), '', $delta = 0.0001); }