Program Output
```Script started on Wed Feb 7 13:07:15 2007
prompt >> java SubtractiveCancellation

Part 1. Experiment with:
f1(x) = (1-cos(x))/(x*x)
f2(x) = (sin(x)^2)/(x*x)(1+cos(x))
==================================================
dX            f1(x)            f2(x)
==================================================
0.1000000000   4.99583472e-01   4.99583472e-01
0.0100000000   4.99995833e-01   4.99995833e-01
0.0010000000   4.99999958e-01   4.99999958e-01
0.0001000000   4.99999997e-01   5.00000000e-01
0.0000100000   5.00000041e-01   5.00000000e-01
0.0000010000   5.00044450e-01   5.00000000e-01
0.0000001000   4.99600361e-01   5.00000000e-01
0.0000000100   0.00000000e+00   5.00000000e-01
0.0000000010   0.00000000e+00   5.00000000e-01
0.0000000001   0.00000000e+00   5.00000000e-01
==================================================

Part 2. Experiment with:
f3(x) = (cosh(x)-cos(x))/(x*x*x)
f4(x) = 1/x
==================================================
dX            f3(x)            f4(x)
==================================================
0.1000000000   1.00000028e+01   1.00000000e+01
0.0100000000   1.00000000e+02   1.00000000e+02
0.0010000000   1.00000000e+03   1.00000000e+03
0.0001000000   9.99999994e+03   1.00000000e+04
0.0000100000   1.00000008e+05   1.00000000e+05
0.0000010000   1.00008890e+06   1.00000000e+06
0.0000001000   1.01030295e+07   1.00000000e+07
0.0000000100   0.00000000e+00   1.00000000e+08
0.0000000010   0.00000000e+00   1.00000000e+09
0.0000000001   0.00000000e+00   1.00000000e+10
==================================================
prompt >>
prompt >> exit
Script done on Wed Feb  7 13:07:25 2007
```