Average Error: 0 → 0
Time: 6.7s
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 r11575782 = x;
        double r11575783 = r11575782 + r11575782;
        double r11575784 = 1.0;
        double r11575785 = r11575783 - r11575784;
        return r11575785;
}

double f(double x) {
        double r11575786 = x;
        double r11575787 = r11575786 + r11575786;
        double r11575788 = 1.0;
        double r11575789 = r11575787 - r11575788;
        return r11575789;
}

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