Average Error: 16.3 → 0.0
Time: 836.0ms
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 r601172 = x;
        double r601173 = 1.0;
        double r601174 = r601173 - r601172;
        double r601175 = y;
        double r601176 = r601173 - r601175;
        double r601177 = r601174 * r601176;
        double r601178 = r601172 + r601177;
        return r601178;
}

double f(double x, double y) {
        double r601179 = x;
        double r601180 = y;
        double r601181 = r601179 * r601180;
        double r601182 = 1.0;
        double r601183 = r601181 + r601182;
        double r601184 = r601182 * r601180;
        double r601185 = r601183 - r601184;
        return r601185;
}

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.3
Target0.0
Herbie0.0
\[y \cdot x - \left(y - 1\right)\]

Derivation

  1. Initial program 16.3

    \[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 2020024 
(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))))