home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: PLYMUL */
-
- main()
-
- {
- int *fp,i,nda,ndb,ndc;
- static float a[4]={2.,2.,2.,2.},
- b[3]={1.,-1.,2.};
- float c[7];
-
- nda = 3;
- ndb = 2;
-
- plymul(a,b,nda,ndb,c,&ndc);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from PLYMUL\n\n");
- printf("Test Results from PLYMUL\n\n");
-
- fprintf(*fp," NDC: %6.3d\n",ndc);
- printf(" NDC: %6.3d\n",ndc);
-
- for(i = 0; i <= ndc; i++)
- {
- fprintf(*fp,"%9.5f\n",c[i]);
- printf("%9.5f\n",c[i]);
- }
- }