Average Error: 0 → 0
Time: 2.7s
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 r4742487 = x;
        double r4742488 = r4742487 + r4742487;
        double r4742489 = 1.0;
        double r4742490 = r4742488 - r4742489;
        return r4742490;
}

double f(double x) {
        double r4742491 = x;
        double r4742492 = r4742491 + r4742491;
        double r4742493 = 1.0;
        double r4742494 = r4742492 - r4742493;
        return r4742494;
}

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