home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: STCORR */
-
- main()
-
- {
- float r;
- static float x[5]={ 1., 2., 3., 4., 5.},
- y[5]={ 5., 3., 0.,-5.,-11.};
- int *fp,n;
-
- *fp=fopen("PRN:","w"); /* open the printer */
- fprintf(*fp,"Test Results from STCORR\n\n");
- printf("Test Results from STCORR\n\n");
-
- n = 5;
-
- stcorr(n,x,y,&r);
-
- fprintf(*fp,"R = %15.7f\n",r);
- printf("R = %15.7f\n",r);
-
- }