Average Error: 0 → 0
Time: 1.8s
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 r128934 = x;
        double r128935 = r128934 + r128934;
        double r128936 = 1.0;
        double r128937 = r128935 - r128936;
        return r128937;
}

double f(double x) {
        double r128938 = x;
        double r128939 = r128938 + r128938;
        double r128940 = 1.0;
        double r128941 = r128939 - r128940;
        return r128941;
}

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