Average Error: 0.0 → 0.0
Time: 10.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 r205292 = x;
        double r205293 = 1.0;
        double r205294 = y;
        double r205295 = r205293 - r205294;
        double r205296 = r205292 * r205295;
        return r205296;
}

double f(double x, double y) {
        double r205297 = 1.0;
        double r205298 = y;
        double r205299 = r205297 - r205298;
        double r205300 = x;
        double r205301 = r205299 * r205300;
        return r205301;
}

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 2019195 
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, H"
  (* x (- 1.0 y)))