home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / math / cephes / cprob / btdtr.c < prev    next >
Encoding:
Text File  |  1992-11-17  |  958 b   |  62 lines

  1.  
  2. /*                            btdtr.c
  3.  *
  4.  *    Beta distribution
  5.  *
  6.  *
  7.  *
  8.  * SYNOPSIS:
  9.  *
  10.  * double a, b, x, y, btdtr();
  11.  *
  12.  * y = btdtr( a, b, x );
  13.  *
  14.  *
  15.  *
  16.  * DESCRIPTION:
  17.  *
  18.  * Returns the area from zero to x under the beta density
  19.  * function:
  20.  *
  21.  *
  22.  *                          x
  23.  *            -             -
  24.  *           | (a+b)       | |  a-1      b-1
  25.  * P(x)  =  ----------     |   t    (1-t)    dt
  26.  *           -     -     | |
  27.  *          | (a) | (b)   -
  28.  *                         0
  29.  *
  30.  *
  31.  * This function is identical to the incomplete beta
  32.  * integral function incbet(a, b, x).
  33.  *
  34.  * The complemented function is
  35.  *
  36.  * 1 - P(1-x)  =  incbet( b, a, x );
  37.  *
  38.  *
  39.  * ACCURACY:
  40.  *
  41.  * See incbet.c.
  42.  *
  43.  */
  44.  
  45. /*                                btdtr()    */
  46.  
  47.  
  48. /*
  49. Cephes Math Library Release 2.0:  April, 1987
  50. Copyright 1984, 1987 by Stephen L. Moshier
  51. Direct inquiries to 30 Frost Street, Cambridge, MA 02140
  52. */
  53.  
  54.  
  55. double btdtr( a, b, x )
  56. double a, b, x;
  57. {
  58. double incbet();
  59.  
  60. return( incbet( a, b, x ) );
  61. }
  62.