Average Error: 0.0 → 0.0
Time: 20.0s
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 r11479963 = x;
        double r11479964 = 1.0;
        double r11479965 = y;
        double r11479966 = r11479964 - r11479965;
        double r11479967 = r11479963 * r11479966;
        return r11479967;
}

double f(double x, double y) {
        double r11479968 = 1.0;
        double r11479969 = y;
        double r11479970 = r11479968 - r11479969;
        double r11479971 = x;
        double r11479972 = r11479970 * r11479971;
        return r11479972;
}

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