Average Error: 0 → 0
Time: 7.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 r12778617 = x;
        double r12778618 = r12778617 + r12778617;
        double r12778619 = 1.0;
        double r12778620 = r12778618 - r12778619;
        return r12778620;
}

double f(double x) {
        double r12778621 = x;
        double r12778622 = r12778621 + r12778621;
        double r12778623 = 1.0;
        double r12778624 = r12778622 - r12778623;
        return r12778624;
}

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