home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: STANV2 */
-
- main()
-
- {
- int *fp,i,llc,nr,nc;
- static float x[3][3]={1.26, 1.21, 1.19,
- 1.29, 1.23, 1.23,
- 1.38, 1.27, 1.22};
- float av[13];
-
- llc = 3;
- nr = 3;
- nc = 3;
-
- stanv2(llc,nr,nc,x,av);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from STANV2\n");
- printf("Test Results from STANV2\n\n");
-
- for(i = 0; i <= 12; i++)
- {
- fprintf(*fp," av[%d] = %15.8f \n",i,av[i]);
- printf( " av[%d] = %15.8f \n",i,av[i]);
- }
- }
-