home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: PLYINT */
-
- main()
-
- {
- int *fp,nda;
- static float a[5]={2.,0.,-1.,2.,1.5};
- float b,c,ans;
-
- nda = 4;
- b = 1.;
- c = 2.;
-
- plyint(a,nda,b,c,&ans);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from PLYINT\n\n");
- printf("Test Results from PLYINT\n\n");
-
- fprintf(*fp," ANS = %18.9f\n\n",ans);
- printf(" ANS = %18.9f\n\n",ans);
-
- }
-