/* tdgama.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: qgama pctg Input parameter: a -> real: 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,p,z,c; int k; if(na!=2){ printf("para: pg\n"); exit(-1);} printf(" Test of Gamma Distribution\n"); a=atof(*++av); printf(" parameter = %.3f\n",a); printf(" p Z(p) check\n"); for(k=0; k