Average Error: 0 → 0
Time: 8.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 r11460006 = x;
        double r11460007 = r11460006 + r11460006;
        double r11460008 = 1.0;
        double r11460009 = r11460007 - r11460008;
        return r11460009;
}

double f(double x) {
        double r11460010 = x;
        double r11460011 = r11460010 + r11460010;
        double r11460012 = 1.0;
        double r11460013 = r11460011 - r11460012;
        return r11460013;
}

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