Average Error: 0.0 → 0.0
Time: 733.0ms
Precision: 64
\[x \cdot \left(1 - y\right)\]
\[x \cdot \left(1 - y\right)\]
x \cdot \left(1 - y\right)
x \cdot \left(1 - y\right)
double f(double x, double y) {
        double r282337 = x;
        double r282338 = 1.0;
        double r282339 = y;
        double r282340 = r282338 - r282339;
        double r282341 = r282337 * r282340;
        return r282341;
}

double f(double x, double y) {
        double r282342 = x;
        double r282343 = 1.0;
        double r282344 = y;
        double r282345 = r282343 - r282344;
        double r282346 = r282342 * r282345;
        return r282346;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[x \cdot \left(1 - y\right)\]
  2. Final simplification0.0

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

Reproduce

herbie shell --seed 2020064 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, H"
  :precision binary64
  (* x (- 1 y)))