Average Error: 0 → 0
Time: 7.9s
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 r10581602 = x;
        double r10581603 = r10581602 + r10581602;
        double r10581604 = 1.0;
        double r10581605 = r10581603 - r10581604;
        return r10581605;
}

double f(double x) {
        double r10581606 = x;
        double r10581607 = r10581606 + r10581606;
        double r10581608 = 1.0;
        double r10581609 = r10581607 - r10581608;
        return r10581609;
}

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