Average Error: 0 → 0
Time: 2.1s
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 r13040287 = x;
        double r13040288 = r13040287 + r13040287;
        double r13040289 = 1.0;
        double r13040290 = r13040288 - r13040289;
        return r13040290;
}

double f(double x) {
        double r13040291 = x;
        double r13040292 = r13040291 + r13040291;
        double r13040293 = 1.0;
        double r13040294 = r13040292 - r13040293;
        return r13040294;
}

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