Average Error: 0.0 → 0.0
Time: 8.1s
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 r281340 = x;
        double r281341 = 1.0;
        double r281342 = y;
        double r281343 = r281341 - r281342;
        double r281344 = r281340 * r281343;
        return r281344;
}

double f(double x, double y) {
        double r281345 = 1.0;
        double r281346 = y;
        double r281347 = r281345 - r281346;
        double r281348 = x;
        double r281349 = r281347 * r281348;
        return r281349;
}

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