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








Bits error versus x








Bits error versus y
Results
| Alternative 1 | |
|---|---|
| Error | 0.0 |
| Cost | 448 |
| Alternative 2 | |
|---|---|
| Error | 0.8 |
| Cost | 648 |
| Alternative 3 | |
|---|---|
| Error | 9.3 |
| Cost | 192 |
| Alternative 4 | |
|---|---|
| Error | 17.9 |
| Cost | 456 |
| Alternative 5 | |
|---|---|
| Error | 36.0 |
| Cost | 64 |


Initial program 0.0
rmApplied add-log-exp_binary64_966544.8
rmApplied add-sqr-sqrt_binary64_964844.8
Applied log-prod_binary64_971244.8
Simplified43.6
Simplified0.0
rmApplied add-exp-log_binary64_966433.5
Applied add-exp-log_binary64_966439.9
Applied prod-exp_binary64_967539.9
Simplified33.0
Taylor expanded around inf 49.5
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021040
(FPCore (x y)
:name "Data.Colour.SRGB:transferFunction from colour-2.3.3"
:precision binary64
(- (* (+ x 1.0) y) x))