Average Error: 0 → 0
Time: 16.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 r10992550 = x;
        double r10992551 = r10992550 + r10992550;
        double r10992552 = 1.0;
        double r10992553 = r10992551 - r10992552;
        return r10992553;
}

double f(double x) {
        double r10992554 = x;
        double r10992555 = r10992554 + r10992554;
        double r10992556 = 1.0;
        double r10992557 = r10992555 - r10992556;
        return r10992557;
}

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