Average Error: 0.0 → 0.0
Time: 968.0ms
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 r14074007 = x;
        double r14074008 = y;
        double r14074009 = r14074007 * r14074008;
        double r14074010 = r14074009 - r14074007;
        return r14074010;
}

double f(double x, double y) {
        double r14074011 = x;
        double r14074012 = y;
        double r14074013 = r14074011 * r14074012;
        double r14074014 = r14074013 - r14074011;
        return r14074014;
}

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 2019164 
(FPCore (x y)
  :name "Data.Histogram.Bin.LogBinD:$cbinSizeN from histogram-fill-0.8.4.1"
  (- (* x y) x))