Average Error: 0 → 0
Time: 6.8s
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 r10867848 = x;
        double r10867849 = r10867848 + r10867848;
        double r10867850 = 1.0;
        double r10867851 = r10867849 - r10867850;
        return r10867851;
}

double f(double x) {
        double r10867852 = x;
        double r10867853 = r10867852 + r10867852;
        double r10867854 = 1.0;
        double r10867855 = r10867853 - r10867854;
        return r10867855;
}

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