Average Error: 0 → 0
Time: 1.2s
Precision: 64
\[x \cdot 2.0 - y\]
\[x \cdot 2.0 - y\]
x \cdot 2.0 - y
x \cdot 2.0 - y
double f(double x, double y) {
        double r10405302 = x;
        double r10405303 = 2.0;
        double r10405304 = r10405302 * r10405303;
        double r10405305 = y;
        double r10405306 = r10405304 - r10405305;
        return r10405306;
}

double f(double x, double y) {
        double r10405307 = x;
        double r10405308 = 2.0;
        double r10405309 = r10405307 * r10405308;
        double r10405310 = y;
        double r10405311 = r10405309 - r10405310;
        return r10405311;
}

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.0 - y\]
  2. Final simplification0

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

Reproduce

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