Average Error: 0.0 → 0.0
Time: 758.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 r299726 = x;
        double r299727 = 1.0;
        double r299728 = y;
        double r299729 = r299727 - r299728;
        double r299730 = r299726 * r299729;
        return r299730;
}

double f(double x, double y) {
        double r299731 = x;
        double r299732 = 1.0;
        double r299733 = y;
        double r299734 = r299732 - r299733;
        double r299735 = r299731 * r299734;
        return r299735;
}

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