Average Error: 0 → 0
Time: 6.5s
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 r12017099 = x;
        double r12017100 = r12017099 + r12017099;
        double r12017101 = 1.0;
        double r12017102 = r12017100 - r12017101;
        return r12017102;
}

double f(double x) {
        double r12017103 = x;
        double r12017104 = r12017103 + r12017103;
        double r12017105 = 1.0;
        double r12017106 = r12017104 - r12017105;
        return r12017106;
}

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