Average Error: 16.9 → 0.0
Time: 2.3s
Precision: 64
\[x + \left(1 - x\right) \cdot \left(1 - y\right)\]
\[\left(x \cdot y + 1\right) - 1 \cdot y\]
x + \left(1 - x\right) \cdot \left(1 - y\right)
\left(x \cdot y + 1\right) - 1 \cdot y
double f(double x, double y) {
        double r3192 = x;
        double r3193 = 1.0;
        double r3194 = r3193 - r3192;
        double r3195 = y;
        double r3196 = r3193 - r3195;
        double r3197 = r3194 * r3196;
        double r3198 = r3192 + r3197;
        return r3198;
}

double f(double x, double y) {
        double r3199 = x;
        double r3200 = y;
        double r3201 = r3199 * r3200;
        double r3202 = 1.0;
        double r3203 = r3201 + r3202;
        double r3204 = r3202 * r3200;
        double r3205 = r3203 - r3204;
        return r3205;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original16.9
Target0.0
Herbie0.0
\[y \cdot x - \left(y - 1\right)\]

Derivation

  1. Initial program 16.9

    \[x + \left(1 - x\right) \cdot \left(1 - y\right)\]
  2. Taylor expanded around 0 0.0

    \[\leadsto \color{blue}{\left(x \cdot y + 1\right) - 1 \cdot y}\]
  3. Final simplification0.0

    \[\leadsto \left(x \cdot y + 1\right) - 1 \cdot y\]

Reproduce

herbie shell --seed 2020025 
(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))))