Average Error: 0 → 0
Time: 1.5s
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 r194051 = x;
        double r194052 = 2.0;
        double r194053 = r194051 * r194052;
        double r194054 = y;
        double r194055 = r194053 - r194054;
        return r194055;
}

double f(double x, double y) {
        double r194056 = x;
        double r194057 = 2.0;
        double r194058 = r194056 * r194057;
        double r194059 = y;
        double r194060 = r194058 - r194059;
        return r194060;
}

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 2019199 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, C"
  (- (* x 2.0) y))