\frac{x}{x + 1} - \frac{x + 1}{x - 1}\sqrt[3]{{\left(\frac{x}{x + 1} - \left(x + 1\right) \cdot \frac{1}{x - 1}\right)}^{3}}(FPCore (x) :precision binary64 (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))))
(FPCore (x) :precision binary64 (cbrt (pow (- (/ x (+ x 1.0)) (* (+ x 1.0) (/ 1.0 (- x 1.0)))) 3.0)))
double code(double x) {
return (x / (x + 1.0)) - ((x + 1.0) / (x - 1.0));
}
double code(double x) {
return cbrt(pow(((x / (x + 1.0)) - ((x + 1.0) * (1.0 / (x - 1.0)))), 3.0));
}



Bits error versus x
Results
Initial program 29.6
rmApplied add-cbrt-cube_binary64_167929.6
Simplified29.6
rmApplied div-inv_binary64_170829.7
Final simplification29.7
herbie shell --seed 2020270
(FPCore (x)
:name "Asymptote C"
:precision binary64
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))))