public function testCos() { $this->assertTrue(CMathf::equalsZt(CMathf::cos(0.0), 1.0)); $this->assertTrue(CMathf::equalsZt(CMathf::cos(CMathf::HALF_PI), 0.0)); $this->assertTrue(CMathf::equalsZt(CMathf::cos(CMathf::PI / 4), 0.707106781)); $this->assertTrue(CMathf::equalsZt(CMathf::cos(CMathf::PI / 6), 0.8660254040000001)); $this->assertTrue(CMathf::equalsZt(CMathf::cos(10), -0.839071529)); }