home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: NAORDR */
-
- main()
-
- {
- int *fp,m,k,n;
- static float f[10]={1.,8.,27.,64.,125.,216.,343.,512.,729.,1000.};
- float eps;
-
- n = 10;
- eps = 0.0001;
-
- naordr(n,f,eps,&m,&k);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from NAORDR\n\n");
- printf("Test Results from NAORDR\n\n");
-
- fprintf(*fp," M= %d K= %d\n\n",m,k);
- printf(" M= %d k= %d\n\n",m,k);
-
- }
-