Average Error: 0.0 → 0.0
Time: 4.9s
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 r117082 = x;
        double r117083 = 1.0;
        double r117084 = y;
        double r117085 = r117083 - r117084;
        double r117086 = r117082 * r117085;
        return r117086;
}

double f(double x, double y) {
        double r117087 = x;
        double r117088 = 1.0;
        double r117089 = y;
        double r117090 = r117088 - r117089;
        double r117091 = r117087 * r117090;
        return r117091;
}

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