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

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