Average Error: 0 → 0
Time: 1.8s
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 r134921 = x;
        double r134922 = r134921 + r134921;
        double r134923 = 1.0;
        double r134924 = r134922 - r134923;
        return r134924;
}

double f(double x) {
        double r134925 = x;
        double r134926 = r134925 + r134925;
        double r134927 = 1.0;
        double r134928 = r134926 - r134927;
        return r134928;
}

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