Average Error: 0.0 → 0.0
Time: 5.3s
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 r224505 = x;
        double r224506 = 1.0;
        double r224507 = y;
        double r224508 = r224506 - r224507;
        double r224509 = r224505 * r224508;
        return r224509;
}

double f(double x, double y) {
        double r224510 = x;
        double r224511 = 1.0;
        double r224512 = y;
        double r224513 = r224511 - r224512;
        double r224514 = r224510 * r224513;
        return r224514;
}

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