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