\tanh x - \frac{{\left(x + 1\right)}^{x}}{\tan \left(x + 2\right)}\tanh x - \frac{{\left(x + 1\right)}^{x}}{\tan \left(x + 2\right)}double code(double x) {
return ((double) (((double) tanh(x)) - ((double) (((double) pow(((double) (x + 1.0)), x)) / ((double) tan(((double) (x + 2.0))))))));
}
double code(double x) {
return ((double) (((double) tanh(x)) - ((double) (((double) pow(((double) (x + 1.0)), x)) / ((double) tan(((double) (x + 2.0))))))));
}



Bits error versus x
Results
Initial program 0.1
Final simplification0.1
herbie shell --seed 2020153
(FPCore (x)
:name "(- (tanh x) (/ (pow (+ x 1) x) (tan (+ x 2))))"
:precision binary64
(- (tanh x) (/ (pow (+ x 1.0) x) (tan (+ x 2.0)))))