Average Error: 0.0 → 0.0
Time: 3.6s
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 r230125 = x;
        double r230126 = 1.0;
        double r230127 = y;
        double r230128 = r230126 - r230127;
        double r230129 = r230125 * r230128;
        return r230129;
}

double f(double x, double y) {
        double r230130 = 1.0;
        double r230131 = y;
        double r230132 = r230130 - r230131;
        double r230133 = x;
        double r230134 = r230132 * r230133;
        return r230134;
}

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