Average Error: 0 → 0
Time: 2.5s
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 r7484248 = x;
        double r7484249 = r7484248 + r7484248;
        double r7484250 = 1.0;
        double r7484251 = r7484249 - r7484250;
        return r7484251;
}

double f(double x) {
        double r7484252 = x;
        double r7484253 = r7484252 + r7484252;
        double r7484254 = 1.0;
        double r7484255 = r7484253 - r7484254;
        return r7484255;
}

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