Average Error: 0 → 0
Time: 2.2s
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 r15696968 = x;
        double r15696969 = r15696968 + r15696968;
        double r15696970 = 1.0;
        double r15696971 = r15696969 - r15696970;
        return r15696971;
}

double f(double x) {
        double r15696972 = x;
        double r15696973 = r15696972 + r15696972;
        double r15696974 = 1.0;
        double r15696975 = r15696973 - r15696974;
        return r15696975;
}

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