Average Error: 0 → 0
Time: 6.6s
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 r10608323 = x;
        double r10608324 = r10608323 + r10608323;
        double r10608325 = 1.0;
        double r10608326 = r10608324 - r10608325;
        return r10608326;
}

double f(double x) {
        double r10608327 = x;
        double r10608328 = r10608327 + r10608327;
        double r10608329 = 1.0;
        double r10608330 = r10608328 - r10608329;
        return r10608330;
}

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 2019172 
(FPCore (x)
  :name "Data.Random.Distribution.Normal:doubleStdNormalZ from random-fu-0.2.6.2"
  (- (+ x x) 1.0))