Average Error: 0.0 → 0.0
Time: 781.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 r209588 = x;
        double r209589 = 1.0;
        double r209590 = y;
        double r209591 = r209589 - r209590;
        double r209592 = r209588 * r209591;
        return r209592;
}

double f(double x, double y) {
        double r209593 = x;
        double r209594 = 1.0;
        double r209595 = y;
        double r209596 = r209594 - r209595;
        double r209597 = r209593 * r209596;
        return r209597;
}

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