home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 41 / IOPROG_41.ISO / soft / c++ / NUMCPP11.ZIP / mathx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-09  |  5.2 KB  |  134 lines

  1. //===================================================================
  2. // mathx.h
  3. //
  4. // Version 1.1
  5. //
  6. // Written by:
  7. //   Brent Worden
  8. //   WordenWare
  9. //   email:  Brent@Worden.org
  10. //
  11. // Copyright (c) 1998-1999 WordenWare
  12. //
  13. // Created:  August 28, 1998
  14. // Revised:  April 10, 1999
  15. //===================================================================
  16.  
  17. #ifndef _MATHX_H_
  18. #define _MATHX_H_
  19.  
  20. #include "numerics.h"
  21.  
  22. NUM_BEGIN
  23.  
  24. NUMERICS_EXPORT double acosh(double x);
  25. //--------------------------------------------------------------------
  26. // Returns the inverse hyperbolic cosine of x.
  27. //--------------------------------------------------------------------
  28.  
  29. NUMERICS_EXPORT double asinh(double x);
  30. //--------------------------------------------------------------------
  31. // Returns the inverse hyperbolic sine of x.
  32. //--------------------------------------------------------------------
  33.  
  34. NUMERICS_EXPORT double atanh(double x);
  35. //--------------------------------------------------------------------
  36. // Returns the inverse hyperbolic tangent of x.
  37. //--------------------------------------------------------------------
  38.  
  39. NUMERICS_EXPORT double beta(double z, double w);
  40. //--------------------------------------------------------------------
  41. // Returns the value of the beta function B(z,w).
  42. //--------------------------------------------------------------------
  43.  
  44. NUMERICS_EXPORT double betai(double a, double b, double x);
  45. //--------------------------------------------------------------------
  46. // Returns the incomplete beta function Ix(a,b).
  47. //--------------------------------------------------------------------
  48.  
  49. NUMERICS_EXPORT double bico(int n, int x);
  50. //--------------------------------------------------------------------
  51. // Returns the binomial coefficient nCx as a floating-point number.
  52. //--------------------------------------------------------------------
  53.  
  54. NUMERICS_EXPORT double bicoln(int n, int k);
  55. //--------------------------------------------------------------------
  56. // Returns the Ln(nCx).
  57. //--------------------------------------------------------------------
  58.  
  59. NUMERICS_EXPORT double erff(double x);
  60. //--------------------------------------------------------------------
  61. // Returns the error function erf(x).
  62. //--------------------------------------------------------------------
  63.  
  64. NUMERICS_EXPORT double erffc(double x);
  65. //--------------------------------------------------------------------
  66. // Returns the complementary error function erfc(x).
  67. //--------------------------------------------------------------------
  68.  
  69. NUMERICS_EXPORT double erfcc(double x);
  70. //--------------------------------------------------------------------
  71. // Returns the complementary error function erfc(x) with fractional
  72. // error everywhere less than 1.2 X 10^-7.
  73. //--------------------------------------------------------------------
  74.  
  75. NUMERICS_EXPORT double expint(int n, double x);
  76. //--------------------------------------------------------------------
  77. // Evaluates the exponential integral En(x).
  78. //--------------------------------------------------------------------
  79.  
  80. NUMERICS_EXPORT double factrl(int n);
  81. //--------------------------------------------------------------------
  82. // Returns the value n! as a floating-point number.
  83. //--------------------------------------------------------------------
  84.  
  85. NUMERICS_EXPORT double gammln(double xx);
  86. //--------------------------------------------------------------------
  87. // Returns the value Ln(Gamma(xx)).
  88. //--------------------------------------------------------------------
  89.  
  90. NUMERICS_EXPORT double gammp(double a, double x);
  91. //--------------------------------------------------------------------
  92. // Returns the incomplete gamma function P(a,x).
  93. //--------------------------------------------------------------------
  94.  
  95. NUMERICS_EXPORT double gammq(double a, double x);
  96. //--------------------------------------------------------------------
  97. // Returns the incomplete gamma function Q(a,x)=1-P(a,x).
  98. //--------------------------------------------------------------------
  99.  
  100. NUMERICS_EXPORT double factln(int n);
  101. //--------------------------------------------------------------------
  102. // Returns Ln(n!).
  103. //--------------------------------------------------------------------
  104.  
  105. NUMERICS_EXPORT double log1x(double x);
  106. //--------------------------------------------------------------------
  107. // Returns Ln(1 + x).
  108. //--------------------------------------------------------------------
  109.  
  110. NUMERICS_EXPORT double pythag(double a, double b);
  111. //--------------------------------------------------------------------
  112. // Returns sqrt(a^2 + b^2) without destructive overflow or underflow.
  113. //--------------------------------------------------------------------
  114.  
  115. NUMERICS_EXPORT double sign(double x);
  116. //--------------------------------------------------------------------
  117. // Returns:
  118. // -1 if x < 0
  119. //  0 if x = 0
  120. //  1 if x > 0
  121. //--------------------------------------------------------------------
  122.  
  123. NUM_END
  124.  
  125. #endif
  126.  
  127. //====================================================================
  128. // Revision History
  129. //
  130. // Version 1.0 - 08/28/1998 - New.
  131. // Version 1.1 - 04/10/1999 - Added Numerics namespace.
  132. //====================================================================
  133.  
  134.