Average Error: 0 → 0
Time: 2.0s
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 r9610368 = x;
        double r9610369 = r9610368 + r9610368;
        double r9610370 = 1.0;
        double r9610371 = r9610369 - r9610370;
        return r9610371;
}

double f(double x) {
        double r9610372 = x;
        double r9610373 = r9610372 + r9610372;
        double r9610374 = 1.0;
        double r9610375 = r9610373 - r9610374;
        return r9610375;
}

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