home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: STLNRG */
-
- main()
-
- {
- int *fp,i,k;
- static int nyval[5]={3,2,5,1,4};
- static float xy[20]={4.,6.,8.,7.,7.,1.,3.,6.,1.,2.,
- 3.,4.,5.,1.,2.,5.,2.,4.,6.,8.};
- float ans[16];
-
- k = 5;;
-
- stlnrg(k,nyval,xy,ans);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from STLNRG\n");
- printf("Test Results from STLNRG\n\n");
-
- for(i = 0; i <= 15; i++)
- {
- fprintf(*fp,"ans[%2d] = %15.10f \n",i,ans[i]);
- printf( "ans[%2d] = %15.10f \n",i,ans[i]);
- }
- }
-