Average Error: 0 → 0
Time: 8.4s
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 r23457428 = x;
        double r23457429 = r23457428 + r23457428;
        double r23457430 = 1.0;
        double r23457431 = r23457429 - r23457430;
        return r23457431;
}

double f(double x) {
        double r23457432 = x;
        double r23457433 = r23457432 + r23457432;
        double r23457434 = 1.0;
        double r23457435 = r23457433 - r23457434;
        return r23457435;
}

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))