Average Error: 0 → 0
Time: 8.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 r7773749 = x;
        double r7773750 = r7773749 + r7773749;
        double r7773751 = 1.0;
        double r7773752 = r7773750 - r7773751;
        return r7773752;
}

double f(double x) {
        double r7773753 = x;
        double r7773754 = r7773753 + r7773753;
        double r7773755 = 1.0;
        double r7773756 = r7773754 - r7773755;
        return r7773756;
}

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