Пример #1
0
 public function testSin()
 {
     $this->assertTrue(CMathf::equalsZt(CMathf::sin(0.0), 0.0));
     $this->assertTrue(CMathf::equalsZt(CMathf::sin(CMathf::HALF_PI), 1.0));
     $this->assertTrue(CMathf::equalsZt(CMathf::sin(CMathf::PI / 4), 0.707106781));
     $this->assertTrue(CMathf::equalsZt(CMathf::sin(CMathf::PI / 6), 0.5));
     $this->assertTrue(CMathf::equalsZt(CMathf::sin(10), -0.54402111));
 }