Average Error: 0.0 → 0.0
Time: 4.6s
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 r158240 = x;
        double r158241 = 1.0;
        double r158242 = y;
        double r158243 = r158241 - r158242;
        double r158244 = r158240 * r158243;
        return r158244;
}

double f(double x, double y) {
        double r158245 = x;
        double r158246 = 1.0;
        double r158247 = y;
        double r158248 = r158246 - r158247;
        double r158249 = r158245 * r158248;
        return r158249;
}

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