Average Error: 0 → 0
Time: 1.8s
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 r209827 = x;
        double r209828 = r209827 + r209827;
        double r209829 = 1.0;
        double r209830 = r209828 - r209829;
        return r209830;
}

double f(double x) {
        double r209831 = x;
        double r209832 = r209831 + r209831;
        double r209833 = 1.0;
        double r209834 = r209832 - r209833;
        return r209834;
}

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