Average Error: 0.0 → 0.0
Time: 4.6s
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 r11527899 = x;
        double r11527900 = 1.0;
        double r11527901 = y;
        double r11527902 = r11527900 - r11527901;
        double r11527903 = r11527899 * r11527902;
        return r11527903;
}

double f(double x, double y) {
        double r11527904 = 1.0;
        double r11527905 = y;
        double r11527906 = r11527904 - r11527905;
        double r11527907 = x;
        double r11527908 = r11527906 * r11527907;
        return r11527908;
}

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