49 #ifdef POK_NEEDS_LIBMATH
53 #include "math_private.h"
55 static const double atanhi[] = {
56 4.63647609000806093515e-01,
57 7.85398163397448278999e-01,
58 9.82793723247329054082e-01,
59 1.57079632679489655800e+00,
62 static const double atanlo[] = {
63 2.26987774529616870924e-17,
64 3.06161699786838301793e-17,
65 1.39033110312309984516e-17,
66 6.12323399573676603587e-17,
69 static const double aT[] = {
70 3.33333333333329318027e-01,
71 -1.99999999998764832476e-01,
72 1.42857142725034663711e-01,
73 -1.11111104054623557880e-01,
74 9.09088713343650656196e-02,
75 -7.69187620504482999495e-02,
76 6.66107313738753120669e-02,
77 -5.83357013379057348645e-02,
78 4.97687799461593236017e-02,
79 -3.65315727442169155270e-02,
80 1.62858201153657823623e-02,
99 (ix==0x7ff00000&&(low!=0)))
101 if(hx>0)
return atanhi[3]+atanlo[3];
102 else return -atanhi[3]-atanlo[3];
103 }
if (ix < 0x3fdc0000) {
104 if (ix < 0x3e200000) {
105 if(huge+x>one)
return x;
110 if (ix < 0x3ff30000) {
111 if (ix < 0x3fe60000) {
112 id = 0; x = (2.0*x-one)/(2.0+x);
114 id = 1; x = (x-one)/(x+one);
117 if (ix < 0x40038000) {
118 id = 2; x = (x-1.5)/(one+1.5*x);
127 s1 = z*(aT[0]+w*(aT[2]+w*(aT[4]+w*(aT[6]+w*(aT[8]+w*aT[10])))));
128 s2 = w*(aT[1]+w*(aT[3]+w*(aT[5]+w*(aT[7]+w*aT[9]))));
129 if (
id<0)
return x - x*(s1+s2);
131 z = atanhi[id] - ((x*(s1+s2) - atanlo[
id]) - x);