Average Error: 0 → 0
Time: 26.6s
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 r47688232 = x;
        double r47688233 = r47688232 + r47688232;
        double r47688234 = 1.0;
        double r47688235 = r47688233 - r47688234;
        return r47688235;
}

double f(double x) {
        double r47688236 = x;
        double r47688237 = r47688236 + r47688236;
        double r47688238 = 1.0;
        double r47688239 = r47688237 - r47688238;
        return r47688239;
}

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