Average Error: 38.8 → 38.8
Time: 2.0s
Precision: binary64
\[\frac{1 - e^{x \cdot y}}{x}\]
\[\frac{1 - e^{x \cdot y}}{x}\]
\frac{1 - e^{x \cdot y}}{x}
\frac{1 - e^{x \cdot y}}{x}
double code(double x, double y) {
	return ((double) (((double) (1.0 - ((double) exp(((double) (x * y)))))) / x));
}
double code(double x, double y) {
	return ((double) (((double) (1.0 - ((double) exp(((double) (x * y)))))) / x));
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 38.8

    \[\frac{1 - e^{x \cdot y}}{x}\]
  2. Final simplification38.8

    \[\leadsto \frac{1 - e^{x \cdot y}}{x}\]

Reproduce

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