Average Error: 0 → 0
Time: 1.9s
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 r149699 = x;
        double r149700 = r149699 + r149699;
        double r149701 = 1.0;
        double r149702 = r149700 - r149701;
        return r149702;
}

double f(double x) {
        double r149703 = x;
        double r149704 = r149703 + r149703;
        double r149705 = 1.0;
        double r149706 = r149704 - r149705;
        return r149706;
}

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