Average Error: 0.0 → 0.0
Time: 7.4s
Precision: 64
\[x \cdot \left(1 - y\right)\]
\[\left(1 - y\right) \cdot x\]
x \cdot \left(1 - y\right)
\left(1 - y\right) \cdot x
double f(double x, double y) {
        double r185615 = x;
        double r185616 = 1.0;
        double r185617 = y;
        double r185618 = r185616 - r185617;
        double r185619 = r185615 * r185618;
        return r185619;
}

double f(double x, double y) {
        double r185620 = 1.0;
        double r185621 = y;
        double r185622 = r185620 - r185621;
        double r185623 = x;
        double r185624 = r185622 * r185623;
        return r185624;
}

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. Simplified0.0

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

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

Reproduce

herbie shell --seed 2019194 
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, H"
  (* x (- 1.0 y)))