home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: PLYCFC */
-
- main()
-
- {
- int *fp,i,ndp,nds,ndc;
- static float p[4]={4.,-17.,11.,5.},
- s[4]={2.,-3.,-11.,-3.};
- float c[4];
-
- ndp = 3;
- nds = 3;
-
- plycfc(p,s,ndp,nds,c,&ndc);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from PLYCFC\n\n");
- printf("Test Results from PLYCFC\n\n");
-
- fprintf(*fp," NDC= %d\n",ndc);
- printf(" NDC= %d\n",ndc);
-
- for(i = 0; i <= ndc; i++)
- {
- fprintf(*fp,"%9.5f\n",c[i]);
- printf("%9.5f\n",c[i]);
- }
- }