home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: YENBOB */
-
- main()
-
- {
- int *fp,i,icol,icola;
- static float a[3][4]={17.2,-1.8,-1.,-11.4,
- -1.8, 5.2, 2., -1.4,
- -1. , 2. , 6., -8.
- };
-
- icola = 4;
- icol = 3;
-
- yenbob(a,icola,icol);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from YENBOB\n\n");
- printf("Test Results from YENBOB\n\n");
-
- fprintf(*fp,"Column 4 of array A = solution\n");
- printf( "Column 4 of array A = solution\n");
-
- for(i = 0; i <= icol-1; i ++)
- {
- fprintf(*fp," %15.7f \n",a[i][icol]);
- printf( " %15.7f \n",a[i][icol]);
- }
- }
-