home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: STANVL */
-
- main()
-
- {
- int *fp,i,lcd,lcm,n;
- static int m[4][4]={1,2,3,4,
- 4,1,2,3,
- 3,4,1,2,
- 2,3,4,1};
-
- float ans[15],t[4];
- static float d[4][4]={24.,37.,35.,42.,
- 47.,85.,23.,47.,
- 65.,49.,23.,62.,
- 12.,14.,19.,23.};
-
- lcd = 4;
- lcm = 4;
- n = 4;
-
- stanvl(lcd,lcm,n,m,d,ans,t);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from STANVL\n");
- printf("Test Results from STANVL\n\n");
-
-
- for(i = 0; i <= 14; i++)
- {
- fprintf(*fp," ans[%d] = %15.8f \n",i,ans[i]);
- printf( " ans[%d] = %15.8f \n",i,ans[i]);
- }
- }
-