Average Error: 0.0 → 0.0
Time: 5.3s
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 r14569786 = x;
        double r14569787 = 1.0;
        double r14569788 = y;
        double r14569789 = r14569787 - r14569788;
        double r14569790 = r14569786 * r14569789;
        return r14569790;
}

double f(double x, double y) {
        double r14569791 = 1.0;
        double r14569792 = y;
        double r14569793 = r14569791 - r14569792;
        double r14569794 = x;
        double r14569795 = r14569793 * r14569794;
        return r14569795;
}

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)))