Average Error: 0 → 0
Time: 310.0ms
Precision: 64
\[x \cdot 2 - y\]
\[x \cdot 2 - y\]
x \cdot 2 - y
x \cdot 2 - y
double f(double x, double y) {
        double r282448 = x;
        double r282449 = 2.0;
        double r282450 = r282448 * r282449;
        double r282451 = y;
        double r282452 = r282450 - r282451;
        return r282452;
}

double f(double x, double y) {
        double r282453 = x;
        double r282454 = 2.0;
        double r282455 = r282453 * r282454;
        double r282456 = y;
        double r282457 = r282455 - r282456;
        return r282457;
}

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

    \[x \cdot 2 - y\]
  2. Final simplification0

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

Reproduce

herbie shell --seed 2020064 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, C"
  :precision binary64
  (- (* x 2) y))