\left(x + y\right) + x
\left(x + x\right) + y
double f(double x, double y) {
double r28956205 = x;
double r28956206 = y;
double r28956207 = r28956205 + r28956206;
double r28956208 = r28956207 + r28956205;
return r28956208;
}
double f(double x, double y) {
double r28956209 = x;
double r28956210 = r28956209 + r28956209;
double r28956211 = y;
double r28956212 = r28956210 + r28956211;
return r28956212;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
Taylor expanded around 0 0
Simplified0
Final simplification0
herbie shell --seed 2019163
(FPCore (x y)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"
:herbie-target
(+ y (* 2 x))
(+ (+ x y) x))