#include <stdio.h>
#include <math.h>
#define N 10
double f
(double x
) { return (exp(x
* sin(3.0 * x
)) - 1.0) / ( x
* sin(3.0 * x
)); } double g
(double t
) { return (exp(t
) - 1.0) / t
; }
int main() {
int i;
double x;
x = 1.0;
for (i = 0; i < N; i++) {
x /= 10.0;
printf("x:%e f(x):%e g(x):%e\n", x
, f
(x
), g
(x
)); }
return 0;
}
/* end */
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CiNkZWZpbmUgTiAxMAoKZG91YmxlIGYoZG91YmxlIHgpIHsgcmV0dXJuIChleHAoeCAqIHNpbigzLjAgKiB4KSkgLSAxLjApIC8gKCB4ICogc2luKDMuMCAqIHgpKTsgfQpkb3VibGUgZyhkb3VibGUgdCkgeyByZXR1cm4gKGV4cCh0KSAtIDEuMCkgLyB0OyB9CgppbnQgbWFpbigpIHsKICBpbnQgaTsKICBkb3VibGUgeDsKICB4ID0gMS4wOwogIGZvciAoaSA9IDA7IGkgPCBOOyBpKyspIHsKICAgIHggLz0gMTAuMDsKICAgIHByaW50ZigieDolZSBmKHgpOiVlIGcoeCk6JWVcbiIsIHgsIGYoeCksIGcoeCkpOwogIH0KICByZXR1cm4gMDsKfQovKiBlbmQgKi8K