Average Error: 0 → 0
Time: 2.5s
Precision: 64
\[\left(x + x\right) - 1\]
\[\left(x + x\right) - 1\]
\left(x + x\right) - 1
\left(x + x\right) - 1
double f(double x) {
        double r14949262 = x;
        double r14949263 = r14949262 + r14949262;
        double r14949264 = 1.0;
        double r14949265 = r14949263 - r14949264;
        return r14949265;
}

double f(double x) {
        double r14949266 = x;
        double r14949267 = r14949266 + r14949266;
        double r14949268 = 1.0;
        double r14949269 = r14949267 - r14949268;
        return r14949269;
}

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

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

Reproduce

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