Average Error: 0.0 → 0.0
Time: 442.0ms
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 r217731 = x;
        double r217732 = 1.0;
        double r217733 = y;
        double r217734 = r217732 - r217733;
        double r217735 = r217731 * r217734;
        return r217735;
}

double f(double x, double y) {
        double r217736 = x;
        double r217737 = 1.0;
        double r217738 = y;
        double r217739 = r217737 - r217738;
        double r217740 = r217736 * r217739;
        return r217740;
}

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