Average Error: 0 → 0
Time: 8.3s
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 r14272887 = x;
        double r14272888 = r14272887 + r14272887;
        double r14272889 = 1.0;
        double r14272890 = r14272888 - r14272889;
        return r14272890;
}

double f(double x) {
        double r14272891 = x;
        double r14272892 = r14272891 + r14272891;
        double r14272893 = 1.0;
        double r14272894 = r14272892 - r14272893;
        return r14272894;
}

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