home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: STMLRG */
-
- main()
-
- {
- int *fp,i,icol,icolx,m,n;
- float a[4][4];
- static float x[5][4]={ 2., 1., 3.,-1.,
- 3.,-1., 0., 3.,
- -2., 0., 2., 4.,
- 1.,-2., 2., 1.,
- 3.,-1., 3.,-1.};
-
- icol = 4;
- icolx = 4;
- m = 5;
- n = 3;
-
- stmlrg(n,m,a,icol,x,icolx);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from STMLRG\n");
- printf("Test Results from STMLRG\n\n");
-
- for(i = 0; i <= icol-1; i++)
- {
- fprintf(*fp," %15.10f \n",a[i][3]);
- printf( " %15.10f \n",a[i][3]);
- }
- }
-