Average Error: 0 → 0
Time: 8.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 r10515275 = x;
        double r10515276 = r10515275 + r10515275;
        double r10515277 = 1.0;
        double r10515278 = r10515276 - r10515277;
        return r10515278;
}

double f(double x) {
        double r10515279 = x;
        double r10515280 = r10515279 + r10515279;
        double r10515281 = 1.0;
        double r10515282 = r10515280 - r10515281;
        return r10515282;
}

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