Average Error: 0 → 0
Time: 816.0ms
Precision: 64
\[\left(x + x\right) - 1.0\]
\[\left(x + x\right) - 1.0\]
\left(x + x\right) - 1.0
\left(x + x\right) - 1.0
double f(double x) {
        double r10684418 = x;
        double r10684419 = r10684418 + r10684418;
        double r10684420 = 1.0;
        double r10684421 = r10684419 - r10684420;
        return r10684421;
}

double f(double x) {
        double r10684422 = x;
        double r10684423 = r10684422 + r10684422;
        double r10684424 = 1.0;
        double r10684425 = r10684423 - r10684424;
        return r10684425;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[\left(x + x\right) - 1.0\]
  2. Final simplification0

    \[\leadsto \left(x + x\right) - 1.0\]

Reproduce

herbie shell --seed 2019163 +o rules:numerics
(FPCore (x)
  :name "Data.Random.Distribution.Normal:doubleStdNormalZ from random-fu-0.2.6.2"
  (- (+ x x) 1.0))