home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: NALAGR */
-
- main()
-
- {
- int *fp,n;
- static float x[3]={1.,3.,5.},
- f[3]={1.5708,1.5719,1.5738};
- float xx,fx;
-
- n = 3;
- xx = 3.5;
-
- nalagr(n,x,f,xx,&fx);
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from NALAGR\n\n");
- printf("Test Results from NALAGR\n\n");
-
- fprintf(*fp," FX = %18.9f\n\n",fx);
- printf(" FX = %18.9f\n\n",fx);
-
- }
-