OSDN Git Service

A number of updates from Manuel Novoa III. Things look good...
[uclinux-h8/uClibc.git] / include / math.h
1 /*
2  *   This file was automatically generated by version 1.7 of cextract.
3  *   Manual editing not recommended.
4  *
5  *   Created: Fri Feb 23 20:31:13 1996
6  *
7  *   Modified (anyway) for PalmOS Feb 22, 1997, D.Jeff Dionne
8  */
9
10 typedef struct {
11  float r;
12  float i;
13 }cmplxf;
14
15 /* Some useful constants.  */
16 #define M_E             2.7182818284590452354   /* e */
17 #define M_LOG2E         1.4426950408889634074   /* log_2 e */
18 #define M_LOG10E        0.43429448190325182765  /* log_10 e */
19 #define M_LN2           0.69314718055994530942  /* log_e 2 */
20 #define M_LN10          2.30258509299404568402  /* log_e 10 */
21 #define M_PI            3.14159265358979323846  /* pi */
22 #define M_PI_2          1.57079632679489661923  /* pi/2 */
23 #define M_PI_4          0.78539816339744830962  /* pi/4 */
24 #define M_1_PI          0.31830988618379067154  /* 1/pi */
25 #define M_2_PI          0.63661977236758134308  /* 2/pi */
26 #define M_2_SQRTPI      1.12837916709551257390  /* 2/sqrt(pi) */
27 #define M_SQRT2         1.41421356237309504880  /* sqrt(2) */
28 #define M_SQRT1_2       0.70710678118654752440  /* 1/sqrt(2) */
29
30
31 #if 1
32 extern double sin(double);
33 extern double cos(double);
34 extern double sqrt(double);
35 #else
36 extern float acos ( float x );
37 extern float acosh ( float xx );
38 extern int airy ( float xx, float *ai, float *aip, float *bi, float *bip );
39 extern float asin ( float xx );
40 extern float asinh ( float xx );
41 extern float atan2 ( float y, float x );
42 extern float atan ( float xx );
43 extern float atanh ( float xx );
44 extern float bdtrc ( int k, int n, float pp );
45 extern float bdtr ( int k, int n, float pp );
46 extern float bdtri ( int k, int n, float yy );
47 extern float beta ( float aa, float bb );
48 extern float cabs ( cmplxf *z );
49 extern void cacos ( cmplxf *z, cmplxf *w );
50 extern void cadd ( cmplxf *a, cmplxf *b, cmplxf *c );
51 extern void casin ( cmplxf *z, cmplxf *w );
52 extern void catan ( cmplxf *z, cmplxf *w );
53 extern float cbrt ( float xx );
54 extern void cchsh ( float xx, float *c, float *s );
55 extern void ccos ( cmplxf *z, cmplxf *w );
56 extern void ccot ( cmplxf *z, cmplxf *w );
57 extern void cdiv ( cmplxf *a, cmplxf *b, cmplxf *c );
58 extern float ceil ( float x );
59 extern void cexp ( cmplxf *z, cmplxf *w );
60 extern float chbevl ( float x, float *array, int n );
61 extern float chdtrc ( float dff, float xx );
62 extern float chdtr ( float dff, float xx );
63 extern float chdtri ( float dff, float yy );
64 extern void clog ( cmplxf *z, cmplxf *w );
65 extern void cmov ( short *a, short *b );
66 extern void cmul ( cmplxf *a, cmplxf *b, cmplxf *c );
67 extern void cneg ( cmplxf *a );
68 extern float cosdg ( float xx );
69 extern float cos ( float xx );
70 extern float cosh ( float xx );
71 extern float cotdg ( float x );
72 extern float cot ( float x );
73 extern void csin ( cmplxf *z, cmplxf *w );
74 extern void csqrt ( cmplxf *z, cmplxf *w );
75 extern void csub ( cmplxf *a, cmplxf *b, cmplxf *c );
76 extern void ctan ( cmplxf *z, cmplxf *w );
77 extern float ctans ( cmplxf *z );
78 extern float dawsn ( float xxx );
79 extern int dprec ( void );
80 extern float ellie ( float phia, float ma );
81 extern float ellik ( float phia, float ma );
82 extern float ellpe ( float xx );
83 extern int ellpj ( float uu, float mm, float *sn, float *cn, float *dn, float *ph );
84 extern float ellpk ( float xx );
85 extern float erfc ( float aa );
86 extern float erf ( float xx );
87 extern float exp10 ( float xx );
88 extern float exp2 ( float xx );
89 extern float exp ( float xx );
90 extern float expn ( int n, float xx );
91 extern float fac ( int i );
92 extern float fdtrc ( int ia, int ib, float xx );
93 extern float fdtr ( int ia, int ib, int xx );
94 extern float fdtri ( int ia, int ib, float yy );
95 extern float floor ( float x );
96 extern void fresnl ( float xxa, float *ssa, float *cca );
97 extern float frexp ( float x, int *pw2 );
98 extern float gamma ( float xx );
99 extern float gdtrc ( float aa, float bb, float xx );
100 extern float gdtr ( float aa, float bb, float xx );
101 extern float hyp2f0 ( float aa, float bb, float xx, int type, float *err );
102 extern float hyp2f1 ( float aa, float bb, float cc, float xx );
103 extern float hyperg ( float aa, float bb, float xx );
104 extern float i0e ( float x );
105 extern float i0 ( float x );
106 extern float i1e ( float xx );
107 extern float i1 ( float xx );
108 extern float igamc ( float aa, float xx );
109 extern float igam ( float aa, float xx );
110 extern float igami ( float aa, float yy0 );
111 extern float incbet ( float aaa, float bbb, float xxx );
112 extern float incbi ( float aaa, float bbb, float yyy0 );
113 extern float incbps ( float aa, float bb, float xx );
114 extern float iv ( float v, float x );
115 extern float j0 ( float xx );
116 extern float j1 ( float xx );
117 extern float jn ( int n, float xx );
118 extern float jv ( float nn, float xx );
119 extern float k0e ( float xx );
120 extern float k0 ( float xx );
121 extern float k1e ( float xx );
122 extern float k1 ( float xx );
123 extern float kn ( int nnn, float xx );
124 extern float ldexp ( float x, int pw2 );
125 extern int ldprec ( void );
126 extern float lgam ( float xx );
127 extern float log10 ( float xx );
128 extern float log2 ( float xx );
129 extern float log ( float xx );
130 /* extern int mtherr ( char *name, int code ); */
131 extern float nbdtrc ( int k, int n, float pp );
132 extern float nbdtr ( int k, int n, float pp );
133 extern float ndtr ( float aa );
134 extern float ndtri ( float yy0 );
135 extern float onef2 ( float aa, float bb, float cc, float xx, float *err );
136 extern float p1evl ( float xx, float *coef, int N );
137 extern float pdtrc ( int k, float mm );
138 extern float pdtr ( int k, float mm );
139 extern float pdtri ( int k, float yy );
140 extern void poladd ( float a[], int na, float b[], int nb, float c[] );
141 extern void polclr ( float *a, int n );
142 extern int poldiv ( float a[], int na, float b[], int nb, float c[] );
143 extern float poleva ( float *a, int na, float xx );
144 extern float polevl ( float xx, float *coef, int N );
145 extern void polini ( int maxdeg );
146 extern void polmov ( float *a, int na, float *b );
147 extern void polmul ( float a[], int na, float b[], int nb, float c[] );
148 extern void polprt ( float *a, int na, int d );
149 extern void polsbt ( float a[], int na, float b[], int nb, float c[] );
150 extern void polsub ( float a[], int na, float b[], int nb, float c[] );
151 extern float pow ( float x, float y );
152 extern float powi ( float x, int nn );
153 extern float psi ( float xx );
154 extern float redupi ( float xx );
155 extern float rgamma ( float xx );
156 extern int shichi ( float xx, float *si, float *ci );
157 extern int sici ( float xx, float *si, float *ci );
158 extern float sindg ( float xx );
159 extern float sin ( float xx );
160 extern float sinh ( float xx );
161 extern float spence ( float xx );
162 extern int sprec ( void );
163 extern float sqrt ( float xx );
164 extern float stdtr ( int k, float tt );
165 extern float struve ( float vv, float xx );
166 extern float tandg ( float x );
167 extern float tan ( float x );
168 extern float tanh ( float xx );
169 extern float threef0 ( float aa, float bb, float cc, float xx, float *err );
170 extern float y0 ( float xx );
171 extern float y1 ( float xx );
172 extern float yn ( int nn, float xx );
173 extern float yv ( float vv, float xx );
174 extern float zetac ( float xx );
175 extern float zeta ( float xx, float qq );
176 #endif