home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / Samples / C-SSP.ARJ / STGAMA.TST < prev    next >
Encoding:
Text File  |  1984-08-31  |  552 b   |  24 lines

  1.         /* General form test program for scientific functions */
  2.  
  3.         /* Routine Tested:  STGAMA */
  4.  
  5.         main()
  6.  
  7.         {
  8.         float x,df,cf;
  9.         int *fp,m;
  10.  
  11.         *fp=fopen("PRN:","w");                /* open the printer */
  12.         fprintf(*fp,"Test Results from STGAMA\n\n");
  13.         printf("Test Results from STGAMA\n\n");
  14.  
  15.         m = 3;
  16.         x = .05;
  17.  
  18.         stgama(m,x,&df,&cf);
  19.  
  20.         fprintf(*fp,"DF = %15.7f  CF = %15.7f\n",df,cf);
  21.          printf("DF = %15.7f  CF = %15.7f\n",df,cf);
  22.  
  23.        }
  24.