Average Error: 0 → 0
Time: 21.1s
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 r7318358 = x;
        double r7318359 = r7318358 + r7318358;
        double r7318360 = 1.0;
        double r7318361 = r7318359 - r7318360;
        return r7318361;
}

double f(double x) {
        double r7318362 = x;
        double r7318363 = r7318362 + r7318362;
        double r7318364 = 1.0;
        double r7318365 = r7318363 - r7318364;
        return r7318365;
}

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