x + \left(1.0 - x\right) \cdot \left(1.0 - y\right)
\mathsf{fma}\left(y, x - 1.0, 1.0\right)double f(double x, double y) {
double r26390983 = x;
double r26390984 = 1.0;
double r26390985 = r26390984 - r26390983;
double r26390986 = y;
double r26390987 = r26390984 - r26390986;
double r26390988 = r26390985 * r26390987;
double r26390989 = r26390983 + r26390988;
return r26390989;
}
double f(double x, double y) {
double r26390990 = y;
double r26390991 = x;
double r26390992 = 1.0;
double r26390993 = r26390991 - r26390992;
double r26390994 = fma(r26390990, r26390993, r26390992);
return r26390994;
}




Bits error versus x




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