home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: SMOTH */
-
- main()
-
- {
- int *fp,i,l,m,n;
- static float u[24]={2203.,2360.,2254.,2165.,2024.,2078.,
- 2214.,2292.,2207.,2119.,2119.,2137.,
- 2132.,1955.,1785.,1747.,1818.,1909.,
- 1958.,1892.,1919.,1853.,1868.,1991.},
- w[5] ={.15,.15,.4,.15,.15};
- float smooth[24];
-
- l = 1;
- m = 5;
- n = 24;
-
- smoth(u,n,w,m,l,smooth);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from SMOTH\n");
- printf("Test Results from SMOTH\n\n");
-
- for(i = 0; i <= n-1; i++)
- {
- fprintf(*fp,"%15.10f \n",smooth[i]);
- printf( "%15.10f \n",smooth[i]);
- }
- }
-