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

  1.         /* General form test program for scientific functions */
  2.  
  3.         /* Routine Tested:  PLYINT */
  4.  
  5.         main()
  6.  
  7.         {
  8.         int *fp,nda;
  9.         static float a[5]={2.,0.,-1.,2.,1.5};
  10.         float b,c,ans;
  11.  
  12.         nda = 4;
  13.         b = 1.;
  14.         c = 2.;
  15.  
  16.         plyint(a,nda,b,c,&ans);
  17.  
  18.         *fp=fopen("PRN:","w");                 /* open the printer */
  19.  
  20.         fprintf(*fp,"Test Results from PLYINT\n\n");
  21.          printf("Test Results from PLYINT\n\n");
  22.  
  23.         fprintf(*fp," ANS = %18.9f\n\n",ans);
  24.          printf(" ANS = %18.9f\n\n",ans);
  25.  
  26.         }
  27.  
  28.