예제 #1
0
 public function testIsGaussianForOnePartNotBeingIntegerValuesReturnsFalse()
 {
     $nonInt = RationalTypeFactory::fromFloat(2.00001);
     $int = $this->createRationalType(2);
     $c = new ComplexType($nonInt, $int);
     $this->assertFalse($c->isGaussian());
     $c2 = new ComplexType($int, $nonInt);
     $this->assertFalse($c2->isGaussian());
 }