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 r8736394 = x;
        double r8736395 = r8736394 + r8736394;
        double r8736396 = 1.0;
        double r8736397 = r8736395 - r8736396;
        return r8736397;
}

double f(double x) {
        double r8736398 = x;
        double r8736399 = r8736398 + r8736398;
        double r8736400 = 1.0;
        double r8736401 = r8736399 - r8736400;
        return r8736401;
}

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