Average Error: 0 → 0
Time: 2.0s
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 r138158 = x;
        double r138159 = r138158 + r138158;
        double r138160 = 1.0;
        double r138161 = r138159 - r138160;
        return r138161;
}

double f(double x) {
        double r138162 = x;
        double r138163 = r138162 + r138162;
        double r138164 = 1.0;
        double r138165 = r138163 - r138164;
        return r138165;
}

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