Average Error: 0.0 → 0.0
Time: 4.7s
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 r10197314 = x;
        double r10197315 = 1.0;
        double r10197316 = y;
        double r10197317 = r10197315 - r10197316;
        double r10197318 = r10197314 * r10197317;
        return r10197318;
}

double f(double x, double y) {
        double r10197319 = 1.0;
        double r10197320 = y;
        double r10197321 = r10197319 - r10197320;
        double r10197322 = x;
        double r10197323 = r10197321 * r10197322;
        return r10197323;
}

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