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 r155846 = x;
        double r155847 = r155846 + r155846;
        double r155848 = 1.0;
        double r155849 = r155847 - r155848;
        return r155849;
}

double f(double x) {
        double r155850 = x;
        double r155851 = r155850 + r155850;
        double r155852 = 1.0;
        double r155853 = r155851 - r155852;
        return r155853;
}

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