Average Error: 0.0 → 0.0
Time: 5.2s
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 r132164 = x;
        double r132165 = 1.0;
        double r132166 = y;
        double r132167 = r132165 - r132166;
        double r132168 = r132164 * r132167;
        return r132168;
}

double f(double x, double y) {
        double r132169 = x;
        double r132170 = 1.0;
        double r132171 = y;
        double r132172 = r132170 - r132171;
        double r132173 = r132169 * r132172;
        return r132173;
}

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