home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: STANVR */
-
- main()
-
- {
- int *fp,i,lcx,nt,nb;
- static float x[4][4]={4., 1.,-1., 0.,
- 1., 1.,-1.,-2.,
- 0., 0.,-3.,-2.,
- 0.,-5.,-4.,-4.};
- float av[13],ft,fb;
-
- lcx = 4;
- nt = 4;
- nb = 4;
-
- stanvr(lcx,nt,nb,x,&ft,&fb,av);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from STANVR\n");
- printf("Test Results from STANVR\n\n");
-
- fprintf(*fp," FT = %15.10f FB = %15.10f\n\n",ft,fb);
- printf( " FT = %15.10f FB = %15.10f\n\n",ft,fb);
-
-
- 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]);
- }
- }
-