home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: NTRTCX */
-
- main()
-
- {
- int *fp,i,n;
- float a,b,c[5],d[5];
-
- a = -1.;;
- b = 0.;
- n = 5;
-
- ntrtcx(a,b,n,c,d);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from NTRTCX\n\n");
- printf("Test Results from NTRTCX\n\n");
-
- for(i = 0; i <= n-1; i ++)
- {
- fprintf(*fp," %15.10f %15.10f \n",c[i],d[i]);
- printf( " %15.10f %15.10f \n",c[i],d[i]);
- }
- }
-