Average Error: 0.0 → 0.0
Time: 794.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 r256301 = x;
        double r256302 = 1.0;
        double r256303 = y;
        double r256304 = r256302 - r256303;
        double r256305 = r256301 * r256304;
        return r256305;
}

double f(double x, double y) {
        double r256306 = x;
        double r256307 = 1.0;
        double r256308 = y;
        double r256309 = r256307 - r256308;
        double r256310 = r256306 * r256309;
        return r256310;
}

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