Average Error: 0 → 0
Time: 6.6s
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 r12416702 = x;
        double r12416703 = r12416702 + r12416702;
        double r12416704 = 1.0;
        double r12416705 = r12416703 - r12416704;
        return r12416705;
}

double f(double x) {
        double r12416706 = x;
        double r12416707 = r12416706 + r12416706;
        double r12416708 = 1.0;
        double r12416709 = r12416707 - r12416708;
        return r12416709;
}

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