home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: STEXTN */
-
- main()
-
- {
- static float x[5] = {1. ,2. ,3. , 4. , 5.},
- y[5] = {1.6,4.5,3.8,40.2,125.};
- float c,d,aa,bb,rate;
- int *fp,n;
-
- *fp=fopen("PRN:","w"); /* open the printer */
- fprintf(*fp,"Test Results from STEXTN\n\n");
- printf("Test Results from STEXTN\n\n");
-
- n = 5;
- c = 10.;
- d = 0.;
-
- STEXTN(n,c,d,x,y,&aa,&bb,&rate);
-
- fprintf(*fp,"AA = %15.7f BB = %15.7f RATE = %15.7f\n",aa,bb,rate);
- printf("AA = %15.7f BB = %15.7f RATE = %15.7f\n",aa,bb,rate);
-
- }