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

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