Average Error: 0 → 0
Time: 3.8s
Precision: 64
\[\left(x + x\right) - 1.0\]
\[\left(x + x\right) - 1.0\]
\left(x + x\right) - 1.0
\left(x + x\right) - 1.0
double f(double x) {
        double r3156200 = x;
        double r3156201 = r3156200 + r3156200;
        double r3156202 = 1.0;
        double r3156203 = r3156201 - r3156202;
        return r3156203;
}

double f(double x) {
        double r3156204 = x;
        double r3156205 = r3156204 + r3156204;
        double r3156206 = 1.0;
        double r3156207 = r3156205 - r3156206;
        return r3156207;
}

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.0\]
  2. Final simplification0

    \[\leadsto \left(x + x\right) - 1.0\]

Reproduce

herbie shell --seed 2019156 +o rules:numerics
(FPCore (x)
  :name "Data.Random.Distribution.Normal:doubleStdNormalZ from random-fu-0.2.6.2"
  (- (+ x x) 1.0))