Average Error: 0 → 0
Time: 2.1s
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 r119026 = x;
        double r119027 = r119026 + r119026;
        double r119028 = 1.0;
        double r119029 = r119027 - r119028;
        return r119029;
}

double f(double x) {
        double r119030 = x;
        double r119031 = r119030 + r119030;
        double r119032 = 1.0;
        double r119033 = r119031 - r119032;
        return r119033;
}

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