Average Error: 16.4 → 0.0
Time: 2.1s
Precision: binary64
\[\]
\[\]
double code(double x, double y) {
	return ((double) (x + ((double) (((double) (1.0 - x)) * ((double) (1.0 - y))))));
}
double code(double x, double y) {
	return ((double) (1.0 + ((double) (((double) (y * x)) - ((double) (1.0 * y))))));
}

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.4
Target0.0
Herbie0.0
\[\]

Derivation

  1. Initial program 16.4

    \[\]
  2. Taylor expanded around 0 0.0

    \[\leadsto \]
  3. Simplified0.0

    \[\leadsto \]
  4. Using strategy rm
  5. Applied sub-neg0.0

    \[\leadsto \]
  6. Applied distribute-lft-in0.0

    \[\leadsto \]
  7. Final simplification0.0

    \[\leadsto \]

Reproduce

herbie shell --seed 2020191 
(FPCore (x y)
  :name "Graphics.Rendering.Chart.Plot.Vectors:renderPlotVectors from Chart-1.5.3"
  :precision binary64

  :herbie-target
  (- (* y x) (- y 1.0))

  (+ x (* (- 1.0 x) (- 1.0 y))))