home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: VEPROD */
-
- main()
-
- {
- int *fp,n;
- static float a[8]={1.,2.,3.,4.,5.,6.,7.,8.};
- static float b[8]={3.,6.,9.,12.,15.,18.,21.,24.};
- float c;
-
- n = 8;
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from VEPROD\n\n");
- printf("Test Results from VEPROD\n\n");
-
-
- veprod(a,b,&c,n);
-
- fprintf(*fp,"%9.4f\n",c);
- printf("%9.4f\n",c);
-
- }