Average Error: 0 → 0
Time: 9.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 r8290238 = x;
        double r8290239 = r8290238 + r8290238;
        double r8290240 = 1.0;
        double r8290241 = r8290239 - r8290240;
        return r8290241;
}

double f(double x) {
        double r8290242 = x;
        double r8290243 = r8290242 + r8290242;
        double r8290244 = 1.0;
        double r8290245 = r8290243 - r8290244;
        return r8290245;
}

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