Average Error: 0 → 0
Time: 3.7s
Precision: 64
\[e^{1 - x}\]
\[e^{1 - x}\]
e^{1 - x}
e^{1 - x}
double f(double x) {
        double r537222 = 1.0;
        double r537223 = x;
        double r537224 = r537222 - r537223;
        double r537225 = exp(r537224);
        return r537225;
}

double f(double x) {
        double r537226 = 1.0;
        double r537227 = x;
        double r537228 = r537226 - r537227;
        double r537229 = exp(r537228);
        return r537229;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[e^{1 - x}\]
  2. Final simplification0

    \[\leadsto e^{1 - x}\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "exp(1-x)"
  :precision binary32
  (exp (- 1 x)))