Average Error: 0 → 0
Time: 29.9s
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 r62941425 = x;
        double r62941426 = r62941425 + r62941425;
        double r62941427 = 1.0;
        double r62941428 = r62941426 - r62941427;
        return r62941428;
}

double f(double x) {
        double r62941429 = x;
        double r62941430 = r62941429 + r62941429;
        double r62941431 = 1.0;
        double r62941432 = r62941430 - r62941431;
        return r62941432;
}

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