Average Error: 0.0 → 0.0
Time: 5.3s
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 r154284 = x;
        double r154285 = 1.0;
        double r154286 = y;
        double r154287 = r154285 - r154286;
        double r154288 = r154284 * r154287;
        return r154288;
}

double f(double x, double y) {
        double r154289 = x;
        double r154290 = 1.0;
        double r154291 = y;
        double r154292 = r154290 - r154291;
        double r154293 = r154289 * r154292;
        return r154293;
}

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 2019235 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, H"
  :precision binary64
  (* x (- 1 y)))