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



Bits error versus x
Results
Initial program 29.1
Final simplification29.1
herbie shell --seed 2020152
(FPCore (x)
:name "(- (tan x) (tan (+ x 1)))"
:precision binary64
(- (tan x) (tan (+ x 1.0))))