Average Error: 0.0 → 0.0
Time: 5.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 r11739667 = x;
        double r11739668 = 1.0;
        double r11739669 = y;
        double r11739670 = r11739668 - r11739669;
        double r11739671 = r11739667 * r11739670;
        return r11739671;
}

double f(double x, double y) {
        double r11739672 = 1.0;
        double r11739673 = y;
        double r11739674 = r11739672 - r11739673;
        double r11739675 = x;
        double r11739676 = r11739674 * r11739675;
        return r11739676;
}

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