math.h 7.0 KB

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