Average Error: 0 → 0
Time: 3.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 r126532 = x;
        double r126533 = r126532 + r126532;
        double r126534 = 1.0;
        double r126535 = r126533 - r126534;
        return r126535;
}

double f(double x) {
        double r126536 = x;
        double r126537 = r126536 + r126536;
        double r126538 = 1.0;
        double r126539 = r126537 - r126538;
        return r126539;
}

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