Ejemplo n.º 1
0
 public function testCreateFromComplexReturnsRationalMatrix()
 {
     $c = CF::fromString('2+4i');
     $mA = MatrixFactory::createFromComplex($c);
     $test = MatrixFactory::createRational([['2/1', '-4/1'], ['4/1', '2/1']]);
     $this->assertEquals($test, $mA);
 }