Average Error: 0 → 0
Time: 321.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 r215870 = x;
        double r215871 = 2.0;
        double r215872 = r215870 * r215871;
        double r215873 = y;
        double r215874 = r215872 - r215873;
        return r215874;
}

double f(double x, double y) {
        double r215875 = x;
        double r215876 = 2.0;
        double r215877 = r215875 * r215876;
        double r215878 = y;
        double r215879 = r215877 - r215878;
        return r215879;
}

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