Beispiel #1
0
 public function testSqrt()
 {
     $this->assertTrue(CMathf::equalsZt(CMathf::sqrt(16.0), 4.0));
     $this->assertTrue(CMathf::equalsZt(CMathf::sqrt(30.25), 5.5));
     $this->assertTrue(CMathf::sqrt(16) === 4.0);
     $this->assertTrue(CMathf::sqrt(49) === 7.0);
 }