Average Error: 0 → 0
Time: 2.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 r8777025 = x;
        double r8777026 = r8777025 + r8777025;
        double r8777027 = 1.0;
        double r8777028 = r8777026 - r8777027;
        return r8777028;
}

double f(double x) {
        double r8777029 = x;
        double r8777030 = r8777029 + r8777029;
        double r8777031 = 1.0;
        double r8777032 = r8777030 - r8777031;
        return r8777032;
}

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