x + \left(1 - x\right) \cdot \left(1 - y\right)
\mathsf{fma}\left(y, x - 1, 1\right)double f(double x, double y) {
double r527211 = x;
double r527212 = 1.0;
double r527213 = r527212 - r527211;
double r527214 = y;
double r527215 = r527212 - r527214;
double r527216 = r527213 * r527215;
double r527217 = r527211 + r527216;
return r527217;
}
double f(double x, double y) {
double r527218 = y;
double r527219 = x;
double r527220 = 1.0;
double r527221 = r527219 - r527220;
double r527222 = fma(r527218, r527221, r527220);
return r527222;
}




Bits error versus x




Bits error versus y
| Original | 16.1 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 16.1
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020039 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Chart.Plot.Vectors:renderPlotVectors from Chart-1.5.3"
:precision binary64
:herbie-target
(- (* y x) (- y 1))
(+ x (* (- 1 x) (- 1 y))))