summaryrefslogtreecommitdiff
path: root/include/math.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/math.h')
-rw-r--r--include/math.h254
1 files changed, 127 insertions, 127 deletions
diff --git a/include/math.h b/include/math.h
index 032b2b073..ab74e5ee8 100644
--- a/include/math.h
+++ b/include/math.h
@@ -1,3 +1,5 @@
+#ifndef _MATH_H
+#define _MATH_H
/*
* This file was automatically generated by version 1.7 of cextract.
* Manual editing not recommended.
@@ -8,8 +10,8 @@
*/
typedef struct {
- float r;
- float i;
+ double r;
+ double i;
}cmplxf;
/* Some useful constants. */
@@ -28,149 +30,147 @@ typedef struct {
#define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
-#if 1
-extern double sin(double);
-extern double cos(double);
-extern double sqrt(double);
-#else
-extern float acos ( float x );
-extern float acosh ( float xx );
-extern int airy ( float xx, float *ai, float *aip, float *bi, float *bip );
-extern float asin ( float xx );
-extern float asinh ( float xx );
-extern float atan2 ( float y, float x );
-extern float atan ( float xx );
-extern float atanh ( float xx );
-extern float bdtrc ( int k, int n, float pp );
-extern float bdtr ( int k, int n, float pp );
-extern float bdtri ( int k, int n, float yy );
-extern float beta ( float aa, float bb );
-extern float cabs ( cmplxf *z );
+extern double acos ( double x );
+extern double acosh ( double xx );
+extern int airy ( double xx, double *ai, double *aip, double *bi, double *bip );
+extern double asin ( double xx );
+extern double asinh ( double xx );
+extern double atan2 ( double y, double x );
+extern double atan ( double xx );
+extern double atanh ( double xx );
+extern double bdtrc ( int k, int n, double pp );
+extern double bdtr ( int k, int n, double pp );
+extern double bdtri ( int k, int n, double yy );
+extern double beta ( double aa, double bb );
+extern double cabs ( cmplxf *z );
extern void cacos ( cmplxf *z, cmplxf *w );
extern void cadd ( cmplxf *a, cmplxf *b, cmplxf *c );
extern void casin ( cmplxf *z, cmplxf *w );
extern void catan ( cmplxf *z, cmplxf *w );
-extern float cbrt ( float xx );
-extern void cchsh ( float xx, float *c, float *s );
+extern double cbrt ( double xx );
+extern void cchsh ( double xx, double *c, double *s );
extern void ccos ( cmplxf *z, cmplxf *w );
extern void ccot ( cmplxf *z, cmplxf *w );
extern void cdiv ( cmplxf *a, cmplxf *b, cmplxf *c );
-extern float ceil ( float x );
+extern double ceil ( double x );
extern void cexp ( cmplxf *z, cmplxf *w );
-extern float chbevl ( float x, float *array, int n );
-extern float chdtrc ( float dff, float xx );
-extern float chdtr ( float dff, float xx );
-extern float chdtri ( float dff, float yy );
+extern double chbevl ( double x, double *array, int n );
+extern double chdtrc ( double dff, double xx );
+extern double chdtr ( double dff, double xx );
+extern double chdtri ( double dff, double yy );
+#if 0
extern void clog ( cmplxf *z, cmplxf *w );
+#endif
extern void cmov ( short *a, short *b );
extern void cmul ( cmplxf *a, cmplxf *b, cmplxf *c );
extern void cneg ( cmplxf *a );
-extern float cosdg ( float xx );
-extern float cos ( float xx );
-extern float cosh ( float xx );
-extern float cotdg ( float x );
-extern float cot ( float x );
+extern double cosdg ( double xx );
+extern double cos ( double xx );
+extern double cosh ( double xx );
+extern double cotdg ( double x );
+extern double cot ( double x );
extern void csin ( cmplxf *z, cmplxf *w );
extern void csqrt ( cmplxf *z, cmplxf *w );
extern void csub ( cmplxf *a, cmplxf *b, cmplxf *c );
extern void ctan ( cmplxf *z, cmplxf *w );
-extern float ctans ( cmplxf *z );
-extern float dawsn ( float xxx );
+extern double ctans ( cmplxf *z );
+extern double dawsn ( double xxx );
extern int dprec ( void );
-extern float ellie ( float phia, float ma );
-extern float ellik ( float phia, float ma );
-extern float ellpe ( float xx );
-extern int ellpj ( float uu, float mm, float *sn, float *cn, float *dn, float *ph );
-extern float ellpk ( float xx );
-extern float erfc ( float aa );
-extern float erf ( float xx );
-extern float exp10 ( float xx );
-extern float exp2 ( float xx );
-extern float exp ( float xx );
-extern float expn ( int n, float xx );
-extern float fac ( int i );
-extern float fdtrc ( int ia, int ib, float xx );
-extern float fdtr ( int ia, int ib, int xx );
-extern float fdtri ( int ia, int ib, float yy );
-extern float floor ( float x );
-extern void fresnl ( float xxa, float *ssa, float *cca );
-extern float frexp ( float x, int *pw2 );
-extern float gamma ( float xx );
-extern float gdtrc ( float aa, float bb, float xx );
-extern float gdtr ( float aa, float bb, float xx );
-extern float hyp2f0 ( float aa, float bb, float xx, int type, float *err );
-extern float hyp2f1 ( float aa, float bb, float cc, float xx );
-extern float hyperg ( float aa, float bb, float xx );
-extern float i0e ( float x );
-extern float i0 ( float x );
-extern float i1e ( float xx );
-extern float i1 ( float xx );
-extern float igamc ( float aa, float xx );
-extern float igam ( float aa, float xx );
-extern float igami ( float aa, float yy0 );
-extern float incbet ( float aaa, float bbb, float xxx );
-extern float incbi ( float aaa, float bbb, float yyy0 );
-extern float incbps ( float aa, float bb, float xx );
-extern float iv ( float v, float x );
-extern float j0 ( float xx );
-extern float j1 ( float xx );
-extern float jn ( int n, float xx );
-extern float jv ( float nn, float xx );
-extern float k0e ( float xx );
-extern float k0 ( float xx );
-extern float k1e ( float xx );
-extern float k1 ( float xx );
-extern float kn ( int nnn, float xx );
-extern float ldexp ( float x, int pw2 );
+extern double ellie ( double phia, double ma );
+extern double ellik ( double phia, double ma );
+extern double ellpe ( double xx );
+extern int ellpj ( double uu, double mm, double *sn, double *cn, double *dn, double *ph );
+extern double ellpk ( double xx );
+extern double erfc ( double aa );
+extern double erf ( double xx );
+extern double exp10 ( double xx );
+extern double exp2 ( double xx );
+extern double exp ( double xx );
+extern double expn ( int n, double xx );
+extern double fac ( int i );
+extern double fdtrc ( int ia, int ib, double xx );
+extern double fdtr ( int ia, int ib, int xx );
+extern double fdtri ( int ia, int ib, double yy );
+extern double floor ( double x );
+extern void fresnl ( double xxa, double *ssa, double *cca );
+extern double frexp ( double x, int *pw2 );
+extern double gamma ( double xx );
+extern double gdtrc ( double aa, double bb, double xx );
+extern double gdtr ( double aa, double bb, double xx );
+extern double hyp2f0 ( double aa, double bb, double xx, int type, double *err );
+extern double hyp2f1 ( double aa, double bb, double cc, double xx );
+extern double hyperg ( double aa, double bb, double xx );
+extern double i0e ( double x );
+extern double i0 ( double x );
+extern double i1e ( double xx );
+extern double i1 ( double xx );
+extern double igamc ( double aa, double xx );
+extern double igam ( double aa, double xx );
+extern double igami ( double aa, double yy0 );
+extern double incbet ( double aaa, double bbb, double xxx );
+extern double incbi ( double aaa, double bbb, double yyy0 );
+extern double incbps ( double aa, double bb, double xx );
+extern double iv ( double v, double x );
+extern double j0 ( double xx );
+extern double j1 ( double xx );
+extern double jn ( int n, double xx );
+extern double jv ( double nn, double xx );
+extern double k0e ( double xx );
+extern double k0 ( double xx );
+extern double k1e ( double xx );
+extern double k1 ( double xx );
+extern double kn ( int nnn, double xx );
+extern double ldexp ( double x, int pw2 );
extern int ldprec ( void );
-extern float lgam ( float xx );
-extern float log10 ( float xx );
-extern float log2 ( float xx );
-extern float log ( float xx );
+extern double lgam ( double xx );
+extern double log10 ( double xx );
+extern double log2 ( double xx );
+extern double log ( double xx );
/* extern int mtherr ( char *name, int code ); */
-extern float nbdtrc ( int k, int n, float pp );
-extern float nbdtr ( int k, int n, float pp );
-extern float ndtr ( float aa );
-extern float ndtri ( float yy0 );
-extern float onef2 ( float aa, float bb, float cc, float xx, float *err );
-extern float p1evl ( float xx, float *coef, int N );
-extern float pdtrc ( int k, float mm );
-extern float pdtr ( int k, float mm );
-extern float pdtri ( int k, float yy );
-extern void poladd ( float a[], int na, float b[], int nb, float c[] );
-extern void polclr ( float *a, int n );
-extern int poldiv ( float a[], int na, float b[], int nb, float c[] );
-extern float poleva ( float *a, int na, float xx );
-extern float polevl ( float xx, float *coef, int N );
+extern double nbdtrc ( int k, int n, double pp );
+extern double nbdtr ( int k, int n, double pp );
+extern double ndtr ( double aa );
+extern double ndtri ( double yy0 );
+extern double onef2 ( double aa, double bb, double cc, double xx, double *err );
+extern double p1evl ( double xx, double *coef, int N );
+extern double pdtrc ( int k, double mm );
+extern double pdtr ( int k, double mm );
+extern double pdtri ( int k, double yy );
+extern void poladd ( double a[], int na, double b[], int nb, double c[] );
+extern void polclr ( double *a, int n );
+extern int poldiv ( double a[], int na, double b[], int nb, double c[] );
+extern double poleva ( double *a, int na, double xx );
+extern double polevl ( double xx, double *coef, int N );
extern void polini ( int maxdeg );
-extern void polmov ( float *a, int na, float *b );
-extern void polmul ( float a[], int na, float b[], int nb, float c[] );
-extern void polprt ( float *a, int na, int d );
-extern void polsbt ( float a[], int na, float b[], int nb, float c[] );
-extern void polsub ( float a[], int na, float b[], int nb, float c[] );
-extern float pow ( float x, float y );
-extern float powi ( float x, int nn );
-extern float psi ( float xx );
-extern float redupi ( float xx );
-extern float rgamma ( float xx );
-extern int shichi ( float xx, float *si, float *ci );
-extern int sici ( float xx, float *si, float *ci );
-extern float sindg ( float xx );
-extern float sin ( float xx );
-extern float sinh ( float xx );
-extern float spence ( float xx );
+extern void polmov ( double *a, int na, double *b );
+extern void polmul ( double a[], int na, double b[], int nb, double c[] );
+extern void polprt ( double *a, int na, int d );
+extern void polsbt ( double a[], int na, double b[], int nb, double c[] );
+extern void polsub ( double a[], int na, double b[], int nb, double c[] );
+extern double pow ( double x, double y );
+extern double powi ( double x, int nn );
+extern double psi ( double xx );
+extern double redupi ( double xx );
+extern double rgamma ( double xx );
+extern int shichi ( double xx, double *si, double *ci );
+extern int sici ( double xx, double *si, double *ci );
+extern double sindg ( double xx );
+extern double sin ( double xx );
+extern double sinh ( double xx );
+extern double spence ( double xx );
extern int sprec ( void );
-extern float sqrt ( float xx );
-extern float stdtr ( int k, float tt );
-extern float struve ( float vv, float xx );
-extern float tandg ( float x );
-extern float tan ( float x );
-extern float tanh ( float xx );
-extern float threef0 ( float aa, float bb, float cc, float xx, float *err );
-extern float y0 ( float xx );
-extern float y1 ( float xx );
-extern float yn ( int nn, float xx );
-extern float yv ( float vv, float xx );
-extern float zetac ( float xx );
-extern float zeta ( float xx, float qq );
-#endif
+extern double sqrt ( double xx );
+extern double stdtr ( int k, double tt );
+extern double struve ( double vv, double xx );
+extern double tandg ( double x );
+extern double tan ( double x );
+extern double tanh ( double xx );
+extern double threef0 ( double aa, double bb, double cc, double xx, double *err );
+extern double y0 ( double xx );
+extern double y1 ( double xx );
+extern double yn ( int nn, double xx );
+extern double yv ( double vv, double xx );
+extern double zetac ( double xx );
+extern double zeta ( double xx, double qq );
+
+#endif /* _MATH_H */