Average Error: 0.0 → 0.0
Time: 775.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 r11232186 = x;
        double r11232187 = y;
        double r11232188 = r11232186 * r11232187;
        double r11232189 = r11232188 - r11232186;
        return r11232189;
}

double f(double x, double y) {
        double r11232190 = x;
        double r11232191 = y;
        double r11232192 = r11232190 * r11232191;
        double r11232193 = r11232192 - r11232190;
        return r11232193;
}

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