\frac{1}{x + 1} - \frac{1}{x - 1}\frac{1}{x + 1} - \frac{1}{x - 1}(FPCore (x) :precision binary64 (- (/ 1.0 (+ x 1.0)) (/ 1.0 (- x 1.0))))
(FPCore (x) :precision binary64 (- (/ 1.0 (+ x 1.0)) (/ 1.0 (- x 1.0))))
double code(double x) {
return (1.0 / (x + 1.0)) - (1.0 / (x - 1.0));
}
double code(double x) {
return (1.0 / (x + 1.0)) - (1.0 / (x - 1.0));
}



Bits error versus x
Results
Initial program 13.7
Simplified13.7
Final simplification13.7
herbie shell --seed 2021023
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1.0 (+ x 1.0)) (/ 1.0 (- x 1.0))))