Average Error: 0 → 0
Time: 24.0s
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 r11462751 = x;
        double r11462752 = r11462751 + r11462751;
        double r11462753 = 1.0;
        double r11462754 = r11462752 - r11462753;
        return r11462754;
}

double f(double x) {
        double r11462755 = x;
        double r11462756 = r11462755 + r11462755;
        double r11462757 = 1.0;
        double r11462758 = r11462756 - r11462757;
        return r11462758;
}

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