Average Error: 0.0 → 0.0
Time: 1.1s
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 r5321288 = x;
        double r5321289 = 1.0;
        double r5321290 = y;
        double r5321291 = r5321289 - r5321290;
        double r5321292 = r5321288 * r5321291;
        return r5321292;
}

double f(double x, double y) {
        double r5321293 = 1.0;
        double r5321294 = y;
        double r5321295 = r5321293 - r5321294;
        double r5321296 = x;
        double r5321297 = r5321295 * r5321296;
        return r5321297;
}

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