Average Error: 0.0 → 0.0
Time: 2.0s
Precision: 64
\[x \cdot \left(1 - y\right)\]
\[x \cdot \left(1 - y\right)\]
x \cdot \left(1 - y\right)
x \cdot \left(1 - y\right)
double f(double x, double y) {
        double r291284 = x;
        double r291285 = 1.0;
        double r291286 = y;
        double r291287 = r291285 - r291286;
        double r291288 = r291284 * r291287;
        return r291288;
}

double f(double x, double y) {
        double r291289 = x;
        double r291290 = 1.0;
        double r291291 = y;
        double r291292 = r291290 - r291291;
        double r291293 = r291289 * r291292;
        return r291293;
}

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 x \cdot \left(1 - y\right)\]

Reproduce

herbie shell --seed 2019354 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, H"
  :precision binary64
  (* x (- 1 y)))