Average Error: 0.0 → 0.0
Time: 387.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 r205845 = x;
        double r205846 = 1.0;
        double r205847 = y;
        double r205848 = r205846 - r205847;
        double r205849 = r205845 * r205848;
        return r205849;
}

double f(double x, double y) {
        double r205850 = x;
        double r205851 = 1.0;
        double r205852 = y;
        double r205853 = r205851 - r205852;
        double r205854 = r205850 * r205853;
        return r205854;
}

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