Average Error: 0 → 0
Time: 28.3s
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 r12729519 = x;
        double r12729520 = r12729519 + r12729519;
        double r12729521 = 1.0;
        double r12729522 = r12729520 - r12729521;
        return r12729522;
}

double f(double x) {
        double r12729523 = x;
        double r12729524 = r12729523 + r12729523;
        double r12729525 = 1.0;
        double r12729526 = r12729524 - r12729525;
        return r12729526;
}

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