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






Bits error versus x
Results
| Alternative 1 | |
|---|---|
| Error | 32.0 |
| Cost | 64 |
| Alternative 2 | |
|---|---|
| Error | 62.3 |
| Cost | 64 |
| Alternative 3 | |
|---|---|
| Error | 62.5 |
| Cost | 64 |

Initial program 0
Simplified0
Final simplification0
herbie shell --seed 2021044
(FPCore (x)
:name "Data.Random.Distribution.Normal:doubleStdNormalZ from random-fu-0.2.6.2"
:precision binary64
(- (+ x x) 1.0))