/* tdbeta.c CCMATH mathematics library source code. * * Copyright (C) 2000 Daniel A. Atkinson All rights reserved. * This code may be redistributed under the terms of the GNU library * public license (LGPL). ( See the lgpl.license file for details.) * ------------------------------------------------------------------------ */ /* Test: qbeta pctb Input parameters: a -> real: first distribution parameter b -> real: second distribution parameter */ #include "ccmath.h" #define N 11 double pct[]={.001,.01,.05,.1,.25,.5,.75,.9,.95,.99,.999}; void main(int na,char **av) { double a,b,p,z,c; int k; if(na!=3){ printf("para: pa pb\n"); exit(-1);} printf(" Test of Beta Distribution\n"); a=atof(*++av); b=atof(*++av); printf(" parameters: a= %.3f b= %.3f\n",a,b); printf(" p Z(p) check\n"); for(k=0; k