\tan^{-1} \left(x + 1\right) - \tan^{-1} x\tan^{-1} \left(x + 1\right) - \tan^{-1} xdouble code(double x) {
return ((double) (((double) atan(((double) (x + 1.0)))) - ((double) atan(x))));
}
double code(double x) {
return ((double) (((double) atan(((double) (x + 1.0)))) - ((double) atan(x))));
}



Bits error versus x
Results
Initial program 14.6
Final simplification14.6
herbie shell --seed 2020152
(FPCore (x)
:name "(- (atan (+ x 1.0)) (atan x))"
:precision binary64
(- (atan (+ x 1.0)) (atan x)))