Average Error: 0 → 0
Time: 9.5s
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 r7498512 = x;
        double r7498513 = r7498512 + r7498512;
        double r7498514 = 1.0;
        double r7498515 = r7498513 - r7498514;
        return r7498515;
}

double f(double x) {
        double r7498516 = x;
        double r7498517 = r7498516 + r7498516;
        double r7498518 = 1.0;
        double r7498519 = r7498517 - r7498518;
        return r7498519;
}

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