\left(x \cdot \left(y - 1\right) - y \cdot 0.5\right) + 0.918938533204673
0.918938533204673 + \left(y \cdot \left(-0.5 + x\right) - x\right)
(FPCore (x y) :precision binary64 (+ (- (* x (- y 1.0)) (* y 0.5)) 0.918938533204673))
(FPCore (x y) :precision binary64 (+ 0.918938533204673 (- (* y (+ -0.5 x)) x)))
double code(double x, double y) {
return ((x * (y - 1.0)) - (y * 0.5)) + 0.918938533204673;
}
double code(double x, double y) {
return 0.918938533204673 + ((y * (-0.5 + x)) - x);
}











Bits error versus x











Bits error versus y
Results
| Alternative 1 | |
|---|---|
| Error | 0.8 |
| Cost | 776 |
| Alternative 2 | |
|---|---|
| Error | 1.0 |
| Cost | 1090 |
| Alternative 3 | |
|---|---|
| Error | 1.5 |
| Cost | 962 |
| Alternative 4 | |
|---|---|
| Error | 1.5 |
| Cost | 648 |
| Alternative 5 | |
|---|---|
| Error | 1.6 |
| Cost | 648 |
| Alternative 6 | |
|---|---|
| Error | 9.9 |
| Cost | 648 |
| Alternative 7 | |
|---|---|
| Error | 26.7 |
| Cost | 192 |
| Alternative 8 | |
|---|---|
| Error | 58.4 |
| Cost | 64 |

Initial program 0.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021044
(FPCore (x y)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, A"
:precision binary64
(+ (- (* x (- y 1.0)) (* y 0.5)) 0.918938533204673))