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








Bits error versus x
Results
| Alternative 1 | |
|---|---|
| Error | 1.0 |
| Cost | 776 |
| Alternative 2 | |
|---|---|
| Error | 1.1 |
| Cost | 648 |
| Alternative 3 | |
|---|---|
| Error | 15.8 |
| Cost | 706 |
| Alternative 4 | |
|---|---|
| Error | 41.8 |
| Cost | 706 |
| Alternative 5 | |
|---|---|
| Error | 57.1 |
| Cost | 64 |

Initial program 14.5
rmApplied frac-sub_binary64_452013.9
Simplified0.5
Simplified0.5
Simplified0.5
Final simplification0.5
herbie shell --seed 2021044
(FPCore (x)
:name "Asymptote A"
:precision binary64
(- (/ 1.0 (+ x 1.0)) (/ 1.0 (- x 1.0))))