Average Error: 0 → 0
Time: 7.0s
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 r10674032 = x;
        double r10674033 = r10674032 + r10674032;
        double r10674034 = 1.0;
        double r10674035 = r10674033 - r10674034;
        return r10674035;
}

double f(double x) {
        double r10674036 = x;
        double r10674037 = r10674036 + r10674036;
        double r10674038 = 1.0;
        double r10674039 = r10674037 - r10674038;
        return r10674039;
}

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