Average Error: 0.0 → 0.0
Time: 11.0s
Precision: 64
\[x \cdot y - x\]
\[x \cdot y - x\]
x \cdot y - x
x \cdot y - x
double f(double x, double y) {
        double r12459478 = x;
        double r12459479 = y;
        double r12459480 = r12459478 * r12459479;
        double r12459481 = r12459480 - r12459478;
        return r12459481;
}

double f(double x, double y) {
        double r12459482 = x;
        double r12459483 = y;
        double r12459484 = r12459482 * r12459483;
        double r12459485 = r12459484 - r12459482;
        return r12459485;
}

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 y - x\]
  2. Final simplification0.0

    \[\leadsto x \cdot y - x\]

Reproduce

herbie shell --seed 2019168 
(FPCore (x y)
  :name "Data.Histogram.Bin.LogBinD:$cbinSizeN from histogram-fill-0.8.4.1"
  (- (* x y) x))