Average Error: 0.2 → 0.2
Time: 654.0ms
Precision: binary64
\[\frac{x}{e^{x + 1}}\]
\[\frac{x}{e^{x + 1}}\]
\frac{x}{e^{x + 1}}
\frac{x}{e^{x + 1}}
double code(double x) {
	return ((double) (x / ((double) exp(((double) (x + 1.0))))));
}
double code(double x) {
	return ((double) (x / ((double) exp(((double) (x + 1.0))))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

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

    \[\leadsto \frac{x}{e^{x + 1}}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(/ x (exp (+ x 1)))"
  :precision binary64
  (/ x (exp (+ x 1.0))))