home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: MOVEAV */
-
- main()
-
- {
- int *fp,i,l,n;
- static float a[38]={430.,426.,422.,419.,414.,413.,412.,409.,411.,
- 417.,422.,430.,438.,441.,447.,455.,461.,453.,
- 448.,449.,454.,463.,470.,472.,476.,481.,493.,
- 487.,491.,492.,485.,486.,482.,479.,479.,476.,
- 472.,470.};
- float b[38];
-
- l = 11;
- n = 38;
-
- moveav(a,n,l,b);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from MOVEAV\n");
- printf("Test Results from MOVEAV\n\n");
-
- for(i = 0; i <= n-1; i++)
- {
- fprintf(*fp," %15.10f \n",b[i]);
- printf( " %15.10f \n",b[i]);
- }
- }
-