Average Error: 0.0 → 0.0
Time: 413.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 r166037 = x;
        double r166038 = 1.0;
        double r166039 = y;
        double r166040 = r166038 - r166039;
        double r166041 = r166037 * r166040;
        return r166041;
}

double f(double x, double y) {
        double r166042 = x;
        double r166043 = 1.0;
        double r166044 = y;
        double r166045 = r166043 - r166044;
        double r166046 = r166042 * r166045;
        return r166046;
}

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