Average Error: 0 → 0
Time: 1.9s
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 r12285404 = x;
        double r12285405 = r12285404 + r12285404;
        double r12285406 = 1.0;
        double r12285407 = r12285405 - r12285406;
        return r12285407;
}

double f(double x) {
        double r12285408 = x;
        double r12285409 = r12285408 + r12285408;
        double r12285410 = 1.0;
        double r12285411 = r12285409 - r12285410;
        return r12285411;
}

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