Average Error: 0 → 0
Time: 2.0s
Precision: 64
\[\left(x + x\right) - 1\]
\[\left(x + x\right) - 1\]
\left(x + x\right) - 1
\left(x + x\right) - 1
double f(double x) {
        double r213723 = x;
        double r213724 = r213723 + r213723;
        double r213725 = 1.0;
        double r213726 = r213724 - r213725;
        return r213726;
}

double f(double x) {
        double r213727 = x;
        double r213728 = r213727 + r213727;
        double r213729 = 1.0;
        double r213730 = r213728 - r213729;
        return r213730;
}

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\]
  2. Final simplification0

    \[\leadsto \left(x + x\right) - 1\]

Reproduce

herbie shell --seed 2019212 +o rules:numerics
(FPCore (x)
  :name "Data.Random.Distribution.Normal:doubleStdNormalZ from random-fu-0.2.6.2"
  :precision binary64
  (- (+ x x) 1))