Average Error: 0 → 0
Time: 7.6s
Precision: 64
\[\left(x + x\right) - 1.0\]
\[\left(x + x\right) - 1.0\]
\left(x + x\right) - 1.0
\left(x + x\right) - 1.0
double f(double x) {
        double r12996737 = x;
        double r12996738 = r12996737 + r12996737;
        double r12996739 = 1.0;
        double r12996740 = r12996738 - r12996739;
        return r12996740;
}

double f(double x) {
        double r12996741 = x;
        double r12996742 = r12996741 + r12996741;
        double r12996743 = 1.0;
        double r12996744 = r12996742 - r12996743;
        return r12996744;
}

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.0\]
  2. Final simplification0

    \[\leadsto \left(x + x\right) - 1.0\]

Reproduce

herbie shell --seed 2019158 
(FPCore (x)
  :name "Data.Random.Distribution.Normal:doubleStdNormalZ from random-fu-0.2.6.2"
  (- (+ x x) 1.0))