home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <stdlib.h>
- #include "math.h"
-
- /* this is a neat bug in FPemulator 4.01
- (it will disappear if you use the yLib) */
-
-
- int main(void)
- {double x,s,z;
- for(z=0.0;z<=2.0;z+=0.02)
- for(s=-20;s<1;s+=0.1)
- {
- if((z == 0.0) && (s <= 0.0)) break;
- x=pow(z,s);
- if((fabs(z-1) < 1.e-10) && (fabs(s) < 1.0e-10))
- printf(" pow(%30.20g,%30.20g) = %g ???? \n",z,s,x);
- }
- }
-
-