Ejemplo n.º 1
0
 public function testPow()
 {
     $this->assertTrue(CMathf::equalsZt(CMathf::pow(4.0, 2.0), 16.0));
     $this->assertTrue(CMathf::equalsZt(CMathf::pow(5.0, 3.0), 125.0));
     $this->assertTrue(CMathf::equalsZt(CMathf::pow(2.0, 0.5), 1.414213562));
     $this->assertTrue(CMathf::equalsZt(CMathf::pow(2.0, -0.5), 0.707106781));
     $this->assertTrue(CMathf::pow(4, 2) === 16.0);
     $this->assertTrue(CMathf::pow(5, 3) === 125.0);
 }