Average Error: 0 → 0
Time: 6.4s
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 r10537352 = x;
        double r10537353 = r10537352 + r10537352;
        double r10537354 = 1.0;
        double r10537355 = r10537353 - r10537354;
        return r10537355;
}

double f(double x) {
        double r10537356 = x;
        double r10537357 = r10537356 + r10537356;
        double r10537358 = 1.0;
        double r10537359 = r10537357 - r10537358;
        return r10537359;
}

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