\tanh x - 1
\tanh x - 1
double code(double x) {
return ((double) (((double) tanh(x)) - 1.0));
}
double code(double x) {
return ((double) (((double) tanh(x)) - 1.0));
}



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