public function testAsin() { $this->assertTrue(CMathf::equalsZt(CMathf::asin(0.0), 0.0)); $this->assertTrue(CMathf::equalsZt(CMathf::asin(1.0), CMathf::HALF_PI)); $this->assertTrue(CMathf::equalsZt(CMathf::asin(0.707106781), CMathf::PI / 4)); $this->assertTrue(CMathf::equalsZt(CMathf::asin(0.5), CMathf::PI / 6)); // Special cases. $this->assertTrue(CMathf::equalsZt(CMathf::asin(1.5), CMathf::HALF_PI)); $this->assertTrue(CMathf::equalsZt(CMathf::asin(2.0), CMathf::HALF_PI)); $this->assertTrue(CMathf::equalsZt(CMathf::asin(-3.0), -CMathf::HALF_PI)); $this->assertTrue(CMathf::equalsZt(CMathf::asin(-10.0), -CMathf::HALF_PI)); $this->assertTrue(CMathf::equalsZt(CMathf::asin(1), 1.570796327)); }