39 static const double atanhi[] = {
40 4.63647609000806093515e-01,
41 7.85398163397448278999e-01,
42 9.82793723247329054082e-01,
43 1.57079632679489655800e+00,
46 static const double atanlo[] = {
47 2.26987774529616870924e-17,
48 3.06161699786838301793e-17,
49 1.39033110312309984516e-17,
50 6.12323399573676603587e-17,
53 static const double aT[] = {
54 3.33333333333329318027e-01,
55 -1.99999999998764832476e-01,
56 1.42857142725034663711e-01,
57 -1.11111104054623557880e-01,
58 9.09088713343650656196e-02,
59 -7.69187620504482999495e-02,
60 6.66107313738753120669e-02,
61 -5.83357013379057348645e-02,
62 4.97687799461593236017e-02,
63 -3.65315727442169155270e-02,
64 1.62858201153657823623e-02,
83 (ix==0x7ff00000&&(low!=0)))
85 if(hx>0)
return atanhi[3]+atanlo[3];
86 else return -atanhi[3]-atanlo[3];
87 }
if (ix < 0x3fdc0000) {
88 if (ix < 0x3e200000) {
89 if(huge+x>
one)
return x;
94 if (ix < 0x3ff30000) {
95 if (ix < 0x3fe60000) {
96 id = 0; x = (2.0*x-
one)/(2.0+x);
98 id = 1; x = (x-
one)/(x+
one);
101 if (ix < 0x40038000) {
102 id = 2; x = (x-1.5)/(
one+1.5*x);
111 s1 = z*(aT[0]+w*(aT[2]+w*(aT[4]+w*(aT[6]+w*(aT[8]+w*aT[10])))));
112 s2 = w*(aT[1]+w*(aT[3]+w*(aT[5]+w*(aT[7]+w*aT[9]))));
113 if (
id<0)
return x - x*(s1+s2);
115 z = atanhi[id] - ((x*(s1+s2) - atanlo[
id]) - x);
120 #if LDBL_MANT_DIG == 53 122 __weak_alias(atanl,
atan);
#define GET_HIGH_WORD(i, d)
#define GET_LOW_WORD(i, d)