home *** CD-ROM | disk | FTP | other *** search
- /* General form test program for scientific functions */
-
- /* Routine Tested: VCRPSR */
-
- main()
-
- {
- int *fp,i;
- static float a[3]={-3.2,-2.5,1.};
- static float b[3]={0.,3.,4.5};
- float c[3];
-
- *fp=fopen("PRN:","w"); /* open the printer */
-
- fprintf(*fp,"Test Results from VCRSPR\n\n");
- printf("Test Results from VCRSPR\n\n");
-
-
- vcrspr(a,b,c);
-
- for(i = 0; i <= 2; i++)
- {
- fprintf(*fp,"%9.4f\n",c[i]);
- printf("%9.4f\n",c[i]);
- }
- }