home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: NMDT */
-
- main()
-
- {
- int *fp,i;
- float x,p;
- static float xx[4]={-3.9,-2.4,-.9,.6};
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from NMDT\n");
- printf("Test Results from NMDT\n\n");
-
- for (i = 0; i <= 3; i++)
- {
- x = xx[i];
- nmdt(x,&p);
-
- fprintf(*fp," %15.10f \n",p);
- printf( " %15.10f \n",p);
- }
- }
-