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









Bits error versus x
Results
| Alternative 1 | |
|---|---|
| Error | 0.1 |
| Cost | 7041 |
| Alternative 2 | |
|---|---|
| Error | 20.4 |
| Cost | 576 |
| Alternative 3 | |
|---|---|
| Error | 20.4 |
| Cost | 448 |
| Alternative 4 | |
|---|---|
| Error | 20.9 |
| Cost | 192 |
| Alternative 5 | |
|---|---|
| Error | 59.9 |
| Cost | 385 |
| Alternative 6 | |
|---|---|
| Error | 60.9 |
| Cost | 64 |


Initial program 0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2021040
(FPCore (x)
:name "Numeric.Log:$clog1p from log-domain-0.10.2.1, B"
:precision binary64
(/ x (+ 1.0 (sqrt (+ x 1.0)))))