Average Error: 0.0 → 0.0
Time: 5.8s
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 r13809369 = x;
        double r13809370 = 1.0;
        double r13809371 = y;
        double r13809372 = r13809370 - r13809371;
        double r13809373 = r13809369 * r13809372;
        return r13809373;
}

double f(double x, double y) {
        double r13809374 = 1.0;
        double r13809375 = y;
        double r13809376 = r13809374 - r13809375;
        double r13809377 = x;
        double r13809378 = r13809376 * r13809377;
        return r13809378;
}

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 \left(1 - y\right) \cdot x\]

Reproduce

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