Average Error: 0.0 → 0.0
Time: 18.6s
Precision: 64
\[x \cdot \left(1.0 - y\right)\]
\[\left(1.0 - y\right) \cdot x\]
x \cdot \left(1.0 - y\right)
\left(1.0 - y\right) \cdot x
double f(double x, double y) {
        double r11419111 = x;
        double r11419112 = 1.0;
        double r11419113 = y;
        double r11419114 = r11419112 - r11419113;
        double r11419115 = r11419111 * r11419114;
        return r11419115;
}

double f(double x, double y) {
        double r11419116 = 1.0;
        double r11419117 = y;
        double r11419118 = r11419116 - r11419117;
        double r11419119 = x;
        double r11419120 = r11419118 * r11419119;
        return r11419120;
}

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.0 - y\right)\]
  2. Final simplification0.0

    \[\leadsto \left(1.0 - y\right) \cdot x\]

Reproduce

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