home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: STANV1 */
-
- main()
-
- {
- int *fp,i,m,n;
- static int k[5]={5,5,5,5,5};
- static float x[20]={56.,55.,62.,59.,60.,64.,61.,50.,55.,56.,
- 45.,46.,45.,39.,43.,42.,39.,45.,43.,41.};
- float av[10],f;
-
- m = 4;
- n = 20;
-
- stanv1(n,m,k,x,&f,av);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from STANV1\n");
- printf("Test Results from STANV1\n\n");
-
- fprintf(*fp," f = %15.8f\n",f);
- printf( " f = %15.8f\n",f);
-
- for(i = 0; i <= 9; i++)
- {
- fprintf(*fp," av[%d] = %15.8f \n",i,av[i]);
- printf( " av[%d] = %15.8f \n",i,av[i]);
- }
- }
-